@commmerce/ui 1.3.0 → 1.5.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 (106) hide show
  1. package/THIRD_PARTY_NOTICES.txt +101 -0
  2. package/dist/calendar.js +15 -19
  3. package/dist/cdn.js +1669 -1193
  4. package/dist/components/accordion.js +9 -8
  5. package/dist/components/action-bar.js +15 -15
  6. package/dist/components/action-menu.js +10 -9
  7. package/dist/components/app-card.js +15 -14
  8. package/dist/components/app-frame.d.ts +15 -0
  9. package/dist/components/app-frame.js +22 -2
  10. package/dist/components/badge.d.ts +2 -1
  11. package/dist/components/badge.js +4 -3
  12. package/dist/components/banner.js +6 -5
  13. package/dist/components/board.js +18 -18
  14. package/dist/components/bottom-navigation.d.ts +1 -1
  15. package/dist/components/bottom-navigation.js +9 -7
  16. package/dist/components/bottom-sheet.d.ts +1 -1
  17. package/dist/components/bottom-sheet.js +9 -8
  18. package/dist/components/button.d.ts +3 -3
  19. package/dist/components/button.js +22 -19
  20. package/dist/components/calendar.d.ts +380 -0
  21. package/dist/components/calendar.js +1480 -0
  22. package/dist/components/card.d.ts +1 -1
  23. package/dist/components/card.js +18 -12
  24. package/dist/components/checkbox.js +8 -7
  25. package/dist/components/color-field.js +9 -13
  26. package/dist/components/combobox.d.ts +8 -0
  27. package/dist/components/combobox.js +18 -18
  28. package/dist/components/comment.d.ts +1 -1
  29. package/dist/components/comment.js +12 -13
  30. package/dist/components/data-table.js +12 -11
  31. package/dist/components/date-picker.js +1 -1
  32. package/dist/components/date-range-picker.js +7 -7
  33. package/dist/components/empty-state.d.ts +1 -1
  34. package/dist/components/empty-state.js +16 -16
  35. package/dist/components/file-upload.js +18 -16
  36. package/dist/components/filter-panel.js +1 -1
  37. package/dist/components/flash-offer-bar.js +8 -7
  38. package/dist/components/global-search.d.ts +1 -1
  39. package/dist/components/global-search.js +12 -9
  40. package/dist/components/grid.d.ts +1 -1
  41. package/dist/components/grid.js +1 -1
  42. package/dist/components/header-bar.js +38 -31
  43. package/dist/components/info-panel.d.ts +1 -1
  44. package/dist/components/info-panel.js +11 -10
  45. package/dist/components/layout.d.ts +1 -1
  46. package/dist/components/layout.js +1 -1
  47. package/dist/components/link-tabs.js +8 -7
  48. package/dist/components/metric.js +4 -4
  49. package/dist/components/mobile-menu.js +16 -15
  50. package/dist/components/modal.js +2 -1
  51. package/dist/components/nested-list.d.ts +2 -2
  52. package/dist/components/nested-list.js +21 -22
  53. package/dist/components/notification-panel.js +12 -11
  54. package/dist/components/option-group.js +10 -11
  55. package/dist/components/page-header.js +16 -15
  56. package/dist/components/page.d.ts +18 -4
  57. package/dist/components/page.js +22 -7
  58. package/dist/components/pagination.d.ts +1 -1
  59. package/dist/components/pagination.js +16 -9
  60. package/dist/components/progress-bar.js +4 -3
  61. package/dist/components/radio.js +12 -12
  62. package/dist/components/report-tile.d.ts +2 -2
  63. package/dist/components/report-tile.js +18 -18
  64. package/dist/components/resource-list.d.ts +22 -6
  65. package/dist/components/resource-list.js +92 -52
  66. package/dist/components/save-bar.js +8 -8
  67. package/dist/components/search.d.ts +5 -2
  68. package/dist/components/search.js +20 -14
  69. package/dist/components/segmented-control.d.ts +67 -0
  70. package/dist/components/segmented-control.js +76 -0
  71. package/dist/components/select.d.ts +8 -0
  72. package/dist/components/select.js +18 -18
  73. package/dist/components/side-navigation.js +20 -17
  74. package/dist/components/side-panel.js +4 -3
  75. package/dist/components/signature-field.d.ts +153 -0
  76. package/dist/components/signature-field.js +728 -0
  77. package/dist/components/skeleton-display.js +4 -4
  78. package/dist/components/skeleton.d.ts +1 -1
  79. package/dist/components/skeleton.js +2 -2
  80. package/dist/components/smart-tip.d.ts +1 -1
  81. package/dist/components/smart-tip.js +16 -16
  82. package/dist/components/spinner.js +1 -1
  83. package/dist/components/stack.d.ts +1 -1
  84. package/dist/components/stack.js +1 -1
  85. package/dist/components/status-tabs.d.ts +4 -3
  86. package/dist/components/status-tabs.js +26 -12
  87. package/dist/components/table-header.d.ts +4 -3
  88. package/dist/components/table-header.js +22 -15
  89. package/dist/components/tag.js +3 -4
  90. package/dist/components/text-field.d.ts +1 -1
  91. package/dist/components/text-field.js +8 -15
  92. package/dist/components/thumbnail.js +1 -1
  93. package/dist/components/timeline.js +12 -11
  94. package/dist/components/toast.js +6 -6
  95. package/dist/components/toggle.js +12 -11
  96. package/dist/components/tooltip.js +4 -3
  97. package/dist/custom-elements.json +13655 -9770
  98. package/dist/field.d.ts +15 -0
  99. package/dist/field.js +47 -0
  100. package/dist/index.d.ts +4 -0
  101. package/dist/index.js +3 -0
  102. package/dist/overlay.js +5 -4
  103. package/dist/popover.js +8 -8
  104. package/dist/spacing.d.ts +14 -4
  105. package/dist/spacing.js +13 -4
  106. package/package.json +3 -3
@@ -27,7 +27,7 @@ export declare class CmCard extends LitElement {
27
27
  };
28
28
  /** Card title, rendered as a heading at `heading-level`. */
29
29
  heading: string;
30
- /** One sentence under the title in text-tertiary. */
30
+ /** One sentence under the title, 13px in text-tertiary. */
31
31
  description: string;
