@happyvertical/smrt-messages 0.60.16 → 0.60.18

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 (40) hide show
  1. package/dist/chunks/{AccountCollection-BqxfVklR.js → AccountCollection-4ZT8LimZ.js} +2 -2
  2. package/dist/chunks/{AccountCollection-BqxfVklR.js.map → AccountCollection-4ZT8LimZ.js.map} +1 -1
  3. package/dist/chunks/{Email-pFuK_41u.js → Email-NNmas_WR.js} +3 -3
  4. package/dist/chunks/{Email-pFuK_41u.js.map → Email-NNmas_WR.js.map} +1 -1
  5. package/dist/chunks/{EmailFolder-BgQXYiFu.js → EmailFolder-DzNpDmjC.js} +2 -2
  6. package/dist/chunks/{EmailFolder-BgQXYiFu.js.map → EmailFolder-DzNpDmjC.js.map} +1 -1
  7. package/dist/chunks/{Message-CN0p80pA.js → Message-CHAl820M.js} +4 -4
  8. package/dist/chunks/{Message-CN0p80pA.js.map → Message-CHAl820M.js.map} +1 -1
  9. package/dist/chunks/{MessageCollection-BugOEL4f.js → MessageCollection-l7DpPn_N.js} +2 -2
  10. package/dist/chunks/{MessageCollection-BugOEL4f.js.map → MessageCollection-l7DpPn_N.js.map} +1 -1
  11. package/dist/chunks/__smrt-register__-zH3JfarO.js +6 -0
  12. package/dist/chunks/__smrt-register__-zH3JfarO.js.map +1 -0
  13. package/dist/index.js +9 -9
  14. package/dist/manifest.json +213 -11
  15. package/dist/smrt-knowledge.json +85 -7
  16. package/dist/svelte/components/AccountAvatar.svelte +34 -30
  17. package/dist/svelte/components/AccountCard.svelte +72 -63
  18. package/dist/svelte/components/AccountList.svelte +15 -9
  19. package/dist/svelte/components/AttachmentChip.svelte +54 -39
  20. package/dist/svelte/components/AttachmentUpload.svelte +55 -48
  21. package/dist/svelte/components/ComposeForm.svelte +105 -83
  22. package/dist/svelte/components/EmailAccountManager.svelte +245 -230
  23. package/dist/svelte/components/EmailFilterManager.svelte +250 -228
  24. package/dist/svelte/components/FolderNav.svelte +60 -50
  25. package/dist/svelte/components/ForwardForm.svelte +40 -34
  26. package/dist/svelte/components/MessageCard.svelte +116 -110
  27. package/dist/svelte/components/MessageDetail.svelte +107 -92
  28. package/dist/svelte/components/MessageFilters.svelte +73 -48
  29. package/dist/svelte/components/MessageList.svelte +20 -13
  30. package/dist/svelte/components/MessageStatusIndicator.svelte +24 -22
  31. package/dist/svelte/components/MessageToolbar.svelte +48 -36
  32. package/dist/svelte/components/MessageTypeBadge.svelte +8 -5
  33. package/dist/svelte/components/MessagingSettingsPanel.svelte +97 -32
  34. package/dist/svelte/components/RecipientInput.svelte +63 -43
  35. package/dist/svelte/components/ReplyForm.svelte +40 -34
  36. package/dist/svelte/components/SendStatusBadge.svelte +21 -14
  37. package/dist/svelte/components/ThreadView.svelte +68 -55
  38. package/package.json +16 -16
  39. package/dist/chunks/__smrt-register__-D5RmYQK6.js +0 -6
  40. package/dist/chunks/__smrt-register__-D5RmYQK6.js.map +0 -1
@@ -172,9 +172,9 @@ function getProviderLabel(type: string): string {
172
172
  }
173
173
  </script>
174
174
 
175
- <div class="email-account-manager" data-smrt-component="EmailAccountManager">
176
- <div class="section-header-row">
177
- <div class="section-description">
175
+ <div class="smrt-email-account-manager__root" data-smrt-component="EmailAccountManager">
176
+ <div class="smrt-email-account-manager__header" data-smrt-part="header">
177
+ <div class="smrt-email-account-manager__description" data-smrt-part="description">
178
178
  {t(M['messages.email_account_manager.section_description'])}
179
179
  </div>
