@altinn/altinn-components 0.15.4 → 0.16.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 (194) hide show
  1. package/dist/ArrowLeft-C91mClJx.js +25 -0
  2. package/dist/ArrowRedo-BYz1MHxK.js +25 -0
  3. package/dist/ArrowRight-OLgmLkGy.js +25 -0
  4. package/dist/Bookmark-85oKfr9m.js +25 -0
  5. package/dist/Buildings2-DO6ftvL7.js +25 -0
  6. package/dist/ChevronDown-CRAwzuD3.js +25 -0
  7. package/dist/ChevronRight-DUaHaWi-.js +25 -0
  8. package/dist/ChevronUp-H8Nuww4h.js +25 -0
  9. package/dist/ClockDashed-PQgzLSPC.js +25 -0
  10. package/dist/DocPencil-CVby07uu.js +25 -0
  11. package/dist/Eye-CMPIjkcy.js +25 -0
  12. package/dist/Handshake-Bz9FuL-x.js +25 -0
  13. package/dist/Inbox-z7qqLz8Y.js +25 -0
  14. package/dist/MagnifyingGlass-DWIcpwS4.js +25 -0
  15. package/dist/Package-ASRzCHA7.js +25 -0
  16. package/dist/PadlockLocked-xJsxvaHH.js +25 -0
  17. package/dist/Plus-B6MBOAcH.js +25 -0
  18. package/dist/Trash-DMlYh49i.js +44 -0
  19. package/dist/XMark-Bv1I87Ev.js +25 -0
  20. package/dist/assets/DrawerBase.css +1 -1
  21. package/dist/assets/DrawerOrDropdown.css +1 -1
  22. package/dist/assets/DropdownBase.css +1 -1
  23. package/dist/assets/GlobalMenuBase.css +1 -1
  24. package/dist/assets/Header.css +1 -1
  25. package/dist/companyAccess-DVKbpCnw.js +626 -0
  26. package/dist/companyMenuItems-E0wNQAfZ.js +105 -0
  27. package/dist/components/AccessAreaList/AccessAreaList.js +4 -5
  28. package/dist/components/AccessAreaList/AccessAreaListItem.js +22 -27
  29. package/dist/components/AccessPackageList/AccessPackageList.js +2 -3
  30. package/dist/components/AccessPackageList/AccessPackageListItem.js +2 -3
  31. package/dist/components/Attachment/AttachmentLink.js +30 -11
  32. package/dist/components/Bookmarks/BookmarksListItem.js +2 -3
  33. package/dist/components/Bookmarks/BookmarksSection.js +2 -3
  34. package/dist/components/Bookmarks/EditableBookmark.js +39 -28
  35. package/dist/components/Button/Button.js +13 -11
  36. package/dist/components/Button/ButtonBase.js +22 -20
  37. package/dist/components/Button/ButtonIcon.js +5 -6
  38. package/dist/components/Button/ComboButton.js +27 -25
  39. package/dist/components/Button/IconButton.js +17 -15
  40. package/dist/components/Byline/Byline.js +7 -8
  41. package/dist/components/ContextMenu/ContextMenu.js +51 -32
  42. package/dist/components/Datepicker/DatepickerHeader.js +34 -14
  43. package/dist/components/Datepicker/DatepickerTable.js +10 -11
  44. package/dist/components/Dialog/ActivityItem.js +6 -7
  45. package/dist/components/Dialog/ActivityItemDetails.js +9 -10
  46. package/dist/components/Dialog/ActivityLog.js +2 -3
  47. package/dist/components/Dialog/Dialog.js +2 -3
  48. package/dist/components/Dialog/DialogActions.js +25 -23
  49. package/dist/components/Dialog/DialogActivityLog.js +3 -3
  50. package/dist/components/Dialog/DialogAttachments.js +2 -3
  51. package/dist/components/Dialog/DialogBody.js +2 -3
  52. package/dist/components/Dialog/DialogByline.js +8 -9
  53. package/dist/components/Dialog/DialogContent.js +2 -3
  54. package/dist/components/Dialog/DialogHeader.js +4 -5
  55. package/dist/components/Dialog/DialogHeading.js +4 -5
  56. package/dist/components/Dialog/DialogHistory.js +61 -25
  57. package/dist/components/Dialog/DialogLabel.js +8 -8
  58. package/dist/components/Dialog/DialogList.js +2 -3
  59. package/dist/components/Dialog/DialogListGroup.js +33 -14
  60. package/dist/components/Dialog/DialogListItem.js +17 -18
  61. package/dist/components/Dialog/DialogMetadata.js +79 -40
  62. package/dist/components/Dialog/DialogSection.js +2 -3
  63. package/dist/components/Dialog/DialogSeenBy.js +33 -13
  64. package/dist/components/Dialog/DialogSelect.js +4 -5
  65. package/dist/components/Dialog/DialogStatus.js +7 -8
  66. package/dist/components/Dialog/DialogTimeline.js +6 -7
  67. package/dist/components/Dialog/DialogTimelineItem.js +4 -5
  68. package/dist/components/Dialog/DialogTransmissions.js +2 -3
  69. package/dist/components/Dialog/SeenByLog.js +5 -6
  70. package/dist/components/Dropdown/DrawerBase.js +16 -20
  71. package/dist/components/Dropdown/DrawerButton.js +2 -3
  72. package/dist/components/Dropdown/DrawerHeader.js +19 -9
  73. package/dist/components/Dropdown/DrawerOrDropdown.js +3 -4
  74. package/dist/components/Dropdown/DropdownBase.js +18 -20
  75. package/dist/components/GlobalMenu/AccountButton.js +3 -3
  76. package/dist/components/GlobalMenu/AccountMenu.js +9 -10
  77. package/dist/components/GlobalMenu/BackButton.js +5 -5
  78. package/dist/components/GlobalMenu/GlobalMenu.js +14 -15
  79. package/dist/components/GlobalMenu/GlobalMenuBase.js +6 -6
  80. package/dist/components/GlobalMenu/LogoutButton.js +2 -3
  81. package/dist/components/Header/Header.js +19 -20
  82. package/dist/components/Header/HeaderBase.js +2 -3
  83. package/dist/components/Header/HeaderButton.js +35 -34
  84. package/dist/components/Header/HeaderLogo.js +4 -5
  85. package/dist/components/Icon/Icon.js +7 -13
  86. package/dist/components/Icon/IconOrAvatar.js +14 -16
  87. package/dist/components/Icon/index.js +8 -12
  88. package/dist/components/Layout/Layout.js +6 -7
  89. package/dist/components/LayoutAction/ActionHeader.js +25 -14
  90. package/dist/components/LayoutAction/LayoutAction.js +2 -3
  91. package/dist/components/List/List.js +4 -5
  92. package/dist/components/List/ListBase.js +2 -3
  93. package/dist/components/List/ListItem.js +91 -88
  94. package/dist/components/List/ListItemHeader.js +31 -32
  95. package/dist/components/List/ListItemIcon.js +7 -7
  96. package/dist/components/List/ListItemSelect.js +4 -5
  97. package/dist/components/Menu/MenuItem.js +32 -31
  98. package/dist/components/Menu/MenuItemBase.js +22 -23
  99. package/dist/components/Menu/MenuItemIcon.js +2 -3
  100. package/dist/components/Menu/MenuItems.js +20 -21
  101. package/dist/components/Menu/MenuOption.js +5 -6
  102. package/dist/components/Menu/MenuSearch.js +32 -14
  103. package/dist/components/Meta/MetaItemMedia.js +7 -8
  104. package/dist/components/Page/Breadcrumbs.js +11 -11
  105. package/dist/components/Page/BreadcrumbsLink.js +9 -11
  106. package/dist/components/Page/ContactSection.js +4 -5
  107. package/dist/components/Page/PageHeader.js +8 -9
  108. package/dist/components/Page/PageMenu.js +6 -7
  109. package/dist/components/Page/PageNav.js +13 -13
  110. package/dist/components/Page/PageTabs.js +2 -3
  111. package/dist/components/Page/Section.js +2 -3
  112. package/dist/components/ResourceList/ResourceList.js +2 -3
  113. package/dist/components/ResourceList/ResourceListItem.js +2 -3
  114. package/dist/components/Search/Autocomplete.js +6 -7
  115. package/dist/components/Search/AutocompleteItem.js +2 -3
  116. package/dist/components/Search/ScopeListItem.js +2 -3
  117. package/dist/components/Search/SearchField.js +48 -43
  118. package/dist/components/Search/Searchbar.js +2 -3
  119. package/dist/components/Search/SuggestListItem.js +2 -3
  120. package/dist/components/Snackbar/SnackbarItem.js +57 -27
  121. package/dist/components/Timeline/TimelineSection.js +6 -7
  122. package/dist/components/Toolbar/Toolbar.js +36 -34
  123. package/dist/components/Toolbar/ToolbarAccountMenu.js +4 -5
  124. package/dist/components/Toolbar/ToolbarAdd.js +5 -6
  125. package/dist/components/Toolbar/ToolbarButton.js +66 -31
  126. package/dist/components/Toolbar/ToolbarDaterange.js +11 -12
  127. package/dist/components/Toolbar/ToolbarFilter.js +30 -29
  128. package/dist/components/Toolbar/ToolbarMenu.js +4 -5
  129. package/dist/components/Toolbar/ToolbarOptions.js +15 -16
  130. package/dist/components/Toolbar/ToolbarSearch.js +37 -19
  131. package/dist/components/Transmission/TransmissionItem.js +71 -49
  132. package/dist/components/Transmission/TransmissionList.js +2 -3
  133. package/dist/components/index.js +198 -202
  134. package/dist/globalMenu-CtokaeGw.js +124 -0
  135. package/dist/index.js +204 -208
  136. package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.d.ts +2 -1
  137. package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.stories.d.ts +2 -1
  138. package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +5 -3
  139. package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
  140. package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +3 -0
  141. package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +4 -1
  142. package/dist/types/lib/components/Button/Button.d.ts +4 -3
  143. package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
  144. package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
  145. package/dist/types/lib/components/Button/ButtonIcon.d.ts +4 -3
  146. package/dist/types/lib/components/Button/ComboButton.d.ts +5 -3
  147. package/dist/types/lib/components/Button/IconButton.d.ts +4 -3
  148. package/dist/types/lib/components/Dialog/DialogSeenBy.d.ts +2 -0
  149. package/dist/types/lib/components/Dropdown/DrawerHeader.d.ts +2 -1
  150. package/dist/types/lib/components/Header/HeaderButton.d.ts +2 -2
  151. package/dist/types/lib/components/Icon/Icon.d.ts +5 -5
  152. package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +3 -3
  153. package/dist/types/lib/components/Icon/index.d.ts +0 -2
  154. package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +2 -1
  155. package/dist/types/lib/components/List/ListItem.d.ts +2 -2
  156. package/dist/types/lib/components/List/ListItemHeader.d.ts +3 -3
  157. package/dist/types/lib/components/Menu/MenuItem.d.ts +3 -3
  158. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
  159. package/dist/types/lib/components/Menu/MenuSearch.d.ts +2 -1
  160. package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
  161. package/dist/types/lib/components/Meta/MetaItem.d.ts +2 -2
  162. package/dist/types/lib/components/Meta/MetaItemMedia.d.ts +2 -2
  163. package/dist/types/lib/components/Meta/MetaTimestamp.d.ts +2 -2
  164. package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +1 -1
  165. package/dist/types/lib/components/Page/PageHeader.d.ts +2 -2
  166. package/dist/types/lib/components/Search/SearchField.d.ts +3 -1
  167. package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
  168. package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +4 -3
  169. package/dist/types/lib/components/Snackbar/SnackbarItem.stories.d.ts +1 -1
  170. package/dist/types/lib/components/Snackbar/useSnackbar.d.ts +2 -2
  171. package/dist/types/lib/components/Timeline/TimelineSection.d.ts +2 -2
  172. package/dist/types/lib/components/Toolbar/Toolbar.d.ts +2 -1
  173. package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
  174. package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -2
  175. package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
  176. package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +1 -1
  177. package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +2 -1
  178. package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
  179. package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +2 -1
  180. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -1
  181. package/dist/useId-CsCRkvK3.js +16 -0
  182. package/dist/userMenuItems-vSWEGGu2.js +84 -0
  183. package/package.json +3 -3
  184. package/dist/components/Icon/SvgIcon.js +0 -6
  185. package/dist/components/Icon/iconsMap.js +0 -17395
  186. package/dist/globalMenu-C6osDiF4.js +0 -80
  187. package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -19
  188. package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -16
  189. package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +0 -19
  190. package/dist/types/lib/components/Icon/SvgIcon.d.ts +0 -9
  191. package/dist/types/lib/components/Icon/iconsMap.d.ts +0 -1911
  192. package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +0 -19
  193. package/dist/types/lib/components/Page/ContactSection.stories.d.ts +0 -25
  194. package/dist/types/lib/components/Page/PageMenu.stories.d.ts +0 -18
