@happyvertical/smrt-sales 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.
@@ -105,9 +105,9 @@ function handleAssign(leadId: string, event: Event) {
105
105
  }
106
106
  </script>
107
107
 
108
- <div class="sales-lead-list" data-smrt-component="LeadList">
109
- <nav class="inbox-controls" aria-label="Lead inbox filters">
110
- <div class="filters" role="group" aria-label="Filter leads">
108
+ <div class="smrt-lead-list__root" data-smrt-component="LeadList">
109
+ <nav class="smrt-lead-list__toolbar" data-smrt-part="actions" aria-label="Lead inbox filters">
110
+ <div class="smrt-lead-list__filters" data-smrt-part="filters" role="group" aria-label="Filter leads">
111
111
  {#each filters as filter (filter.value)}
112
112
  <Button
113
113
  variant="ghost"
@@ -116,11 +116,11 @@ function handleAssign(leadId: string, event: Event) {
116
116
  aria-pressed={statusFilter === filter.value}
117
117
  onclick={() => onStatusFilterChange?.(filter.value)}
118
118
  >
119
- {filter.label}<span class="count">{statusCounts[filter.value] ?? 0}</span>
119
+ {filter.label}<span class="smrt-lead-list__count" data-smrt-part="count">{statusCounts[filter.value] ?? 0}</span>
120
120
  </Button>
121
121
  {/each}
122
122
  </div>
123
- <label class="sort-control">Sort
123
+ <label class="smrt-lead-list__sort" data-smrt-part="field">Sort
124
124
  <Select value={sort} disabled={!onSortChange} onchange={(event) => onSortChange?.((event.currentTarget as HTMLSelectElement).value as LeadInboxSort)}>
125
125
  <option value="created">Recently received</option>
126
126
  <option value="next_action">Next action due</option>
@@ -129,10 +129,10 @@ function handleAssign(leadId: string, event: Event) {
129
129
  </label>
130
130
  </nav>
131
131
  {#if leads.length === 0}
132
- <p class="sales-lead-list__empty">No leads yet.</p>
132
+ <p class="smrt-lead-list__empty" data-smrt-part="empty">No leads yet.</p>
133
133
  {:else}
134
134
  <table>
135
- <thead>
135
+ <thead data-smrt-part="header">
136
136
  <tr>
137
137
  <th scope="col">Lead</th>
138
138
  <th scope="col">Contact</th>
@@ -140,16 +140,16 @@ function handleAssign(leadId: string, event: Event) {
140
140
  <th scope="col">Owner</th>
141
141
  <th scope="col">Status</th>
142
142
  <th scope="col">Next action</th>
143
- <th scope="col"><span class="visually-hidden">Actions</span></th>
143
+ <th scope="col"><span class="smrt-lead-list__visually-hidden" data-smrt-part="label">Actions</span></th>
144
144
  </tr>
145
145
  </thead>
146
- <tbody>
146
+ <tbody data-smrt-part="body">
147
147
  {#each leads as lead (lead.id)}
148
148
  {@const merged = lead.status === 'merged'}
149
- <tr class:merged class:selected={selectedLeadId === lead.id}>
149
+ <tr class:smrt-lead-list__merged={merged} class:smrt-lead-list__selected={selectedLeadId === lead.id} data-smrt-part="row">
150
150
  <td>
151
151
  {#if hrefForLead}
152
- <a class="lead-name" href={hrefForLead(lead.id)} onclick={() => onSelect?.(lead.id)} aria-current={selectedLeadId === lead.id ? 'page' : undefined}>{lead.name}</a>
152
+ <a class="smrt-lead-list__name" href={hrefForLead(lead.id)} onclick={() => onSelect?.(lead.id)} aria-current={selectedLeadId === lead.id ? 'page' : undefined} data-smrt-part="action">{lead.name}</a>
153
153
  {:else if onSelect}
154
154
  <Button
155
155
  class="lead-name select-lead"
@@ -161,29 +161,29 @@ function handleAssign(leadId: string, event: Event) {
161
161
  {lead.name}
162
162
  </Button>
163
163
  {:else}
164
- <span class="lead-name">{lead.name}</span>
164
+ <span class="smrt-lead-list__name" data-smrt-part="title">{lead.name}</span>
165
165
  {/if}
166
166
  {#if lead.organizationName}
167
- <span class="secondary">{lead.organizationName}</span>
167
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">{lead.organizationName}</span>
168
168
  {/if}
169
169
  {#if lead.receivedLabel || lead.createdAt}
170
- <span class="secondary">{lead.receivedLabel ?? `Received ${formatDate(lead.createdAt, locale)}`}</span>
170
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">{lead.receivedLabel ?? `Received ${formatDate(lead.createdAt, locale)}`}</span>
171
171
  {/if}
172
172
  {#if merged && lead.mergedIntoId}
173
- <span class="merged-note">
173
+ <span class="smrt-lead-list__merged-note" data-smrt-part="meta">
174
174
  merged into <code>{lead.mergedIntoId.slice(0, 8)}</code>
175
175
  </span>
176
176
  {/if}
177
177
  </td>
178
178
  <td>
179
179
  {#if lead.contactName}
180
- <span class="secondary">{lead.contactName}</span>
180
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">{lead.contactName}</span>
181
181
  {/if}
182
182
  {#if lead.email}
183
- <span class="secondary">{lead.email}</span>
183
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">{lead.email}</span>
184
184
  {/if}
185
185
  {#if lead.phone}
186
- <span class="secondary">{lead.phone}</span>
186
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">{lead.phone}</span>
187
187
  {/if}
188
188
  </td>
189
189
  <td>{lead.sourceLabel ?? '—'}</td>
@@ -211,11 +211,11 @@ function handleAssign(leadId: string, event: Event) {
211
211
  </td>
212
212
  <td>
213
213
  {#if lead.nextAction}
214
- <span class="next-action" class:overdue={isOverdue(lead.nextAction.dueAt)}>
214
+ <span class="smrt-lead-list__next-action" class:smrt-lead-list__overdue={isOverdue(lead.nextAction.dueAt)} data-smrt-part="description">
215
215
  {lead.nextAction.summary}
216
216
  </span>
217
217
  {#if lead.nextAction.dueAt}
218
- <span class="secondary">
218
+ <span class="smrt-lead-list__secondary" data-smrt-part="meta">
219
219
  due {formatDate(lead.nextAction.dueAt, locale)}
220
220
  </span>
221
221
  {/if}
@@ -223,7 +223,7 @@ function handleAssign(leadId: string, event: Event) {
223
223
  —
224
224
  {/if}
225
225
  </td>
226
- <td class="actions">
226
+ <td class="smrt-lead-list__actions" data-smrt-part="actions">
227
227
  {#if onQualify && canQualifyLead(lead.status)}
228
228
  <Button
229
229
  variant="secondary"
@@ -247,7 +247,7 @@ function handleAssign(leadId: string, event: Event) {
247
247
  </table>
248
248
  {/if}
249
249
  {#if total > pageSize || page > 1}
250
- <div class="pagination" aria-label="Lead list pagination">
250
+ <div class="smrt-lead-list__pagination" data-smrt-part="footer" aria-label="Lead list pagination">
251
251
  <Button variant="secondary" size="sm" disabled={busy || page <= 1} onclick={() => onPageChange?.(page - 1)}>Previous</Button>
252
252
  <span>Page {page} of {pageCount} · {total} leads</span>
253
253
  <Button variant="secondary" size="sm" disabled={busy || page >= pageCount} onclick={() => onPageChange?.(page + 1)}>Next</Button>
@@ -257,97 +257,157 @@ function handleAssign(leadId: string, event: Event) {
257
257
 
258
258
  <style>
259
259
  @layer smrt.reset, smrt.structure, smrt.theme;
260
- @layer smrt.theme {
261
- .sales-lead-list {
260
+ @layer smrt.structure {
261
+ .smrt-lead-list__root {
262
262
  width: 100%;
263
263
  overflow-x: auto;
264
264
  }
265
-
266
- .sales-lead-list__empty {
265
+ .smrt-lead-list__empty {
267
266
  margin: 0;
267
+ }
268
+ .smrt-lead-list__toolbar {
269
+ display: flex;
270
+ flex-wrap: wrap;
271
+ justify-content: space-between;
272
+ align-items: center;
273
+ gap: var(--smrt-spacing-3, 0.75rem);
274
+ margin-bottom: var(--smrt-spacing-3, 0.75rem);
275
+ }
276
+ .smrt-lead-list__filters {
277
+ display: flex;
278
+ flex-wrap: wrap;
279
+ gap: var(--smrt-spacing-1, 0.25rem);
280
+ }
281
+ .smrt-lead-list__filters :global(.filter-tab) {
282
+ padding: var(--smrt-spacing-1, 0.25rem) var(--smrt-spacing-2, 0.5rem);
283
+ cursor: pointer;
284
+ }
285
+ .smrt-lead-list__count {
286
+ margin-left: var(--smrt-spacing-1, 0.25rem);
287
+ }
288
+ .smrt-lead-list__sort {
289
+ display: flex;
290
+ align-items: center;
291
+ gap: var(--smrt-spacing-2, 0.5rem);
292
+ }
293
+ .smrt-lead-list__pagination {
294
+ display: flex;
295
+ align-items: center;
296
+ justify-content: flex-end;
297
+ gap: var(--smrt-spacing-3, 0.75rem);
298
+ padding-top: var(--smrt-spacing-3, 0.75rem);
299
+ }
300
+ table {
301
+ width: 100%;
302
+ }
303
+ th {
304
+ padding: var(--smrt-spacing-2, 0.5rem) var(--smrt-spacing-3, 0.75rem);
305
+ white-space: nowrap;
306
+ }
307
+ td {
308
+ padding: var(--smrt-spacing-2, 0.5rem) var(--smrt-spacing-3, 0.75rem);
309
+ }
310
+ .smrt-lead-list__name {
311
+ display: block;
312
+ }
313
+ :global(.select-lead) {
314
+ padding: 0;
315
+ cursor: pointer;
316
+ }
317
+ .smrt-lead-list__secondary {
318
+ display: block;
319
+ }
320
+ .smrt-lead-list__merged-note {
321
+ display: block;
322
+ }
323
+ .smrt-lead-list__next-action {
324
+ display: block;
325
+ }
326
+ .smrt-lead-list__actions {
327
+ white-space: nowrap;
328
+ }
329
+ .smrt-lead-list__visually-hidden {
330
+ position: absolute;
331
+ width: 1px;
332
+ height: 1px;
333
+ overflow: hidden;
334
+ clip: rect(0 0 0 0);
335
+ white-space: nowrap;
336
+ }
337
+ }
338
+
339
+ @layer smrt.theme {
340
+ .smrt-lead-list__empty {
268
341
  color: var(--smrt-color-on-surface-variant);
269
342
  font-style: italic;
270
343
  }
271
-
272
- .inbox-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--smrt-spacing-3, 0.75rem); margin-bottom: var(--smrt-spacing-3, 0.75rem); }
273
- .filters { display: flex; flex-wrap: wrap; gap: var(--smrt-spacing-1, 0.25rem); }
274
- .filters :global(.filter-tab) { border: var(--smrt-hairline); border-radius: var(--smrt-radius-sm, 0.25rem); padding: var(--smrt-spacing-1, 0.25rem) var(--smrt-spacing-2, 0.5rem); background: var(--smrt-color-surface); color: var(--smrt-color-on-surface); cursor: pointer; }
275
- .filters :global(.filter-tab.active) { background: var(--smrt-color-primary-container); border-color: var(--smrt-color-primary); }
276
- .count { margin-left: var(--smrt-spacing-1, 0.25rem); color: var(--smrt-color-on-surface-variant); }
277
- .sort-control { display: flex; align-items: center; gap: var(--smrt-spacing-2, 0.5rem); }
278
- .pagination { display: flex; align-items: center; justify-content: flex-end; gap: var(--smrt-spacing-3, 0.75rem); padding-top: var(--smrt-spacing-3, 0.75rem); }
279
-
344
+ .smrt-lead-list__filters :global(.filter-tab) {
345
+ border: var(--smrt-hairline);
346
+ border-radius: var(--smrt-radius-sm, 0.25rem);
347
+ background: var(--smrt-color-surface);
348
+ color: var(--smrt-color-on-surface);
349
+ }
350
+ .smrt-lead-list__filters :global(.filter-tab.active) {
351
+ background: var(--smrt-color-primary-container);
352
+ border-color: var(--smrt-color-primary);
353
+ }
354
+ .smrt-lead-list__count {
355
+ color: var(--smrt-color-on-surface-variant);
356
+ }
280
357
  table {
281
- width: 100%;
282
358
  border-collapse: collapse;
283
359
  font-size: var(--smrt-typography-body-medium-size, 0.875rem);
284
360
  }
285
-
286
361
  th {
287
- padding: var(--smrt-spacing-2, 0.5rem) var(--smrt-spacing-3, 0.75rem);
288
362
  text-align: left;
289
363
  font-weight: var(--smrt-typography-weight-semibold, 600);
290
364
  background: var(--smrt-color-surface-container);
291
365
  border-bottom: var(--smrt-hairline);
292
- white-space: nowrap;
293
366
  }
294
-
295
367
  td {
296
- padding: var(--smrt-spacing-2, 0.5rem) var(--smrt-spacing-3, 0.75rem);
297
368
  border-bottom: var(--smrt-hairline);
298
369
  vertical-align: top;
299
370
  }
300
-
301
- tr.merged td {
371
+ tr.smrt-lead-list__merged td {
302
372
  opacity: 0.65;
303
373
  }
304
-
305
- .lead-name {
306
- display: block;
374
+ .smrt-lead-list__name {
307
375
  font-weight: var(--smrt-typography-weight-medium, 500);
308
376
  }
309
- a.lead-name { color: inherit; text-decoration: none; }
310
- a.lead-name:hover, :global(.select-lead:hover) { text-decoration: underline; }
311
- :global(.select-lead) { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
312
- tr.selected td { background: var(--smrt-color-primary-container); }
313
-
314
- .secondary {
315
- display: block;
377
+ a.smrt-lead-list__name {
378
+ color: inherit;
379
+ text-decoration: none;
380
+ }
381
+ a.smrt-lead-list__name:hover, :global(.select-lead:hover) {
382
+ text-decoration: underline;
383
+ }
384
+ :global(.select-lead) {
385
+ border: 0;
386
+ background: none;
387
+ text-align: left;
388
+ color: inherit;
389
+ }
390
+ tr.smrt-lead-list__selected td {
391
+ background: var(--smrt-color-primary-container);
392
+ }
393
+ .smrt-lead-list__secondary {
316
394
  color: var(--smrt-color-on-surface-variant);
317
395
  font-size: var(--smrt-typography-body-small-size, 0.75rem);
318
396
  }
319
-
320
- .merged-note {
321
- display: block;
397
+ .smrt-lead-list__merged-note {
322
398
  color: var(--smrt-color-on-surface-variant);
323
399
  font-size: var(--smrt-typography-body-small-size, 0.75rem);
324
400
  }
325
-
326
- .merged-note code {
401
+ .smrt-lead-list__merged-note code {
327
402
  font-family: var(--smrt-font-family-mono, ui-monospace, monospace);
328
403
  }
329
-
330
- .next-action {
331
- display: block;
332
- }
333
-
334
- .next-action.overdue {
404
+ .smrt-lead-list__next-action.smrt-lead-list__overdue {
335
405
  color: var(--smrt-color-error);
336
406
  font-weight: var(--smrt-typography-weight-medium, 500);
337
407
  }
338
-
339
- .actions {
340
- white-space: nowrap;
408
+ .smrt-lead-list__actions {
341
409
  text-align: right;
342
410
  }
343
-
344
- .visually-hidden {
345
- position: absolute;
346
- width: 1px;
347
- height: 1px;
348
- overflow: hidden;
349
- clip: rect(0 0 0 0);
350
- white-space: nowrap;
351
- }
352
411
  }
412
+
353
413
  </style>
@@ -41,40 +41,41 @@ function stageNameOf(stageId: string | null): string {
41
41
  }
42
42
  </script>
43
43
 
44
- <div class="sales-opportunity-board" data-smrt-component="OpportunityBoard">
44
+ <div class="smrt-opportunity-board__root" data-smrt-component="OpportunityBoard">
45
45
  {#if columns.length === 0}
46
- <p class="sales-opportunity-board__empty">No pipeline stages configured.</p>
46
+ <p class="smrt-opportunity-board__empty" data-smrt-part="empty">No pipeline stages configured.</p>
47
47
  {:else}
48
- <div class="columns">
48
+ <div class="smrt-opportunity-board__columns" data-smrt-part="group">
49
49
  {#each columns as column (column.stage.id)}
50
50
  <section
51
- class="column"
52
- class:won={column.stage.isWon}
53
- class:lost={column.stage.isLost}
51
+ class="smrt-opportunity-board__column"
52
+ class:smrt-opportunity-board__won={column.stage.isWon}
53
+ class:smrt-opportunity-board__lost={column.stage.isLost}
54
54
  aria-label={column.stage.name}
55
+ data-smrt-part="group"
55
56
  >
56
- <h3 class="column__title">
57
+ <h3 class="smrt-opportunity-board__title" data-smrt-part="title">
57
58
  <span>{column.stage.name}</span>
58
- <span class="column__count">{column.opportunities.length}</span>
59
+ <span class="smrt-opportunity-board__count" data-smrt-part="count">{column.opportunities.length}</span>
59
60
  </h3>
60
- <ul class="column__cards">
61
+ <ul class="smrt-opportunity-board__list" data-smrt-part="list">
61
62
  {#each column.opportunities as opportunity (opportunity.id)}
62
63
  {@const neighbors = adjacentStageIds(stages, opportunity.stageId)}
63
64
  {@const movable = onMoveStage && opportunity.status === 'open'}
64
- <li class="card" class:card--won={opportunity.status === 'won'} class:card--lost={opportunity.status === 'lost'}>
65
- <span class="card__name">{opportunity.name}</span>
65
+ <li class="smrt-opportunity-board__card" class:smrt-opportunity-board__card-won={opportunity.status === 'won'} class:smrt-opportunity-board__card-lost={opportunity.status === 'lost'} data-smrt-part="item">
66
+ <span class="smrt-opportunity-board__name" data-smrt-part="title">{opportunity.name}</span>
66
67
  {#if opportunity.ownerName}
67
- <span class="card__owner">{opportunity.ownerName}</span>
68
+ <span class="smrt-opportunity-board__owner" data-smrt-part="author">{opportunity.ownerName}</span>
68
69
  {/if}
69
- <span class="card__value">
70
+ <span class="smrt-opportunity-board__value" data-smrt-part="value">
70
71
  {formatCents(opportunity.expectedValueCents, opportunity.currency, locale)}
71
72
  </span>
72
- <span class="card__meta">
73
+ <span class="smrt-opportunity-board__meta" data-smrt-part="meta">
73
74
  <Badge size="sm" variant="default">
74
75
  {formatPercent(opportunity.probability, locale)}
75
76
  </Badge>
76
77
  {#if movable}
77
- <span class="card__moves">
78
+ <span class="smrt-opportunity-board__actions" data-smrt-part="actions">
78
79
  {#if neighbors.prevStageId}
79
80
  <Button
80
81
  variant="ghost"
@@ -111,7 +112,7 @@ function stageNameOf(stageId: string | null): string {
111
112
  </li>
112
113
  {/each}
113
114
  {#if column.opportunities.length === 0}
114
- <li class="column__placeholder" aria-hidden="true">—</li>
115
+ <li class="smrt-opportunity-board__placeholder" data-smrt-part="placeholder" aria-hidden="true">—</li>
115
116
  {/if}
116
117
  </ul>
117
118
  </section>
@@ -122,57 +123,32 @@ function stageNameOf(stageId: string | null): string {
122
123
 
123
124
  <style>
124
125
  @layer smrt.reset, smrt.structure, smrt.theme;
125
- @layer smrt.theme {
126
- .sales-opportunity-board {
126
+ @layer smrt.structure {
127
+ .smrt-opportunity-board__root {
127
128
  width: 100%;
128
129
  overflow-x: auto;
129
130
  }
130
-
131
- .sales-opportunity-board__empty {
131
+ .smrt-opportunity-board__empty {
132
132
  margin: 0;
133
- color: var(--smrt-color-on-surface-variant);
134
- font-style: italic;
135
133
  }
136
-
137
- .columns {
134
+ .smrt-opportunity-board__columns {
138
135
  display: flex;
139
136
  gap: var(--smrt-spacing-3, 0.75rem);
140
137
  align-items: flex-start;
141
138
  }
142
-
143
- .column {
139
+ .smrt-opportunity-board__column {
144
140
  flex: 1 0 14rem;
145
141
  min-width: 14rem;
146
- background: var(--smrt-color-surface-container-low);
147
- border: var(--smrt-hairline);
148
- border-radius: var(--smrt-radius-md);
149
142
  padding: var(--smrt-spacing-2, 0.5rem);
150
143
  }
151
-
152
- .column.won {
153
- border-top: 3px solid var(--smrt-color-success);
154
- }
155
-
156
- .column.lost {
157
- border-top: 3px solid var(--smrt-color-error);
158
- }
159
-
160
- .column__title {
144
+ .smrt-opportunity-board__title {
161
145
  display: flex;
162
146
  align-items: center;
163
147
  justify-content: space-between;
164
148
  gap: var(--smrt-spacing-2, 0.5rem);
165
149
  margin: 0 0 var(--smrt-spacing-2, 0.5rem);
166
- font-size: var(--smrt-typography-title-small-size, 0.875rem);
167
- font-weight: var(--smrt-typography-weight-semibold, 600);
168
150
  }
169
-
170
- .column__count {
171
- color: var(--smrt-color-on-surface-variant);
172
- font-weight: var(--smrt-typography-weight-normal, 400);
173
- }
174
-
175
- .column__cards {
151
+ .smrt-opportunity-board__list {
176
152
  display: flex;
177
153
  flex-direction: column;
178
154
  gap: var(--smrt-spacing-2, 0.5rem);
@@ -180,54 +156,76 @@ function stageNameOf(stageId: string | null): string {
180
156
  padding: 0;
181
157
  list-style: none;
182
158
  }
183
-
184
- .column__placeholder {
185
- color: var(--smrt-color-on-surface-variant);
186
- text-align: center;
159
+ .smrt-opportunity-board__placeholder {
187
160
  padding: var(--smrt-spacing-2, 0.5rem);
188
161
  }
189
-
190
- .card {
162
+ .smrt-opportunity-board__card {
191
163
  display: flex;
192
164
  flex-direction: column;
193
165
  gap: var(--smrt-spacing-1, 0.25rem);
166
+ padding: var(--smrt-spacing-2, 0.5rem);
167
+ }
168
+ .smrt-opportunity-board__meta {
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: space-between;
172
+ gap: var(--smrt-spacing-2, 0.5rem);
173
+ }
174
+ .smrt-opportunity-board__actions {
175
+ display: inline-flex;
176
+ gap: var(--smrt-spacing-1, 0.25rem);
177
+ }
178
+ }
179
+
180
+ @layer smrt.theme {
181
+ .smrt-opportunity-board__empty {
182
+ color: var(--smrt-color-on-surface-variant);
183
+ font-style: italic;
184
+ }
185
+ .smrt-opportunity-board__column {
186
+ background: var(--smrt-color-surface-container-low);
187
+ border: var(--smrt-hairline);
188
+ border-radius: var(--smrt-radius-md);
189
+ }
190
+ .smrt-opportunity-board__column.smrt-opportunity-board__won {
191
+ border-top: 3px solid var(--smrt-color-success);
192
+ }
193
+ .smrt-opportunity-board__column.smrt-opportunity-board__lost {
194
+ border-top: 3px solid var(--smrt-color-error);
195
+ }
196
+ .smrt-opportunity-board__title {
197
+ font-size: var(--smrt-typography-title-small-size, 0.875rem);
198
+ font-weight: var(--smrt-typography-weight-semibold, 600);
199
+ }
200
+ .smrt-opportunity-board__count {
201
+ color: var(--smrt-color-on-surface-variant);
202
+ font-weight: var(--smrt-typography-weight-normal, 400);
203
+ }
204
+ .smrt-opportunity-board__placeholder {
205
+ color: var(--smrt-color-on-surface-variant);
206
+ text-align: center;
207
+ }
208
+ .smrt-opportunity-board__card {
194
209
  background: var(--smrt-color-surface);
195
210
  border: var(--smrt-hairline);
196
211
  border-radius: var(--smrt-radius-sm);
197
- padding: var(--smrt-spacing-2, 0.5rem);
198
212
  }
199
-
200
- .card--won {
213
+ .smrt-opportunity-board__card-won {
201
214
  border-color: var(--smrt-color-success);
202
215
  }
203
-
204
- .card--lost {
216
+ .smrt-opportunity-board__card-lost {
205
217
  border-color: var(--smrt-color-error);
206
218
  }
207
-
208
- .card__name {
219
+ .smrt-opportunity-board__name {
209
220
  font-weight: var(--smrt-typography-weight-medium, 500);
210
221
  }
211
-
212
- .card__owner {
222
+ .smrt-opportunity-board__owner {
213
223
  color: var(--smrt-color-on-surface-variant);
214
224
  font-size: var(--smrt-typography-body-small-size, 0.75rem);
215
225
  }
216
-
217
- .card__value {
226
+ .smrt-opportunity-board__value {
218
227
  font-weight: var(--smrt-typography-weight-semibold, 600);
219
228
  }
220
-
221
- .card__meta {
222
- display: flex;
223
- align-items: center;
224
- justify-content: space-between;
225
- gap: var(--smrt-spacing-2, 0.5rem);
226
- }
227
-
228
- .card__moves {
229
- display: inline-flex;
230
- gap: var(--smrt-spacing-1, 0.25rem);
231
- }
232
229
  }
230
+
233
231
  </style>