180
180
  {#if !isReadonly && onsave}
@@ -188,20 +188,20 @@ function getProviderLabel(type: string): string {
188
188
  </div>
189
189
 
190
190
  {#if showForm}
191
- <div class="entry-form">
192
- <div class="form-title">{editingId ? 'Edit' : 'Add'} {t(M['messages.email_account_manager.mail_account'])}</div>
191
+ <div class="smrt-email-account-manager__form" data-smrt-part="field">
192
+ <div class="smrt-email-account-manager__form-title" data-smrt-part="title">{editingId ? 'Edit' : 'Add'} {t(M['messages.email_account_manager.mail_account'])}</div>
193
193
 
194
- <div class="form-row">
195
- <div class="form-field" style="flex: 1;">
196
- <label class="form-label" for="ea-name">{t(M['messages.email_account_manager.account_name'])}</label>
194
+ <div class="smrt-email-account-manager__row" data-smrt-part="row">
195
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 1;">
196
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-name">{t(M['messages.email_account_manager.account_name'])}</label>
197
197
  <Input id="ea-name" class="form-input" type="text" bind:value={maName} placeholder={t(M['messages.email_account_manager.account_name_placeholder'])} />
198
198
  </div>
199
- <div class="form-field" style="flex: 1;">
200
- <label class="form-label" for="ea-email">{t(M['messages.email_account_manager.email_address'])}</label>
199
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 1;">
200
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-email">{t(M['messages.email_account_manager.email_address'])}</label>
201
201
  <Input id="ea-email" class="form-input" type="email" bind:value={maEmail} placeholder={t(M['messages.email_account_manager.email_placeholder'])} />
202
202
  </div>
203
- <div class="form-field" style="flex: 0 0 130px;">
204
- <label class="form-label" for="ea-provider">Provider</label>
203
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 0 0 130px;">
204
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-provider">Provider</label>
205
205
  <Select id="ea-provider" class="form-select" bind:value={maProviderType}>
206
206
  <option value="imap">IMAP</option>
207
207
  <option value="gmail">Gmail</option>
@@ -211,18 +211,18 @@ function getProviderLabel(type: string): string {
211
211
  </div>
212
212
  </div>
213
213
 
214
- <div class="form-section-label">{t(M['messages.email_account_manager.incoming_mail'])}</div>
215
- <div class="form-row">
216
- <div class="form-field" style="flex: 2;">
217
- <label class="form-label" for="ea-imap-host">Host</label>
214
+ <div class="smrt-email-account-manager__group-title" data-smrt-part="title">{t(M['messages.email_account_manager.incoming_mail'])}</div>
215
+ <div class="smrt-email-account-manager__row" data-smrt-part="row">
216
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 2;">
217
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-imap-host">Host</label>
218
218
  <Input id="ea-imap-host" class="form-input" type="text" bind:value={maImapHost} placeholder={t(M['messages.email_account_manager.imap_host_placeholder'])} />
219
219
  </div>
220
- <div class="form-field" style="flex: 0 0 90px;">
221
- <label class="form-label" for="ea-imap-port">Port</label>
220
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 0 0 90px;">
221
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-imap-port">Port</label>
222
222
  <Input id="ea-imap-port" class="form-input" type="number" bind:value={maImapPort} />
223
223
  </div>
224
- <div class="form-field" style="flex: 0 0 120px;">
225
- <label class="form-label" for="ea-imap-sec">Security</label>
224
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 0 0 120px;">
225
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-imap-sec">Security</label>
226
226
  <Select id="ea-imap-sec" class="form-select" bind:value={maImapSecurity}>
227
227
  <option value="ssl">SSL/TLS</option>
228
228
  <option value="starttls">STARTTLS</option>
@@ -231,18 +231,18 @@ function getProviderLabel(type: string): string {
231
231
  </div>
232
232
  </div>
233
233
 
234
- <div class="form-section-label">{t(M['messages.email_account_manager.outgoing_mail'])}</div>
235
- <div class="form-row">
236
- <div class="form-field" style="flex: 2;">
237
- <label class="form-label" for="ea-smtp-host">Host</label>
234
+ <div class="smrt-email-account-manager__group-title" data-smrt-part="title">{t(M['messages.email_account_manager.outgoing_mail'])}</div>
235
+ <div class="smrt-email-account-manager__row" data-smrt-part="row">
236
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 2;">
237
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-smtp-host">Host</label>
238
238
  <Input id="ea-smtp-host" class="form-input" type="text" bind:value={maSmtpHost} placeholder={t(M['messages.email_account_manager.smtp_host_placeholder'])} />
239
239
  </div>
240
- <div class="form-field" style="flex: 0 0 90px;">
241
- <label class="form-label" for="ea-smtp-port">Port</label>
240
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 0 0 90px;">
241
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-smtp-port">Port</label>
242
242
  <Input id="ea-smtp-port" class="form-input" type="number" bind:value={maSmtpPort} />
243
243
  </div>
244
- <div class="form-field" style="flex: 0 0 120px;">
245
- <label class="form-label" for="ea-smtp-sec">Security</label>
244
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 0 0 120px;">
245
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-smtp-sec">Security</label>
246
246
  <Select id="ea-smtp-sec" class="form-select" bind:value={maSmtpSecurity}>
247
247
  <option value="ssl">SSL/TLS</option>
248
248
  <option value="starttls">STARTTLS</option>
@@ -251,18 +251,18 @@ function getProviderLabel(type: string): string {
251
251
  </div>
252
252
  </div>
253
253
 
254
- <div class="form-section-label">Credentials</div>
255
- <div class="form-row">
256
- <div class="form-field" style="flex: 1;">
257
- <label class="form-label" for="ea-username">Username</label>
254
+ <div class="smrt-email-account-manager__group-title" data-smrt-part="title">Credentials</div>
255
+ <div class="smrt-email-account-manager__row" data-smrt-part="row">
256
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 1;">
257
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-username">Username</label>
258
258
  <Input id="ea-username" class="form-input" type="text" bind:value={maUsername} placeholder={t(M['messages.email_account_manager.username_placeholder'])} />
259
259
  </div>
260
- <div class="form-field" style="flex: 1;">
261
- <label class="form-label" for="ea-password">Password</label>
260
+ <div class="smrt-email-account-manager__field" data-smrt-part="field" style="flex: 1;">
261
+ <label class="smrt-email-account-manager__label" data-smrt-part="label" for="ea-password">Password</label>
262
262
  <Input id="ea-password" class="form-input" type="password" bind:value={maPassword} placeholder={editingId ? '(unchanged)' : ''} />
263
263
  </div>
264
- <div class="form-field checkbox-field">
265
- <label class="form-label checkbox-label">
264
+ <div class="smrt-email-account-manager__field smrt-email-account-manager__checkbox-field" data-smrt-part="field">
265
+ <label class="smrt-email-account-manager__label smrt-email-account-manager__checkbox-label" data-smrt-part="label">
266
266
  <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
267
267
  <input type="checkbox" bind:checked={maIsActive} />
268
268
  Active
@@ -270,7 +270,7 @@ function getProviderLabel(type: string): string {
270
270
  </div>
271
271
  </div>
272
272
 
273
- <div class="form-actions">
273
+ <div class="smrt-email-account-manager__actions" data-smrt-part="actions">
274
274
  <Button variant="secondary" size="sm" class="cancel-btn" onclick={resetForm} disabled={saving}>Cancel</Button>
275
275
  <Button variant="primary" size="sm" class="save-btn" onclick={save} disabled={saving || !maName.trim() || !maEmail.trim()}>
276
276
  {saving ? 'Saving...' : editingId ? 'Update' : 'Add Account'}
@@ -280,7 +280,7 @@ function getProviderLabel(type: string): string {
280
280
  {/if}
281
281
 
282
282
  {#if actionError}
283
- <div class="test-result failure" role="alert" aria-live="assertive">
283
+ <div class="smrt-email-account-manager__test-result smrt-email-account-manager__failure" data-smrt-part="message" role="alert" aria-live="assertive">
284
284
  {actionError}
285
285
  <Button
286
286
  variant="ghost"
@@ -293,7 +293,7 @@ function getProviderLabel(type: string): string {
293
293
  {/if}
294
294
 
295
295
  {#if testResult}
296
- <div class="test-result" class:success={testResult.success} class:failure={!testResult.success}>
296
+ <div class="smrt-email-account-manager__test-result" class:smrt-email-account-manager__success={testResult.success} class:smrt-email-account-manager__failure={!testResult.success} data-smrt-part="message">
297
297
  {#if testResult.success}
298
298
  {t(M['messages.email_account_manager.connection_successful'])}
299
299
  {:else}
@@ -304,14 +304,15 @@ function getProviderLabel(type: string): string {
304
304
  {/if}
305
305
 
306
306
  {#if accounts.length === 0 && !showForm}
307
- <p class="placeholder">{t(M['messages.email_account_manager.empty'])}</p>
307
+ <p class="smrt-email-account-manager__empty" data-smrt-part="empty">{t(M['messages.email_account_manager.empty'])}</p>
308
308
  {:else}
309
- <div class="entries-list">
309
+ <div class="smrt-email-account-manager__list" data-smrt-part="list">
310
310
  {#each accounts as acct}
311
311
  <div
312
- class="entry-card mail-account"
313
- class:editing={editingId === acct.id}
314
- class:inactive={!acct.isActive}
312
+ class="smrt-email-account-manager__entry smrt-email-account-manager__mail-account"
313
+ class:smrt-email-account-manager__editing={editingId === acct.id}
314
+ class:smrt-email-account-manager__inactive={!acct.isActive}
315
+ data-smrt-part="item"
315
316
  role="button"
316
317
  tabindex="0"
317
318
  onclick={() => startEdit(acct)}
@@ -322,21 +323,21 @@ function getProviderLabel(type: string): string {
322
323
  }
323
324
  }}
324
325
  >
325
- <div class="entry-main">
326
- <span class="type-badge provider" title={acct.providerType}>{getProviderLabel(acct.providerType)}</span>
327
- <div class="entry-info">
328
- <span class="entry-pattern">{acct.name}</span>
329
- <span class="entry-description">{acct.email}</span>
326
+ <div class="smrt-email-account-manager__entry-main" data-smrt-part="body">
327
+ <span class="smrt-email-account-manager__type-badge smrt-email-account-manager__provider" data-smrt-part="badge" title={acct.providerType}>{getProviderLabel(acct.providerType)}</span>
328
+ <div class="smrt-email-account-manager__entry-info" data-smrt-part="meta">
329
+ <span class="smrt-email-account-manager__entry-pattern" data-smrt-part="title">{acct.name}</span>
330
+ <span class="smrt-email-account-manager__entry-description" data-smrt-part="description">{acct.email}</span>
330
331
  </div>
331
332
  {#if acct.imapHost}
332
- <span class="host-tag" title={t(M['messages.email_account_manager.imap_host_title'], { host: acct.imapHost, port: acct.imapPort })}>{acct.imapHost}</span>
333
+ <span class="smrt-email-account-manager__host-tag" data-smrt-part="body" title={t(M['messages.email_account_manager.imap_host_title'], { host: acct.imapHost, port: acct.imapPort })}>{acct.imapHost}</span>
333
334
  {/if}
334
335
  {#if !acct.isActive}
335
- <span class="inactive-tag">inactive</span>
336
+ <span class="smrt-email-account-manager__inactive-tag" data-smrt-part="badge">inactive</span>
336
337
  {/if}
337
338
  </div>
338
339
  {#if !isReadonly}
339
- <div class="entry-actions">
340
+ <div class="smrt-email-account-manager__entry-actions" data-smrt-part="actions">
340
341
  {#if ontest}
341
342
  <Button
342
343
  variant="ghost"
@@ -368,226 +369,268 @@ function getProviderLabel(type: string): string {
368
369
 
369
370
  <style>
370
371
  @layer smrt.reset, smrt.structure, smrt.theme;
371
- @layer smrt.theme {
372
- .email-account-manager {
372
+ @layer smrt.structure {
373
+ .smrt-email-account-manager__root {
373
374
  display: flex;
374
375
  flex-direction: column;
375
376
  gap: 0.75rem;
376
377
  }
377
-
378
- .section-header-row {
378
+ .smrt-email-account-manager__header {
379
379
  display: flex;
380
380
  align-items: center;
381
381
  justify-content: space-between;
382
382
  gap: 1rem;
383
383
  }
384
-
385
- .section-description {
386
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
387
- color: var(--smrt-color-on-surface-variant);
388
- }
389
-
390
384
  /*
391
- * The add button now renders through smrt-ui's <Button variant="secondary">.
392
- * The variant owns the outlined-primary look + hover; `.section-header-row
393
- * :global(.add-btn)` only re-asserts radius and the flex-shrink so the button
394
- * keeps its place in the header row (issue #1589).
395
- */
396
- .section-header-row :global(.add-btn) {
397
- border-radius: var(--smrt-radius-md);
385
+ * The add button now renders through smrt-ui's <Button variant="secondary">.
386
+ * The variant owns the outlined-primary look + hover; `.smrt-email-account-manager__header
387
+ * :global(.add-btn)` only re-asserts radius and the flex-shrink so the button
388
+ * keeps its place in the header row (issue #1589).
389
+ */
390
+ .smrt-email-account-manager__header :global(.add-btn) {
398
391
  flex-shrink: 0;
399
392
  }
400
-
401
- .entry-form {
402
- background: var(--smrt-color-surface-container);
403
- border: 1px solid var(--smrt-color-primary);
404
- border-radius: var(--smrt-radius-md);
393
+ .smrt-email-account-manager__form {
405
394
  padding: 1rem;
406
395
  display: flex;
407
396
  flex-direction: column;
408
397
  gap: 0.75rem;
409
398
  }
410
-
411
- .form-title {
412
- font-size: var(--smrt-typography-title-small-size, 0.875rem);
413
- font-weight: var(--smrt-typography-weight-semibold, 600);
414
- color: var(--smrt-color-primary);
415
- }
416
-
417
- .form-section-label {
418
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
419
- font-weight: var(--smrt-typography-weight-semibold, 600);
420
- color: var(--smrt-color-on-surface-variant);
421
- text-transform: uppercase;
422
- letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
399
+ .smrt-email-account-manager__group-title {
423
400
  padding-top: 0.25rem;
424
401
  }
425
-
426
- .form-row {
402
+ .smrt-email-account-manager__row {
427
403
  display: flex;
428
404
  gap: 0.75rem;
429
405
  align-items: flex-end;
430
406
  }
431
-
432
- .form-field {
407
+ .smrt-email-account-manager__field {
433
408
  display: flex;
434
409
  flex-direction: column;
435
410
  gap: 0.25rem;
436
411
  }
437
-
438
- .form-label {
439
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
440
- font-weight: var(--smrt-typography-weight-medium, 500);
441
- color: var(--smrt-color-on-surface-variant);
442
- }
443
-
444
412
  /*
445
- * The account-form fields now render through smrt-ui's <Input> / <Select>,
446
- * which bring their own tokenised border / background / focus / placeholder
447
- * styling and honor prefers-reduced-motion themselves. The old `.form-input` /
448
- * `.form-select` rules (and their :focus / ::placeholder overrides) are dropped
449
- * as dead — they targeted the raw elements that now live inside the primitive
450
- * child scopes (issue #1589).
451
- */
452
- .checkbox-field {
413
+ * The account-form fields now render through smrt-ui's <Input> / <Select>,
414
+ * which bring their own tokenised border / background / focus / placeholder
415
+ * styling and honor prefers-reduced-motion themselves. The old `.form-input` /
416
+ * `.form-select` rules (and their :focus / ::placeholder overrides) are dropped
417
+ * as dead — they targeted the raw elements that now live inside the primitive
418
+ * child scopes (issue #1589).
419
+ */
420
+ .smrt-email-account-manager__checkbox-field {
453
421
  justify-content: flex-end;
454
422
  padding-bottom: 0.5rem;
455
423
  }
456
-
457
- .checkbox-label {
424
+ .smrt-email-account-manager__checkbox-label {
458
425
  display: flex;
459
426
  align-items: center;
460
427
  gap: 0.5rem;
461
428
  cursor: pointer;
462
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
463
- color: var(--smrt-color-on-surface);
464
429
  white-space: nowrap;
465
430
  }
466
-
467
- .checkbox-label input[type="checkbox"] {
468
- accent-color: var(--smrt-color-primary);
469
- }
470
-
471
- .form-actions {
431
+ .smrt-email-account-manager__actions {
472
432
  display: flex;
473
433
  justify-content: flex-end;
474
434
  gap: 0.5rem;
475
435
  padding-top: 0.25rem;
476
436
  }
437
+ .smrt-email-account-manager__test-result {
438
+ padding: 0.5rem 0.75rem;
439
+ display: flex;
440
+ align-items: center;
441
+ justify-content: space-between;
442
+ }
443
+ /*
444
+ * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
445
+ * `.smrt-email-account-manager__test-result :global(.dismiss-btn)` anchors on the real `.smrt-email-account-manager__test-result`
446
+ * element and pierces the Button child scope. `color: inherit` keeps the icon
447
+ * matching the success/failure banner color (issue #1589).
448
+ */
449
+ .smrt-email-account-manager__test-result :global(.dismiss-btn) {
450
+ padding: 0 0.25rem;
451
+ }
452
+ .smrt-email-account-manager__list {
453
+ display: flex;
454
+ flex-direction: column;
455
+ gap: 0.5rem;
456
+ }
457
+ .smrt-email-account-manager__entry {
458
+ display: flex;
459
+ align-items: center;
460
+ justify-content: space-between;
461
+ padding: 0.75rem 1rem;
462
+ cursor: pointer;
463
+ }
464
+ .smrt-email-account-manager__entry-main {
465
+ display: flex;
466
+ align-items: center;
467
+ gap: 0.75rem;
468
+ flex: 1;
469
+ min-width: 0;
470
+ }
471
+ .smrt-email-account-manager__entry-actions {
472
+ display: flex;
473
+ align-items: center;
474
+ gap: 0.375rem;
475
+ flex-shrink: 0;
476
+ }
477
+ .smrt-email-account-manager__type-badge {
478
+ padding: 0.25rem 0.5rem;
479
+ flex-shrink: 0;
480
+ min-width: 2rem;
481
+ }
482
+ .smrt-email-account-manager__type-badge.smrt-email-account-manager__provider {
483
+ min-width: 3rem;
484
+ }
485
+ .smrt-email-account-manager__entry-info {
486
+ display: flex;
487
+ flex-direction: column;
488
+ gap: 0.125rem;
489
+ flex: 1;
490
+ min-width: 0;
491
+ }
492
+ .smrt-email-account-manager__entry-pattern {
493
+ overflow: hidden;
494
+ text-overflow: ellipsis;
495
+ white-space: nowrap;
496
+ }
497
+ .smrt-email-account-manager__host-tag {
498
+ padding: 0.125rem 0.5rem;
499
+ flex-shrink: 0;
500
+ }
501
+ .smrt-email-account-manager__inactive-tag {
502
+ padding: 0.125rem 0.5rem;
503
+ flex-shrink: 0;
504
+ }
505
+ /*
506
+ * The test and delete buttons now render through smrt-ui's <Button
507
+ * variant="ghost">. The <button> is emitted inside the Button child, so
508
+ * `.smrt-email-account-manager__entry-actions :global(...)` anchors on the real `.smrt-email-account-manager__entry-actions` element
509
+ * and pierces the child scope to keep the original outlined-pill styling and
510
+ * the delete button's red-on-hover affordance (issue #1589).
511
+ */
512
+ .smrt-email-account-manager__entry-actions :global(.test-btn) {
513
+ padding: 0.25rem 0.5rem;
514
+ }
515
+ .smrt-email-account-manager__entry-actions :global(.delete-btn) {
516
+ padding: 0.125rem 0.5rem;
517
+ flex-shrink: 0;
518
+ }
519
+ .smrt-email-account-manager__empty {
520
+ padding: 2rem;
521
+ }
522
+ }
477
523
 
524
+ @layer smrt.theme {
525
+ .smrt-email-account-manager__description {
526
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
527
+ color: var(--smrt-color-on-surface-variant);
528
+ }
478
529
  /*
479
- * Cancel/Save now use Button's secondary/primary variants (dead bespoke CSS
480
- * removed). `.form-actions :global(...)` only re-asserts the rounded radius so
481
- * they match the form's other controls (issue #1589). Cancel's neutral outline
482
- * color override keeps it from picking up secondary's primary border color.
483
- */
484
- .form-actions :global(.cancel-btn),
485
- .form-actions :global(.save-btn) {
530
+ * The add button now renders through smrt-ui's <Button variant="secondary">.
531
+ * The variant owns the outlined-primary look + hover; `.smrt-email-account-manager__header
532
+ * :global(.add-btn)` only re-asserts radius and the flex-shrink so the button
533
+ * keeps its place in the header row (issue #1589).
534
+ */
535
+ .smrt-email-account-manager__header :global(.add-btn) {
486
536
  border-radius: var(--smrt-radius-md);
487
537
  }
488
-
489
- .form-actions :global(.cancel-btn) {
538
+ .smrt-email-account-manager__form {
539
+ background: var(--smrt-color-surface-container);
540
+ border: 1px solid var(--smrt-color-primary);
541
+ border-radius: var(--smrt-radius-md);
542
+ }
543
+ .smrt-email-account-manager__form-title {
544
+ font-size: var(--smrt-typography-title-small-size, 0.875rem);
545
+ font-weight: var(--smrt-typography-weight-semibold, 600);
546
+ color: var(--smrt-color-primary);
547
+ }
548
+ .smrt-email-account-manager__group-title {
549
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
550
+ font-weight: var(--smrt-typography-weight-semibold, 600);
551
+ color: var(--smrt-color-on-surface-variant);
552
+ text-transform: uppercase;
553
+ letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
554
+ }
555
+ .smrt-email-account-manager__label {
556
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
557
+ font-weight: var(--smrt-typography-weight-medium, 500);
558
+ color: var(--smrt-color-on-surface-variant);
559
+ }
560
+ .smrt-email-account-manager__checkbox-label {
561
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
562
+ color: var(--smrt-color-on-surface);
563
+ }
564
+ .smrt-email-account-manager__checkbox-label input[type="checkbox"] {
565
+ accent-color: var(--smrt-color-primary);
566
+ }
567
+ /*
568
+ * Cancel/Save now use Button's secondary/primary variants (dead bespoke CSS
569
+ * removed). `.smrt-email-account-manager__actions :global(...)` only re-asserts the rounded radius so
570
+ * they match the form's other controls (issue #1589). Cancel's neutral outline
571
+ * color override keeps it from picking up secondary's primary border color.
572
+ */
573
+ .smrt-email-account-manager__actions :global(.cancel-btn),
574
+ .smrt-email-account-manager__actions :global(.save-btn) {
575
+ border-radius: var(--smrt-radius-md);
576
+ }
577
+ .smrt-email-account-manager__actions :global(.cancel-btn) {
490
578
  border-color: var(--smrt-hairline-color);
491
579
  color: var(--smrt-color-on-surface-variant);
492
580
  }
493
-
494
- .test-result {
495
- padding: 0.5rem 0.75rem;
581
+ .smrt-email-account-manager__test-result {
496
582
  border-radius: var(--smrt-radius-md);
497
583
  font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
498
- display: flex;
499
- align-items: center;
500
- justify-content: space-between;
501
584
  }
502
-
503
- .test-result.success {
585
+ .smrt-email-account-manager__test-result.smrt-email-account-manager__success {
504
586
  background: var(--smrt-color-success-container);
505
587
  color: var(--smrt-color-success);
506
588
  }
507
-
508
- .test-result.failure {
589
+ .smrt-email-account-manager__test-result.smrt-email-account-manager__failure {
509
590
  background: var(--smrt-color-error-container);
510
591
  color: var(--smrt-color-error);
511
592
  }
512
-
513
593
  /*
514
- * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
515
- * `.test-result :global(.dismiss-btn)` anchors on the real `.test-result`
516
- * element and pierces the Button child scope. `color: inherit` keeps the icon
517
- * matching the success/failure banner color (issue #1589).
518
- */
519
- .test-result :global(.dismiss-btn) {
594
+ * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
595
+ * `.smrt-email-account-manager__test-result :global(.dismiss-btn)` anchors on the real `.smrt-email-account-manager__test-result`
596
+ * element and pierces the Button child scope. `color: inherit` keeps the icon
597
+ * matching the success/failure banner color (issue #1589).
598
+ */
599
+ .smrt-email-account-manager__test-result :global(.dismiss-btn) {
520
600
  background: transparent;
521
601
  border: none;
522
602
  font-size: var(--smrt-typography-body-large-size, 1rem);
523
603
  color: inherit;
524
- padding: 0 0.25rem;
525
604
  }
526
-
527
- .entries-list {
528
- display: flex;
529
- flex-direction: column;
530
- gap: 0.5rem;
531
- }
532
-
533
- .entry-card {
534
- display: flex;
535
- align-items: center;
536
- justify-content: space-between;
605
+ .smrt-email-account-manager__entry {
537
606
  background: var(--smrt-color-surface-container);
538
607
  border: var(--smrt-hairline);
539
608
  border-radius: var(--smrt-radius-md);
540
- padding: 0.75rem 1rem;
541
- cursor: pointer;
542
609
  transition: background 150ms ease, border-color 150ms ease;
543
610
  }
544
-
545
- .entry-card:hover {
611
+ .smrt-email-account-manager__entry:hover {
546
612
  background: var(--smrt-color-surface-container-high);
547
613
  }
548
-
549
- .entry-card.mail-account:hover {
614
+ .smrt-email-account-manager__entry.smrt-email-account-manager__mail-account:hover {
550
615
  border-color: var(--smrt-color-primary);
551
616
  }
552
-
553
- .entry-card.editing {
617
+ .smrt-email-account-manager__entry.smrt-email-account-manager__editing {
554
618
  border-color: var(--smrt-color-primary);
555
619
  background: var(--smrt-color-surface-container-high);
556
620
  }
557
-
558
- .entry-card.inactive {
621
+ .smrt-email-account-manager__entry.smrt-email-account-manager__inactive {
559
622
  opacity: 0.5;
560
623
  }
561
-
562
- .entry-main {
563
- display: flex;
564
- align-items: center;
565
- gap: 0.75rem;
566
- flex: 1;
567
- min-width: 0;
568
- }
569
-
570
- .entry-actions {
571
- display: flex;
572
- align-items: center;
573
- gap: 0.375rem;
574
- flex-shrink: 0;
575
- }
576
-
577
- .type-badge {
624
+ .smrt-email-account-manager__type-badge {
578
625
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
579
626
  font-weight: var(--smrt-typography-weight-semibold, 600);
580
627
  font-family: var(--smrt-font-family-mono, monospace);
581
628
  background: var(--smrt-color-surface);
582
629
  border: var(--smrt-hairline);
583
- padding: 0.25rem 0.5rem;
584
630
  border-radius: var(--smrt-radius-sm);
585
- flex-shrink: 0;
586
- min-width: 2rem;
587
631
  text-align: center;
588
632
  }
589
-
590
- .type-badge.provider {
633
+ .smrt-email-account-manager__type-badge.smrt-email-account-manager__provider {
591
634
  font-family: inherit;
592
635
  font-size: var(--smrt-typography-label-small-size, 0.625rem);
593
636
  text-transform: uppercase;
@@ -595,93 +638,65 @@ function getProviderLabel(type: string): string {
595
638
  background: var(--smrt-color-primary-container);
596
639
  color: var(--smrt-color-primary);
597
640
  border-color: transparent;
598
- min-width: 3rem;
599
- }
600
-
601
- .entry-info {
602
- display: flex;
603
- flex-direction: column;
604
- gap: 0.125rem;
605
- flex: 1;
606
- min-width: 0;
607
641
  }
608
-
609
- .entry-pattern {
642
+ .smrt-email-account-manager__entry-pattern {
610
643
  font-weight: var(--smrt-typography-weight-medium, 500);
611
644
  font-size: var(--smrt-typography-title-small-size, 0.875rem);
612
- overflow: hidden;
613
- text-overflow: ellipsis;
614
- white-space: nowrap;
615
645
  }
616
-
617
- .entry-description {
646
+ .smrt-email-account-manager__entry-description {
618
647
  font-size: var(--smrt-typography-body-small-size, 0.75rem);
619
648
  color: var(--smrt-color-on-surface-variant);
620
649
  }
621
-
622
- .host-tag {
650
+ .smrt-email-account-manager__host-tag {
623
651
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
624
652
  font-family: var(--smrt-font-family-mono, monospace);
625
653
  color: var(--smrt-color-on-surface-variant);
626
654
  background: var(--smrt-color-surface);
627
- padding: 0.125rem 0.5rem;
628
655
  border-radius: var(--smrt-radius-sm);
629
- flex-shrink: 0;
630
656
  }
631
-
632
- .inactive-tag {
657
+ .smrt-email-account-manager__inactive-tag {
633
658
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
634
659
  color: var(--smrt-color-on-surface-variant);
635
660
  background: var(--smrt-color-surface-container-high);
636
- padding: 0.125rem 0.5rem;
637
661
  border-radius: var(--smrt-radius-full);
638
- flex-shrink: 0;
639
662
  }
640
-
641
663
  /*
642
- * The test and delete buttons now render through smrt-ui's <Button
643
- * variant="ghost">. The <button> is emitted inside the Button child, so
644
- * `.entry-actions :global(...)` anchors on the real `.entry-actions` element
645
- * and pierces the child scope to keep the original outlined-pill styling and
646
- * the delete button's red-on-hover affordance (issue #1589).
647
- */
648
- .entry-actions :global(.test-btn) {
649
- padding: 0.25rem 0.5rem;
664
+ * The test and delete buttons now render through smrt-ui's <Button
665
+ * variant="ghost">. The <button> is emitted inside the Button child, so
666
+ * `.smrt-email-account-manager__entry-actions :global(...)` anchors on the real `.smrt-email-account-manager__entry-actions` element
667
+ * and pierces the child scope to keep the original outlined-pill styling and
668
+ * the delete button's red-on-hover affordance (issue #1589).
669
+ */
670
+ .smrt-email-account-manager__entry-actions :global(.test-btn) {
650
671
  border-radius: var(--smrt-radius-sm);
651
672
  border: var(--smrt-hairline);
652
673
  background: transparent;
653
674
  color: var(--smrt-color-on-surface-variant);
654
675
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
655
676
  }
656
-
657
- .entry-actions :global(.test-btn):hover:not(:disabled) {
677
+ .smrt-email-account-manager__entry-actions :global(.test-btn):hover:not(:disabled) {
658
678
  border-color: var(--smrt-color-primary);
659
679
  color: var(--smrt-color-primary);
660
680
  }
661
-
662
- .entry-actions :global(.delete-btn) {
681
+ .smrt-email-account-manager__entry-actions :global(.delete-btn) {
663
682
  font-size: var(--smrt-typography-body-large-size, 1rem);
664
683
  line-height: 1;
665
- padding: 0.125rem 0.5rem;
666
684
  border-radius: var(--smrt-radius-full);
667
685
  border: 1px solid transparent;
668
686
  background: transparent;
669
687
  color: var(--smrt-color-on-surface-variant);
670
- flex-shrink: 0;
671
688
  }
672
-
673
- .entry-actions :global(.delete-btn):hover {
689
+ .smrt-email-account-manager__entry-actions :global(.delete-btn):hover {
674
690
  background: var(--smrt-color-error-container);
675
691
  color: var(--smrt-color-error);
676
692
  border-color: var(--smrt-color-error);
677
693
  }
678
-
679
- .placeholder {
680
- padding: 2rem;
694
+ .smrt-email-account-manager__empty {
681
695
  text-align: center;
682
696
  color: var(--smrt-color-on-surface-variant);
683
697
  background: var(--smrt-color-surface-container);
684
698
  border-radius: var(--smrt-radius-md);
685
699
  }
686
700
  }
701
+
687
702
  </style>