@altinn/altinn-components 0.30.3 → 0.31.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 (76) hide show
  1. package/dist/assets/Badge.css +1 -1
  2. package/dist/assets/DialogListItem.css +1 -1
  3. package/dist/assets/DrawerBase.css +1 -1
  4. package/dist/assets/DrawerOrDropdown.css +1 -0
  5. package/dist/assets/DropdownBase.css +1 -1
  6. package/dist/assets/ListItemHeader.css +1 -1
  7. package/dist/assets/MenuItemBase.css +1 -1
  8. package/dist/assets/Transmission.css +1 -0
  9. package/dist/components/Account/AccountList.js +6 -6
  10. package/dist/components/Account/AccountListItem.js +1 -1
  11. package/dist/components/Account/AccountListItemControls.js +1 -1
  12. package/dist/components/Badge/Badge.js +12 -11
  13. package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
  14. package/dist/components/Bookmarks/BookmarksSection.js +1 -1
  15. package/dist/components/Dialog/DialogActivity.js +6 -6
  16. package/dist/components/Dialog/DialogByline.js +1 -1
  17. package/dist/components/Dialog/DialogHeader.js +19 -13
  18. package/dist/components/Dialog/DialogHistory.js +22 -21
  19. package/dist/components/Dialog/DialogHistoryItem.js +6 -39
  20. package/dist/components/Dialog/DialogHistorySegment.js +11 -50
  21. package/dist/components/Dialog/DialogListGroup.js +4 -4
  22. package/dist/components/Dialog/DialogListItem.js +112 -98
  23. package/dist/components/Dialog/DialogMetadata.js +102 -85
  24. package/dist/components/Dialog/SeenByLog.js +4 -4
  25. package/dist/components/Dialog/index.js +8 -10
  26. package/dist/components/Dropdown/DrawerBase.js +15 -17
  27. package/dist/components/Dropdown/DrawerOrDropdown.js +20 -19
  28. package/dist/components/Dropdown/DropdownBase.js +1 -1
  29. package/dist/components/GlobalMenu/GlobalMenu.js +44 -43
  30. package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -7
  31. package/dist/components/Header/Header.js +26 -26
  32. package/dist/components/List/List.js +1 -1
  33. package/dist/components/List/ListItemHeader.js +56 -56
  34. package/dist/components/Menu/MenuItemBase.js +15 -15
  35. package/dist/components/Menu/MenuOption.js +11 -12
  36. package/dist/components/Search/SearchItem.js +2 -2
  37. package/dist/components/Searchbar/AutocompleteItem.js +1 -1
  38. package/dist/components/Searchbar/SuggestListItem.js +1 -1
  39. package/dist/components/Settings/SettingsItem.js +7 -7
  40. package/dist/components/Settings/SettingsList.js +1 -1
  41. package/dist/components/Transmission/Transmission.js +53 -48
  42. package/dist/components/Transmission/TransmissionList.js +2 -2
  43. package/dist/components/Transmission/TransmissionType.js +28 -0
  44. package/dist/components/Transmission/index.js +5 -2
  45. package/dist/components/index.js +345 -344
  46. package/dist/index.js +354 -353
  47. package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
  48. package/dist/types/lib/components/Dialog/DialogHeader.d.ts +9 -3
  49. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
  50. package/dist/types/lib/components/Dialog/DialogHistory.d.ts +2 -1
  51. package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +3 -7
  52. package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +4 -7
  53. package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +7 -8
  54. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +13 -35
  55. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +252 -28
  56. package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +7 -5
  57. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
  58. package/dist/types/lib/components/Dialog/index.d.ts +0 -1
  59. package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +1 -3
  60. package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -0
  61. package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +2 -1
  62. package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +2 -1
  63. package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +3 -3
  64. package/dist/types/lib/components/Transmission/Transmission.d.ts +8 -5
  65. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +5 -3
  66. package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +16 -0
  67. package/dist/types/lib/components/Transmission/TransmissionType.d.ts +22 -0
  68. package/dist/types/lib/components/Transmission/index.d.ts +1 -0
  69. package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +17 -0
  70. package/dist/types/lib/stories/Inbox.stories.d.ts +3 -6
  71. package/package.json +2 -2
  72. package/dist/ArrowDown-DtiYfZHZ.js +0 -25
  73. package/dist/assets/DialogHeading.css +0 -1
  74. package/dist/components/Dialog/DialogHeading.js +0 -18
  75. package/dist/types/lib/components/Dialog/DialogHeading.d.ts +0 -19
  76. package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +0 -20