32
32
  /** Removes body padding, for lists and tables that run edge to edge. */
33
33
  flush: boolean;
@@ -30,7 +30,7 @@ export class CmCard extends LitElement {
30
30
  _CmCard_instances.add(this);
31
31
  /** Card title, rendered as a heading at `heading-level`. */
32
32
  this.heading = '';
33
- /** One sentence under the title in text-tertiary. */
33
+ /** One sentence under the title, 13px in text-tertiary. */
34
34
  this.description = '';
35
35
  /** Removes body padding, for lists and tables that run edge to edge. */
36
36
  this.flush = false;
@@ -76,9 +76,11 @@ CmCard.styles = [
76
76
  base,
77
77
  css `
78
78
  :host { display: block; }
79
+ /* Flat: a 1px border-subtle and no shadow (shadows are for overlays). 16px 20px around the header, 20px around the body. */
79
80
  section {
80
- background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-card);
81
- border-radius: var(--cm-radius-md); padding: var(--cm-space-20);
81
+ background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-subtle);
82
+ border-radius: var(--cm-radius-md); padding: var(--cm-space-16) var(--cm-space-20) var(--cm-space-20);
83
+ font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14);
82
84
  }
83
85
  :host([flush]) section { padding: 0; }
84
86
  /* Wraps only on narrow cards. .main grows from a 0 basis (wide cards look exactly as before: its content stays
@@ -86,24 +88,28 @@ CmCard.styles = [
86
88
  the actions move under the title only when the heading would get less than that. */
87
89
  header {
88
90
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
89
- gap: var(--cm-space-10) var(--cm-space-20); margin-bottom: var(--cm-space-20);
91
+ gap: var(--cm-space-8) var(--cm-space-16); margin-bottom: var(--cm-space-12);
90
92
  }
91
- :host([flush]) header { padding: var(--cm-space-20) var(--cm-space-20) 0; }
92
- .main { flex: 1 1 0%; max-inline-size: 100%; }
93
+ /* Flush: the header keeps its padding and the body (a list, a table) starts right under it. */
94
+ :host([flush]) header { padding: var(--cm-space-16) var(--cm-space-20) 0; margin-bottom: var(--cm-space-8); }
95
+ .main { flex: 1 1 0%; max-inline-size: 100%; align-self: center; }
93
96
  .strut {
94
97
  display: block; block-size: 0; overflow: hidden; visibility: hidden; white-space: nowrap;
95
98
  max-inline-size: 12ch; font-size: var(--cm-type-heading-sm-size); font-weight: 600;
96
99
  }
97
- .title { margin: 0; font-size: var(--cm-type-heading-sm-size); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--cm-space-10); }
100
+ .title {
101
+ margin: 0; font-size: var(--cm-type-heading-sm-size); line-height: var(--cm-type-heading-sm-line-height); font-weight: 600;
102
+ display: flex; flex-wrap: wrap; align-items: center; gap: var(--cm-space-8);
103
+ }
98
104
  /* Flex-wrap moves the badges under the heading before the heading itself would wrap. */
99
- .adornment { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cm-space-10); }
105
+ .adornment { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cm-space-8); }
100
106
  .adornment[hidden] { display: none; }
101
- .desc { margin: 6px 0 0; font-size: 16px; color: var(--cm-text-tertiary); }
102
- .actions { display: flex; flex-wrap: wrap; gap: var(--cm-space-20); align-items: center; }
107
+ .desc { margin: var(--cm-space-4) 0 0; font-size: var(--cm-font-size-13); line-height: var(--cm-line-height-13); color: var(--cm-text-tertiary); }
108
+ .actions { display: flex; flex-wrap: wrap; gap: var(--cm-space-8); align-items: center; }
103
109
  /* Actions on a card without a heading or description: a row of their own, at the end. */
104
- .bare { display: flex; justify-content: flex-end; margin-bottom: var(--cm-space-20); }
110
+ .bare { display: flex; justify-content: flex-end; margin-bottom: var(--cm-space-12); }
105
111
  .bare[hidden] { display: none; }
106
- :host([flush]) .bare { padding: var(--cm-space-20) var(--cm-space-20) 0; }
112
+ :host([flush]) .bare { padding: var(--cm-space-16) var(--cm-space-20) 0; margin-bottom: var(--cm-space-8); }
107
113
  `,
108
114
  ];
109
115
  define('cm-card', CmCard);
@@ -99,20 +99,21 @@ CmCheckbox.styles = [
99
99
  base,
100
100
  css `
101
101
  :host { display: inline-flex; }
102
- label { position: relative; display: inline-flex; align-items: flex-start; gap: var(--cm-space-10); cursor: pointer; }
103
- input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: inherit; }
102
+ label { position: relative; display: inline-flex; align-items: flex-start; gap: var(--cm-space-8); padding-block: 2px; cursor: pointer; }
103
+ /* The 16px box sits on the label's first line (20px); the invisible input around it is a 24px target. */
104
+ input { position: absolute; inset-block-start: 0; inset-inline-start: -4px; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: inherit; }
104
105
  .box {
105
- flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
106
+ flex: none; width: 16px; height: 16px; margin-block: 2px; display: inline-flex; align-items: center; justify-content: center;
106
107
  border: var(--cm-border-1) solid var(--cm-border-strong); border-radius: var(--cm-radius-xs);
107
108
  background: var(--cm-bg-surface); color: transparent;
108
109
  }
109
110
  input:checked + .box, input:indeterminate + .box { color: var(--cm-text-default); }
110
111
  input:focus-visible + .box { outline: 2px solid var(--cm-border-strong); outline-offset: 2px; }
111
- .text { display: flex; flex-direction: column; gap: 6px; padding-top: 1px; }
112
- .label { font-size: 16px; }
113
- .desc { font-size: 12px; color: var(--cm-text-tertiary); }
112
+ .text { display: flex; flex-direction: column; gap: 2px; }
113
+ .label { font-size: var(--cm-type-body-md-size); line-height: var(--cm-type-body-md-line-height); }
114
+ .desc { font-size: var(--cm-type-body-sm-size); line-height: var(--cm-type-body-sm-line-height); color: var(--cm-text-tertiary); }
114
115
  :host([disabled]) label { cursor: not-allowed; }
115
- :host([disabled]) .box { background: var(--cm-bg-input-filled); border-color: var(--cm-border-default); }
116
+ :host([disabled]) .box { background: var(--cm-bg-input-filled); border-color: var(--cm-border-subtle); }
116
117
  :host([disabled]) .label { color: var(--cm-text-secondary); }
117
118
  `,
118
119
  ];
@@ -12,6 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _CmColorField_instances, _CmColorField_internals, _CmColorField_id, _CmColorField_defaultValue, _CmColorField_typed, _CmColorField_emit, _CmColorField_pick, _CmColorField_onSwatchKey, _CmColorField_onHexInput, _CmColorField_commitHex, _CmColorField_onHexChange, _CmColorField_onHexKey, _CmColorField_onPickerInput, _CmColorField_onPickerChange;
13
13
  import { LitElement, html, css, nothing } from 'lit';
14
14
  import { live } from 'lit/directives/live.js';
15
+ import { fieldStyles } from '../field.js';
15
16
  import { base, define, nextId, logicalKey } from '../base.js';
16
17
  import { CmLocalizedElement, defineStrings } from '../localize.js';
17
18
  import './icon.js';
@@ -199,7 +200,7 @@ export class CmColorField extends CmLocalizedElement {
199
200
  return html `<button type="button" class="swatch" part="swatch" role="radio" aria-checked=${i === sel ? 'true' : 'false'}
200
201
  aria-label=${name} title=${s.name || s.value} tabindex=${i === (sel >= 0 ? sel : 0) ? '0' : '-1'} ?disabled=${this.disabled}
201
202
  style="background-color:${s.value};color:${checkColor(s.value)}"
202
- @click=${() => __classPrivateFieldGet(this, _CmColorField_instances, "m", _CmColorField_pick).call(this, i)} @keydown=${(e) => __classPrivateFieldGet(this, _CmColorField_instances, "m", _CmColorField_onSwatchKey).call(this, e, i)}><cm-icon name="check" size="18"></cm-icon></button>`;
203
+ @click=${() => __classPrivateFieldGet(this, _CmColorField_instances, "m", _CmColorField_pick).call(this, i)} @keydown=${(e) => __classPrivateFieldGet(this, _CmColorField_instances, "m", _CmColorField_onSwatchKey).call(this, e, i)}><cm-icon name="check" size="16"></cm-icon></button>`;
203
204
  })}
204
205
  </div>`
205
206
  : nothing}
@@ -321,13 +322,10 @@ CmColorField.properties = {
321
322
  };
322
323
  CmColorField.styles = [
323
324
  base,
325
+ fieldStyles,
324
326
  css `
325
327
  :host { display: block; }
326
- .field { display: flex; flex-direction: column; gap: var(--cm-space-10); }
327
- .label { font-size: var(--cm-type-label-size); color: var(--cm-text-default); }
328
- .req { color: var(--cm-text-critical); margin-inline-start: 2px; }
329
- .hint { margin-inline-start: var(--cm-space-10); font-size: 12px; color: var(--cm-text-tertiary); text-transform: lowercase; }
330
- .swatches { display: flex; flex-wrap: wrap; gap: var(--cm-space-10); padding: 4px; margin: -4px; }
328
+ .swatches { display: flex; flex-wrap: wrap; gap: var(--cm-space-8); padding: 4px; margin: -4px; }
331
329
  .swatch {
332
330
  position: relative; display: inline-flex; align-items: center; justify-content: center;
333
331
  width: 32px; height: 32px; padding: 0; cursor: pointer; border-radius: var(--cm-radius-full);
@@ -338,9 +336,9 @@ CmColorField.styles = [
338
336
  .swatch[aria-checked='true'] cm-icon { visibility: visible; }
339
337
  .swatch:focus-visible { outline: 2px solid var(--cm-border-strong); outline-offset: 6px; }
340
338
  .swatch:disabled { cursor: not-allowed; opacity: 0.4; }
341
- .row { display: flex; align-items: center; gap: var(--cm-space-10); }
339
+ .row { display: flex; align-items: center; gap: var(--cm-space-8); }
342
340
  .preview, .pick {
343
- position: relative; flex: none; width: 42px; height: 42px; border-radius: var(--cm-radius-sm);
341
+ position: relative; flex: none; width: var(--_cm-field-h); height: var(--_cm-field-h); border-radius: var(--cm-radius-sm);
344
342
  border: var(--cm-border-1) solid var(--cm-border-input); background: var(--cm-bg-inset);
345
343
  }
346
344
  .pick { cursor: pointer; }
@@ -351,19 +349,17 @@ CmColorField.styles = [
351
349
  background: var(--cm-bg-surface); color: var(--cm-text-default); border: var(--cm-border-1) solid var(--cm-border-input);
352
350
  }
353
351
  .input {
354
- width: 11ch; min-width: 0; flex: 0 1 auto; height: 42px; padding: 0 var(--cm-space-10);
355
- font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--cm-text-default);
352
+ width: 11ch; min-width: 0; flex: 0 1 auto; height: calc(var(--_cm-field-h) - 2px); padding: 0 var(--_cm-field-pad);
353
+ font: inherit; font-size: var(--_cm-field-font); font-variant-numeric: tabular-nums; color: var(--cm-text-default);
356
354
  background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-input);
357
355
  border-radius: var(--cm-radius-sm); outline: none; box-sizing: content-box;
358
356
  }
359
357
  .input::placeholder { color: var(--cm-text-tertiary); }
360
358
  .input:focus { border-color: var(--cm-border-strong); box-shadow: 0 0 0 1px var(--cm-border-strong); }
361
359
  .input[aria-invalid='true'] { border-color: var(--cm-border-critical); }
362
- .input:disabled { background: var(--cm-bg-input-filled); color: var(--cm-text-secondary); border-color: var(--cm-border-default); cursor: not-allowed; }
360
+ .input:disabled { background: var(--cm-bg-input-filled); color: var(--cm-text-secondary); border-color: var(--cm-border-subtle); cursor: not-allowed; }
363
361
  :host([disabled]) .pick { cursor: not-allowed; opacity: 0.4; }
364
362
  :host([disabled]) .preview { opacity: 0.4; }
365
- .help { margin: 0; font-size: 12px; color: var(--cm-text-tertiary); }
366
- .error { margin: 0; font-size: 12px; color: var(--cm-text-critical); }
367
363
  `,
368
364
  ];
369
365
  define('cm-color-field', CmColorField);
@@ -79,6 +79,9 @@ export declare class CmCombobox extends CmLocalizedElement {
79
79
  type: BooleanConstructor;
80
80
  reflect: boolean;
81
81
  };
82
+ size: {
83
+ reflect: boolean;
84
+ };
82
85
  allowCustom: {
83
86
  type: BooleanConstructor;
84
87
  attribute: string;
@@ -143,6 +146,11 @@ export declare class CmCombobox extends CmLocalizedElement {
143
146
  options: Array<string | SelectOption>;
144
147
  /** Lets the merchant choose several options, shown as removable tags. Backspace in the empty box removes the last one. */
145
148
  multiple: boolean;
149
+ /**
150
+ * `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch
151
+ * screens both are 44px. Since 1.5.
152
+ */
153
+ size: 'default' | 'small';
146
154
  /** Lets the merchant add what they typed when it isn't an option ("Add “summer”"). Fires a cancelable `cm-create`. */
147
155
  allowCustom: boolean;
148
156
  /** How typing narrows the list: `contains` (default), `starts-with`, or `none` when you filter on the server from `cm-search`. */
@@ -12,6 +12,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
12
12
  var _CmCombobox_instances, _CmCombobox_internals, _CmCombobox_id, _CmCombobox_default, _CmCombobox_labels, _CmCombobox_groups, _CmCombobox_observer, _CmCombobox_stopOutside, _CmCombobox_readChildren, _CmCombobox_labelOf, _CmCombobox_displayOf, _CmCombobox_createText_get, _CmCombobox_rows, _CmCombobox_emit, _CmCombobox_show, _CmCombobox_hide, _CmCombobox_enabled, _CmCombobox_move, _CmCombobox_choose, _CmCombobox_create, _CmCombobox_focusInput, _CmCombobox_onInput, _CmCombobox_onKeyDown, _CmCombobox_onBlur, _CmCombobox_highlight;
13
13
  import { LitElement, html, css, nothing } from 'lit';
14
14
  import { live } from 'lit/directives/live.js';
15
+ import { fieldStyles, optionStyles } from '../field.js';
15
16
  import { base, define, nextId } from '../base.js';
16
17
  import { CmLocalizedElement, defineStrings } from '../localize.js';
17
18
  import { popoverStyles, groupStyles, sortByGroup, groupRuns, closeOnOutsidePointer } from '../popover.js';
@@ -75,6 +76,11 @@ export class CmCombobox extends CmLocalizedElement {
75
76
  this.options = [];
76
77
  /** Lets the merchant choose several options, shown as removable tags. Backspace in the empty box removes the last one. */
77
78
  this.multiple = false;
79
+ /**
80
+ * `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch
81
+ * screens both are 44px. Since 1.5.
82
+ */
83
+ this.size = 'default';
78
84
  /** Lets the merchant add what they typed when it isn't an option ("Add “summer”"). Fires a cancelable `cm-create`. */
79
85
  this.allowCustom = false;
80
86
  /** How typing narrows the list: `contains` (default), `starts-with`, or `none` when you filter on the server from `cm-search`. */
@@ -476,6 +482,7 @@ CmCombobox.properties = {
476
482
  placeholder: {},
477
483
  options: { type: Array },
478
484
  multiple: { type: Boolean, reflect: true },
485
+ size: { reflect: true },
479
486
  allowCustom: { type: Boolean, attribute: 'allow-custom' },
480
487
  filter: {},
481
488
  loading: { type: Boolean, reflect: true },
@@ -492,49 +499,42 @@ CmCombobox.properties = {
492
499
  };
493
500
  CmCombobox.styles = [
494
501
  base,
502
+ fieldStyles,
495
503
  popoverStyles,
504
+ optionStyles,
496
505
  groupStyles,
497
506
  css `
498
507
  :host { display: block; position: relative; }
499
- .field { display: flex; flex-direction: column; gap: var(--cm-space-10); }
500
- .label { font-size: var(--cm-type-label-size); color: var(--cm-text-default); }
501
- .req { color: var(--cm-text-critical); margin-inline-start: 2px; }
502
508
  .wrap { position: relative; }
503
509
  .box {
504
- display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 42px; padding: 7px var(--cm-space-10);
510
+ display: flex; flex-wrap: wrap; align-items: center; gap: var(--cm-space-4); width: 100%; min-height: var(--_cm-field-h);
511
+ padding-block: var(--cm-space-4); padding-inline: var(--_cm-field-pad) var(--cm-space-8);
505
512
  background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-input); border-radius: var(--cm-radius-sm); cursor: text;
506
513
  }
514
+ :host([size='small']) .box { padding-block: 2px; }
507
515
  .box:focus-within { border-color: var(--cm-border-strong); box-shadow: 0 0 0 1px var(--cm-border-strong); }
508
516
  .tags { display: contents; }
509
517
  input {
510
- flex: 1 1 80px; min-width: 80px; height: 26px; padding: 0; border: 0; outline: none; background: none;
511
- font: inherit; font-size: 16px; color: var(--cm-text-default);
518
+ flex: 1 1 80px; min-width: 80px; height: 24px; padding: 0; border: 0; outline: none; background: none;
519
+ font: inherit; font-size: var(--_cm-field-font); color: var(--cm-text-default);
512
520
  }
513
521
  input::placeholder { color: var(--cm-text-tertiary); }
514
- .chev { flex: none; margin-inline-start: auto; color: var(--cm-icon-selected); transition: transform .15s; }
522
+ .chev { flex: none; margin-inline-start: auto; color: var(--cm-icon-selected); transition: transform var(--cm-duration-fast) var(--cm-easing-standard); }
515
523
  :host([open]) .chev { transform: rotate(180deg); }
516
524
  :host([error]:not([error=''])) .box { border-color: var(--cm-border-critical); }
517
- :host([disabled]) .box { background: var(--cm-bg-input-filled); border-color: var(--cm-border-default); cursor: not-allowed; }
525
+ :host([disabled]) .box { background: var(--cm-bg-input-filled); border-color: var(--cm-border-subtle); cursor: not-allowed; }
518
526
  :host([disabled]) input { color: var(--cm-text-secondary); cursor: not-allowed; }
519
- [role='listbox'] { max-height: 242px; overflow-y: auto; margin: 0; padding: var(--cm-space-10) 0; list-style: none; }
520
527
  [role='listbox'][hidden] { display: none; }
521
- [role='option'] {
522
- display: flex; align-items: center; gap: var(--cm-space-10); min-height: 40px; padding: 6px var(--cm-space-20);
523
- font-size: 16px; color: var(--cm-text-default); cursor: pointer;
524
- }
528
+ [role='option'] { gap: var(--cm-space-8); }
525
529
  [role='option'] .check { flex: none; visibility: hidden; }
526
530
  [role='option'][aria-selected='true'] .check { visibility: visible; }
527
- [role='option'].active { background: var(--cm-bg-hover); box-shadow: inset 2px 0 0 var(--cm-border-strong); }
528
- [role='option'].active:dir(rtl) { box-shadow: inset -2px 0 0 var(--cm-border-strong); }
531
+ [role='option'].active { background: var(--cm-bg-hover); }
529
532
  :host(:not([multiple])) [role='option'][aria-selected='true'] { background: var(--cm-action-primary); color: var(--cm-action-primary-text); }
530
533
  :host(:not([multiple])) [role='option'][aria-selected='true'].active { background: var(--cm-action-primary-hover); }
531
534
  [role='option'][aria-disabled='true'] { color: var(--cm-text-secondary); cursor: not-allowed; }
532
535
  [role='option'] mark { background: none; color: inherit; font-weight: 600; }
533
536
  .create { font-style: normal; }
534
- .help, .error { margin: 0; font-size: 12px; color: var(--cm-text-tertiary); }
535
- .error { color: var(--cm-text-critical); }
536
537
  slot { display: none; }
537
- @media (max-width: 640px) { [role='option'] { font-size: 14px; min-height: 30px; padding-inline: var(--cm-space-15); } }
538
538
  @media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
539
539
  `,
540
540
  ];
@@ -13,7 +13,7 @@ declare module '../localize.js' {
13
13
  }
14
14
  /**
15
15
  * One entry in an order or customer timeline: when it was written, what it says and who wrote it.
16
- * Stack several inside any container, `space-10` apart; put a `cm-comment-box` above or below to add new ones.
16
+ * Stack several inside any container, `space-8` apart; put a `cm-comment-box` above or below to add new ones.
17
17
  * @element cm-comment
18
18
  * @slot - The comment text.
19
19
  */
@@ -16,7 +16,7 @@ const boxStrings = defineStrings('commentBox', {
16
16
  });
17
17
  /**
18
18
  * One entry in an order or customer timeline: when it was written, what it says and who wrote it.
19
- * Stack several inside any container, `space-10` apart; put a `cm-comment-box` above or below to add new ones.
19
+ * Stack several inside any container, `space-8` apart; put a `cm-comment-box` above or below to add new ones.
20
20
  * @element cm-comment
21
21
  * @slot - The comment text.
22
22
  */
@@ -66,11 +66,11 @@ CmComment.styles = [
66
66
  css `
67
67
  :host { display: block; }
68
68
  article {
69
- display: flex; flex-direction: column; gap: 6px; padding: var(--cm-space-10);
70
- background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-default); border-radius: var(--cm-radius-sm);
69
+ display: flex; flex-direction: column; gap: var(--cm-space-4); padding: var(--cm-space-12);
70
+ background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-subtle); border-radius: var(--cm-radius-sm);
71
71
  }
72
- .meta { font-size: 12px; color: var(--cm-text-tertiary); }
73
- .body { font-size: 14px; line-height: 16px; overflow-wrap: anywhere; }
72
+ .meta { font-size: var(--cm-font-size-12); line-height: var(--cm-line-height-12); color: var(--cm-text-tertiary); }
73
+ .body { font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); overflow-wrap: anywhere; }
74
74
  `,
75
75
  ];
76
76
  define('cm-comment', CmComment);
@@ -121,7 +121,7 @@ export class CmCommentBox extends CmLocalizedElement {
121
121
  <textarea part="input" aria-label=${this.label} placeholder=${this.placeholder || nothing} .value=${this.value}
122
122
  ?disabled=${this.disabled} @input=${(e) => { this.value = e.target.value; }}
123
123
  @keydown=${__classPrivateFieldGet(this, _CmCommentBox_instances, "m", _CmCommentBox_key)}></textarea>
124
- <div class="actions"><cm-button variant="primary" size="large" ?disabled=${this.disabled} @click=${() => this.submit()}>${this.action}</cm-button></div>
124
+ <div class="actions"><cm-button variant="primary" ?disabled=${this.disabled} @click=${() => this.submit()}>${this.action}</cm-button></div>
125
125
  <div class="list" role="list" ?hidden=${!this.hasComments}>
126
126
  <slot @slotchange=${(e) => { this.hasComments = e.target.assignedElements().length > 0; this.requestUpdate(); }}></slot>
127
127
  </div>
@@ -147,10 +147,10 @@ CmCommentBox.styles = [
147
147
  base,
148
148
  css `
149
149
  :host { display: block; }
150
- section { display: flex; flex-direction: column; gap: var(--cm-space-20); }
151
- .title { margin: 0; font-size: 20px; font-weight: 600; }
150
+ section { display: flex; flex-direction: column; gap: var(--cm-space-12); }
151
+ .title { margin: 0; font-size: var(--cm-type-heading-sm-size); line-height: var(--cm-type-heading-sm-line-height); font-weight: 600; }
152
152
  textarea {
153
- display: block; width: 100%; min-height: 128px; padding: var(--cm-space-10); resize: vertical;
153
+ display: block; width: 100%; min-height: 128px; padding: var(--cm-space-8); resize: vertical;
154
154
  border: var(--cm-border-1) solid var(--cm-border-input); border-radius: var(--cm-radius-sm);
155
155
  background: var(--cm-bg-surface); color: var(--cm-text-default); font: inherit; font-size: 14px;
156
156
  }
@@ -158,12 +158,11 @@ CmCommentBox.styles = [
158
158
  textarea:focus-visible { outline: 2px solid var(--cm-border-strong); outline-offset: 0; border-color: var(--cm-border-strong); }
159
159
  textarea:disabled { background: var(--cm-bg-input-filled); color: var(--cm-text-secondary); }
160
160
  .actions { display: flex; }
161
- .list { display: flex; flex-direction: column; gap: var(--cm-space-10); }
161
+ .list { display: flex; flex-direction: column; gap: var(--cm-space-8); }
162
162
  .list[hidden] { display: none; }
163
163
  @media (max-width: 640px) {
164
- section { gap: var(--cm-space-10); }
165
- .title { font-size: 16px; }
166
- textarea { min-height: 100px; }
164
+ textarea { min-height: 96px; }
165
+
167
166
  .actions { justify-content: flex-end; }
168
167
  }
169
168
  `,
@@ -27,13 +27,13 @@ let sheetAdded = false;
27
27
  * from the shadow root). Added to the document once, scoped to `cm-data-table > table`.
28
28
  */
29
29
  const LIGHT_CSS = `
30
- cm-data-table > table { width: 100%; border-collapse: separate; border-spacing: 0; font: inherit; font-size: 14px; line-height: 1.5; color: var(--cm-text-default); }
31
- cm-data-table > table caption { text-align: start; font-weight: 500; font-size: 16px; padding-block-end: var(--cm-space-10); }
32
- cm-data-table > table th { font-size: 12px; font-weight: 400; text-align: start; padding: 7px var(--cm-space-20); background: var(--cm-bg-hover); border-block: var(--cm-border-1) solid var(--cm-border-subtle); white-space: nowrap; }
30
+ cm-data-table > table { width: 100%; border-collapse: separate; border-spacing: 0; font: inherit; font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); font-variant-numeric: tabular-nums; color: var(--cm-text-default); }
31
+ cm-data-table > table caption { text-align: start; font-weight: 600; font-size: var(--cm-font-size-16); line-height: var(--cm-line-height-16); padding-block-end: var(--cm-space-8); }
32
+ cm-data-table > table th { font-size: var(--cm-font-size-12); line-height: var(--cm-line-height-12); font-weight: 500; color: var(--cm-text-tertiary); text-align: start; padding: var(--cm-space-8) var(--cm-space-16); background: var(--cm-bg-hover); border-block: var(--cm-border-1) solid var(--cm-border-subtle); white-space: nowrap; }
33
33
  cm-data-table > table th:first-child { border-inline-start: var(--cm-border-1) solid var(--cm-border-subtle); border-start-start-radius: var(--cm-radius-md); }
34
34
  cm-data-table > table th:last-child { border-inline-end: var(--cm-border-1) solid var(--cm-border-subtle); border-start-end-radius: var(--cm-radius-md); }
35
- cm-data-table > table td { padding: var(--cm-space-10) var(--cm-space-20); border-block-end: var(--cm-border-1) solid var(--cm-border-default); vertical-align: middle; }
36
- cm-data-table > table tfoot td, cm-data-table > table tfoot th { font-weight: 500; background: var(--cm-bg-surface); border-block: var(--cm-border-1) solid var(--cm-border-default); font-size: 14px; }
35
+ cm-data-table > table td { padding: var(--cm-space-8) var(--cm-space-16); border-block-end: var(--cm-border-1) solid var(--cm-border-subtle); vertical-align: middle; }
36
+ cm-data-table > table tfoot td, cm-data-table > table tfoot th { font-weight: 500; background: var(--cm-bg-surface); border-block: var(--cm-border-1) solid var(--cm-border-subtle); font-size: var(--cm-font-size-14); color: var(--cm-text-default); }
37
37
  cm-data-table > table tbody tr:hover td, cm-data-table > table tbody tr:hover th { background: var(--cm-bg-hover); }
38
38
  cm-data-table > table th > button.cm-sort { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
39
39
  cm-data-table > table th[data-type='numeric'] > button.cm-sort, cm-data-table > table th[data-type='money'] > button.cm-sort { flex-direction: row-reverse; }
@@ -311,24 +311,25 @@ CmDataTable.properties = {
311
311
  CmDataTable.styles = [
312
312
  base,
313
313
  css `
314
- :host { display: block; font-size: 14px; line-height: 1.5; }
314
+ :host { display: block; font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); font-variant-numeric: tabular-nums; }
315
315
  .scroll { overflow: auto; max-block-size: var(--cm-data-table-max-height, none); }
316
316
  .scroll:focus-visible { outline: 2px solid var(--cm-border-strong); outline-offset: 2px; }
317
317
  table { inline-size: 100%; border-collapse: separate; border-spacing: 0; }
318
- caption { text-align: start; font-weight: 500; font-size: 16px; padding-block-end: var(--cm-space-10); }
318
+ caption { text-align: start; font-weight: 600; font-size: var(--cm-font-size-16); line-height: var(--cm-line-height-16); padding-block-end: var(--cm-space-8); }
319
319
  :host([caption-hidden]) caption {
320
320
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
321
321
  }
322
- th, td { padding: var(--cm-space-10) var(--cm-space-20); text-align: start; vertical-align: middle; }
322
+ th, td { padding: var(--cm-space-8) var(--cm-space-16); text-align: start; vertical-align: middle; }
323
323
  thead th {
324
- font-size: 12px; font-weight: 400; padding-block: 7px; white-space: nowrap; color: var(--cm-text-default);
324
+ font-size: var(--cm-font-size-12); line-height: var(--cm-line-height-12); font-weight: 500; padding-block: var(--cm-space-8); white-space: nowrap; color: var(--cm-text-tertiary);
325
+
325
326
  background: var(--cm-bg-hover); border-block: var(--cm-border-1) solid var(--cm-border-subtle);
326
327
  }
327
328
  thead th:first-child { border-inline-start: var(--cm-border-1) solid var(--cm-border-subtle); border-start-start-radius: var(--cm-radius-md); }
328
329
  thead th:last-child { border-inline-end: var(--cm-border-1) solid var(--cm-border-subtle); border-start-end-radius: var(--cm-radius-md); }
329
- tbody td, tbody th { font-weight: 400; border-block-end: var(--cm-border-1) solid var(--cm-border-default); background: var(--cm-bg-surface); }
330
+ tbody td, tbody th { font-weight: 400; border-block-end: var(--cm-border-1) solid var(--cm-border-subtle); background: var(--cm-bg-surface); }
330
331
  tbody tr:hover td, tbody tr:hover th { background: var(--cm-bg-hover); }
331
- tfoot td { font-weight: 500; background: var(--cm-bg-surface); border-block-end: var(--cm-border-1) solid var(--cm-border-default); }
332
+ tfoot td { font-weight: 500; background: var(--cm-bg-surface); border-block-end: var(--cm-border-1) solid var(--cm-border-subtle); }
332
333
  .end { text-align: end; }
333
334
  .num { font-variant-numeric: tabular-nums; }
334
335
  :host([sticky-header]) thead th { position: sticky; inset-block-start: 0; z-index: 2; }
@@ -296,7 +296,7 @@ export class CmDatePicker extends CmLocalizedElement {
296
296
  <button type="button" class="trigger" part="trigger" ?disabled=${this.disabled}
297
297
  aria-label=${value ? this.t(name ? 'changeFor' : 'change', { label: name, date: fmt.long(value) }) : this.t(name ? 'chooseFor' : 'choose', { label: name })}
298
298
  aria-haspopup="dialog" aria-expanded=${this.open ? 'true' : 'false'} aria-controls="${__classPrivateFieldGet(this, _CmDatePicker_id, "f")}-pop"
299
- @click=${__classPrivateFieldGet(this, _CmDatePicker_toggle, "f")}><cm-icon name="calendar" size="18"></cm-icon></button>
299
+ @click=${__classPrivateFieldGet(this, _CmDatePicker_toggle, "f")}><cm-icon name="calendar" size="16"></cm-icon></button>
300
300
  </div>
301
301
  ${this.time ? html `<div class="box time" part="time-box">
302
302
  <input class="time-in" part="time-input" type="text" autocomplete="off" spellcheck="false"
@@ -339,7 +339,7 @@ export class CmDateRangePicker extends CmLocalizedElement {
339
339
  <button type="button" class="trigger" part="trigger" ?disabled=${this.disabled}
340
340
  aria-label=${s && e ? this.t(name ? 'changeFor' : 'change', { label: name, start: fmt.long(s), end: fmt.long(e) }) : this.t(name ? 'chooseFor' : 'choose', { label: name })}
341
341
  aria-haspopup="dialog" aria-expanded=${this.open ? 'true' : 'false'} aria-controls="${__classPrivateFieldGet(this, _CmDateRangePicker_id, "f")}-pop"
342
- @click=${__classPrivateFieldGet(this, _CmDateRangePicker_toggle, "f")}><cm-icon name="calendar" size="18"></cm-icon></button>
342
+ @click=${__classPrivateFieldGet(this, _CmDateRangePicker_toggle, "f")}><cm-icon name="calendar" size="16"></cm-icon></button>
343
343
  </div>
344
344
  <div class="pop" id="${__classPrivateFieldGet(this, _CmDateRangePicker_id, "f")}-pop" part="popover" role="dialog" aria-modal="true" aria-label=${this.t('dialog')}
345
345
  ?hidden=${!this.open} @keydown=${__classPrivateFieldGet(this, _CmDateRangePicker_onPopKey, "f")}>
@@ -464,20 +464,20 @@ CmDateRangePicker.styles = [
464
464
  input { flex: 0 1 6.6em; }
465
465
  :host([size='small']) input { flex-basis: 6.6em; }
466
466
  .trigger { margin-inline-start: auto; }
467
- .body { display: flex; gap: var(--cm-space-15); }
468
- .presets { display: flex; flex-direction: column; gap: 2px; min-width: 140px; margin: 0; padding: 0; padding-inline-end: var(--cm-space-15); list-style: none; border-inline-end: var(--cm-border-1) solid var(--cm-border-default); }
467
+ .body { display: flex; gap: var(--cm-space-12); }
468
+ .presets { display: flex; flex-direction: column; gap: 2px; min-width: 140px; margin: 0; padding: 0; padding-inline-end: var(--cm-space-12); list-style: none; border-inline-end: var(--cm-border-1) solid var(--cm-border-subtle); }
469
469
  .preset {
470
- width: 100%; min-height: 36px; padding: 6px var(--cm-space-10); border: 0; border-radius: var(--cm-radius-sm);
470
+ width: 100%; min-height: var(--cm-control-height-sm, 32px); padding: var(--cm-space-4) var(--cm-space-8); border: 0; border-radius: var(--cm-radius-sm);
471
471
  background: none; font: inherit; font-size: 14px; text-align: start; color: var(--cm-text-default); cursor: pointer;
472
472
  }
473
473
  .preset:hover { background: var(--cm-bg-hover); }
474
474
  .preset[aria-pressed='true'] { background: var(--cm-action-primary); color: var(--cm-action-primary-text); }
475
- .status { margin: var(--cm-space-10) 0 0; font-size: 12px; color: var(--cm-text-tertiary); }
475
+ .status { margin: var(--cm-space-8) 0 0; font-size: var(--cm-type-body-sm-size); color: var(--cm-text-tertiary); }
476
476
  @media (max-width: 640px) {
477
477
  .body { flex-direction: column; }
478
- .presets { flex-direction: row; flex-wrap: wrap; min-width: 0; padding: 0 0 var(--cm-space-10); border-inline-end: 0; border-block-end: var(--cm-border-1) solid var(--cm-border-default); }
478
+ .presets { flex-direction: row; flex-wrap: wrap; min-width: 0; padding: 0 0 var(--cm-space-8); border-inline-end: 0; border-block-end: var(--cm-border-1) solid var(--cm-border-subtle); }
479
479
  .presets li { flex: 0 0 auto; }
480
- .preset { width: auto; border: var(--cm-border-1) solid var(--cm-border-default); border-radius: var(--cm-radius-full); min-height: 32px; }
480
+ .preset { width: auto; border: var(--cm-border-1) solid var(--cm-border-subtle); border-radius: var(--cm-radius-full); min-height: 32px; }
481
481
  }
482
482
  `,
483
483
  ];
@@ -39,7 +39,7 @@ export declare class CmEmptyState extends LitElement {
39
39
  /** Heading level, so the page outline stays correct. Default 2. */
40
40
  headingLevel: 2 | 3 | 4 | 5 | 6;
41
41
  /**
42
- * `large` (250px circle, page-level), `small` (200px circle, inside a card or on mobile) or `inline`
42
+ * `large` (160px circle, page-level), `small` (120px circle, inside a card or on mobile) or `inline`
43
43
  * (since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list
44
44
  * inside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=""` for text only.
45
45
  */
@@ -31,7 +31,7 @@ export class CmEmptyState extends LitElement {
31
31
  /** Heading level, so the page outline stays correct. Default 2. */
32
32
  this.headingLevel = 2;
33
33
  /**
34
- * `large` (250px circle, page-level), `small` (200px circle, inside a card or on mobile) or `inline`
34
+ * `large` (160px circle, page-level), `small` (120px circle, inside a card or on mobile) or `inline`
35
35
  * (since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list
36
36
  * inside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=""` for text only.
37
37
  */
@@ -53,7 +53,8 @@ export class CmEmptyState extends LitElement {
53
53
  return __classPrivateFieldGet(this, _CmEmptyState_instances, "m", _CmEmptyState_renderInline).call(this, level);
54
54
  const fallback = this.image
55
55
  ? html `<img src=${this.image} alt="" part="image">`
56
- : this.icon ? html `<cm-icon name=${this.icon} size="96"></cm-icon>` : nothing;
56
+ : this.icon ? html `<cm-icon name=${this.icon} size="48"></cm-icon>
57
+ ` : nothing;
57
58
  return html `<div class="wrap" part="empty-state">
58
59
  <div class="circle" part="circle" aria-hidden=${this.hasImage ? nothing : 'true'}>
59
60
  <slot name="image" @slotchange=${(e) => __classPrivateFieldGet(this, _CmEmptyState_instances, "m", _CmEmptyState_slot).call(this, e, 'hasImage')}>${fallback}</slot>
@@ -105,29 +106,29 @@ CmEmptyState.styles = [
105
106
  :host { display: block; }
106
107
  .wrap {
107
108
  display: flex; flex-direction: column; align-items: center; text-align: center;
108
- padding: var(--cm-space-30) var(--cm-space-20);
109
+ padding: var(--cm-space-32) var(--cm-space-20);
109
110
  }
110
111
  .circle {
111
112
  display: flex; align-items: center; justify-content: center; overflow: hidden;
112
- width: 250px; height: 250px; border-radius: var(--cm-radius-full);
113
+ width: 160px; height: 160px; border-radius: var(--cm-radius-full);
113
114
  background: var(--cm-bg-input-filled); color: var(--cm-icon-selected);
114
115
  }
115
116
  .circle img, ::slotted([slot='image']) { max-width: 66%; max-height: 66%; object-fit: contain; }
116
- .title { margin: 40px 0 0; font-size: 16px; font-weight: 400; }
117
- .text { margin-top: var(--cm-space-10); max-width: 46ch; font-size: 14px; color: var(--cm-text-tertiary); }
117
+ .title { margin: var(--cm-space-24) 0 0; font-size: var(--cm-type-heading-sm-size); line-height: var(--cm-type-heading-sm-line-height); font-weight: 600; }
118
+ .text { margin-top: var(--cm-space-4); max-width: 46ch; font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); color: var(--cm-text-tertiary); }
118
119
  .text[hidden], .actions[hidden] { display: none; }
119
- .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cm-space-20); margin-top: var(--cm-space-20); }
120
- :host([size='small']) .circle { width: 200px; height: 200px; }
121
- :host([size='small']) .title { margin-top: 30px; font-size: 14px; }
122
- :host([size='small']) .actions { gap: var(--cm-space-10); }
120
+ .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cm-space-8); margin-top: var(--cm-space-16); }
121
+ :host([size='small']) .wrap { padding: var(--cm-space-24) var(--cm-space-16); }
122
+ :host([size='small']) .circle { width: 120px; height: 120px; }
123
+ :host([size='small']) .title { margin-top: var(--cm-space-16); font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); }
123
124
  /* Inline (1.2): a line of text with an optional 20px icon, no circle, no extra height. */
124
- .inline { flex-direction: row; align-items: flex-start; gap: var(--cm-space-10); padding: 0; text-align: start; font-size: 14px; line-height: 20px; }
125
+ .inline { flex-direction: row; align-items: flex-start; gap: var(--cm-space-8); padding: 0; text-align: start; font-size: 14px; line-height: 20px; }
125
126
  .inline .icon { display: inline-flex; flex: none; width: 20px; height: 20px; overflow: hidden; color: var(--cm-icon-default); }
126
127
  .inline .icon img, .inline ::slotted([slot='image']) { width: 20px; height: 20px; max-width: none; max-height: none; object-fit: contain; }
127
128
  .inline .line { min-width: 0; text-align: start; }
128
129
  .inline .title { display: inline; margin: 0; font-size: inherit; font-weight: 500; color: var(--cm-text-default); }
129
130
  .inline .text { display: inline; margin: 0; font-size: inherit; color: var(--cm-text-tertiary); }
130
- .inline .actions { display: inline-flex; vertical-align: middle; margin: 0; margin-inline-start: var(--cm-space-10); }
131
+ .inline .actions { display: inline-flex; vertical-align: middle; margin: 0; margin-inline-start: var(--cm-space-8); }
131
132
  .inline .text[hidden], .inline .actions[hidden], .inline .icon[hidden] { display: none; }
132
133
  .text-action {
133
134
  display: inline-flex; align-items: center; min-height: 24px; vertical-align: middle;
@@ -137,11 +138,10 @@ CmEmptyState.styles = [
137
138
  }
138
139
  .text-action:hover { text-decoration-thickness: 2px; }
139
140
  .text-action:focus-visible { outline: 2px solid var(--cm-border-strong); outline-offset: 2px; }
140
- .inline .text-action { display: inline; min-height: 0; vertical-align: baseline; margin: 0; margin-inline-start: var(--cm-space-10); padding-block: 2px; }
141
+ .inline .text-action { display: inline; min-height: 0; vertical-align: baseline; margin: 0; margin-inline-start: var(--cm-space-8); padding-block: 2px; }
141
142
  @media (max-width: 640px) {
142
- .circle { width: 200px; height: 200px; }
143
- .title { margin-top: 30px; font-size: 14px; }
144
- .actions { gap: var(--cm-space-10); }
143
+ .circle { width: 120px; height: 120px; }
144
+ .title { margin-top: var(--cm-space-16); }
145
145
  }
146
146
  `,
147
147
  ];