@@ -1,52 +1,53 @@
1
- import { jsxs as _, jsx as o } from "react/jsx-runtime";
2
- import { c as t } from "../../index-L8X2o7IH.js";
3
- import { Avatar as b } from "../Avatar/Avatar.js";
4
- import { AvatarGroup as I } from "../Avatar/AvatarGroup.js";
1
+ import { jsxs as _, jsx as n } from "react/jsx-runtime";
2
+ import { c } from "../../index-L8X2o7IH.js";
3
+ import { Avatar as h } from "../Avatar/Avatar.js";
4
+ import { AvatarGroup as b } from "../Avatar/AvatarGroup.js";
5
5
  import { Badge as a } from "../Badge/Badge.js";
6
6
  import { ButtonBase as u } from "../Button/ButtonBase.js";
7
- import { Icon as N } from "../Icon/Icon.js";
8
- import "../Icon/SvgIcon.js";
7
+ import { Icon as f } from "../Icon/Icon.js";
9
8
  import "react";
10
9
  import "../RootProvider/RootProvider.js";
11
10
  import "../Search/AutocompleteBase.js";
12
11
  import "../Snackbar/useSnackbar.js";
13
- import '../../assets/HeaderButton.css';const g = "_button_ottvn_1", x = "_label_ottvn_12", B = "_icon_ottvn_18", G = "_avatarGroup_ottvn_28", k = "_loginIcon_ottvn_37", y = "_closeIcon_ottvn_42", j = "_badge_ottvn_46", n = {
14
- button: g,
15
- label: x,
16
- icon: B,
17
- avatarGroup: G,
18
- loginIcon: k,
12
+ import { S as I } from "../../XMark-Bv1I87Ev.js";
13
+ import { S as x } from "../../PadlockLocked-xJsxvaHH.js";
14
+ import '../../assets/HeaderButton.css';const B = "_button_ottvn_1", G = "_label_ottvn_12", S = "_icon_ottvn_18", k = "_avatarGroup_ottvn_28", v = "_loginIcon_ottvn_37", y = "_closeIcon_ottvn_42", j = "_badge_ottvn_46", o = {
15
+ button: B,
16
+ label: G,
17
+ icon: S,
18
+ avatarGroup: k,
19
+ loginIcon: v,
19
20
  closeIcon: y,
20
21
  badge: j
21
- }, L = ({
22
+ }, K = ({
22
23
  className: s,
23
24
  as: l = "button",
24
25
  color: m = "accent",
25
26
  variant: i = "solid",
26
- avatar: e,
27
+ avatar: t,
27
28
  avatarGroup: d,
28
- icon: f = "padlock-locked",
29
- expanded: h,
29
+ icon: N = x,
30
+ expanded: g,
30
31
  label: r = "Menu",
31
- badge: c,
32
+ badge: e,
32
33
  ...p
33
- }) => h ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: t(n.button, s), children: [
34
- /* @__PURE__ */ o("span", { className: n.label, children: r }),
35
- /* @__PURE__ */ o("span", { className: t(n.icon, n.closeIcon), children: /* @__PURE__ */ o(N, { name: "x-mark" }) }),
36
- c && /* @__PURE__ */ o(a, { ...c, className: n.badge })
37
- ] }) : d ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: t(n.button, s), children: [
38
- /* @__PURE__ */ o("span", { className: n.label, children: r }),
39
- /* @__PURE__ */ o(I, { ...d, size: "sm", className: n.avatarGroup }),
40
- c && /* @__PURE__ */ o(a, { ...c, className: n.badge })
41
- ] }) : e ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: t(n.button, s), children: [
42
- /* @__PURE__ */ o("span", { className: n.label, children: r }),
43
- /* @__PURE__ */ o(b, { type: e == null ? void 0 : e.type, name: e == null ? void 0 : e.name, size: "lg" }),
44
- c && /* @__PURE__ */ o(a, { ...c, className: n.badge })
45
- ] }) : /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: t(n.button, s), children: [
46
- /* @__PURE__ */ o("span", { className: n.label, children: r }),
47
- /* @__PURE__ */ o("span", { className: t(n.icon, n.loginIcon), children: /* @__PURE__ */ o(N, { name: f }) }),
48
- c && /* @__PURE__ */ o(a, { ...c, className: n.badge })
34
+ }) => g ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: c(o.button, s), children: [
35
+ /* @__PURE__ */ n("span", { className: o.label, children: r }),
36
+ /* @__PURE__ */ n("span", { className: c(o.icon, o.closeIcon), children: /* @__PURE__ */ n(f, { svgElement: I }) }),
37
+ e && /* @__PURE__ */ n(a, { ...e, className: o.badge })
38
+ ] }) : d ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: c(o.button, s), children: [
39
+ /* @__PURE__ */ n("span", { className: o.label, children: r }),
40
+ /* @__PURE__ */ n(b, { ...d, size: "sm", className: o.avatarGroup }),
41
+ e && /* @__PURE__ */ n(a, { ...e, className: o.badge })
42
+ ] }) : t ? /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: c(o.button, s), children: [
43
+ /* @__PURE__ */ n("span", { className: o.label, children: r }),
44
+ /* @__PURE__ */ n(h, { type: t == null ? void 0 : t.type, name: t == null ? void 0 : t.name, size: "lg" }),
45
+ e && /* @__PURE__ */ n(a, { ...e, className: o.badge })
46
+ ] }) : /* @__PURE__ */ _(u, { ...p, as: l, variant: i, color: m, className: c(o.button, s), children: [
47
+ /* @__PURE__ */ n("span", { className: o.label, children: r }),
48
+ /* @__PURE__ */ n("span", { className: c(o.icon, o.loginIcon), children: /* @__PURE__ */ n(f, { svgElement: N }) }),
49
+ e && /* @__PURE__ */ n(a, { ...e, className: o.badge })
49
50
  ] });