@@ -1 +1 @@
1
- ._badge_80cwt_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);background-color:var(--dsc-badge-background);color:var(--dsc-badge-color)}._badge_80cwt_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_80cwt_1[data-size=xs] ._label_80cwt_22{color:transparent;width:100%;height:100%}._badge_80cwt_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_80cwt_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_80cwt_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_80cwt_1[data-variant=text],._badge_80cwt_1[data-variant=text][data-size=xs],._badge_80cwt_1[data-variant=text][data-size=sm]{--dsc-badge-background: "transparent";--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
1
+ ._badge_b4vo7_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);background-color:var(--dsc-badge-background);color:var(--dsc-badge-color)}._badge_b4vo7_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_b4vo7_1[data-size=xs] ._label_b4vo7_22{color:transparent;width:100%;height:100%}._badge_b4vo7_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_b4vo7_1[data-variant=subtle]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-active);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_b4vo7_1[data-variant=text],._badge_b4vo7_1[data-variant=text][data-size=xs],._badge_b4vo7_1[data-variant=text][data-size=sm]{--dsc-badge-background: "transparent";--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
@@ -1 +1 @@
1
- ._border_1fmch_1{pointer-events:none;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0}._border_1fmch_1[data-seen=true],._border_1fmch_1[data-status=draft],._border_1fmch_1[data-status=sent]{border-color:var(--ds-color-neutral-surface-tinted)}._border_1fmch_1[data-loading=true]{border-color:var(--ds-color-surface-tinted)}._border_1fmch_1[data-size=xs],._border_1fmch_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1fmch_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1fmch_1[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_1fmch_1[data-size=xl]{padding-left:1rem;row-gap:1rem}._controls_1fmch_51{position:absolute;top:-4rem;right:0}._header_1fmch_57{display:flex;flex-direction:column;row-gap:.25rem}._header_1fmch_57[data-size=xs],._header_1fmch_57[data-size=sm]{display:flex;flex-direction:row}._summary_1fmch_69{font-size:1rem;font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._summary_1fmch_69[data-size=xs],._summary_1fmch_69[data-size=sm],._summary_1fmch_69[data-size=md]{font-size:.875rem}._summary_1fmch_69[data-size=lg],._summary_1fmch_69[data-size=xl]{font-size:1rem}._footer_1fmch_97{width:100%}._seenBy_1fmch_101{position:absolute;right:0;bottom:0;margin-right:-.5rem}._heading_1fmch_110{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_1fmch_116{line-height:1.25;font-weight:600;margin:0}._title_1fmch_116[data-size=xs],._title_1fmch_116[data-size=sm]{font-size:1rem}._title_1fmch_116[data-size=md],._title_1fmch_116[data-size=lg],._title_1fmch_116[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_1fmch_116[data-size=md]{font-size:1rem}._title_1fmch_116[data-size=lg],._title_1fmch_116[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_1fmch_116[data-seen=true],._title_1fmch_116[data-state=archived]{font-weight:400}._title_1fmch_116[data-state=trashed]{font-weight:400;text-decoration:line-through}
1
+ ._border_1ij7d_1{pointer-events:none;border-left:.25rem solid;border-color:var(--dsc-border-color);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0;--dsc-border-color: var(--ds-color-neutral-surface-tinted);--dsc-title-weight: 400;--dsc-title-font-size: 1rem;--dsc-title-line-height: 1.25;--dsc-summary-font-size: .875rem}._border_1ij7d_1[data-unread=true]{--dsc-border-color: var(--ds-color-surface-active);--dsc-title-weight: 600}._border_1ij7d_1[data-trashed=true] ._title_1ij7d_23{text-decoration:line-through}._border_1ij7d_1[data-size=xs],._border_1ij7d_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1ij7d_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1ij7d_1[data-size=lg]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:.875rem;row-gap:.875rem}._border_1ij7d_1[data-size=xl]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:1rem;row-gap:1rem}._controls_1ij7d_54{position:absolute;top:0;right:0;margin:.25em}._header_1ij7d_61{position:relative;display:flex;flex-direction:column;row-gap:.25rem}._header_1ij7d_61[data-size=xs],._header_1ij7d_61[data-size=sm]{display:flex;flex-direction:row}._summary_1ij7d_74{font-size:var(--dsc-summary-font-size);font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._footer_1ij7d_88{width:100%}._seenBy_1ij7d_92{position:absolute;right:0;bottom:0;margin-right:-.5rem}._heading_1ij7d_99{padding-right:1.25rem;display:inline-flex;align-items:center;column-gap:.5em}._title_1ij7d_23{font-size:var(--dsc-title-font-size);font-weight:var(--dsc-title-font-weight);line-height:var(--dsc-title-line-height);margin:0}._title_1ij7d_23[data-size=md],._title_1ij7d_23[data-size=lg],._title_1ij7d_23[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
@@ -1 +1 @@
1
- ._drawer_18fhf_1{display:none}._drawer_18fhf_1[data-expanded=true]{display:block;width:100%;z-index:2}._drawer_18fhf_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}@media (max-width: 1023px){._drawer_18fhf_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._drawer_18fhf_1[data-expanded=true][data-layout=mobile]{display:none}}
1
+ ._drawer_tvpob_1{display:none}._drawer_tvpob_1[data-variant=default]{background-color:var(--ds-color-background-default)}._drawer_tvpob_1[data-expanded=true]{display:block;width:100%;z-index:2}._drawer_tvpob_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}@media (max-width: 1023px){._drawer_tvpob_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._drawer_tvpob_1[data-expanded=true][data-layout=mobile]{display:none}}
@@ -0,0 +1 @@
1
+ ._drawerOrDropdown_ijmwc_1{background-color:var(--ds-color-background-default);display:none}._drawerOrDropdown_ijmwc_1[data-expanded=true]{position:fixed;top:5.5rem;right:0;bottom:0;left:0;display:block;z-index:2}@media (min-width: 1024px){._header_ijmwc_18,._footer_ijmwc_19{display:none}._drawerOrDropdown_ijmwc_1[data-expanded=true]{position:absolute;top:auto;right:auto;bottom:auto;left:0;min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}}
@@ -1 +1 @@
1
- ._dropdown_16kos_1{display:none;background-color:var(--ds-color-background-default)}._dropdown_16kos_1[data-expanded=true]{display:block;position:absolute;z-index:9999}._dropdown_16kos_1[data-placement=left]{left:0}._dropdown_16kos_1[data-placement=right]{right:0}._dropdown_16kos_1[data-padding=true]{padding:0 .5rem}._dropdown_16kos_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}@media (max-width: 1023px){._dropdown_16kos_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_16kos_1[data-expanded=true][data-layout=mobile]{display:none}}
1
+ ._dropdown_1ixqr_1{display:none;background-color:var(--ds-color-background-default)}._dropdown_1ixqr_1[data-expanded=true]{display:block;position:absolute;z-index:9999}._dropdown_1ixqr_1[data-placement=left]{left:0}._dropdown_1ixqr_1[data-placement=right]{right:0}._dropdown_1ixqr_1[data-padding=true]{padding:0 .5rem}._dropdown_1ixqr_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}@media (max-width: 1023px){._dropdown_1ixqr_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_1ixqr_1[data-expanded=true][data-layout=mobile]{display:none}}
@@ -1 +1 @@
1
- ._header_s4ghf_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:space-between;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_s4ghf_1[data-interactive=true]{cursor:pointer}._header_s4ghf_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_s4ghf_1[data-interactive=true]:hover ._label_s4ghf_27 h2{text-decoration:underline}._header_s4ghf_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._linkIcon_s4ghf_35{flex-shrink:0;min-width:1.5em;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}
1
+ ._header_b93u8_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:space-between;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_b93u8_1[data-interactive=true]{cursor:pointer}._header_b93u8_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_b93u8_1[data-interactive=true]:hover ._label_b93u8_27 h2{text-decoration:underline}._header_b93u8_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._linkIcon_b93u8_35{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}
@@ -1 +1 @@
1
- ._item_1k1tk_1{font:inherit;color:inherit;padding:0;border:0;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_1k1tk_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_1k1tk_1[data-size=md]{min-height:56px}._item_1k1tk_1[data-size=md]{min-height:44px}._item_1k1tk_1[data-size=sm]{min-height:40px}._content_1k1tk_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_1k1tk_1,._item_1k1tk_1[data-theme]{background-color:transparent}._item_1k1tk_1{pointer-events:none}._item_1k1tk_1[data-interactive=true]{pointer-events:all}[data-theme=subtle] ._item_1k1tk_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_1k1tk_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_1k1tk_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_1k1tk_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_1k1tk_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_1k1tk_1[data-selected=true]{background-color:var(--ds-color-background-tinted)}._content_1k1tk_45{display:flex;width:100%;align-items:center;column-gap:.5em;padding:.5}
1
+ ._item_3iu2g_1{font:inherit;color:inherit;padding:0;border:0;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_3iu2g_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_3iu2g_1[data-size=md]{min-height:56px}._item_3iu2g_1[data-size=md]{min-height:44px}._item_3iu2g_1[data-size=sm]{min-height:40px}._content_3iu2g_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_3iu2g_1,._item_3iu2g_1[data-theme]{background-color:transparent}._item_3iu2g_1{pointer-events:none}._item_3iu2g_1[data-interactive=true]{pointer-events:all}[data-theme=subtle] ._item_3iu2g_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_3iu2g_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_3iu2g_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_3iu2g_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_3iu2g_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_3iu2g_1[data-selected=true]{background-color:var(--ds-color-background-tinted)}._content_3iu2g_45{display:flex;width:100%;align-items:center;column-gap:.5em}
@@ -0,0 +1 @@
1
+ ._title_cy7ua_1{display:flex;align-items:center;column-gap:.5em}._title_cy7ua_1 h2{display:inline;font-weight:inherit;font-size:inherit;line-height:inherit;margin:0}
@@ -3,22 +3,22 @@ import { Fragment as g, createElement as l } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import { AccountListItem as d } from "./AccountListItem.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { List as f } from "../List/List.js";
7
6
  import { Typography as a } from "../Typography/Typography.js";
8
- import { Heading as m } from "../Typography/Heading.js";
7
+ import { Heading as f } from "../Typography/Heading.js";
9
8
  import "../Searchbar/AutocompleteBase.js";
9
+ import { List as m } from "../List/List.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { Section as h } from "../Page/Section.js";
12
12
  const F = ({ items: e, groups: i }) => !e || e.length === 0 ? /* @__PURE__ */ p(h, { children: [
13
- /* @__PURE__ */ t(m, { size: "lg", children: "Ingen treff" }),
13
+ /* @__PURE__ */ t(f, { size: "lg", children: "Ingen treff" }),
14
14
  /* @__PURE__ */ t(a, { children: "Ingen treff på søket ditt." })
15
15
  ] }) : i ? /* @__PURE__ */ t(h, { spacing: 6, children: Object.entries(i).map(([r, s]) => {
16
16
  const { title: o } = s, c = e.filter((n) => n.groupId === r && !n.hidden);
17
17
  return c.length === 0 ? null : /* @__PURE__ */ p(g, { children: [
18
- o && /* @__PURE__ */ t(m, { size: "lg", children: o }),
19
- /* @__PURE__ */ t(f, { children: c.map((n) => /* @__PURE__ */ l(d, { ...n, key: n.id })) })
18
+ o && /* @__PURE__ */ t(f, { size: "lg", children: o }),
19
+ /* @__PURE__ */ t(m, { children: c.map((n) => /* @__PURE__ */ l(d, { ...n, key: n.id })) })
20
20
  ] }, r);
21
- }) }) : /* @__PURE__ */ t(f, { children: e.filter((r) => !(r != null && r.hidden)).map((r) => /* @__PURE__ */ l(d, { ...r, key: r.id })) });
21
+ }) }) : /* @__PURE__ */ t(m, { children: e.filter((r) => !(r != null && r.hidden)).map((r) => /* @__PURE__ */ l(d, { ...r, key: r.id })) });
22
22
  export {
23
23
  F as AccountList
24
24
  };
