@altinn/altinn-components 0.7.1 → 0.7.2

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 (68) hide show
  1. package/dist/assets/DialogBorder.css +1 -1
  2. package/dist/assets/DialogHeadings.css +1 -1
  3. package/dist/assets/DialogListItem.css +1 -1
  4. package/dist/assets/DialogSummary.css +1 -0
  5. package/dist/assets/HeaderButton.css +1 -1
  6. package/dist/assets/ListItemBase.css +1 -1
  7. package/dist/assets/ListItemLabel.css +1 -1
  8. package/dist/assets/MenuItemBase.css +1 -1
  9. package/dist/assets/MenuSearch.css +1 -1
  10. package/dist/assets/Skeleton.css +1 -0
  11. package/dist/assets/ToolbarSearch.css +1 -1
  12. package/dist/components/Dialog/DialogActions.d.ts +1 -2
  13. package/dist/components/Dialog/DialogBorder.d.ts +2 -1
  14. package/dist/components/Dialog/DialogBorder.js +6 -6
  15. package/dist/components/Dialog/DialogHeadings.d.ts +2 -1
  16. package/dist/components/Dialog/DialogHeadings.js +37 -32
  17. package/dist/components/Dialog/DialogListItem.d.ts +3 -1
  18. package/dist/components/Dialog/DialogListItem.js +72 -68
  19. package/dist/components/Dialog/DialogListItem.stories.js +40 -34
  20. package/dist/components/Dialog/DialogMetadata.d.ts +3 -1
  21. package/dist/components/Dialog/DialogMetadata.js +26 -25
  22. package/dist/components/Dialog/DialogStatus.d.ts +2 -1
  23. package/dist/components/Dialog/DialogStatus.js +11 -9
  24. package/dist/components/Dialog/DialogSummary.d.ts +12 -0
  25. package/dist/components/Dialog/DialogSummary.js +8 -0
  26. package/dist/components/Dialog/DialogTitle.d.ts +2 -1
  27. package/dist/components/Dialog/DialogTitle.js +10 -9
  28. package/dist/components/Dialog/DialogTouchedBy.d.ts +2 -1
  29. package/dist/components/Dialog/DialogTouchedBy.js +4 -4
  30. package/dist/components/GlobalMenu/AccountButton.js +1 -1
  31. package/dist/components/GlobalMenu/AccountMenu.js +16 -15
  32. package/dist/components/Header/Header.d.ts +3 -1
  33. package/dist/components/Header/Header.js +30 -29
  34. package/dist/components/Header/HeaderButton.d.ts +3 -1
  35. package/dist/components/Header/HeaderButton.js +37 -29
  36. package/dist/components/Header/HeaderButton.stories.js +10 -6
  37. package/dist/components/List/ListItem.js +32 -36
  38. package/dist/components/List/ListItem.stories.js +41 -36
  39. package/dist/components/List/ListItemBase.d.ts +12 -12
  40. package/dist/components/List/ListItemBase.js +45 -43
  41. package/dist/components/List/ListItemHeader.d.ts +14 -2
  42. package/dist/components/List/ListItemHeader.js +29 -6
  43. package/dist/components/List/ListItemLabel.d.ts +2 -1
  44. package/dist/components/List/ListItemLabel.js +10 -9
  45. package/dist/components/List/ListItemMedia.d.ts +2 -1
  46. package/dist/components/List/ListItemMedia.js +23 -21
  47. package/dist/components/Menu/MenuItem.d.ts +7 -8
  48. package/dist/components/Menu/MenuItem.js +35 -21
  49. package/dist/components/Menu/MenuItem.stories.js +37 -35
  50. package/dist/components/Menu/MenuItemBase.d.ts +15 -13
  51. package/dist/components/Menu/MenuItemBase.js +59 -57
  52. package/dist/components/Menu/MenuSearch.d.ts +2 -1
  53. package/dist/components/Menu/MenuSearch.js +39 -19
  54. package/dist/components/Menu/MenuSearch.stories.js +10 -7
  55. package/dist/components/Meta/MetaItem.d.ts +2 -1
  56. package/dist/components/Meta/MetaItem.js +9 -8
  57. package/dist/components/Meta/MetaTimestamp.d.ts +2 -1
  58. package/dist/components/Meta/MetaTimestamp.js +14 -6
  59. package/dist/components/Searchbar/AutocompleteItem.js +10 -10
  60. package/dist/components/Skeleton/Skeleton.d.ts +11 -0
  61. package/dist/components/Skeleton/Skeleton.js +9 -0
  62. package/dist/components/Skeleton/index.d.ts +1 -0
  63. package/dist/components/Skeleton/index.js +4 -0
  64. package/dist/components/Toolbar/Toolbar.js +1 -1
  65. package/dist/components/Toolbar/ToolbarSearch.d.ts +2 -1
  66. package/dist/components/Toolbar/ToolbarSearch.js +38 -18
  67. package/dist/components/Toolbar/ToolbarSearch.stories.js +8 -5
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- ._border_tdijc_1{border-left:.25rem solid;border-color:var(--theme-surface-active);display:flex;flex-direction:column}._border_tdijc_1[data-seen=true]{border-color:var(--neutral-surface-default)}
1
+ ._border_12m8d_1{border-left:.25rem solid;border-color:var(--theme-surface-active);display:flex;flex-direction:column}._border_12m8d_1[data-seen=true],._border_12m8d_1[data-loading=true]{border-color:var(--neutral-surface-default)}
@@ -1 +1 @@
1
- ._headings_fci15_1{display:flex;column-gap:.5em;align-items:center}._headings_fci15_1[data-size=xs],._headings_fci15_1[data-size=sm]{font-size:12px}._headings_fci15_1[data-size=md],._headings_fci15_1[data-size=lg]{font-size:14px}._headings_fci15_1[data-size=xl]{font-size:16px}._text_fci15_21{display:inline;color:var(--neutral-text-subtle)}._sender_fci15_26{font-weight:500;color:var(--neutral-text-default)}._recipient_fci15_31{white-space:nowrap}
1
+ ._headings_qkf0g_1{display:inline-flex;column-gap:.5em;align-items:center}._headings_qkf0g_1[data-size=xs],._headings_qkf0g_1[data-size=sm]{font-size:12px}._headings_qkf0g_1[data-size=md],._headings_qkf0g_1[data-size=lg]{font-size:14px}._headings_qkf0g_1[data-size=xl]{font-size:16px}._text_qkf0g_21{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--neutral-text-subtle)}._sender_qkf0g_28{font-weight:500;color:var(--neutral-text-default)}._recipient_qkf0g_33{display:inline-flex;column-gap:.25em;white-space:nowrap}
@@ -1 +1 @@
1
- ._item_vo44o_1[aria-selected=true]{background-color:var(--theme-background-subtle);outline:2px solid}._item_vo44o_1[aria-selected=false]:hover h2{text-decoration:underline}._item_vo44o_1[data-size=lg],._item_vo44o_1[data-size=md]{padding:1em}._item_vo44o_1[data-size=sm],._item_vo44o_1[data-size=xs]{padding:.5em .75em}._select_vo44o_20{position:absolute;top:0;right:0;margin:.375rem}._summary_vo44o_27{font-size:1rem;line-height:1.35;margin:0;font-weight:400}._summary_vo44o_27[data-size=lg]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin-top:.5rem}._summary_vo44o_27[data-size=md]{display:none}._footer_vo44o_48{width:100%;margin-top:1rem;display:flex;flex-direction:column;row-gap:1rem}._touchedBy_vo44o_56{position:absolute;right:0;bottom:0;margin:8px}._border_vo44o_65[data-size=lg],._border_vo44o_65[data-size=md]{padding-left:1rem}._border_vo44o_65[data-size=xs],._border_vo44o_65[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}
1
+ ._item_v64fv_1[aria-selected=true]{background-color:var(--theme-background-subtle);outline:2px solid}._item_v64fv_1[data-size=lg],._item_v64fv_1[data-size=md]{padding:1em}._item_v64fv_1[data-size=sm],._item_v64fv_1[data-size=xs]{padding:.5em .75em}._select_v64fv_16{position:absolute;top:0;right:0;margin:.375rem}._summary_v64fv_23{font-size:1rem;line-height:1.35;margin:0;font-weight:400}._summary_v64fv_23[data-size=lg]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin-top:.5rem}._summary_v64fv_23[data-size=md]{display:none}._footer_v64fv_44{width:100%;margin-top:1rem;display:flex;flex-direction:column;row-gap:1rem}._touchedBy_v64fv_52{position:absolute;right:0;bottom:0;margin:8px}._border_v64fv_61[data-size=lg],._border_v64fv_61[data-size=md]{padding-left:1rem}._border_v64fv_61[data-size=xs],._border_v64fv_61[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}
@@ -0,0 +1 @@
1
+ ._summary_1sruo_1{font-size:1rem;line-height:1.35;margin:0;font-weight:400}._summary_1sruo_1[data-size=lg]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin-top:.5rem}._summary_1sruo_1[data-size=md]{display:none}
@@ -1 +1 @@
1
- ._button_t01b4_1{position:relative;z-index:2;display:inline-flex;align-items:center;column-gap:.625rem;background-color:var(--global-base-default);color:#fff;padding:.625rem;border:none;border-radius:4px}._label_t01b4_14{font-size:1.125rem;font-weight:500;padding:.25rem}._icon_t01b4_20{width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:2px;font-size:1.5rem}._loginIcon_t01b4_30{background-color:#fff;color:#000}._closeIcon_t01b4_35{border:1px solid white}
1
+ ._button_buvev_1{position:relative;z-index:2;display:inline-flex;align-items:center;column-gap:.625rem;background-color:var(--global-base-default);color:#fff;padding:.625rem;border:none;border-radius:4px}._label_buvev_14{font-size:1.125rem;font-weight:500;padding:.25rem}._icon_buvev_20{width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:2px;font-size:1.5rem}._avatarGroup_buvev_30{width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;overflow:visible}._loginIcon_buvev_39{background-color:#fff;color:#000}._closeIcon_buvev_44{border:1px solid white}._badge_buvev_48{position:absolute;top:0;right:0;margin-top:-.75rem;margin-right:-.75rem}
@@ -1 +1 @@
1
- ._item_us7f0_1{position:relative;width:100%;display:flex;align-items:center;justify-content:stretch}._item_us7f0_1[aria-selected=true]{background-color:var(--theme-background-subtle);outline:2px solid}._item_us7f0_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_us7f0_1[data-size=xs]{min-height:36px}._item_us7f0_1[data-size=sm]{min-height:44px}._item_us7f0_1[data-size=md]{min-height:56px}._item_us7f0_1[data-size=lg]{min-height:64px}._item_us7f0_1[data-size=xl]{min-height:72px}._item_us7f0_1{background-color:var(--theme-background-default)}._item_us7f0_1:hover{outline:2px solid var(--theme-border-strong);z-index:2}._item_us7f0_1:hover strong,._item_us7f0_1:hover h2{text-decoration:underline}._item_us7f0_1[data-active=true],._item_us7f0_1[data-color=accent]{background-color:var(--theme-surface-default)}._item_us7f0_1[data-color=accent]:hover{background-color:var(--theme-surface-hover)}._link_us7f0_74{align-self:stretch;padding:0;border:0;background-color:transparent;color:inherit;font:inherit;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}._link_us7f0_74{flex-grow:1;display:flex;align-items:center}
1
+ ._item_i2afq_1{position:relative;width:100%;display:flex;align-items:center;justify-content:stretch}._item_i2afq_1[aria-selected=true]{background-color:var(--theme-background-subtle);outline:2px solid}._item_i2afq_1[aria-disabled=true]{pointer-events:none}._item_i2afq_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_i2afq_1[data-size=xs]{min-height:36px}._item_i2afq_1[data-size=sm]{min-height:44px}._item_i2afq_1[data-size=md]{min-height:56px}._item_i2afq_1[data-size=lg]{min-height:64px}._item_i2afq_1[data-size=xl]{min-height:72px}._item_i2afq_1{background-color:var(--theme-background-default)}._item_i2afq_1:not([aria-disabled=true]):hover{outline:2px solid var(--theme-border-strong);z-index:2}._item_i2afq_1:not([aria-disabled=true]):hover strong,._item_i2afq_1:not([aria-disabled=true]):hover h2{text-decoration:underline}._item_i2afq_1[data-active=true],._item_i2afq_1[data-color=accent]{background-color:var(--theme-surface-default)}._item_i2afq_1[data-color=accent]:hover{background-color:var(--theme-surface-hover)}._link_i2afq_78{align-self:stretch;padding:0;border:0;background-color:transparent;color:inherit;font:inherit;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}._link_i2afq_78{flex-grow:1;display:flex;align-items:center}
@@ -1 +1 @@
1
- ._label_1aaut_3{flex-grow:1;display:flex}._label_1aaut_3[data-size=xs]{align-items:center;column-gap:.25em;font-size:.875rem}._label_1aaut_3[data-size=sm]{align-items:center;column-gap:.25rem}._label_1aaut_3[data-size=md],._label_1aaut_3[data-size=lg],._label_1aaut_3[data-size=xl]{flex-direction:column}._title_1aaut_33{font-weight:600;margin:0}._title_1aaut_33[data-size=lg]{font-size:1.125rem}._title_1aaut_33[data-size=xl]{font-size:1.25rem}._description_1aaut_46{color:var(--theme-text-subtle);margin:0}._description_1aaut_46[data-size=md],._description_1aaut_46[data-size=lg],._description_1aaut_46[data-size=xl]{font-size:.875em}
1
+ ._label_7jiaq_3{flex-grow:1;display:flex}._label_7jiaq_3[data-size=xs]{align-items:center;column-gap:.25em}._label_7jiaq_3[data-size=sm]{align-items:center;column-gap:.25rem}._label_7jiaq_3[data-size=md],._label_7jiaq_3[data-size=lg],._label_7jiaq_3[data-size=xl]{align-items:flex-start;flex-direction:column;row-gap:.125rem}._title_7jiaq_38{font-weight:600;line-height:1.25;margin:0}._description_7jiaq_44{font-weight:400;line-height:1.25;color:var(--theme-text-subtle);margin:0}._title_7jiaq_38[data-size=xs],._description_7jiaq_44[data-size=xs]{font-size:.875rem}._title_7jiaq_38[data-size=sm],._description_7jiaq_44[data-size=sm],._title_7jiaq_38[data-size=md]{font-size:1rem}._title_7jiaq_38[data-size=lg]{font-size:1.125rem}._description_7jiaq_44[data-size=md],._description_7jiaq_44[data-size=lg]{font-size:.875em}
@@ -1 +1 @@
1
- ._item_16huj_1{padding:0;border:0;color:inherit;font:inherit;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}._item_16huj_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_16huj_1[data-size=sm]{min-height:44px}._content_16huj_36{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_16huj_44{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_16huj_51{font-size:.875rem;white-space:nowrap}._linkIcon_16huj_56{font-size:1.5rem}._item_16huj_1{background-color:transparent;color:var(--theme-text-default)}._item_16huj_1[aria-selected=true]{background-color:var(--theme-background-default)}._item_16huj_1:hover,._item_16huj_1:active{background-color:var(--theme-surface-hover)}._media_16huj_76[data-color=subtle]{background-color:var(--theme-background-default);color:var(--theme-text-default)}._media_16huj_76[data-color=strong]{background-color:var(--theme-base-default);color:var(--theme-background-default)}
1
+ ._item_y1gbn_1{padding:0;border:0;color:inherit;font:inherit;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_y1gbn_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_y1gbn_1[data-size=sm]{min-height:44px}._content_y1gbn_37{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_y1gbn_45{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_y1gbn_52{font-size:.875rem;white-space:nowrap}._linkIcon_y1gbn_57{font-size:1.5rem}._item_y1gbn_1{background-color:transparent;color:var(--theme-text-default)}._item_y1gbn_1[aria-selected=true]{background-color:var(--theme-background-default)}._item_y1gbn_1:hover,._item_y1gbn_1:active{background-color:var(--theme-surface-hover)}._media_y1gbn_77[data-color=subtle]{background-color:var(--theme-background-default);color:var(--theme-text-default)}._media_y1gbn_77[data-color=strong]{background-color:var(--theme-base-default);color:var(--theme-background-default)}
@@ -1 +1 @@
1
- ._input_73dww_1{width:100%;height:2.75rem;font-size:.875rem;line-height:1rem;font-weight:400;padding:9px;border-radius:2px;border:1px solid;border-color:var(--theme-border-default)}._button_73dww_13[aria-selected=true]{background-color:var(--theme-background-subtle);color:var(--theme-text-default)}._close_73dww_18{padding:6px 0}._icon_73dww_22{border-left:1px solid;border-color:var(--theme-background-subtle);display:flex;align-items:center;justify-content:center;font-size:1.25rem;padding:0 6px}
1
+ ._field_mo7y9_1{position:relative}._icon_mo7y9_5{position:absolute;top:0;left:0;font-size:1.25rem;color:var(--theme-text-subtle);margin:12px 10px}._input_mo7y9_14{width:100%;height:2.75rem;font-size:.875rem;line-height:1rem;font-weight:400;padding:9px 36px;border-radius:2px;border:1px solid;border-color:var(--theme-border-default)}._input_mo7y9_14[type=search]::-webkit-search-decoration,._input_mo7y9_14[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}._clear_mo7y9_31{position:absolute;top:0;right:0;margin:12px 10px;border-radius:100%;width:1.25rem;height:1.25rem}
@@ -0,0 +1 @@
1
+ ._skelaton_10sb8_1{background-color:#ccc;animation:_fade_10sb8_1 1.5s infinite reverse;background-size:200%;color:transparent}._skelaton_10sb8_1[data-loading=true]>*{opacity:0}._skelaton_10sb8_1[data-variant=circle]{border-radius:50%}._skelaton_10sb8_1[data-variant=text]{border-radius:.125rem}@keyframes _fade_10sb8_1{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}
@@ -1 +1 @@
1
- ._input_cwjz7_1{font-size:.875rem;line-height:1rem;font-weight:600;padding:9px;border-radius:2px;border:1px solid;border-color:var(--theme-border-default)}._button_cwjz7_11[aria-selected=true]{background-color:var(--theme-background-subtle);color:var(--theme-text-default)}._close_cwjz7_16{padding:6px 0}._icon_cwjz7_20{border-left:1px solid;border-color:var(--theme-background-subtle);display:flex;align-items:center;justify-content:center;font-size:1.25rem;padding:0 6px}
1
+ ._field_dvezx_1{position:relative}._icon_dvezx_5{position:absolute;top:0;left:0;font-size:1.25rem;color:var(--theme-text-subtle);margin:8px}._input_dvezx_14{width:100%;font-size:.875rem;line-height:1rem;font-weight:500;padding:9px 30px;border-radius:2px;border:1px solid;border-color:var(--theme-border-default)}._input_dvezx_14[type=search]::-webkit-search-decoration,._input_dvezx_14[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}._clear_dvezx_30{position:absolute;top:0;right:0;margin:8px;border-radius:100%;width:1.25rem;height:1.25rem}
@@ -1,10 +1,9 @@
1
- import { MouseEventHandler } from 'react';
2
1
  export type DialogButtonPriority = 'primary' | 'secondary' | 'tertiary';
3
2
  export interface DialogActionButtonProps {
4
3
  id: string;
5
4
  priority: DialogButtonPriority;
6
5
  label?: string;
7
- onClick?: MouseEventHandler;
6
+ onClick?: () => void;
8
7
  loading?: boolean;
9
8
  }
10
9
  export interface DialogActionsProps {
@@ -1,9 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DialogListItemSize } from './DialogListItem.tsx';
3
3
  export interface DialogBorderProps {
4
+ loading?: boolean;
4
5
  seen?: boolean;
5
6
  size?: DialogListItemSize;
6
7
  className?: string;
7
8
  children?: ReactNode;
8
9
  }
9
- export declare const DialogBorder: ({ seen, size, className, children }: DialogBorderProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const DialogBorder: ({ loading, seen, size, className, children }: DialogBorderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as d } from "../../index-L8X2o7IH.js";
3
- import '../../assets/DialogBorder.css';const a = "_border_tdijc_1", c = {
4
- border: a
5
- }, n = ({ seen: r = !0, size: o = "lg", className: e, children: t }) => /* @__PURE__ */ s("div", { className: d(c.border, e), "data-size": o, "data-seen": r, children: t });
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { c as s } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/DialogBorder.css';const c = "_border_12m8d_1", i = {
4
+ border: c
5
+ }, l = ({ loading: r, seen: o = !0, size: e = "lg", className: t, children: a }) => /* @__PURE__ */ d("div", { className: s(i.border, t), "data-loading": r, "data-size": e, "data-seen": o, children: a });
6
6
  export {
7
- n as DialogBorder
7
+ l as DialogBorder
8
8
  };
@@ -18,6 +18,7 @@ export interface DialogHeadingsProps {
18
18
  sender?: DialogSenderProps;
19
19
  /** Recipient */
20
20
  recipient?: DialogRecipientProps;
21
+ loading?: boolean;
21
22
  }
22
23
  /** Dialog headings for sender and recipient. Should present an avatar for the sender. */
23
- export declare const DialogHeadings: ({ grouped, size, sender, recipient, }: DialogHeadingsProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const DialogHeadings: ({ loading, grouped, size, sender, recipient, }: DialogHeadingsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,13 @@
1
- import { jsxs as c, jsx as m } from "react/jsx-runtime";
2
- import { Avatar as l } from "../Avatar/Avatar.js";
3
- import { AvatarGroup as o } from "../Avatar/AvatarGroup.js";
4
- import '../../assets/DialogHeadings.css';const i = "_headings_fci15_1", p = "_text_fci15_21", x = "_sender_fci15_26", d = "_recipient_fci15_31", s = {
5
- headings: i,
6
- text: p,
7
- sender: x,
8
- recipient: d
9
- }, t = {
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { Avatar as i } from "../Avatar/Avatar.js";
3
+ import { AvatarGroup as p } from "../Avatar/AvatarGroup.js";
4
+ import { Skeleton as l } from "../Skeleton/Skeleton.js";
5
+ import '../../assets/DialogHeadings.css';const d = "_headings_qkf0g_1", g = "_text_qkf0g_21", h = "_sender_qkf0g_28", x = "_recipient_qkf0g_33", s = {
6
+ headings: d,
7
+ text: g,
8
+ sender: h,
9
+ recipient: x
10
+ }, e = {
10
11
  avatar: {
11
12
  xs: "xs",
12
13
  sm: "xs",
@@ -14,37 +15,41 @@ import '../../assets/DialogHeadings.css';const i = "_headings_fci15_1", p = "_te
14
15
  lg: "xs",
15
16
  xl: "lg"
16
17
  }
17
- }, v = ({
18
- grouped: r,
19
- size: n = "lg",
20
- sender: a = { type: "company", name: "Sender" },
21
- recipient: e = { type: "person", name: "Recipient" }
22
- }) => /* @__PURE__ */ c("div", { className: s.headings, "data-size": n, children: [
23
- r ? /* @__PURE__ */ m(
24
- o,
18
+ }, N = ({
19
+ loading: c,
20
+ grouped: o,
21
+ size: m = "lg",
22
+ sender: t = { type: "company", name: "Sender" },
23
+ recipient: n = { type: "person", name: "Recipient" }
24
+ }) => /* @__PURE__ */ r("div", { className: s.headings, "data-size": m, children: [
25
+ /* @__PURE__ */ a(l, { variant: "circle", className: s.avatar, loading: c, children: o ? /* @__PURE__ */ a(
26
+ p,
25
27
  {
26
- items: [{ ...a, type: "company" }, e],
27
- size: t == null ? void 0 : t.avatar[n],
28
+ items: [{ ...t, type: "company" }, n],
29
+ size: e == null ? void 0 : e.avatar[m],
28
30
  className: s.avatar
29
31
  }
30
- ) : /* @__PURE__ */ m(
31
- l,
32
+ ) : /* @__PURE__ */ a(
33
+ i,
32
34
  {
33
35
  type: "company",
34
- imageUrl: a == null ? void 0 : a.imageUrl,
35
- name: a.name,
36
- size: t == null ? void 0 : t.avatar[n],
36
+ imageUrl: t == null ? void 0 : t.imageUrl,
37
+ name: t.name,
38
+ size: e == null ? void 0 : e.avatar[m],
37
39
  className: s.avatar
38
40
  }
39
- ),
40
- /* @__PURE__ */ c("span", { "data-size": n, className: s.text, children: [
41
- /* @__PURE__ */ m("span", { className: s.sender, children: a.name }),
42
- (e == null ? void 0 : e.name) && /* @__PURE__ */ c("span", { className: s.recipient, children: [
43
- " til ",
44
- /* @__PURE__ */ m("span", { children: e.name })
45
- ] })
41
+ ) }),
42
+ /* @__PURE__ */ r("span", { "data-size": m, className: s.text, children: [
43
+ /* @__PURE__ */ r("span", { className: s.sender, children: [
44
+ " ",
45
+ /* @__PURE__ */ a(l, { loading: c, children: t.name })
46
+ ] }),
47
+ (n == null ? void 0 : n.name) && /* @__PURE__ */ a("span", { className: s.recipient, children: /* @__PURE__ */ r(l, { loading: c, children: [
48
+ /* @__PURE__ */ a("span", { children: "til" }),
49
+ /* @__PURE__ */ a("span", { children: n.name })
50
+ ] }) })
46
51
  ] })
47
52
  ] });
48
53
  export {
49
- v as DialogHeadings
54
+ N as DialogHeadings
50
55
  };
@@ -10,6 +10,8 @@ export type DialogListItemVariant = 'neutral' | 'draft' | 'trashed' | 'archived'
10
10
  export interface DialogListItemProps extends ListItemBaseProps {
11
11
  /** Dialog title */
12
12
  title: string;
13
+ /** Dialog is loading */
14
+ loading?: boolean;
13
15
  /** Render as */
14
16
  as?: ElementType;
15
17
  /** Size */
@@ -68,4 +70,4 @@ export interface DialogListItemProps extends ListItemBaseProps {
68
70
  * summary, sender, and receiver.
69
71
  * to mark the item as checked/unchecked and can visually indicate if it is unread.
70
72
  */
71
- export declare const DialogListItem: ({ size, variant, select, status, sender, recipient, grouped, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, summary, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
73
+ export declare const DialogListItem: ({ size, variant, loading, select, status, sender, recipient, grouped, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, summary, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,89 +1,93 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { ListItemBase as p } from "../List/ListItemBase.js";
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import { ListItemBase as h } from "../List/ListItemBase.js";
3
3
  import "../../index-L8X2o7IH.js";
4
- import { ListItemLabel as M } from "../List/ListItemLabel.js";
5
4
  import "react";
6
5
  import "../Icon/SvgIcon.js";
7
- import { DialogBorder as h } from "./DialogBorder.js";
8
- import { DialogMetadata as g } from "./DialogMetadata.js";
9
- import { DialogHeaderBase as S } from "./DialogHeaderBase.js";
10
- import { DialogHeadings as V } from "./DialogHeadings.js";
11
- import { DialogTitle as k } from "./DialogTitle.js";
12
- import { DialogTouchedBy as q } from "./DialogTouchedBy.js";
13
- import { DialogSelect as w } from "./DialogSelect.js";
6
+ import { ListItemLabel as M } from "../List/ListItemLabel.js";
7
+ import { DialogBorder as d } from "./DialogBorder.js";
8
+ import { DialogMetadata as D } from "./DialogMetadata.js";
9
+ import { DialogHeaderBase as V } from "./DialogHeaderBase.js";
10
+ import { DialogHeadings as k } from "./DialogHeadings.js";
11
+ import { DialogTitle as q } from "./DialogTitle.js";
12
+ import { DialogTouchedBy as w } from "./DialogTouchedBy.js";
13
+ import { DialogSelect as C } from "./DialogSelect.js";
14
14
  import "../RootProvider/RootProvider.js";
15
- import '../../assets/DialogListItem.css';const C = "_item_vo44o_1", E = "_select_vo44o_20", F = "_summary_vo44o_27", G = "_footer_vo44o_48", J = "_touchedBy_vo44o_56", K = "_border_vo44o_65", t = {
16
- item: C,
17
- select: E,
18
- summary: F,
19
- footer: G,
20
- touchedBy: J,
21
- border: K
22
- }, to = ({
23
- size: o = "lg",
15
+ import { DialogSummary as E } from "./DialogSummary.js";
16
+ import '../../assets/DialogListItem.css';const F = "_item_v64fv_1", G = "_select_v64fv_16", J = "_summary_v64fv_23", K = "_footer_v64fv_44", O = "_touchedBy_v64fv_52", P = "_border_v64fv_61", m = {
17
+ item: F,
18
+ select: G,
19
+ summary: J,
20
+ footer: K,
21
+ touchedBy: O,
22
+ border: P
23
+ }, cr = ({
24
+ size: r = "lg",
24
25
  variant: u = "neutral",
25
- select: a,
26
+ loading: o,
27
+ select: s,
26
28
  status: y,
27
- sender: D,
29
+ sender: B,
28
30
  recipient: N,
29
- grouped: v,
30
- updatedAt: i,
31
- updatedAtLabel: s,
32
- archivedAt: c,
33
- archivedAtLabel: B,
34
- trashedAt: l,
35
- trashedAtLabel: b,
36
- label: x,
37
- dueAt: I,
38
- dueAtLabel: L,
39
- seen: e = !1,
40
- seenBy: j,
41
- touchedBy: n,
42
- attachmentsCount: H,
43
- title: d,
44
- summary: _,
45
- ...f
31
+ grouped: b,
32
+ updatedAt: a,
33
+ updatedAtLabel: i,
34
+ archivedAt: l,
35
+ archivedAtLabel: x,
36
+ trashedAt: f,
37
+ trashedAtLabel: I,
38
+ label: L,
39
+ dueAt: j,
40
+ dueAtLabel: H,
41
+ seen: c = !1,
42
+ seenBy: S,
43
+ touchedBy: _,
44
+ attachmentsCount: T,
45
+ title: p,
46
+ summary: n,
47
+ ...v
46
48
  }) => {
47
- const T = l ? "trashed" : c ? "archived" : u;
48
- return o === "xs" || o === "sm" ? /* @__PURE__ */ r(p, { ...f, size: o, className: t.item, children: /* @__PURE__ */ m(h, { className: t.border, size: o, seen: e, children: [
49
- /* @__PURE__ */ r(M, { size: o, title: d, description: _ }),
50
- /* @__PURE__ */ r(g, { updatedAt: i, updatedAtLabel: s })
51
- ] }) }) : /* @__PURE__ */ r(
52
- p,
49
+ const g = f ? "trashed" : l ? "archived" : u;
50
+ return r === "xs" || r === "sm" ? /* @__PURE__ */ t(h, { ...v, loading: o, size: r, className: m.item, children: /* @__PURE__ */ e(d, { className: m.border, size: r, seen: c, loading: o, children: [
51
+ /* @__PURE__ */ t(M, { loading: o, size: r, title: p, description: n }),
52
+ /* @__PURE__ */ t(D, { loading: o, updatedAt: a, updatedAtLabel: i })
53
+ ] }) }) : /* @__PURE__ */ t(
54
+ h,
53
55
  {
54
- ...f,
55
- size: o,
56
- className: t.item,
57
- controls: a && /* @__PURE__ */ r(w, { className: t.select, ...a }),
58
- children: /* @__PURE__ */ m(h, { className: t.border, size: o, seen: e, children: [
59
- /* @__PURE__ */ m(S, { size: o, children: [
60
- /* @__PURE__ */ r(k, { size: o, variant: T, label: x, seen: e, children: d }),
61
- /* @__PURE__ */ r(V, { size: o, grouped: v, sender: D, recipient: N })
56
+ ...v,
57
+ loading: o,
58
+ size: r,
59
+ className: m.item,
60
+ controls: s && /* @__PURE__ */ t(C, { className: m.select, ...s }),
61
+ children: /* @__PURE__ */ e(d, { className: m.border, size: r, seen: c, loading: o, children: [
62
+ /* @__PURE__ */ e(V, { size: r, children: [
63
+ /* @__PURE__ */ t(q, { loading: o, size: r, variant: g, label: L, seen: c, children: p }),
64
+ /* @__PURE__ */ t(k, { loading: o, size: r, grouped: b, sender: B, recipient: N })
62
65
  ] }),
63
- /* @__PURE__ */ r("p", { "data-size": o, className: t.summary, children: _ }),
64
- /* @__PURE__ */ m("footer", { "data-size": o, className: t.footer, children: [
65
- /* @__PURE__ */ r(
66
- g,
66
+ /* @__PURE__ */ t(E, { loading: o, size: r, children: n }),
67
+ /* @__PURE__ */ e("footer", { "data-size": r, className: m.footer, children: [
68
+ /* @__PURE__ */ t(
69
+ D,
67
70
  {
71
+ loading: o,
68
72
  status: y,
69
- updatedAt: i,
70
- updatedAtLabel: s,
71
- archivedAt: c,
72
- archivedAtLabel: B,
73
- trashedAt: l,
74
- trashedAtLabel: b,
75
- dueAt: I,
76
- dueAtLabel: L,
77
- seenBy: j,
78
- attachmentsCount: H
73
+ updatedAt: a,
74
+ updatedAtLabel: i,
75
+ archivedAt: l,
76
+ archivedAtLabel: x,
77
+ trashedAt: f,
78
+ trashedAtLabel: I,
79
+ dueAt: j,
80
+ dueAtLabel: H,
81
+ seenBy: S,
82
+ attachmentsCount: T
79
83
  }
80
84
  ),
81
- n && /* @__PURE__ */ r(q, { size: "xs", touchedBy: n, className: t.touchedBy })
85
+ _ && /* @__PURE__ */ t(w, { loading: o, size: "xs", touchedBy: _, className: m.touchedBy })
82
86
  ] })
83
87
  ] })
84
88
  }
85
89
  );
86
90
  };
87
91
  export {
88
- to as DialogListItem
92
+ cr as DialogListItem
89
93
  };
@@ -57,10 +57,15 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
57
57
  updatedAtLabel: "25. november 2024 kl 15.30",
58
58
  status: {}
59
59
  }
60
- }, C = (t) => /* @__PURE__ */ e(s, { children: c == null ? void 0 : c.map((l) => /* @__PURE__ */ i(u, { children: [
61
- /* @__PURE__ */ e(n, { ...t, status: l }),
62
- /* @__PURE__ */ e(r, { children: l == null ? void 0 : l.value })
63
- ] }, l == null ? void 0 : l.value)) }), E = (t) => /* @__PURE__ */ i(s, { children: [
60
+ }, C = (t) => /* @__PURE__ */ e(s, { children: c == null ? void 0 : c.map((a) => /* @__PURE__ */ i(u, { children: [
61
+ /* @__PURE__ */ e(n, { ...t, status: a }),
62
+ /* @__PURE__ */ e(r, { children: a == null ? void 0 : a.value })
63
+ ] }, a == null ? void 0 : a.value)) }), E = (t) => /* @__PURE__ */ i(s, { children: [
64
+ /* @__PURE__ */ e(n, { ...t, loading: !0, label: "Ulest" }),
65
+ /* @__PURE__ */ e(r, { children: "Loading" }),
66
+ /* @__PURE__ */ e(n, { ...t, label: "Ulest" }),
67
+ /* @__PURE__ */ e(r, { children: "Loaded" })
68
+ ] }), I = (t) => /* @__PURE__ */ i(s, { children: [
64
69
  /* @__PURE__ */ e(n, { ...t, label: "Ulest", status: { value: "requires-attention", label: "Krever handling" } }),
65
70
  /* @__PURE__ */ e(r, { children: "Dialog is new and has not been seen by anybody" }),
66
71
  /* @__PURE__ */ e(
@@ -101,7 +106,7 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
101
106
  }
102
107
  ),
103
108
  /* @__PURE__ */ e(r, { children: "Dialog has been moved to trash" })
104
- ] }), I = (t) => /* @__PURE__ */ i(s, { children: [
109
+ ] }), q = (t) => /* @__PURE__ */ i(s, { children: [
105
110
  /* @__PURE__ */ e(
106
111
  n,
107
112
  {
@@ -112,10 +117,10 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
112
117
  }
113
118
  ),
114
119
  /* @__PURE__ */ e(r, { children: "Dialog requires action wihtin a spesific due date." })
115
- ] }), q = (t) => /* @__PURE__ */ i(s, { children: [
120
+ ] }), T = (t) => /* @__PURE__ */ i(s, { children: [
116
121
  /* @__PURE__ */ e(n, { ...t, attachmentsCount: 2 }),
117
122
  /* @__PURE__ */ e(r, { children: "Dialog has attachments." })
118
- ] }), T = (t) => /* @__PURE__ */ i(s, { children: [
123
+ ] }), w = (t) => /* @__PURE__ */ i(s, { children: [
119
124
  /* @__PURE__ */ e(n, { ...t, seen: !0, seenBy: { seenByEndUser: !0, label: "Sett av deg" } }),
120
125
  /* @__PURE__ */ e(r, { children: "Seen by end user. Dialog is marked as seen." }),
121
126
  /* @__PURE__ */ e(n, { ...t, seenBy: { seenByOthersCount: 4, label: "Sett av 4" } }),
@@ -129,7 +134,7 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
129
134
  }
130
135
  ),
131
136
  /* @__PURE__ */ e(r, { children: "Seen by end user and others. Dialog is marked as seen." })
132
- ] }), w = (t) => /* @__PURE__ */ i(s, { children: [
137
+ ] }), x = (t) => /* @__PURE__ */ i(s, { children: [
133
138
  /* @__PURE__ */ e(n, { ...t, touchedBy: [{ name: "Kari Nordmann" }] }),
134
139
  /* @__PURE__ */ e(r, { children: "Dialog has been touched by a single actor." }),
135
140
  /* @__PURE__ */ e(n, { ...t, touchedBy: [{ name: "Kari Nordmann" }, { name: "Ola Nordmann" }] }),
@@ -142,7 +147,7 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
142
147
  }
143
148
  ),
144
149
  /* @__PURE__ */ e(r, { children: "Dialog has been touched by a multiple actors." })
145
- ] }), x = (t) => /* @__PURE__ */ i(s, { children: [
150
+ ] }), M = (t) => /* @__PURE__ */ i(s, { children: [
146
151
  /* @__PURE__ */ e(
147
152
  n,
148
153
  {
@@ -159,9 +164,9 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
159
164
  }
160
165
  ),
161
166
  /* @__PURE__ */ e(r, { children: "Long summary" })
162
- ] }), M = (t) => {
167
+ ] }), P = (t) => {
163
168
  var h;
164
- const [l, p] = v({
169
+ const [a, p] = v({
165
170
  1: {
166
171
  id: "1",
167
172
  title: "Item 1",
@@ -177,44 +182,45 @@ const c = (b = Object.keys(g)) == null ? void 0 : b.map((t) => ({
177
182
  title: "Item 2",
178
183
  selected: !1
179
184
  }
180
- }), m = ({ id: a }) => {
185
+ }), m = ({ id: l }) => {
181
186
  p((d) => ({
182
187
  ...d,
183
- [a]: {
184
- ...d[a],
185
- selected: !d[a].selected
188
+ [l]: {
189
+ ...d[l],
190
+ selected: !d[l].selected
186
191
  }
187
192
  }));
188
193
  };
189
- return /* @__PURE__ */ e(s, { children: (h = Object.values(l)) == null ? void 0 : h.map((a) => /* @__PURE__ */ i(u, { children: [
194
+ return /* @__PURE__ */ e(s, { children: (h = Object.values(a)) == null ? void 0 : h.map((l) => /* @__PURE__ */ i(u, { children: [
190
195
  /* @__PURE__ */ e(
191
196
  n,
192
197
  {
193
198
  ...t,
194
- title: a.title,
195
- onClick: a.selected ? () => m(a) : null,
196
- selected: a.selected,
197
- select: { checked: a == null ? void 0 : a.selected, onChange: () => m(a) }
199
+ title: l.title,
200
+ onClick: l.selected ? () => m(l) : null,
201
+ selected: l.selected,
202
+ select: { checked: l == null ? void 0 : l.selected, onChange: () => m(l) }
198
203
  }
199
204
  ),
200
205
  /* @__PURE__ */ i(r, { children: [
201
206
  "selected:",
202
- a.selected ? "true" : "false"
207
+ l.selected ? "true" : "false"
203
208
  ] })
204
- ] }, a == null ? void 0 : a.id)) });
205
- }, P = (t) => /* @__PURE__ */ e(s, { children: o == null ? void 0 : o.map((l) => /* @__PURE__ */ i(u, { children: [
206
- /* @__PURE__ */ e(n, { ...t, size: l, status: { value: "in-progress", label: "Under arbeid" } }),
207
- /* @__PURE__ */ e(r, { children: l })
208
- ] }, l)) });
209
+ ] }, l == null ? void 0 : l.id)) });
210
+ }, F = (t) => /* @__PURE__ */ e(s, { children: o == null ? void 0 : o.map((a) => /* @__PURE__ */ i(u, { children: [
211
+ /* @__PURE__ */ e(n, { ...t, size: a, status: { value: "in-progress", label: "Under arbeid" } }),
212
+ /* @__PURE__ */ e(r, { children: a })
213
+ ] }, a)) });
209
214
  export {
210
- q as Attachments,
211
- I as DueAt,
212
- T as SeenBy,
213
- M as Selectable,
214
- P as Sizes,
215
+ T as Attachments,
216
+ q as DueAt,
217
+ E as Loading,
218
+ w as SeenBy,
219
+ P as Selectable,
220
+ F as Sizes,
215
221
  C as Statuses,
216
- x as TextLength,
217
- w as TouchedBy,
218
- E as Variants,
222
+ M as TextLength,
223
+ x as TouchedBy,
224
+ I as Variants,
219
225
  j as default
220
226
  };
@@ -1,6 +1,8 @@
1
1
  import { DialogSeenByProps } from './DialogSeenBy';
2
2
  import { DialogStatusProps } from './DialogStatus';
3
3
  export type DialogMetadataProps = {
4
+ /** Metadata is loading */
5
+ loading?: boolean;
4
6
  /** Dialog status */
5
7
  status?: DialogStatusProps;
6
8
  /** Updated datetime */
@@ -27,4 +29,4 @@ export type DialogMetadataProps = {
27
29
  /**
28
30
  * Metadata for a dialog in list view.
29
31
  */
30
- export declare const DialogMetadata: ({ status, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, attachmentsCount, }: DialogMetadataProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const DialogMetadata: ({ loading, status, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, attachmentsCount, }: DialogMetadataProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,30 +1,31 @@
1
- import { jsxs as z, jsx as i } from "react/jsx-runtime";
2
- import { MetaBase as f } from "../Meta/MetaBase.js";
3
- import { MetaItem as d } from "../Meta/MetaItem.js";
1
+ import { jsxs as M, jsx as e } from "react/jsx-runtime";
2
+ import { MetaBase as a } from "../Meta/MetaBase.js";
3
+ import { MetaItem as D } from "../Meta/MetaItem.js";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import "../Icon/SvgIcon.js";
6
- import { MetaTimestamp as e } from "../Meta/MetaTimestamp.js";
7
- import { DialogSeenBy as h } from "./DialogSeenBy.js";
8
- import { DialogStatus as M } from "./DialogStatus.js";
9
- const q = ({
10
- status: o,
11
- updatedAt: r,
12
- updatedAtLabel: l,
13
- dueAt: m,
14
- dueAtLabel: s,
15
- trashedAt: t,
16
- trashedAtLabel: c,
17
- archivedAt: p,
18
- archivedAtLabel: x,
19
- seenBy: n,
20
- attachmentsCount: a = 0
21
- }) => /* @__PURE__ */ z(f, { size: "xs", children: [
22
- o && /* @__PURE__ */ i(M, { size: "xs", ...o }),
23
- r && /* @__PURE__ */ i(e, { datetime: r, size: "xs", children: l }),
24
- m && s && /* @__PURE__ */ i(e, { datetime: m, size: "xs", icon: "clock-dashed", children: s }),
25
- a > 0 && /* @__PURE__ */ i(d, { size: "xs", icon: "paperclip", children: a }),
26
- t && c && /* @__PURE__ */ i(e, { datetime: t, size: "xs", icon: "trash", children: c }) || p && x && /* @__PURE__ */ i(e, { datetime: p, size: "xs", icon: "archive", children: x }) || n && /* @__PURE__ */ i(h, { size: "xs", ...n })
6
+ import { MetaTimestamp as r } from "../Meta/MetaTimestamp.js";
7
+ import { DialogSeenBy as j } from "./DialogSeenBy.js";
8
+ import { DialogStatus as l } from "./DialogStatus.js";
9
+ const E = ({
10
+ loading: i,
11
+ status: m,
12
+ updatedAt: s,
13
+ updatedAtLabel: n,
14
+ dueAt: o,
15
+ dueAtLabel: t,
16
+ trashedAt: c,
17
+ trashedAtLabel: p,
18
+ archivedAt: x,
19
+ archivedAtLabel: z,
20
+ seenBy: f,
21
+ attachmentsCount: h = 0
22
+ }) => /* @__PURE__ */ M(a, { size: "xs", children: [
23
+ m && /* @__PURE__ */ e(l, { loading: i, size: "xs", ...m }),
24
+ s && /* @__PURE__ */ e(r, { loading: i, datetime: s, size: "xs", children: n }),
25
+ o && t && /* @__PURE__ */ e(r, { loading: i, datetime: o, size: "xs", icon: "clock-dashed", children: t }),
26
+ h > 0 && /* @__PURE__ */ e(D, { loading: i, size: "xs", icon: "paperclip", children: h }),
27
+ c && p && /* @__PURE__ */ e(r, { loading: i, datetime: c, size: "xs", icon: "trash", children: p }) || x && z && /* @__PURE__ */ e(r, { loading: i, datetime: x, size: "xs", icon: "archive", children: z }) || !i && f && /* @__PURE__ */ e(j, { size: "xs", ...f })
27
28
  ] });
28
29
  export {
29
- q as DialogMetadata
30
+ E as DialogMetadata
30
31
  };