50
51
  export {
51
- L as HeaderButton
52
+ K as HeaderButton
52
53
  };
@@ -1,21 +1,20 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { c as n } from "../../index-L8X2o7IH.js";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import { c as i } from "../../index-L8X2o7IH.js";
3
3
  import { ButtonBase as e } from "../Button/ButtonBase.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { DigdirLogomark as c } from "./DigdirLogomark.js";
7
7
  import "../Search/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import "../Icon/SvgIcon.js";
10
9
  import '../../assets/HeaderLogo.css';const a = "_logo_y48xn_1", x = "_symbol_y48xn_8", y = "_riksSymbol_y48xn_14", _ = "_text_y48xn_20", o = {
11
10
  logo: a,
12
11
  symbol: x,
13
12
  riksSymbol: y,
14
13
  text: _
15
- }, j = ({ className: s, as: m = "a", title: r = "Altinn", href: l = "/" }) => /* @__PURE__ */ i(e, { as: m, className: n(o.logo, s), href: l, children: [
14
+ }, h = ({ className: s, as: m = "a", title: r = "Altinn", href: l = "/" }) => /* @__PURE__ */ n(e, { as: m, className: i(o.logo, s), href: l, children: [
16
15
  /* @__PURE__ */ t(c, { className: o.symbol }),
17
16
  /* @__PURE__ */ t("span", { className: o.text, children: r })
18
17
  ] });
19
18
  export {
20
- j as HeaderLogo
19
+ h as HeaderLogo
21
20
  };
@@ -1,19 +1,13 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as a } from "../../index-L8X2o7IH.js";
3
- import { SvgIcon as h } from "./SvgIcon.js";
4
- import { iconsMap as e } from "./iconsMap.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as i } from "../../index-L8X2o7IH.js";
5
3
  import "react";
6
4
  import "../RootProvider/RootProvider.js";
7
- import { Skeleton as u } from "../Skeleton/Skeleton.js";
5
+ import { Skeleton as p } from "../Skeleton/Skeleton.js";
8
6
  import "../Search/AutocompleteBase.js";
9
7
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/Icon.css';const v = "_icon_3p8he_1", s = {
11
- icon: v
12
- }, z = ({ loading: p, name: o, size: m, color: l, theme: f, variant: d = "outline", className: t }) => {
13
- var n, c;
14
- const i = ((n = e[o]) == null ? void 0 : n[d]) ?? ((c = e[o]) == null ? void 0 : c.outline);
15
- return i ? /* @__PURE__ */ r(u, { loading: p, variant: "circle", children: /* @__PURE__ */ r("span", { "data-size": m, "data-color": l, "data-theme": f, className: a([s.icon], t), children: /* @__PURE__ */ r(h, { svgIconComponent: i, "aria-label": o }) }) }) : /* @__PURE__ */ r("span", { className: a([s.icon], t), "aria-label": o });
16
- };
8
+ import '../../assets/Icon.css';const l = "_icon_3p8he_1", n = {
9
+ icon: l
10
+ }, j = ({ loading: a, altText: c, svgElement: r, size: e, color: s, theme: m, className: t }) => r ? /* @__PURE__ */ o(p, { loading: a, variant: "circle", children: /* @__PURE__ */ o("span", { "data-size": e, "data-color": s, "data-theme": m, className: i([n.icon], t), children: /* @__PURE__ */ o(r, { "aria-hidden": "true", "alt-label": c }) }) }) : /* @__PURE__ */ o("span", { className: i([n.icon], t) });
17
11
  export {
18
- z as Icon
12
+ j as Icon
19
13
  };