@@ -2,8 +2,8 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { ListItem as j } from "../List/ListItem.js";
6
5
  import "../Searchbar/AutocompleteBase.js";
6
+ import { ListItem as j } from "../List/ListItem.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { AccountListItemControls as k } from "./AccountListItemControls.js";
9
9
  const D = ({
@@ -6,9 +6,9 @@ import { forwardRef as m, isValidElement as y } from "react";
6
6
  import { Badge as O } from "../Badge/Badge.js";
7
7
  import { IconButton as w } from "../Button/IconButton.js";
8
8
  import { ContextMenu as b } from "../ContextMenu/ContextMenu.js";
9
- import { ListItemControls as v } from "../List/ListItemControls.js";
10
9
  import "../RootProvider/RootProvider.js";
11
10
  import "../Searchbar/AutocompleteBase.js";
11
+ import { ListItemControls as v } from "../List/ListItemControls.js";
12
12
  import "../Snackbar/useSnackbar.js";
13
13
  import { u as d } from "../../useId-BVFxCjkq.js";
14
14
  var h = function(t, n) {
@@ -1,17 +1,18 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { c as r } from "../../index-L8X2o7IH.js";
3
- import '../../assets/Badge.css';const b = "_badge_80cwt_1", m = "_label_80cwt_22", e = {
4
- badge: b,
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { c } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/Badge.css';const n = "_badge_b4vo7_1", m = "_label_b4vo7_22", s = {
4
+ badge: n,
5
5
  label: m
6
- }, g = ({ label: t, color: s, variant: l = "tinted", theme: c, size: d = "sm", className: n, children: o }) => /* @__PURE__ */ a(
6
+ }, g = ({ label: t, color: l, variant: d = "subtle", theme: o, size: a = "sm", className: r, children: b }) => /* @__PURE__ */ e(
7
7
  "span",
8
8
  {
9
- className: r(e.badge, n),
10
- "data-color": s,
11
- "data-variant": l,
12
- "data-theme": c,
13
- "data-size": d,
14
- children: /* @__PURE__ */ a("span", { className: e.label, children: t || o })
9
+ className: c(s.badge, r),
10
+ "data-color": l,
11
+ "data-variant": d,
12
+ "data-theme": o,
13
+ "data-size": a,
14
+ ...a === "xs" && { "aria-hidden": !0 },
15
+ children: /* @__PURE__ */ e("span", { className: s.label, children: t || b })
15
16
  }
16
17
  );
17
18
  export {
@@ -2,8 +2,8 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { ListItem as e } from "../List/ListItem.js";
6
5
  import "../Searchbar/AutocompleteBase.js";
6
+ import { ListItem as e } from "../List/ListItem.js";
7
7
  import { QueryLabel as s } from "../Searchbar/QueryLabel.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  const c = ({ loading: r, title: m, ariaLabel: t, params: p, ...i }) => /* @__PURE__ */ o(
@@ -4,10 +4,10 @@ import "../../index-L8X2o7IH.js";
4
4
  import { BookmarksListItem as h } from "./BookmarksListItem.js";
5
5
  import { EditableBookmark as k } from "./EditableBookmark.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { List as p } from "../List/List.js";
8
7
  import { Typography as l } from "../Typography/Typography.js";
9
8
  import { Heading as x } from "../Typography/Heading.js";
10
9
  import "../Searchbar/AutocompleteBase.js";
10
+ import { List as p } from "../List/List.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  import { Section as z } from "../Page/Section.js";
13
13
  const g = ({
@@ -4,11 +4,11 @@ import "react";
4
4
  import { Byline as e } from "../Byline/Byline.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { TimelineBase as h } from "../Timeline/TimelineBase.js";
7
- import { TransmissionList as g } from "../Transmission/TransmissionList.js";
8
- import { Typography as c } from "../Typography/Typography.js";
7
+ import { Typography as g } from "../Typography/Typography.js";
9
8
  import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
- import { Section as x } from "../Page/Section.js";
10
+ import { Section as c } from "../Page/Section.js";
11
+ import { TransmissionList as x } from "../Transmission/TransmissionList.js";
12
12
  import { S } from "../../CircleFill-BkDF4Wm0.js";
13
13
  const y = ({
14
14
  icon: p = S,
@@ -19,13 +19,13 @@ const y = ({
19
19
  createdAtLabel: o,
20
20
  description: r,
21
21
  transmissions: t
22
- }) => /* @__PURE__ */ m(h, { color: l, icon: s === "md" ? i : p, children: /* @__PURE__ */ n(x, { style: { marginBottom: ".5em" }, children: [
22
+ }) => /* @__PURE__ */ m(h, { color: l, icon: s === "md" ? i : p, children: /* @__PURE__ */ n(c, { style: { marginBottom: ".5em" }, children: [
23
23
  o && /* @__PURE__ */ n(e, { datetime: f, children: [
24
24
  /* @__PURE__ */ m("strong", { children: i == null ? void 0 : i.name }),
25
25
  o
26
26
  ] }),
27
- r && /* @__PURE__ */ m(c, { children: r }),
28
- t && /* @__PURE__ */ m(g, { items: t })
27
+ r && /* @__PURE__ */ m(g, { children: r }),
28
+ t && /* @__PURE__ */ m(x, { items: t })
29
29
  ] }) });
30
30
  export {
31
31
  y as DialogActivity
@@ -17,7 +17,7 @@ const s = ({
17
17
  } : void 0, children: [
18
18
  /* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
19
19
  " ",
20
- t + " " + (a == null ? void 0 : a.name)
20
+ a && t + " " + (a == null ? void 0 : a.name)
21
21
  ] });
22
22
  export {
23
23
  s as DialogByline
@@ -1,34 +1,40 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { Heading as c } from "../Typography/Heading.js";
6
- import { DialogMetadata as s } from "./DialogMetadata.js";
5
+ import { Heading as l } from "../Typography/Heading.js";
6
+ import { DialogMetadata as x } from "./DialogMetadata.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import { Section as f } from "../Page/Section.js";
10
- const M = ({
9
+ import { Section as g } from "../Page/Section.js";
10
+ const k = ({
11
11
  loading: r,
12
12
  title: p,
13
13
  status: o,
14
+ draftsLabel: t,
15
+ sentCount: a,
16
+ receivedCount: n,
14
17
  updatedAt: i,
15
- updatedAtLabel: t,
18
+ updatedAtLabel: c,
16
19
  dueAt: m,
17
- dueAtLabel: a
18
- }) => /* @__PURE__ */ n(f, { as: "header", spacing: 3, children: [
19
- /* @__PURE__ */ e(c, { loading: r, size: "xl", children: p }),
20
+ dueAtLabel: s
21
+ }) => /* @__PURE__ */ f(g, { as: "header", spacing: 3, children: [
22
+ /* @__PURE__ */ e(l, { loading: r, size: "xl", children: p }),
20
23
  (o || i || m) && /* @__PURE__ */ e(
21
- s,
24
+ x,
22
25
  {
23
26
  loading: r,
24
27
  status: o,
28
+ draftsLabel: t,
29
+ sentCount: a,
30
+ receivedCount: n,
25
31
  updatedAt: i,
26
- updatedAtLabel: t,
32
+ updatedAtLabel: c,
27
33
  dueAt: m,
28
- dueAtLabel: a
34
+ dueAtLabel: s
29
35
  }
30
36
  )
31
37
  ] });
32
38
  export {
33
- M as DialogHeader
39
+ k as DialogHeader
34
40
  };
@@ -1,29 +1,30 @@
1
1
  "use client";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { createElement as i } from "react";
2
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
3
+ import { useState as m, createElement as u } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
+ import { Button as h } from "../Button/Button.js";
5
6
  import "../RootProvider/RootProvider.js";
6
- import { DialogHistorySegment as c } from "./DialogHistorySegment.js";
7
- import { Timeline as d } from "../Timeline/Timeline.js";
7
+ import { DialogHistorySegment as y } from "./DialogHistorySegment.js";
8
+ import { Timeline as x } from "../Timeline/Timeline.js";
8
9
  import "../Searchbar/AutocompleteBase.js";
9
10
  import "../Snackbar/useSnackbar.js";
10
- const h = ({
11
+ import { Section as E } from "../Page/Section.js";
12
+ const q = ({
11
13
  items: o,
12
- collapsible: r,
13
- expanded: e,
14
- expandLabel: p = "Expand history",
15
- collapseLabel: a = "Collapse history"
16
- }) => o != null && o.length ? /* @__PURE__ */ t(d, { children: o.map((l, n) => /* @__PURE__ */ i(
17
- c,
18
- {
19
- ...l,
20
- collapsible: l.collapsible || r,
21
- expanded: l.expanded || e,
22
- expandLabel: l.expandLabel || p,
23
- collapseLabel: l.collapseLabel || a,
24
- key: n
25
- }
26
- )) }) : null;
14
+ maxItems: r,
15
+ expandLabel: l = "Expand history",
16
+ collapseLabel: i = "Collapse history"
17
+ }) => {
18
+ if (!(o != null && o.length))
19
+ return null;
20
+ const [n, p] = m(!1), c = () => {
21
+ p((t) => !t);
22
+ }, s = r ? o.slice(0, r) : o, a = n ? o : s, d = r && o.length > r;
23
+ return /* @__PURE__ */ f(E, { spacing: 4, children: [
24
+ /* @__PURE__ */ e(x, { children: a.map((t, g) => /* @__PURE__ */ u(y, { ...t, key: g })) }),
25
+ d && /* @__PURE__ */ e(h, { variant: "outline", onClick: c, children: n ? i : l })
26
+ ] });
27
+ };
27
28
  export {
28
- h as DialogHistory
29
+ q as DialogHistory
29
30
  };
@@ -1,45 +1,12 @@
1
- "use client";
2
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
3
2
  import "../../index-L8X2o7IH.js";
4
- import * as m from "react";
5
- import { forwardRef as p } from "react";
3
+ import "react";
6
4
  import "../RootProvider/RootProvider.js";
7
5
  import "../Searchbar/AutocompleteBase.js";
8
6
  import "../Snackbar/useSnackbar.js";
9
- import { TimelineActivity as a } from "../Timeline/TimelineActivity.js";
10
- import { TimelineLink as c } from "../Timeline/TimelineLink.js";
11
- import { Transmission as s } from "../Transmission/Transmission.js";
12
- import { Typography as d } from "../Typography/Typography.js";
13
- import { List as u } from "../List/List.js";
14
- import { u as g } from "../../useId-BVFxCjkq.js";
15
- var v = function(r, i) {
16
- var o = {};
17
- for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && i.indexOf(e) < 0 && (o[e] = r[e]);
18
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
19
- for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
20
- i.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
21
- return o;
22
- };
23
- const w = p((r, i) => {
24
- var { title: o, titleId: e } = r, t = v(r, ["title", "titleId"]);
25
- let l = g();
26
- return l = o ? e || "title-" + l : void 0, m.createElement(
27
- "svg",
28
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": l }, t),
29
- o ? m.createElement("title", { id: l }, o) : null,
30
- m.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M13.672 3.825a.75.75 0 0 1 .791.085l7 5.5a.75.75 0 0 1 0 1.18l-7 5.5a.75.75 0 0 1-1.213-.59v-2.724a9.1 9.1 0 0 0-2.63.565c-2.284.87-3.759 2.562-4.671 4.077a12.4 12.4 0 0 0-.957 1.965 10 10 0 0 0-.263.792l-.001.007A.75.75 0 0 1 3.25 20c0-1.654.322-3.941 1.224-6.123.903-2.184 2.413-4.32 4.823-5.558 1.133-.581 2.445-.954 3.953-1.046V4.5a.75.75 0 0 1 .422-.675", clipRule: "evenodd" })
31
- );
32
- }), P = ({ variant: r, byline: i, datetime: o, children: e, link: t, ...l }) => {
33
- switch (r) {
34
- case "transmission":
35
- return /* @__PURE__ */ f(a, { byline: i, datetime: o, spacing: 2, children: [
36
- /* @__PURE__ */ n(u, { children: /* @__PURE__ */ n(s, { ...l, children: e }) }),
37
- t && /* @__PURE__ */ n(c, { ...t, icon: (t == null ? void 0 : t.icon) || w })
38
- ] });
39
- default:
40
- return /* @__PURE__ */ n(a, { byline: i, datetime: o, children: /* @__PURE__ */ n(d, { children: e }) });
41
- }
42
- };
7
+ import { Typography as f } from "../Typography/Typography.js";
8
+ import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
9
+ const x = ({ byline: o, datetime: i, children: t, summary: e, ...m }) => t ? /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: t }) : /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: /* @__PURE__ */ r(f, { children: e }) });
43
10
  export {
44
- P as DialogHistoryItem
11
+ x as DialogHistoryItem
45
12
  };
@@ -1,56 +1,17 @@
1
- "use client";
2
- import { jsx as m, jsxs as s } from "react/jsx-runtime";
3
- import * as a from "react";
4
- import { forwardRef as w, useState as O, Fragment as b, createElement as f } from "react";
1
+ import { jsxs as n, jsx as g } from "react/jsx-runtime";
2
+ import { createElement as l } from "react";
5
3
  import "../../index-L8X2o7IH.js";
6
4
  import "../RootProvider/RootProvider.js";
7
- import { DialogHistoryItem as g } from "./DialogHistoryItem.js";
5
+ import { DialogHistoryItem as a } from "./DialogHistoryItem.js";
8
6
  import "../Searchbar/AutocompleteBase.js";
9
7
  import "../Snackbar/useSnackbar.js";
10
- import { Timeline as S } from "../Timeline/Timeline.js";
11
- import { TimelineSegment as x } from "../Timeline/TimelineSegment.js";
12
- import { TimelineSection as j } from "../Timeline/TimelineSection.js";
13
- import { TimelineLink as h } from "../Timeline/TimelineLink.js";
14
- import { u as I } from "../../useId-BVFxCjkq.js";
15
- import { S as E } from "../../ArrowDown-DtiYfZHZ.js";
16
- var k = function(r, n) {
17
- var o = {};
18
- for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && n.indexOf(e) < 0 && (o[e] = r[e]);
19
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
20
- for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
21
- n.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
22
- return o;
23
- };
24
- const T = w((r, n) => {
25
- var { title: o, titleId: e } = r, t = k(r, ["title", "titleId"]);
26
- let l = I();
27
- return l = o ? e || "title-" + l : void 0, a.createElement(
28
- "svg",
29
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": l }, t),
30
- o ? a.createElement("title", { id: l }, o) : null,
31
- a.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
32
- );
33
- }), U = ({
34
- items: r = [],
35
- datetime: n,
36
- byline: o,
37
- collapsible: e,
38
- expanded: t,
39
- expandLabel: l = "Expand history",
40
- collapseLabel: u = "Collapse history",
41
- id: y
42
- }) => {
43
- const [c, v] = O(t || !e), d = () => {
44
- v((i) => !i);
45
- };
46
- return /* @__PURE__ */ m(x, { datetime: n, byline: o, spacing: 2, id: y, children: r.map((i) => /* @__PURE__ */ s(b, { children: [
47
- /* @__PURE__ */ f(g, { ...i, key: i.id }),
48
- Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ s(S, { children: [
49
- c && /* @__PURE__ */ m(j, { level: 2, border: "dashed", children: i.items.map((p) => /* @__PURE__ */ f(g, { ...p, key: p.id })) }),
50
- e && c && /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(h, { reverse: !0, icon: T, onClick: d, children: u }) }) || e && /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(h, { reverse: !0, icon: E, onClick: d, children: l }) })
51
- ] })
52
- ] }, i.id)) });
53
- };
8
+ import { TimelineSegment as c } from "../Timeline/TimelineSegment.js";
9
+ import { Typography as f } from "../Typography/Typography.js";
10
+ const T = ({ id: p, items: r, datetime: t, byline: m, children: e, summary: o }) => /* @__PURE__ */ n(c, { datetime: t, byline: m, spacing: 2, id: p, children: [
11
+ o && /* @__PURE__ */ g(f, { children: o }),
12
+ e,
13
+ r == null ? void 0 : r.map((i) => /* @__PURE__ */ l(a, { ...i, key: i.id }))
14
+ ] });
54
15
  export {
55
- U as DialogHistorySegment
16
+ T as DialogHistorySegment
56
17
  };
@@ -3,19 +3,19 @@ import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Button as n } from "../Button/Button.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { List as e } from "../List/List.js";
7
- import { Heading as p } from "../Typography/Heading.js";
6
+ import { Heading as e } from "../Typography/Heading.js";
8
7
  import "../Searchbar/AutocompleteBase.js";
8
+ import { List as p } from "../List/List.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { Flex as s } from "../Page/Flex.js";
11
11
  import { Section as c } from "../Page/Section.js";
12
12
  import { S as a } from "../../Checkmark-D17Nyv_u.js";
13
13
  const k = ({ title: i, children: m, checkAllLabel: o }) => /* @__PURE__ */ t(c, { spacing: 3, children: [
14
14
  i && /* @__PURE__ */ t(s, { direction: "row", align: "center", justify: "between", children: [
15
- /* @__PURE__ */ r(p, { size: "lg", children: i }),
15
+ /* @__PURE__ */ r(e, { size: "lg", children: i }),
16
16
  o && /* @__PURE__ */ r(n, { variant: "text", icon: a, size: "sm", children: o })
17
17
  ] }),
18
- /* @__PURE__ */ r(e, { spacing: 3, children: m })
18
+ /* @__PURE__ */ r(p, { spacing: 3, children: m })
19
19
  ] });
20
20
  export {
21
21
  k as DialogListGroup