@happyvertical/smrt-marketing 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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/BudgetPacing.svelte +30 -33
- package/dist/svelte/components/CampaignDetail.svelte +63 -64
- package/dist/svelte/components/CampaignList.svelte +56 -50
- package/dist/svelte/components/ChannelMix.svelte +49 -56
- package/dist/svelte/components/MarketingDashboard.svelte +35 -36
- package/package.json +7 -7
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-marketing",
|
|
5
|
-
"packageVersion": "0.60.
|
|
5
|
+
"packageVersion": "0.60.18",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-marketing:CampaignChannelCollection": {
|
|
8
8
|
"name": "campaignchannelcollection",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-marketing",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.18",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "6e54c6596a29acd68bca06618bffa7f02023f94c18177ab833b8496a236e15c8",
|
|
11
|
+
"packageJson": "42d5bbf8be856af4e64cc31d2458d59a8de0894afc285141292dafa7755cf77a",
|
|
12
12
|
"agents": "00859623c99bd976607d6854bd23bd699255a28fb4d5229bdec099996cc14d31"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -19,18 +19,18 @@ const progress = $derived(pacing ? cappedBudgetProgress(pacing) : 0);
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
{#if !pacing}
|
|
22
|
-
<p class="
|
|
22
|
+
<p class="smrt-budget-pacing__empty" data-smrt-component="BudgetPacing" >No budget pacing is available.</p>
|
|
23
23
|
{:else}
|
|
24
24
|
<Card padding="sm" variant="outlined">
|
|
25
|
-
<section class="budget-
|
|
26
|
-
<header>
|
|
27
|
-
<h3>{label}</h3>
|
|
25
|
+
<section class="smrt-budget-pacing__root" data-smrt-part="body">
|
|
26
|
+
<header data-smrt-part="header">
|
|
27
|
+
<h3 data-smrt-part="title">{label}</h3>
|
|
28
28
|
<Badge variant={pacingStatusBadgeVariant(pacing.status)} size="sm">
|
|
29
29
|
{humanizeKey(pacing.status)}
|
|
30
30
|
</Badge>
|
|
31
31
|
</header>
|
|
32
32
|
|
|
33
|
-
<div class="
|
|
33
|
+
<div class="smrt-budget-pacing__progress-label" data-smrt-part="label">
|
|
34
34
|
<span>{formatCents(pacing.spendCents, pacing.currency, locale)} spent</span>
|
|
35
35
|
<span>
|
|
36
36
|
{pacing.budgetFraction === null
|
|
@@ -40,14 +40,14 @@ const progress = $derived(pacing ? cappedBudgetProgress(pacing) : 0);
|
|
|
40
40
|
</div>
|
|
41
41
|
<Progress value={progress} max={1} label={label} />
|
|
42
42
|
|
|
43
|
-
<dl class="
|
|
43
|
+
<dl class="smrt-budget-pacing__facts" data-smrt-part="meta">
|
|
44
44
|
<div>
|
|
45
45
|
<dt>Budget</dt>
|
|
46
46
|
<dd>{formatCents(pacing.budgetCents, pacing.currency, locale)}</dd>
|
|
47
47
|
</div>
|
|
48
48
|
<div>
|
|
49
49
|
<dt>Remaining</dt>
|
|
50
|
-
<dd class:
|
|
50
|
+
<dd class:smrt-budget-pacing__negative={pacing.remainingCents < 0} data-smrt-part="value">
|
|
51
51
|
{formatCents(pacing.remainingCents, pacing.currency, locale)}
|
|
52
52
|
</dd>
|
|
53
53
|
</div>
|
|
@@ -61,7 +61,7 @@ const progress = $derived(pacing ? cappedBudgetProgress(pacing) : 0);
|
|
|
61
61
|
</div>
|
|
62
62
|
<div>
|
|
63
63
|
<dt>Variance</dt>
|
|
64
|
-
<dd class:
|
|
64
|
+
<dd class:smrt-budget-pacing__negative={(pacing.varianceCents ?? 0) > 0} data-smrt-part="value">
|
|
65
65
|
{pacing.varianceCents === null
|
|
66
66
|
? '—'
|
|
67
67
|
: formatCents(pacing.varianceCents, pacing.currency, locale)}
|
|
@@ -74,62 +74,59 @@ const progress = $derived(pacing ? cappedBudgetProgress(pacing) : 0);
|
|
|
74
74
|
|
|
75
75
|
<style>
|
|
76
76
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
77
|
-
@layer smrt.
|
|
78
|
-
.budget-
|
|
77
|
+
@layer smrt.structure {
|
|
78
|
+
.smrt-budget-pacing__root {
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
gap: var(--smrt-spacing-2);
|
|
82
82
|
}
|
|
83
|
-
|
|
84
83
|
header,
|
|
85
|
-
.
|
|
84
|
+
.smrt-budget-pacing__progress-label {
|
|
86
85
|
display: flex;
|
|
87
86
|
align-items: center;
|
|
88
87
|
justify-content: space-between;
|
|
89
88
|
gap: var(--smrt-spacing-3);
|
|
90
89
|
}
|
|
91
|
-
|
|
92
90
|
h3,
|
|
93
|
-
.
|
|
91
|
+
.smrt-budget-pacing__empty {
|
|
94
92
|
margin: 0;
|
|
95
93
|
}
|
|
94
|
+
.smrt-budget-pacing__facts {
|
|
95
|
+
display: grid;
|
|
96
|
+
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
|
|
97
|
+
gap: var(--smrt-spacing-3);
|
|
98
|
+
margin: var(--smrt-spacing-3) 0 0;
|
|
99
|
+
}
|
|
100
|
+
.smrt-budget-pacing__facts dd {
|
|
101
|
+
margin: var(--smrt-spacing-1) 0 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
96
104
|
|
|
105
|
+
@layer smrt.theme {
|
|
97
106
|
h3 {
|
|
98
107
|
color: var(--smrt-color-on-surface);
|
|
99
108
|
font: var(--smrt-typography-title-medium-font);
|
|
100
109
|
}
|
|
101
|
-
|
|
102
|
-
.
|
|
103
|
-
.progress-label,
|
|
110
|
+
.smrt-budget-pacing__empty,
|
|
111
|
+
.smrt-budget-pacing__progress-label,
|
|
104
112
|
dt {
|
|
105
113
|
color: var(--smrt-color-on-surface-variant);
|
|
106
114
|
}
|
|
107
|
-
|
|
108
|
-
.empty {
|
|
115
|
+
.smrt-budget-pacing__empty {
|
|
109
116
|
font: var(--smrt-typography-body-medium-font);
|
|
110
117
|
}
|
|
111
|
-
|
|
112
|
-
.progress-label,
|
|
118
|
+
.smrt-budget-pacing__progress-label,
|
|
113
119
|
dt {
|
|
114
120
|
font: var(--smrt-typography-body-small-font);
|
|
115
121
|
}
|
|
116
|
-
|
|
117
|
-
.facts {
|
|
118
|
-
display: grid;
|
|
119
|
-
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
|
|
120
|
-
gap: var(--smrt-spacing-3);
|
|
121
|
-
margin: var(--smrt-spacing-3) 0 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.facts dd {
|
|
125
|
-
margin: var(--smrt-spacing-1) 0 0;
|
|
122
|
+
.smrt-budget-pacing__facts dd {
|
|
126
123
|
color: var(--smrt-color-on-surface);
|
|
127
124
|
font: var(--smrt-typography-body-medium-font);
|
|
128
125
|
font-weight: var(--smrt-typography-weight-medium);
|
|
129
126
|
}
|
|
130
|
-
|
|
131
|
-
.facts dd.negative {
|
|
127
|
+
.smrt-budget-pacing__facts dd.smrt-budget-pacing__negative {
|
|
132
128
|
color: var(--smrt-color-error);
|
|
133
129
|
}
|
|
134
130
|
}
|
|
131
|
+
|
|
135
132
|
</style>
|
|
@@ -35,22 +35,22 @@ let {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
{#if !campaign}
|
|
38
|
-
<p class="
|
|
38
|
+
<p class="smrt-campaign-detail__empty" data-smrt-component="CampaignDetail" >Select a campaign to see its details.</p>
|
|
39
39
|
{:else}
|
|
40
|
-
<article class="campaign-
|
|
40
|
+
<article class="smrt-campaign-detail__root" data-smrt-component="CampaignDetail">
|
|
41
41
|
<Card variant="outlined">
|
|
42
|
-
<header class="header">
|
|
42
|
+
<header class="smrt-campaign-detail__header" data-smrt-part="header">
|
|
43
43
|
<div>
|
|
44
|
-
<p class="
|
|
45
|
-
<h2>{campaign.name}</h2>
|
|
46
|
-
{#if campaign.description}<p class="description">{campaign.description}</p>{/if}
|
|
44
|
+
<p class="smrt-campaign-detail__eyebrow" data-smrt-part="label">{campaign.campaignKey}</p>
|
|
45
|
+
<h2 data-smrt-part="title">{campaign.name}</h2>
|
|
46
|
+
{#if campaign.description}<p class="smrt-campaign-detail__description" data-smrt-part="description">{campaign.description}</p>{/if}
|
|
47
47
|
</div>
|
|
48
48
|
<Badge variant={campaignStatusBadgeVariant(campaign.status)}>
|
|
49
49
|
{humanizeKey(campaign.status)}
|
|
50
50
|
</Badge>
|
|
51
51
|
</header>
|
|
52
52
|
|
|
53
|
-
<dl class="
|
|
53
|
+
<dl class="smrt-campaign-detail__facts" data-smrt-part="meta">
|
|
54
54
|
<div>
|
|
55
55
|
<dt>Objective</dt>
|
|
56
56
|
<dd>{campaign.objective ? humanizeKey(campaign.objective) : '—'}</dd>
|
|
@@ -80,14 +80,14 @@ let {
|
|
|
80
80
|
|
|
81
81
|
{#if channels.length > 0}
|
|
82
82
|
<Card padding="sm">
|
|
83
|
-
<section class="
|
|
83
|
+
<section class="smrt-campaign-detail__channels" data-smrt-part="group" aria-label="Campaign channels">
|
|
84
84
|
<h3>Executions</h3>
|
|
85
85
|
<ul>
|
|
86
86
|
{#each channels as channel (channel.id)}
|
|
87
|
-
<li>
|
|
87
|
+
<li data-smrt-part="row">
|
|
88
88
|
<span>
|
|
89
|
-
<span class="
|
|
90
|
-
<span class="
|
|
89
|
+
<span class="smrt-campaign-detail__channel-name" data-smrt-part="title">{channel.label ?? humanizeKey(channel.channelKind)}</span>
|
|
90
|
+
<span class="smrt-campaign-detail__channel-ref" data-smrt-part="meta">{channel.channelRef}</span>
|
|
91
91
|
</span>
|
|
92
92
|
<Badge variant={campaignStatusBadgeVariant(channel.status)} size="sm">
|
|
93
93
|
{humanizeKey(channel.status)}
|
|
@@ -107,79 +107,44 @@ let {
|
|
|
107
107
|
|
|
108
108
|
<style>
|
|
109
109
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
110
|
-
@layer smrt.
|
|
111
|
-
.campaign-
|
|
110
|
+
@layer smrt.structure {
|
|
111
|
+
.smrt-campaign-detail__root {
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-direction: column;
|
|
114
114
|
gap: var(--smrt-spacing-4);
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
.
|
|
118
|
-
.description,
|
|
119
|
-
.channel-ref {
|
|
120
|
-
color: var(--smrt-color-on-surface-variant);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.empty,
|
|
124
|
-
.description {
|
|
116
|
+
.smrt-campaign-detail__empty,
|
|
117
|
+
.smrt-campaign-detail__description {
|
|
125
118
|
margin: 0;
|
|
126
|
-
font: var(--smrt-typography-body-medium-font);
|
|
127
119
|
}
|
|
128
|
-
|
|
129
|
-
.header {
|
|
120
|
+
.smrt-campaign-detail__header {
|
|
130
121
|
display: flex;
|
|
131
122
|
align-items: flex-start;
|
|
132
123
|
justify-content: space-between;
|
|
133
124
|
gap: var(--smrt-spacing-4);
|
|
134
125
|
}
|
|
135
|
-
|
|
136
|
-
.eyebrow {
|
|
126
|
+
.smrt-campaign-detail__eyebrow {
|
|
137
127
|
margin: 0;
|
|
138
|
-
color: var(--smrt-color-on-surface-variant);
|
|
139
|
-
font: var(--smrt-typography-label-medium-font);
|
|
140
128
|
}
|
|
141
|
-
|
|
142
129
|
h2,
|
|
143
130
|
h3 {
|
|
144
131
|
margin: 0;
|
|
145
|
-
color: var(--smrt-color-on-surface);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
h2 {
|
|
149
|
-
font: var(--smrt-typography-headline-small-font);
|
|
150
132
|
}
|
|
151
|
-
|
|
152
|
-
h3 {
|
|
153
|
-
font: var(--smrt-typography-title-medium-font);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.description {
|
|
133
|
+
.smrt-campaign-detail__description {
|
|
157
134
|
margin-top: var(--smrt-spacing-2);
|
|
158
135
|
}
|
|
159
|
-
|
|
160
|
-
.facts {
|
|
136
|
+
.smrt-campaign-detail__facts {
|
|
161
137
|
display: grid;
|
|
162
138
|
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
163
139
|
gap: var(--smrt-spacing-4);
|
|
164
140
|
margin: var(--smrt-spacing-5) 0 0;
|
|
165
141
|
}
|
|
166
|
-
|
|
167
|
-
.facts dt {
|
|
168
|
-
color: var(--smrt-color-on-surface-variant);
|
|
169
|
-
font: var(--smrt-typography-label-medium-font);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.facts dd {
|
|
142
|
+
.smrt-campaign-detail__facts dd {
|
|
173
143
|
margin: var(--smrt-spacing-1) 0 0;
|
|
174
|
-
color: var(--smrt-color-on-surface);
|
|
175
|
-
font: var(--smrt-typography-body-large-font);
|
|
176
|
-
font-weight: var(--smrt-typography-weight-medium);
|
|
177
144
|
}
|
|
178
|
-
|
|
179
|
-
.channels h3 {
|
|
145
|
+
.smrt-campaign-detail__channels h3 {
|
|
180
146
|
margin-bottom: var(--smrt-spacing-3);
|
|
181
147
|
}
|
|
182
|
-
|
|
183
148
|
ul {
|
|
184
149
|
display: flex;
|
|
185
150
|
flex-direction: column;
|
|
@@ -188,29 +153,63 @@ let {
|
|
|
188
153
|
padding: 0;
|
|
189
154
|
list-style: none;
|
|
190
155
|
}
|
|
191
|
-
|
|
192
156
|
li {
|
|
193
157
|
display: flex;
|
|
194
158
|
align-items: center;
|
|
195
159
|
justify-content: space-between;
|
|
196
160
|
gap: var(--smrt-spacing-3);
|
|
197
161
|
padding-bottom: var(--smrt-spacing-2);
|
|
198
|
-
border-bottom: var(--smrt-hairline);
|
|
199
162
|
}
|
|
200
|
-
|
|
201
|
-
.
|
|
202
|
-
.channel-ref {
|
|
163
|
+
.smrt-campaign-detail__channel-name,
|
|
164
|
+
.smrt-campaign-detail__channel-ref {
|
|
203
165
|
display: block;
|
|
204
166
|
}
|
|
167
|
+
}
|
|
205
168
|
|
|
206
|
-
|
|
169
|
+
@layer smrt.theme {
|
|
170
|
+
.smrt-campaign-detail__empty,
|
|
171
|
+
.smrt-campaign-detail__description,
|
|
172
|
+
.smrt-campaign-detail__channel-ref {
|
|
173
|
+
color: var(--smrt-color-on-surface-variant);
|
|
174
|
+
}
|
|
175
|
+
.smrt-campaign-detail__empty,
|
|
176
|
+
.smrt-campaign-detail__description {
|
|
177
|
+
font: var(--smrt-typography-body-medium-font);
|
|
178
|
+
}
|
|
179
|
+
.smrt-campaign-detail__eyebrow {
|
|
180
|
+
color: var(--smrt-color-on-surface-variant);
|
|
181
|
+
font: var(--smrt-typography-label-medium-font);
|
|
182
|
+
}
|
|
183
|
+
h2,
|
|
184
|
+
h3 {
|
|
185
|
+
color: var(--smrt-color-on-surface);
|
|
186
|
+
}
|
|
187
|
+
h2 {
|
|
188
|
+
font: var(--smrt-typography-headline-small-font);
|
|
189
|
+
}
|
|
190
|
+
h3 {
|
|
191
|
+
font: var(--smrt-typography-title-medium-font);
|
|
192
|
+
}
|
|
193
|
+
.smrt-campaign-detail__facts dt {
|
|
194
|
+
color: var(--smrt-color-on-surface-variant);
|
|
195
|
+
font: var(--smrt-typography-label-medium-font);
|
|
196
|
+
}
|
|
197
|
+
.smrt-campaign-detail__facts dd {
|
|
198
|
+
color: var(--smrt-color-on-surface);
|
|
199
|
+
font: var(--smrt-typography-body-large-font);
|
|
200
|
+
font-weight: var(--smrt-typography-weight-medium);
|
|
201
|
+
}
|
|
202
|
+
li {
|
|
203
|
+
border-bottom: var(--smrt-hairline);
|
|
204
|
+
}
|
|
205
|
+
.smrt-campaign-detail__channel-name {
|
|
207
206
|
color: var(--smrt-color-on-surface);
|
|
208
207
|
font: var(--smrt-typography-body-medium-font);
|
|
209
208
|
font-weight: var(--smrt-typography-weight-medium);
|
|
210
209
|
}
|
|
211
|
-
|
|
212
|
-
.channel-ref {
|
|
210
|
+
.smrt-campaign-detail__channel-ref {
|
|
213
211
|
font: var(--smrt-typography-body-small-font);
|
|
214
212
|
}
|
|
215
213
|
}
|
|
214
|
+
|
|
216
215
|
</style>
|
|
@@ -18,29 +18,29 @@ export interface Props {
|
|
|
18
18
|
let { campaigns = [], selectedCampaignId, locale, onSelect }: Props = $props();
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<div class="campaign-
|
|
21
|
+
<div class="smrt-campaign-list__root" data-smrt-component="CampaignList">
|
|
22
22
|
{#if campaigns.length === 0}
|
|
23
|
-
<p class="empty">No campaigns yet.</p>
|
|
23
|
+
<p class="smrt-campaign-list__empty" data-smrt-part="empty">No campaigns yet.</p>
|
|
24
24
|
{:else}
|
|
25
25
|
<table>
|
|
26
|
-
<thead>
|
|
26
|
+
<thead data-smrt-part="header">
|
|
27
27
|
<tr>
|
|
28
28
|
<th scope="col">Campaign</th>
|
|
29
29
|
<th scope="col">Status</th>
|
|
30
30
|
<th scope="col">Schedule</th>
|
|
31
|
-
<th scope="col" class="
|
|
32
|
-
<th scope="col" class="
|
|
33
|
-
{#if onSelect}<th scope="col"><span class="
|
|
31
|
+
<th scope="col" class="smrt-campaign-list__number" data-smrt-part="cell">Spend / budget</th>
|
|
32
|
+
<th scope="col" class="smrt-campaign-list__number" data-smrt-part="cell">Channels</th>
|
|
33
|
+
{#if onSelect}<th scope="col"><span class="smrt-campaign-list__visually-hidden" data-smrt-part="label">Actions</span></th>{/if}
|
|
34
34
|
</tr>
|
|
35
35
|
</thead>
|
|
36
|
-
<tbody>
|
|
36
|
+
<tbody data-smrt-part="body">
|
|
37
37
|
{#each campaigns as campaign (campaign.id)}
|
|
38
|
-
<tr class:
|
|
38
|
+
<tr class:smrt-campaign-list__selected={campaign.id === selectedCampaignId} data-smrt-part="row">
|
|
39
39
|
<td>
|
|
40
|
-
<span class="
|
|
41
|
-
<span class="
|
|
40
|
+
<span class="smrt-campaign-list__name" data-smrt-part="title">{campaign.name}</span>
|
|
41
|
+
<span class="smrt-campaign-list__secondary" data-smrt-part="meta">{campaign.campaignKey}</span>
|
|
42
42
|
{#if campaign.objective}
|
|
43
|
-
<span class="
|
|
43
|
+
<span class="smrt-campaign-list__secondary" data-smrt-part="meta">{humanizeKey(campaign.objective)}</span>
|
|
44
44
|
{/if}
|
|
45
45
|
</td>
|
|
46
46
|
<td>
|
|
@@ -49,17 +49,17 @@ let { campaigns = [], selectedCampaignId, locale, onSelect }: Props = $props();
|
|
|
49
49
|
</Badge>
|
|
50
50
|
</td>
|
|
51
51
|
<td>{formatDateRange(campaign.startAt, campaign.endAt, locale)}</td>
|
|
52
|
-
<td class="
|
|
53
|
-
<span class="
|
|
52
|
+
<td class="smrt-campaign-list__number" data-smrt-part="cell">
|
|
53
|
+
<span class="smrt-campaign-list__name" data-smrt-part="title">
|
|
54
54
|
{formatCents(campaign.spendCents ?? 0, campaign.currency, locale)}
|
|
55
55
|
</span>
|
|
56
|
-
<span class="
|
|
56
|
+
<span class="smrt-campaign-list__secondary" data-smrt-part="meta">
|
|
57
57
|
of {formatCents(campaign.budgetCents, campaign.currency, locale)}
|
|
58
58
|
</span>
|
|
59
59
|
</td>
|
|
60
|
-
<td class="
|
|
60
|
+
<td class="smrt-campaign-list__number" data-smrt-part="cell">{campaign.channelCount ?? 0}</td>
|
|
61
61
|
{#if onSelect}
|
|
62
|
-
<td class="
|
|
62
|
+
<td class="smrt-campaign-list__action" data-smrt-part="actions">
|
|
63
63
|
<Button
|
|
64
64
|
variant={campaign.id === selectedCampaignId ? 'primary' : 'secondary'}
|
|
65
65
|
size="sm"
|
|
@@ -78,70 +78,76 @@ let { campaigns = [], selectedCampaignId, locale, onSelect }: Props = $props();
|
|
|
78
78
|
|
|
79
79
|
<style>
|
|
80
80
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
81
|
-
@layer smrt.
|
|
82
|
-
.campaign-
|
|
81
|
+
@layer smrt.structure {
|
|
82
|
+
.smrt-campaign-list__root {
|
|
83
83
|
width: 100%;
|
|
84
84
|
overflow-x: auto;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
.empty {
|
|
86
|
+
.smrt-campaign-list__empty {
|
|
88
87
|
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
table {
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
th,
|
|
93
|
+
td {
|
|
94
|
+
padding: var(--smrt-spacing-3);
|
|
95
|
+
}
|
|
96
|
+
th {
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
}
|
|
99
|
+
.smrt-campaign-list__name,
|
|
100
|
+
.smrt-campaign-list__secondary {
|
|
101
|
+
display: block;
|
|
102
|
+
}
|
|
103
|
+
.smrt-campaign-list__number,
|
|
104
|
+
.smrt-campaign-list__action {
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
}
|
|
107
|
+
.smrt-campaign-list__visually-hidden {
|
|
108
|
+
position: absolute;
|
|
109
|
+
width: 1px;
|
|
110
|
+
height: 1px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
clip: rect(0 0 0 0);
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@layer smrt.theme {
|
|
118
|
+
.smrt-campaign-list__empty {
|
|
89
119
|
color: var(--smrt-color-on-surface-variant);
|
|
90
120
|
font: var(--smrt-typography-body-medium-font);
|
|
91
121
|
}
|
|
92
|
-
|
|
93
122
|
table {
|
|
94
|
-
width: 100%;
|
|
95
123
|
border-collapse: collapse;
|
|
96
124
|
color: var(--smrt-color-on-surface);
|
|
97
125
|
font: var(--smrt-typography-body-medium-font);
|
|
98
126
|
}
|
|
99
|
-
|
|
100
127
|
th,
|
|
101
128
|
td {
|
|
102
|
-
padding: var(--smrt-spacing-3);
|
|
103
129
|
border-bottom: var(--smrt-hairline);
|
|
104
130
|
text-align: left;
|
|
105
131
|
vertical-align: top;
|
|
106
132
|
}
|
|
107
|
-
|
|
108
133
|
th {
|
|
109
134
|
background: var(--smrt-color-surface-container);
|
|
110
135
|
font-weight: var(--smrt-typography-weight-semibold);
|
|
111
|
-
white-space: nowrap;
|
|
112
136
|
}
|
|
113
|
-
|
|
114
|
-
tr.selected td {
|
|
137
|
+
tr.smrt-campaign-list__selected td {
|
|
115
138
|
background: var(--smrt-color-primary-container);
|
|
116
139
|
}
|
|
117
|
-
|
|
118
|
-
.name,
|
|
119
|
-
.secondary {
|
|
120
|
-
display: block;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.name {
|
|
140
|
+
.smrt-campaign-list__name {
|
|
124
141
|
font-weight: var(--smrt-typography-weight-medium);
|
|
125
142
|
}
|
|
126
|
-
|
|
127
|
-
.secondary {
|
|
143
|
+
.smrt-campaign-list__secondary {
|
|
128
144
|
color: var(--smrt-color-on-surface-variant);
|
|
129
145
|
font: var(--smrt-typography-body-small-font);
|
|
130
146
|
}
|
|
131
|
-
|
|
132
|
-
.
|
|
133
|
-
.action {
|
|
147
|
+
.smrt-campaign-list__number,
|
|
148
|
+
.smrt-campaign-list__action {
|
|
134
149
|
text-align: right;
|
|
135
|
-
white-space: nowrap;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.visually-hidden {
|
|
139
|
-
position: absolute;
|
|
140
|
-
width: 1px;
|
|
141
|
-
height: 1px;
|
|
142
|
-
overflow: hidden;
|
|
143
|
-
clip: rect(0 0 0 0);
|
|
144
|
-
white-space: nowrap;
|
|
145
150
|
}
|
|
146
151
|
}
|
|
152
|
+
|
|
147
153
|
</style>
|