@@ -1,27 +1,25 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { isValidElement as p } from "react";
3
- import { Icon as s } from "./Icon.js";
4
- import "./SvgIcon.js";
2
+ import { isValidElement as n } from "react";
3
+ import { Icon as i } from "./Icon.js";
5
4
  import "../../index-L8X2o7IH.js";
6
- import { Avatar as n } from "../Avatar/Avatar.js";
7
- import { AvatarGroup as u } from "../Avatar/AvatarGroup.js";
5
+ import { Avatar as s } from "../Avatar/Avatar.js";
6
+ import { AvatarGroup as p } from "../Avatar/AvatarGroup.js";
8
7
  import "../RootProvider/RootProvider.js";
9
8
  import "../Search/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
- const I = ({ size: i, icon: r, iconTheme: f, avatar: t, avatarGroup: m }) => {
12
- if (!r && !t && !m)
10
+ function u(r) {
11
+ return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || n(r);
12
+ }
13
+ const l = (r) => r.svgElement !== void 0, x = ({ size: r, icon: t, iconTheme: f, avatar: e, avatarGroup: m }) => {
14
+ if (!t && !e && !m)
13
15
  return null;
14
- if (r) {
15
- if (p(r))
16
- return r;
17
- const e = typeof r == "string" ? { name: r } : r;
18
- return /* @__PURE__ */ o(s, { ...e, theme: (e == null ? void 0 : e.theme) || f, size: i });
19
- }
20
16
  if (t)
21
- return /* @__PURE__ */ o(n, { ...t, size: t.size || i });
17
+ return l(t) ? /* @__PURE__ */ o(i, { theme: t.theme || f, size: t.size || r, ...t }) : u(t) ? t : /* @__PURE__ */ o(i, { svgElement: t, theme: f, size: r });
18
+ if (e)
19
+ return /* @__PURE__ */ o(s, { ...e, size: e.size || r });
22
20
  if (m)
23
- return /* @__PURE__ */ o(u, { ...m, size: m.size || i });
21
+ return /* @__PURE__ */ o(p, { ...m, size: m.size || r });
24
22
  };
25
23
  export {
26
- I as IconOrAvatar
24
+ x as IconOrAvatar
27
25
  };
@@ -1,16 +1,12 @@
1
1
  import { Icon as e } from "./Icon.js";
2
- import { SvgIcon as p } from "./SvgIcon.js";
3
- import { CheckboxIcon as x } from "./CheckboxIcon.js";
4
- import { RadioIcon as m } from "./RadioIcon.js";
5
- import { ProgressIcon as I } from "./ProgressIcon.js";
6
- import { iconsMap as s } from "./iconsMap.js";
7
- import { IconOrAvatar as i } from "./IconOrAvatar.js";
2
+ import { CheckboxIcon as t } from "./CheckboxIcon.js";
3
+ import { RadioIcon as f } from "./RadioIcon.js";
4
+ import { ProgressIcon as n } from "./ProgressIcon.js";
5
+ import { IconOrAvatar as I } from "./IconOrAvatar.js";
8
6
  export {
9
- x as CheckboxIcon,
7
+ t as CheckboxIcon,
10
8
  e as Icon,
11
- i as IconOrAvatar,
12
- I as ProgressIcon,
13
- m as RadioIcon,
14
- p as SvgIcon,
15
- s as iconsMap
9
+ I as IconOrAvatar,
10
+ n as ProgressIcon,
11
+ f as RadioIcon
16
12
  };
@@ -7,26 +7,25 @@ import { LayoutSidebar as x } from "./LayoutSidebar.js";
7
7
  import { Footer as j } from "../Footer/Footer.js";
8
8
  import { Header as B } from "../Header/Header.js";
9
9
  import "../../index-L8X2o7IH.js";
10
- import "../Icon/SvgIcon.js";
11
10
  import "react";
12
11
  import { useRootContext as C } from "../RootProvider/RootProvider.js";
13
12
  import { Menu as F } from "../Menu/Menu.js";
14
13
  import "../Search/AutocompleteBase.js";
15
14
  import "../Snackbar/useSnackbar.js";
16
- const G = ({ color: n, theme: c = "subtle", header: u, footer: r, sidebar: o, content: t = {}, children: f }) => {
17
- const { currentId: l } = C();
18
- return /* @__PURE__ */ p(y, { color: n, theme: c, currentId: l, children: [
15
+ const E = ({ color: n, theme: c = "subtle", header: u, footer: l, sidebar: o, content: t = {}, children: f }) => {
16
+ const { currentId: r } = C();
17
+ return /* @__PURE__ */ p(y, { color: n, theme: c, currentId: r, children: [
19
18
  u && /* @__PURE__ */ m(B, { ...u }),
20
- /* @__PURE__ */ p(h, { currentId: l, children: [
19
+ /* @__PURE__ */ p(h, { currentId: r, children: [
21
20
  o && /* @__PURE__ */ p(x, { hidden: o == null ? void 0 : o.hidden, color: o == null ? void 0 : o.color, ...o, children: [
22
21
  (o == null ? void 0 : o.menu) && /* @__PURE__ */ m(F, { ...o == null ? void 0 : o.menu }),
23
22
  o == null ? void 0 : o.children
24
23
  ] }),
25
24
  /* @__PURE__ */ m(L, { color: t == null ? void 0 : t.color, children: f })
26
25
  ] }),
27
- r && /* @__PURE__ */ m(j, { ...r })
26
+ l && /* @__PURE__ */ m(j, { ...l })
28
27
  ] });
29
28
  };
30
29
  export {
31
- G as Layout
30
+ E as Layout
32
31
  };
@@ -1,27 +1,38 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
- import { IconButton as d } from "../Button/IconButton.js";
4
+ import { IconButton as c } from "../Button/IconButton.js";
6
5
  import "../RootProvider/RootProvider.js";
7
- import { Heading as c } from "../Typography/Heading.js";
6
+ import { Heading as l } from "../Typography/Heading.js";
8
7
  import "../Search/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/ActionHeader.css';const l = "_header_1tian_1", p = "_title_1tian_34", h = "_dismiss_1tian_40", t = {
11
- header: l,
12
- title: p,
13
- dismiss: h
14
- }, v = ({
9
+ import { S as p } from "../../XMark-Bv1I87Ev.js";
10
+ import '../../assets/ActionHeader.css';const h = "_header_1tian_1", _ = "_title_1tian_34", f = "_dismiss_1tian_40", t = {
11
+ header: h,
12
+ title: _,
13
+ dismiss: f
14
+ }, H = ({
15
15
  color: i,
16
16
  theme: e,
17
17
  hidden: r = !1,
18
18
  title: a,
19
19
  dismissable: o = !0,
20
- onDismiss: m
21
- }) => /* @__PURE__ */ n("header", { className: t.header, "aria-hidden": r, "data-color": i, "data-theme": e, children: [
22
- /* @__PURE__ */ s(c, { size: "sm", className: t.title, children: a }),
23
- o && /* @__PURE__ */ s(d, { icon: "x-mark", color: i, variant: "solid", onClick: m, className: t.dismiss })
20
+ dismissIconAltText: m = "Close",
21
+ onDismiss: n
22
+ }) => /* @__PURE__ */ d("header", { className: t.header, "aria-hidden": r, "data-color": i, "data-theme": e, children: [
23
+ /* @__PURE__ */ s(l, { size: "sm", className: t.title, children: a }),
24
+ o && /* @__PURE__ */ s(
25
+ c,
26
+ {
27
+ icon: p,
28
+ color: i,
29
+ variant: "solid",
30
+ onClick: n,
31
+ className: t.dismiss,
32
+ iconAltText: m
33
+ }
34
+ )
24
35
  ] });
25
36
  export {
26
- v as ActionHeader
37
+ H as ActionHeader
27
38
  };
@@ -1,6 +1,5 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
4
  import "../RootProvider/RootProvider.js";
6
5
  import "../Search/AutocompleteBase.js";
@@ -9,7 +8,7 @@ import { ActionHeader as f } from "./ActionHeader.js";
9
8
  import { ActionFooter as u } from "./ActionFooter.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { PageMenu as x } from "../Page/PageMenu.js";
12
- const M = ({
11
+ const H = ({
13
12
  color: r = "accent",
14
13
  theme: t = "base",
15
14
  hidden: i,
@@ -34,5 +33,5 @@ const M = ({
34
33
  /* @__PURE__ */ o(u, { hidden: i, children: m && /* @__PURE__ */ o(x, { ...m, theme: t, color: r }) })
35
34
  ] });
36
35
  export {
37
- M as LayoutAction
36
+ H as LayoutAction
38
37
  };
@@ -1,14 +1,13 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { createElement as l } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import "../Icon/SvgIcon.js";
5
4
  import "../RootProvider/RootProvider.js";
6
- import { ListItem as m } from "./ListItem.js";
7
- import { ListBase as a } from "./ListBase.js";
5
+ import { ListItem as a } from "./ListItem.js";
6
+ import { ListBase as e } from "./ListBase.js";
8
7
  import "../Search/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
- const k = ({ defaultItemSize: o, defaultItemTheme: p, defaultItemColor: s, items: t = [], ...c }) => /* @__PURE__ */ f(a, { ...c, children: t.map((r, n) => /* @__PURE__ */ l(
11
- m,
9
+ const k = ({ defaultItemSize: o, defaultItemTheme: p, defaultItemColor: s, items: t = [], ...c }) => /* @__PURE__ */ f(e, { ...c, children: t.map((r, n) => /* @__PURE__ */ l(
10
+ a,
12
11
  {
13
12
  ...r,
14
13
  size: (r == null ? void 0 : r.size) || o,
@@ -1,12 +1,11 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
4
  import "../RootProvider/RootProvider.js";
6
5
  import "../Search/AutocompleteBase.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
7
  import { Flex as m } from "../Page/Flex.js";
9
- const a = ({ spacing: o = 2, children: r, ...t }) => /* @__PURE__ */ i(m, { direction: "col", spacing: o, ...t, children: r });
8
+ const l = ({ spacing: o = 2, children: r, ...t }) => /* @__PURE__ */ i(m, { direction: "col", spacing: o, ...t, children: r });
10
9
  export {
11
- a as ListBase
10
+ l as ListBase
12
11
  };
@@ -1,110 +1,113 @@
1
- import { jsxs as C, jsx as e } from "react/jsx-runtime";
2
- import { ListItemBase as p } from "./ListItemBase.js";
3
- import { ListItemHeader as b } from "./ListItemHeader.js";
4
- const J = ({
5
- className: I,
6
- variant: L = "solid",
7
- color: f,
8
- theme: u = "default",
9
- shadow: k = "xs",
10
- loading: n,
11
- collapsible: q,
12
- expanded: i,
13
- size: h = "sm",
14
- icon: v,
15
- avatar: j,
16
- avatarGroup: o,
17
- title: r,
18
- description: s,
19
- badge: x,
20
- linkIcon: w = "chevron-right",
21
- label: t,
22
- select: y,
23
- controls: c,
24
- children: A,
25
- ...m
1
+ import { jsxs as U, jsx as t } from "react/jsx-runtime";
2
+ import { ListItemBase as h } from "./ListItemBase.js";
3
+ import { ListItemHeader as B } from "./ListItemHeader.js";
4
+ import { S as b } from "../../ChevronRight-DUaHaWi-.js";
5
+ import { S as q } from "../../ChevronUp-H8Nuww4h.js";
6
+ import { S as w } from "../../ChevronDown-CRAwzuD3.js";
7
+ const O = ({
8
+ className: o,
9
+ variant: v = "solid",
10
+ color: p,
11
+ theme: I = "default",
12
+ shadow: S = "xs",
13
+ loading: r,
14
+ collapsible: D,
15
+ expanded: m,
16
+ size: c = "sm",
17
+ icon: s,
18
+ avatar: L,
19
+ avatarGroup: k,
20
+ title: i,
21
+ description: u,
22
+ badge: C,
23
+ linkIcon: H = b,
24
+ label: e,
25
+ select: j,
26
+ controls: n,
27
+ children: R,
28
+ ...f
26
29
  }) => {
27
- const B = q ? i ? "chevron-up" : "chevron-down" : w, H = typeof t == "function" ? t() : t;
28
- return i ? /* @__PURE__ */ C(
29
- p,
30
+ const x = D ? m ? q : w : H, y = typeof e == "function" ? e() : e;
31
+ return m ? /* @__PURE__ */ U(
32
+ h,
30
33
  {
31
34
  interactive: !1,
32
- variant: L,
33
- color: f,
34
- theme: u,
35
- shadow: k,
36
- expanded: i,
37
- title: r,
38
- loading: n,
35
+ variant: v,
36
+ color: p,
37
+ theme: I,
38
+ shadow: S,
39
+ expanded: m,
40
+ title: i,
41
+ loading: r,
39
42
  children: [
40
- /* @__PURE__ */ e(
41
- p,
43
+ /* @__PURE__ */ t(
44
+ h,
42
45
  {
43
46
  theme: "transparent",
44
- interactive: !c,
45
- size: h,
46
- color: f,
47
- loading: n,
48
- title: r,
49
- ...m,
50
- children: /* @__PURE__ */ e(
51
- b,
47
+ interactive: !n,
48
+ size: c,
49
+ color: p,
50
+ loading: r,
51
+ title: i,
52
+ ...f,
53
+ children: /* @__PURE__ */ t(
54
+ B,
52
55
  {
53
- className: I,
54
- loading: n,
55
- select: y,
56
- size: h,
57
- title: r,
58
- description: s,
59
- icon: v,
60
- avatar: j,
61
- avatarGroup: o,
62
- badge: x,
63
- linkIcon: B,
64
- controls: c,
65
- ...m,
66
- children: H
56
+ className: o,
57
+ loading: r,
58
+ select: j,
59
+ size: c,
60
+ title: i,
61
+ description: u,
62
+ icon: s,
63
+ avatar: L,
64
+ avatarGroup: k,
65
+ badge: C,
66
+ linkIcon: x,
67
+ controls: n,
68
+ ...f,
69
+ children: y
67
70
  }
68
71
  )
69
72
  }
70
73
  ),
71
- A
74
+ R
72
75
  ]
73
76
  }
74
- ) : /* @__PURE__ */ e(
75
- p,
77
+ ) : /* @__PURE__ */ t(
78
+ h,
76
79
  {
77
- interactive: !c,
78
- variant: L,
79
- color: f,
80
- theme: u,
81
- shadow: k,
82
- expanded: i,
83
- loading: n,
84
- title: r,
85
- ...m,
86
- children: /* @__PURE__ */ e(
87
- b,
80
+ interactive: !n,
81
+ variant: v,
82
+ color: p,
83
+ theme: I,
84
+ shadow: S,
85
+ expanded: m,
86
+ loading: r,
87
+ title: i,
88
+ ...f,
89
+ children: /* @__PURE__ */ t(
90
+ B,
88
91
  {
89
- className: I,
90
- loading: n,
91
- select: y,
92
- size: h,
93
- title: r,
94
- description: s,
95
- icon: v,
96
- avatar: j,
97
- avatarGroup: o,
98
- badge: x,
99
- linkIcon: B,
100
- controls: c,
101
- ...m,
102
- children: H
92
+ className: o,
93
+ loading: r,
94
+ select: j,
95
+ size: c,
96
+ title: i,
97
+ description: u,
98
+ icon: s,
99
+ avatar: L,
100
+ avatarGroup: k,
101
+ badge: C,
102
+ linkIcon: x,
103
+ controls: n,
104
+ ...f,
105
+ children: y
103
106
  }
104
107
  )
105
108
  }
106
109
  );
107
110
  };
108
111
  export {
109
- J as ListItem
112
+ O as ListItem
110
113
  };