@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
@@ -165,8 +165,8 @@ function getPatternPlaceholder(type: string): string {
165
165
  }
166
166
  </script>
167
167
 
168
- <div class="email-filter-manager" data-smrt-component="EmailFilterManager">
169
- <div class="section-toggle">
168
+ <div class="smrt-email-filter-manager__root" data-smrt-component="EmailFilterManager">
169
+ <div class="smrt-email-filter-manager__toggle" data-smrt-part="trigger">
170
170
  <Button
171
171
  variant={activeSection === 'whitelist' ? 'primary' : 'ghost'}
172
172
  size="sm"
@@ -174,7 +174,7 @@ function getPatternPlaceholder(type: string): string {
174
174
  onclick={() => activeSection = 'whitelist'}
175
175
  >
176
176
  Whitelist
177
- <span class="count">{whitelist.length}</span>
177
+ <span class="smrt-email-filter-manager__count" data-smrt-part="count">{whitelist.length}</span>
178
178
  </Button>
179
179
  <Button
180
180
  variant={activeSection === 'blacklist' ? 'primary' : 'ghost'}
@@ -183,12 +183,12 @@ function getPatternPlaceholder(type: string): string {
183
183
  onclick={() => activeSection = 'blacklist'}
184
184
  >
185
185
  Blacklist
186
- <span class="count">{blacklist.length}</span>
186
+ <span class="smrt-email-filter-manager__count" data-smrt-part="count">{blacklist.length}</span>
187
187
  </Button>
188
188
  </div>
189
189
 
190
190
  {#if filterError}
191
- <div class="filter-error" role="alert" aria-live="assertive">
191
+ <div class="smrt-email-filter-manager__error" data-smrt-part="error" role="alert" aria-live="assertive">
192
192
  {filterError}
193
193
  <Button
194
194
  variant="ghost"
@@ -202,9 +202,9 @@ function getPatternPlaceholder(type: string): string {
202
202
 
203
203
  <!-- Whitelist Section -->
204
204
  {#if activeSection === 'whitelist'}
205
- <div class="section-content">
206
- <div class="section-header-row">
207
- <div class="section-description">
205
+ <div class="smrt-email-filter-manager__content" data-smrt-part="body">
206
+ <div class="smrt-email-filter-manager__header" data-smrt-part="header">
207
+ <div class="smrt-email-filter-manager__description" data-smrt-part="description">
208
208
  {t(M['messages.email_filter_manager.whitelist_description'])}
209
209
  </div>
210
210
  {#if !isReadonly && onaddwhitelist}
@@ -218,19 +218,19 @@ function getPatternPlaceholder(type: string): string {
218
218
  </div>
219
219
 
220
220
  {#if showWhitelistForm}
221
- <div class="entry-form">
222
- <div class="form-title">{t(M['messages.email_filter_manager.add_whitelist_entry'])}</div>
223
- <div class="form-row">
224
- <div class="form-field" style="flex: 0 0 120px;">
225
- <label class="form-label" for="wl-type">Type</label>
221
+ <div class="smrt-email-filter-manager__form" data-smrt-part="field">
222
+ <div class="smrt-email-filter-manager__form-title" data-smrt-part="title">{t(M['messages.email_filter_manager.add_whitelist_entry'])}</div>
223
+ <div class="smrt-email-filter-manager__row" data-smrt-part="row">
224
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 0 0 120px;">
225
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="wl-type">Type</label>
226
226
  <Select id="wl-type" class="form-select" bind:value={wlType}>
227
227
  <option value="email">Email</option>
228
228
  <option value="domain">Domain</option>
229
229
  <option value="regex">Regex</option>
230
230
  </Select>
231
231
  </div>
232
- <div class="form-field" style="flex: 1;">
233
- <label class="form-label" for="wl-pattern">Pattern</label>
232
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 1;">
233
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="wl-pattern">Pattern</label>
234
234
  <Input
235
235
  id="wl-pattern"
236
236
  class="form-input"
@@ -240,9 +240,9 @@ function getPatternPlaceholder(type: string): string {
240
240
  />
241
241
  </div>
242
242
  </div>
243
- <div class="form-row">
244
- <div class="form-field" style="flex: 1;">
245
- <label class="form-label" for="wl-category">Category <span class="optional">(optional)</span></label>
243
+ <div class="smrt-email-filter-manager__row" data-smrt-part="row">
244
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 1;">
245
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="wl-category">Category <span class="smrt-email-filter-manager__optional" data-smrt-part="meta">(optional)</span></label>
246
246
  <Input
247
247
  id="wl-category"
248
248
  class="form-input"
@@ -251,8 +251,8 @@ function getPatternPlaceholder(type: string): string {
251
251
  placeholder={t(M['messages.email_filter_manager.category_placeholder'])}
252
252
  />
253
253
  </div>
254
- <div class="form-field" style="flex: 2;">
255
- <label class="form-label" for="wl-desc">Description</label>
254
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 2;">
255
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="wl-desc">Description</label>
256
256
  <Input
257
257
  id="wl-desc"
258
258
  class="form-input"
@@ -262,7 +262,7 @@ function getPatternPlaceholder(type: string): string {
262
262
  />
263
263
  </div>
264
264
  </div>
265
- <div class="form-actions">
265
+ <div class="smrt-email-filter-manager__actions" data-smrt-part="actions">
266
266
  <Button variant="secondary" size="sm" class="cancel-btn" onclick={resetWhitelistForm} disabled={savingWhitelist}>Cancel</Button>
267
267
  <Button variant="primary" size="sm" class="save-btn" onclick={saveWhitelistEntry} disabled={savingWhitelist || !wlPattern.trim()}>
268
268
  {savingWhitelist ? 'Saving...' : 'Add'}
@@ -272,21 +272,21 @@ function getPatternPlaceholder(type: string): string {
272
272
  {/if}
273
273
 
274
274
  {#if whitelist.length === 0 && !showWhitelistForm}
275
- <p class="placeholder">{t(M['messages.email_filter_manager.no_whitelist_entries'])}</p>
275
+ <p class="smrt-email-filter-manager__empty" data-smrt-part="empty">{t(M['messages.email_filter_manager.no_whitelist_entries'])}</p>
276
276
  {:else}
277
- <div class="entries-list">
277
+ <div class="smrt-email-filter-manager__list" data-smrt-part="list">
278
278
  {#each whitelist as entry}
279
- <div class="entry-card allow">
280
- <div class="entry-main">
281
- <span class="type-badge" title={entry.type}>{getTypeIcon(entry.type)}</span>
282
- <div class="entry-info">
283
- <span class="entry-pattern">{entry.pattern}</span>
279
+ <div class="smrt-email-filter-manager__entry smrt-email-filter-manager__allow" data-smrt-part="item">
280
+ <div class="smrt-email-filter-manager__body" data-smrt-part="body">
281
+ <span class="smrt-email-filter-manager__icon" data-smrt-part="icon" title={entry.type}>{getTypeIcon(entry.type)}</span>
282
+ <div class="smrt-email-filter-manager__meta" data-smrt-part="meta">
283
+ <span class="smrt-email-filter-manager__pattern" data-smrt-part="value">{entry.pattern}</span>
284
284
  {#if entry.description}
285
- <span class="entry-description">{entry.description}</span>
285
+ <span class="smrt-email-filter-manager__entry-description" data-smrt-part="description">{entry.description}</span>
286
286
  {/if}
287
287
  </div>
288
288
  {#if entry.category}
289
- <span class="category-tag">{entry.category}</span>
289
+ <span class="smrt-email-filter-manager__category-tag" data-smrt-part="meta">{entry.category}</span>
290
290
  {/if}
291
291
  </div>
292
292
  {#if !isReadonly && onremovewhitelist}
@@ -306,9 +306,9 @@ function getPatternPlaceholder(type: string): string {
306
306
 
307
307
  <!-- Blacklist Section -->
308
308
  {:else}
309
- <div class="section-content">
310
- <div class="section-header-row">
311
- <div class="section-description">
309
+ <div class="smrt-email-filter-manager__content" data-smrt-part="body">
310
+ <div class="smrt-email-filter-manager__header" data-smrt-part="header">
311
+ <div class="smrt-email-filter-manager__description" data-smrt-part="description">
312
312
  {t(M['messages.email_filter_manager.blacklist_description'])}
313
313
  </div>
314
314
  {#if !isReadonly && onaddblacklist}
@@ -322,19 +322,19 @@ function getPatternPlaceholder(type: string): string {
322
322
  </div>
323
323
 
324
324
  {#if showBlacklistForm}
325
- <div class="entry-form">
326
- <div class="form-title">{t(M['messages.email_filter_manager.add_blacklist_entry'])}</div>
327
- <div class="form-row">
328
- <div class="form-field" style="flex: 0 0 120px;">
329
- <label class="form-label" for="bl-type">Type</label>
325
+ <div class="smrt-email-filter-manager__form" data-smrt-part="field">
326
+ <div class="smrt-email-filter-manager__form-title" data-smrt-part="title">{t(M['messages.email_filter_manager.add_blacklist_entry'])}</div>
327
+ <div class="smrt-email-filter-manager__row" data-smrt-part="row">
328
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 0 0 120px;">
329
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="bl-type">Type</label>
330
330
  <Select id="bl-type" class="form-select" bind:value={blType}>
331
331
  <option value="email">Email</option>
332
332
  <option value="domain">Domain</option>
333
333
  <option value="regex">Regex</option>
334
334
  </Select>
335
335
  </div>
336
- <div class="form-field" style="flex: 1;">
337
- <label class="form-label" for="bl-pattern">Pattern</label>
336
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 1;">
337
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="bl-pattern">Pattern</label>
338
338
  <Input
339
339
  id="bl-pattern"
340
340
  class="form-input"
@@ -344,9 +344,9 @@ function getPatternPlaceholder(type: string): string {
344
344
  />
345
345
  </div>
346
346
  </div>
347
- <div class="form-row">
348
- <div class="form-field" style="flex: 1;">
349
- <label class="form-label" for="bl-reason">Reason</label>
347
+ <div class="smrt-email-filter-manager__row" data-smrt-part="row">
348
+ <div class="smrt-email-filter-manager__field" data-smrt-part="field" style="flex: 1;">
349
+ <label class="smrt-email-filter-manager__label" data-smrt-part="label" for="bl-reason">Reason</label>
350
350
  <Input
351
351
  id="bl-reason"
352
352
  class="form-input"
@@ -355,15 +355,15 @@ function getPatternPlaceholder(type: string): string {
355
355
  placeholder={t(M['messages.email_filter_manager.reason_placeholder'])}
356
356
  />
357
357
  </div>
358
- <div class="form-field checkbox-field">
359
- <label class="form-label checkbox-label">
358
+ <div class="smrt-email-filter-manager__field smrt-email-filter-manager__checkbox-field" data-smrt-part="field">
359
+ <label class="smrt-email-filter-manager__label smrt-email-filter-manager__checkbox-label" data-smrt-part="label">
360
360
  <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
361
361
  <input type="checkbox" bind:checked={blAutoArchive} />
362
362
  Auto-archive
363
363
  </label>
364
364
  </div>
365
365
  </div>
366
- <div class="form-actions">
366
+ <div class="smrt-email-filter-manager__actions" data-smrt-part="actions">
367
367
  <Button variant="secondary" size="sm" class="cancel-btn" onclick={resetBlacklistForm} disabled={savingBlacklist}>Cancel</Button>
368
368
  <Button variant="primary" size="sm" class="save-btn" onclick={saveBlacklistEntry} disabled={savingBlacklist || !blPattern.trim()}>
369
369
  {savingBlacklist ? 'Saving...' : 'Add'}
@@ -373,21 +373,21 @@ function getPatternPlaceholder(type: string): string {
373
373
  {/if}
374
374
 
375
375
  {#if blacklist.length === 0 && !showBlacklistForm}
376
- <p class="placeholder">{t(M['messages.email_filter_manager.no_blacklist_entries'])}</p>
376
+ <p class="smrt-email-filter-manager__empty" data-smrt-part="empty">{t(M['messages.email_filter_manager.no_blacklist_entries'])}</p>
377
377
  {:else}
378
- <div class="entries-list">
378
+ <div class="smrt-email-filter-manager__list" data-smrt-part="list">
379
379
  {#each blacklist as entry}
380
- <div class="entry-card block">
381
- <div class="entry-main">
382
- <span class="type-badge" title={entry.type}>{getTypeIcon(entry.type)}</span>
383
- <div class="entry-info">
384
- <span class="entry-pattern">{entry.pattern}</span>
380
+ <div class="smrt-email-filter-manager__entry smrt-email-filter-manager__block" data-smrt-part="item">
381
+ <div class="smrt-email-filter-manager__body" data-smrt-part="body">
382
+ <span class="smrt-email-filter-manager__icon" data-smrt-part="icon" title={entry.type}>{getTypeIcon(entry.type)}</span>
383
+ <div class="smrt-email-filter-manager__meta" data-smrt-part="meta">
384
+ <span class="smrt-email-filter-manager__pattern" data-smrt-part="value">{entry.pattern}</span>
385
385
  {#if entry.reason}
386
- <span class="entry-description">{entry.reason}</span>
386
+ <span class="smrt-email-filter-manager__entry-description" data-smrt-part="description">{entry.reason}</span>
387
387
  {/if}
388
388
  </div>
389
389
  {#if entry.autoArchive}
390
- <span class="auto-archive-tag">auto-archive</span>
390
+ <span class="smrt-email-filter-manager__auto-archive-tag" data-smrt-part="meta">auto-archive</span>
391
391
  {/if}
392
392
  </div>
393
393
  {#if !isReadonly && onremoveblacklist}
@@ -409,304 +409,326 @@ function getPatternPlaceholder(type: string): string {
409
409
 
410
410
  <style>
411
411
  @layer smrt.reset, smrt.structure, smrt.theme;
412
- @layer smrt.theme {
413
- .email-filter-manager {
412
+ @layer smrt.structure {
413
+ .smrt-email-filter-manager__root {
414
414
  display: flex;
415
415
  flex-direction: column;
416
416
  gap: 0.75rem;
417
417
  }
418
-
419
- .section-toggle {
418
+ .smrt-email-filter-manager__toggle {
420
419
  display: flex;
421
420
  gap: 0.25rem;
422
- background: var(--smrt-color-surface-container);
423
421
  padding: 0.25rem;
424
- border-radius: var(--smrt-radius-md);
425
422
  }
426
-
427
423
  /*
428
- * The whitelist/blacklist toggle now renders through smrt-ui's <Button>,
429
- * driven by `variant={active ? 'primary' : 'ghost'}` (a plain class:active view
430
- * toggle, not an ARIA tablist). The variants own background/color/hover;
431
- * `.section-toggle :global(.section-btn)` only re-asserts the row layout
432
- * (flex/gap/radius) inside the pierced Button child scope (issue #1589).
433
- */
434
- .section-toggle :global(.section-btn) {
424
+ * The whitelist/blacklist toggle now renders through smrt-ui's <Button>,
425
+ * driven by `variant={active ? 'primary' : 'ghost'}` (a plain class:active view
426
+ * toggle, not an ARIA tablist). The variants own background/color/hover;
427
+ * `.smrt-email-filter-manager__toggle :global(.section-btn)` only re-asserts the row layout
428
+ * (flex/gap/radius) inside the pierced Button child scope (issue #1589).
429
+ */
430
+ .smrt-email-filter-manager__toggle :global(.section-btn) {
435
431
  display: flex;
436
432
  align-items: center;
437
433
  gap: 0.375rem;
438
- border-radius: var(--smrt-radius-md);
439
- font-size: var(--smrt-typography-label-large-size, 0.8125rem);
440
434
  }
441
-
442
- .count {
443
- font-size: var(--smrt-typography-label-small-size, 0.6875rem);
444
- background: var(--smrt-color-outline-variant);
435
+ .smrt-email-filter-manager__count {
445
436
  padding: 0.0625rem 0.375rem;
446
- border-radius: var(--smrt-radius-full);
447
437
  }
448
-
449
- .section-content {
438
+ .smrt-email-filter-manager__content {
450
439
  display: flex;
451
440
  flex-direction: column;
452
441
  gap: 0.75rem;
453
442
  }
454
-
455
- .section-header-row {
443
+ .smrt-email-filter-manager__header {
456
444
  display: flex;
457
445
  align-items: center;
458
446
  justify-content: space-between;
459
447
  gap: 1rem;
460
448
  }
461
-
462
- .section-description {
463
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
464
- color: var(--smrt-color-on-surface-variant);
465
- }
466
-
467
449
  /*
468
- * The add button now renders through smrt-ui's <Button variant="secondary">.
469
- * The variant owns the outlined-primary look + hover; `.section-header-row
470
- * :global(.add-btn)` only re-asserts radius and flex-shrink (issue #1589).
471
- */
472
- .section-header-row :global(.add-btn) {
473
- border-radius: var(--smrt-radius-md);
450
+ * The add button now renders through smrt-ui's <Button variant="secondary">.
451
+ * The variant owns the outlined-primary look + hover; `.smrt-email-filter-manager__header
452
+ * :global(.add-btn)` only re-asserts radius and flex-shrink (issue #1589).
453
+ */
454
+ .smrt-email-filter-manager__header :global(.add-btn) {
474
455
  flex-shrink: 0;
475
456
  }
476
-
477
- .entry-form {
478
- background: var(--smrt-color-surface-container);
479
- border: 1px solid var(--smrt-color-primary);
480
- border-radius: var(--smrt-radius-md);
457
+ .smrt-email-filter-manager__form {
481
458
  padding: 1rem;
482
459
  display: flex;
483
460
  flex-direction: column;
484
461
  gap: 0.75rem;
485
462
  }
486
-
487
- .form-title {
488
- font-size: var(--smrt-typography-title-small-size, 0.875rem);
489
- font-weight: var(--smrt-typography-weight-semibold, 600);
490
- color: var(--smrt-color-primary);
491
- }
492
-
493
- .form-row {
463
+ .smrt-email-filter-manager__row {
494
464
  display: flex;
495
465
  gap: 0.75rem;
496
466
  align-items: flex-end;
497
467
  }
498
-
499
- .form-field {
468
+ .smrt-email-filter-manager__field {
500
469
  display: flex;
501
470
  flex-direction: column;
502
471
  gap: 0.25rem;
503
472
  }
504
-
505
- .form-label {
506
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
507
- font-weight: var(--smrt-typography-weight-medium, 500);
508
- color: var(--smrt-color-on-surface-variant);
509
- }
510
-
511
- .optional {
512
- font-weight: var(--smrt-typography-weight-normal, 400);
513
- opacity: 0.7;
514
- }
515
-
516
473
  /*
517
- * The form fields now render through smrt-ui's <Input> / <Select>, which bring
518
- * their own tokenised border / background / focus / placeholder styling and
519
- * honor prefers-reduced-motion themselves. The old `.form-input` / `.form-select`
520
- * rules (and their :focus / ::placeholder overrides) are dropped as dead — they
521
- * targeted the raw elements that now live inside the primitive child scopes
522
- * (issue #1589).
523
- */
524
- .checkbox-field {
474
+ * The form fields now render through smrt-ui's <Input> / <Select>, which bring
475
+ * their own tokenised border / background / focus / placeholder styling and
476
+ * honor prefers-reduced-motion themselves. The old `.form-input` / `.form-select`
477
+ * rules (and their :focus / ::placeholder overrides) are dropped as dead — they
478
+ * targeted the raw elements that now live inside the primitive child scopes
479
+ * (issue #1589).
480
+ */
481
+ .smrt-email-filter-manager__checkbox-field {
525
482
  justify-content: flex-end;
526
483
  padding-bottom: 0.5rem;
527
484
  }
528
-
529
- .checkbox-label {
485
+ .smrt-email-filter-manager__checkbox-label {
530
486
  display: flex;
531
487
  align-items: center;
532
488
  gap: 0.5rem;
533
489
  cursor: pointer;
534
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
535
- color: var(--smrt-color-on-surface);
536
490
  white-space: nowrap;
537
491
  }
538
-
539
- .checkbox-label input[type="checkbox"] {
540
- accent-color: var(--smrt-color-primary);
541
- }
542
-
543
- .form-actions {
492
+ .smrt-email-filter-manager__actions {
544
493
  display: flex;
545
494
  justify-content: flex-end;
546
495
  gap: 0.5rem;
547
496
  padding-top: 0.25rem;
548
497
  }
549
-
550
- /*
551
- * Cancel/Save now use Button's secondary/primary variants (dead bespoke CSS
552
- * removed). `.form-actions :global(...)` only re-asserts the rounded radius;
553
- * Cancel's neutral outline override keeps it from picking up secondary's
554
- * primary border color (issue #1589).
555
- */
556
- .form-actions :global(.cancel-btn),
557
- .form-actions :global(.save-btn) {
558
- border-radius: var(--smrt-radius-md);
559
- }
560
-
561
- .form-actions :global(.cancel-btn) {
562
- border-color: var(--smrt-hairline-color);
563
- color: var(--smrt-color-on-surface-variant);
564
- }
565
-
566
- .entries-list {
498
+ .smrt-email-filter-manager__list {
567
499
  display: flex;
568
500
  flex-direction: column;
569
501
  gap: 0.5rem;
570
502
  }
571
-
572
- .entry-card {
503
+ .smrt-email-filter-manager__entry {
573
504
  display: flex;
574
505
  align-items: center;
575
506
  justify-content: space-between;
576
- background: var(--smrt-color-surface-container);
577
- border: var(--smrt-hairline);
578
- border-radius: var(--smrt-radius-md);
579
507
  padding: 0.75rem 1rem;
580
- transition: background 150ms ease, border-color 150ms ease;
581
- }
582
-
583
- .entry-card:hover {
584
- background: var(--smrt-color-surface-container-high);
585
- }
586
-
587
- .entry-card.allow:hover {
588
- border-color: var(--smrt-color-success);
589
- }
590
-
591
- .entry-card.block:hover {
592
- border-color: var(--smrt-color-error);
593
508
  }
594
-
595
- .entry-main {
509
+ .smrt-email-filter-manager__body {
596
510
  display: flex;
597
511
  align-items: center;
598
512
  gap: 0.75rem;
599
513
  flex: 1;
600
514
  min-width: 0;
601
515
  }
602
-
603
- .type-badge {
604
- font-size: var(--smrt-typography-label-small-size, 0.6875rem);
605
- font-weight: var(--smrt-typography-weight-semibold, 600);
606
- font-family: var(--smrt-font-family-mono, monospace);
607
- background: var(--smrt-color-surface);
608
- border: var(--smrt-hairline);
516
+ .smrt-email-filter-manager__icon {
609
517
  padding: 0.25rem 0.5rem;
610
- border-radius: var(--smrt-radius-sm);
611
518
  flex-shrink: 0;
612
519
  min-width: 2rem;
613
- text-align: center;
614
520
  }
615
-
616
- .entry-info {
521
+ .smrt-email-filter-manager__meta {
617
522
  display: flex;
618
523
  flex-direction: column;
619
524
  gap: 0.125rem;
620
525
  flex: 1;
621
526
  min-width: 0;
622
527
  }
623
-
624
- .entry-pattern {
625
- font-weight: var(--smrt-typography-weight-medium, 500);
626
- font-size: var(--smrt-typography-title-small-size, 0.875rem);
528
+ .smrt-email-filter-manager__pattern {
627
529
  overflow: hidden;
628
530
  text-overflow: ellipsis;
629
531
  white-space: nowrap;
630
532
  }
533
+ .smrt-email-filter-manager__category-tag {
534
+ padding: 0.125rem 0.5rem;
535
+ flex-shrink: 0;
536
+ }
537
+ .smrt-email-filter-manager__auto-archive-tag {
538
+ padding: 0.125rem 0.5rem;
539
+ flex-shrink: 0;
540
+ }
541
+ /*
542
+ * The remove button now renders through smrt-ui's <Button variant="ghost">.
543
+ * `.smrt-email-filter-manager__entry :global(.delete-btn)` anchors on the real `.smrt-email-filter-manager__entry` element
544
+ * and pierces the Button child scope to keep the round icon button and its
545
+ * red-on-hover affordance (issue #1589).
546
+ */
547
+ .smrt-email-filter-manager__entry :global(.delete-btn) {
548
+ padding: 0.125rem 0.5rem;
549
+ flex-shrink: 0;
550
+ }
551
+ .smrt-email-filter-manager__empty {
552
+ padding: 2rem;
553
+ }
554
+ .smrt-email-filter-manager__error {
555
+ display: flex;
556
+ align-items: center;
557
+ justify-content: space-between;
558
+ gap: 0.5rem;
559
+ padding: 0.5rem 0.75rem;
560
+ }
561
+ /*
562
+ * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
563
+ * `.smrt-email-filter-manager__error :global(.dismiss-btn)` anchors on the real `.smrt-email-filter-manager__error`
564
+ * element and pierces the Button child scope. `color: inherit` keeps the icon
565
+ * matching the error banner color (issue #1589).
566
+ */
567
+ .smrt-email-filter-manager__error :global(.dismiss-btn) {
568
+ padding: 0 0.25rem;
569
+ }
570
+ }
631
571
 
632
- .entry-description {
572
+ @layer smrt.theme {
573
+ .smrt-email-filter-manager__toggle {
574
+ background: var(--smrt-color-surface-container);
575
+ border-radius: var(--smrt-radius-md);
576
+ }
577
+ /*
578
+ * The whitelist/blacklist toggle now renders through smrt-ui's <Button>,
579
+ * driven by `variant={active ? 'primary' : 'ghost'}` (a plain class:active view
580
+ * toggle, not an ARIA tablist). The variants own background/color/hover;
581
+ * `.smrt-email-filter-manager__toggle :global(.section-btn)` only re-asserts the row layout
582
+ * (flex/gap/radius) inside the pierced Button child scope (issue #1589).
583
+ */
584
+ .smrt-email-filter-manager__toggle :global(.section-btn) {
585
+ border-radius: var(--smrt-radius-md);
586
+ font-size: var(--smrt-typography-label-large-size, 0.8125rem);
587
+ }
588
+ .smrt-email-filter-manager__count {
589
+ font-size: var(--smrt-typography-label-small-size, 0.6875rem);
590
+ background: var(--smrt-color-outline-variant);
591
+ border-radius: var(--smrt-radius-full);
592
+ }
593
+ .smrt-email-filter-manager__description {
594
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
595
+ color: var(--smrt-color-on-surface-variant);
596
+ }
597
+ /*
598
+ * The add button now renders through smrt-ui's <Button variant="secondary">.
599
+ * The variant owns the outlined-primary look + hover; `.smrt-email-filter-manager__header
600
+ * :global(.add-btn)` only re-asserts radius and flex-shrink (issue #1589).
601
+ */
602
+ .smrt-email-filter-manager__header :global(.add-btn) {
603
+ border-radius: var(--smrt-radius-md);
604
+ }
605
+ .smrt-email-filter-manager__form {
606
+ background: var(--smrt-color-surface-container);
607
+ border: 1px solid var(--smrt-color-primary);
608
+ border-radius: var(--smrt-radius-md);
609
+ }
610
+ .smrt-email-filter-manager__form-title {
611
+ font-size: var(--smrt-typography-title-small-size, 0.875rem);
612
+ font-weight: var(--smrt-typography-weight-semibold, 600);
613
+ color: var(--smrt-color-primary);
614
+ }
615
+ .smrt-email-filter-manager__label {
616
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
617
+ font-weight: var(--smrt-typography-weight-medium, 500);
618
+ color: var(--smrt-color-on-surface-variant);
619
+ }
620
+ .smrt-email-filter-manager__optional {
621
+ font-weight: var(--smrt-typography-weight-normal, 400);
622
+ opacity: 0.7;
623
+ }
624
+ .smrt-email-filter-manager__checkbox-label {
625
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
626
+ color: var(--smrt-color-on-surface);
627
+ }
628
+ .smrt-email-filter-manager__checkbox-label input[type="checkbox"] {
629
+ accent-color: var(--smrt-color-primary);
630
+ }
631
+ /*
632
+ * Cancel/Save now use Button's secondary/primary variants (dead bespoke CSS
633
+ * removed). `.smrt-email-filter-manager__actions :global(...)` only re-asserts the rounded radius;
634
+ * Cancel's neutral outline override keeps it from picking up secondary's
635
+ * primary border color (issue #1589).
636
+ */
637
+ .smrt-email-filter-manager__actions :global(.cancel-btn),
638
+ .smrt-email-filter-manager__actions :global(.save-btn) {
639
+ border-radius: var(--smrt-radius-md);
640
+ }
641
+ .smrt-email-filter-manager__actions :global(.cancel-btn) {
642
+ border-color: var(--smrt-hairline-color);
643
+ color: var(--smrt-color-on-surface-variant);
644
+ }
645
+ .smrt-email-filter-manager__entry {
646
+ background: var(--smrt-color-surface-container);
647
+ border: var(--smrt-hairline);
648
+ border-radius: var(--smrt-radius-md);
649
+ transition: background 150ms ease, border-color 150ms ease;
650
+ }
651
+ .smrt-email-filter-manager__entry:hover {
652
+ background: var(--smrt-color-surface-container-high);
653
+ }
654
+ .smrt-email-filter-manager__entry.smrt-email-filter-manager__allow:hover {
655
+ border-color: var(--smrt-color-success);
656
+ }
657
+ .smrt-email-filter-manager__entry.smrt-email-filter-manager__block:hover {
658
+ border-color: var(--smrt-color-error);
659
+ }
660
+ .smrt-email-filter-manager__icon {
661
+ font-size: var(--smrt-typography-label-small-size, 0.6875rem);
662
+ font-weight: var(--smrt-typography-weight-semibold, 600);
663
+ font-family: var(--smrt-font-family-mono, monospace);
664
+ background: var(--smrt-color-surface);
665
+ border: var(--smrt-hairline);
666
+ border-radius: var(--smrt-radius-sm);
667
+ text-align: center;
668
+ }
669
+ .smrt-email-filter-manager__pattern {
670
+ font-weight: var(--smrt-typography-weight-medium, 500);
671
+ font-size: var(--smrt-typography-title-small-size, 0.875rem);
672
+ }
673
+ .smrt-email-filter-manager__entry-description {
633
674
  font-size: var(--smrt-typography-body-small-size, 0.75rem);
634
675
  color: var(--smrt-color-on-surface-variant);
635
676
  }
636
-
637
- .category-tag {
677
+ .smrt-email-filter-manager__category-tag {
638
678
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
639
679
  color: var(--smrt-color-tertiary);
640
680
  background: var(--smrt-color-tertiary-container);
641
- padding: 0.125rem 0.5rem;
642
681
  border-radius: var(--smrt-radius-full);
643
- flex-shrink: 0;
644
682
  }
645
-
646
- .auto-archive-tag {
683
+ .smrt-email-filter-manager__auto-archive-tag {
647
684
  font-size: var(--smrt-typography-label-small-size, 0.6875rem);
648
685
  color: var(--smrt-color-warning);
649
686
  background: var(--smrt-color-warning-container);
650
- padding: 0.125rem 0.5rem;
651
687
  border-radius: var(--smrt-radius-full);
652
- flex-shrink: 0;
653
688
  }
654
-
655
689
  /*
656
- * The remove button now renders through smrt-ui's <Button variant="ghost">.
657
- * `.entry-card :global(.delete-btn)` anchors on the real `.entry-card` element
658
- * and pierces the Button child scope to keep the round icon button and its
659
- * red-on-hover affordance (issue #1589).
660
- */
661
- .entry-card :global(.delete-btn) {
690
+ * The remove button now renders through smrt-ui's <Button variant="ghost">.
691
+ * `.smrt-email-filter-manager__entry :global(.delete-btn)` anchors on the real `.smrt-email-filter-manager__entry` element
692
+ * and pierces the Button child scope to keep the round icon button and its
693
+ * red-on-hover affordance (issue #1589).
694
+ */
695
+ .smrt-email-filter-manager__entry :global(.delete-btn) {
662
696
  font-size: var(--smrt-typography-body-large-size, 1rem);
663
697
  line-height: 1;
664
- padding: 0.125rem 0.5rem;
665
698
  border-radius: var(--smrt-radius-full);
666
699
  border: 1px solid transparent;
667
700
  background: transparent;
668
701
  color: var(--smrt-color-on-surface-variant);
669
- flex-shrink: 0;
670
702
  }
671
-
672
- .entry-card :global(.delete-btn):hover {
703
+ .smrt-email-filter-manager__entry :global(.delete-btn):hover {
673
704
  background: var(--smrt-color-error-container);
674
705
  color: var(--smrt-color-error);
675
706
  border-color: var(--smrt-color-error);
676
707
  }
677
-
678
- .placeholder {
679
- padding: 2rem;
708
+ .smrt-email-filter-manager__empty {
680
709
  text-align: center;
681
710
  color: var(--smrt-color-on-surface-variant);
682
711
  background: var(--smrt-color-surface-container);
683
712
  border-radius: var(--smrt-radius-md);
684
713
  }
685
-
686
- .filter-error {
687
- display: flex;
688
- align-items: center;
689
- justify-content: space-between;
690
- gap: 0.5rem;
691
- padding: 0.5rem 0.75rem;
714
+ .smrt-email-filter-manager__error {
692
715
  border-radius: var(--smrt-radius-md);
693
716
  background: var(--smrt-color-error-container);
694
717
  color: var(--smrt-color-error);
695
718
  font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
696
719
  }
697
-
698
720
  /*
699
- * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
700
- * `.filter-error :global(.dismiss-btn)` anchors on the real `.filter-error`
701
- * element and pierces the Button child scope. `color: inherit` keeps the icon
702
- * matching the error banner color (issue #1589).
703
- */
704
- .filter-error :global(.dismiss-btn) {
721
+ * The dismiss button now renders through smrt-ui's <Button variant="ghost">.
722
+ * `.smrt-email-filter-manager__error :global(.dismiss-btn)` anchors on the real `.smrt-email-filter-manager__error`
723
+ * element and pierces the Button child scope. `color: inherit` keeps the icon
724
+ * matching the error banner color (issue #1589).
725
+ */
726
+ .smrt-email-filter-manager__error :global(.dismiss-btn) {
705
727
  background: transparent;
706
728
  border: none;
707
729
  font-size: var(--smrt-typography-body-large-size, 1rem);
708
730
  color: inherit;
709
- padding: 0 0.25rem;
710
731
  }
711
732
  }
733
+
712
734
  </style>