@happyvertical/smrt-analytics 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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-analytics",
5
- "packageVersion": "0.60.16",
5
+ "packageVersion": "0.60.18",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-analytics:AnalyticsDataStreamCollection": {
8
8
  "name": "analyticsdatastreamcollection",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-analytics",
6
- "packageVersion": "0.60.16",
6
+ "packageVersion": "0.60.18",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "7ba8428f44eef071644123286a775c04d3a81aed2d9c243f53460aea6b81e277",
11
- "packageJson": "77d7985b012d75b03e5a0a6ec5b5d9f4bc8a06a7a6c61412d033452ae833d441",
10
+ "manifest": "996f6b02ac345a5df53db0e7bc43e2bd9f67a5dbe688e278c249dfafc66d8ec9",
11
+ "packageJson": "e8c9fa148f3b23322ee1de8ace7da212f0388f1dcf743c7b629850db7c445508",
12
12
  "agents": "2ea3b0b6a66a546e17c63f8131208ad48870c289dfa39e5f3fda7be17395e3e4",
13
13
  "moduleDoc:agents/browser.md": "af729304f8ffe8106261665b23f7bbeedcf64fdb08a46f22df1f0bea100ab21b"
14
14
  },
@@ -15,7 +15,7 @@ const { stats }: Props = $props();
15
15
  </script>
16
16
 
17
17
  {#if stats}
18
- <div class="analytics-summary" data-smrt-component="AnalyticsSummary">
18
+ <div class="smrt-analytics-summary__root" data-smrt-component="AnalyticsSummary">
19
19
  <StatCard
20
20
  label="Pageviews Today"
21
21
  value={stats.todayPageviews.toLocaleString()}
@@ -38,30 +38,34 @@ const { stats }: Props = $props();
38
38
  />
39
39
  </div>
40
40
  {:else}
41
- <div class="analytics-empty" data-smrt-component="AnalyticsSummary">
41
+ <div class="smrt-analytics-summary__empty" data-smrt-component="AnalyticsSummary" >
42
42
  <p>{t(M['analytics.analytics_summary.empty'])}</p>
43
43
  </div>
44
44
  {/if}
45
45
 
46
46
  <style>
47
47
  @layer smrt.reset, smrt.structure, smrt.theme;
48
- @layer smrt.theme {
49
- .analytics-summary {
50
- display: grid;
51
- grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
52
- gap: 1rem;
53
- }
54
-
55
- .analytics-empty {
56
- text-align: center;
57
- padding: 2rem;
58
- color: var(--smrt-color-on-surface-variant);
59
- background: var(--smrt-color-surface-container);
60
- border-radius: 0.5rem;
61
- }
48
+ @layer smrt.structure {
49
+ .smrt-analytics-summary__root {
50
+ display: grid;
51
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
52
+ gap: 1rem;
53
+ }
54
+ .smrt-analytics-summary__empty {
55
+ padding: 2rem;
56
+ }
57
+ .smrt-analytics-summary__empty p {
58
+ margin: 0;
59
+ }
60
+ }
62
61
 
63
- .analytics-empty p {
64
- margin: 0;
65
- }
62
+ @layer smrt.theme {
63
+ .smrt-analytics-summary__empty {
64
+ text-align: center;
65
+ color: var(--smrt-color-on-surface-variant);
66
+ background: var(--smrt-color-surface-container);
67
+ border-radius: 0.5rem;
68
+ }
66
69
  }
70
+
67
71
  </style>
@@ -31,19 +31,19 @@ function formatTimestamp(ts: string): string {
31
31
  }
32
32
 
33
33
  function statusClass(status: string): string {
34
- if (status === 'sent') return 'status-sent';
35
- if (status === 'failed') return 'status-failed';
36
- return 'status-pending';
34
+ if (status === 'sent') return 'smrt-events-table__status-sent';
35
+ if (status === 'failed') return 'smrt-events-table__status-failed';
36
+ return 'smrt-events-table__status-pending';
37
37
  }
38
38
  </script>
39
39
 
40
- <div class="events-table-wrapper" data-smrt-component="EventsTable">
40
+ <div class="smrt-events-table__root" data-smrt-component="EventsTable">
41
41
  {#if displayEvents.length === 0}
42
- <p class="events-empty">{t(M['analytics.events_table.empty'])}</p>
42
+ <p class="smrt-events-table__empty" data-smrt-part="empty">{t(M['analytics.events_table.empty'])}</p>
43
43
  {:else}
44
- <table class="events-table">
45
- <caption class="events-caption">{t(M['analytics.events_table.caption'])}</caption>
46
- <thead>
44
+ <table class="smrt-events-table__table" data-smrt-part="table">
45
+ <caption class="smrt-events-table__caption" data-smrt-part="caption">{t(M['analytics.events_table.caption'])}</caption>
46
+ <thead data-smrt-part="header">
47
47
  <tr>
48
48
  <th scope="col">Event</th>
49
49
  <th scope="col">Page</th>
@@ -52,129 +52,137 @@ function statusClass(status: string): string {
52
52
  <th scope="col">Status</th>
53
53
  </tr>
54
54
  </thead>
55
- <tbody>
55
+ <tbody data-smrt-part="body">
56
56
  {#each displayEvents as event (event.id)}
57
- <tr>
58
- <td class="event-name">{event.eventName}</td>
59
- <td class="event-page">{event.pagePath ?? '-'}</td>
60
- <td class="event-client" title={event.clientId}>{(event.clientId ?? '').slice(0, 8)}</td>
61
- <td class="event-time">{formatTimestamp(event.eventTimestamp)}</td>
62
- <td><span class="status-pill {statusClass(event.status)}">{event.status}</span></td>
57
+ <tr data-smrt-part="row">
58
+ <td class="smrt-events-table__event-name" data-smrt-part="cell">{event.eventName}</td>
59
+ <td class="smrt-events-table__event-page" data-smrt-part="cell">{event.pagePath ?? '-'}</td>
60
+ <td class="smrt-events-table__event-client" title={event.clientId} data-smrt-part="cell">{(event.clientId ?? '').slice(0, 8)}</td>
61
+ <td class="smrt-events-table__event-time" data-smrt-part="cell">{formatTimestamp(event.eventTimestamp)}</td>
62
+ <td><span class="smrt-events-table__status-pill {statusClass(event.status)}" data-smrt-part="badge">{event.status}</span></td>
63
63
  </tr>
64
64
  {/each}
65
65
  </tbody>
66
66
  </table>
67
67
  {#if events.length > maxRows}
68
- <p class="events-overflow">{t(M['analytics.events_table.showing'], { maxRows, total: events.length })}</p>
68
+ <p class="smrt-events-table__overflow" data-smrt-part="footer">{t(M['analytics.events_table.showing'], { maxRows, total: events.length })}</p>
69
69
  {/if}
70
70
  {/if}
71
71
  </div>
72
72
 
73
73
  <style>
74
74
  @layer smrt.reset, smrt.structure, smrt.theme;
75
- @layer smrt.theme {
76
- .events-table-wrapper {
77
- overflow-x: auto;
78
- }
79
-
80
- .events-table {
81
- width: 100%;
82
- border-collapse: collapse;
83
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
84
- }
85
-
86
- /* Visually hidden but available to assistive tech (table accessible name). */
87
- .events-caption {
88
- position: absolute;
89
- width: 1px;
90
- height: 1px;
91
- padding: 0;
92
- margin: -1px;
93
- overflow: hidden;
94
- clip: rect(0, 0, 0, 0);
95
- white-space: nowrap;
96
- border: 0;
97
- }
98
-
99
- .events-table th {
100
- text-align: left;
101
- padding: 0.5rem 0.75rem;
102
- font-weight: var(--smrt-typography-weight-semibold, 600);
103
- color: var(--smrt-color-on-surface-variant);
104
- border-bottom: 2px solid var(--smrt-color-outline-variant);
105
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
106
- text-transform: uppercase;
107
- letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
108
- }
109
-
110
- .events-table td {
111
- padding: 0.5rem 0.75rem;
112
- border-bottom: var(--smrt-hairline);
113
- color: var(--smrt-color-on-surface);
114
- }
115
-
116
- .events-table tbody tr:hover {
117
- background: var(--smrt-color-surface-container);
118
- }
119
-
120
- .event-name {
121
- font-weight: var(--smrt-typography-weight-medium, 500);
122
- }
123
-
124
- .event-page {
125
- max-width: 200px;
126
- overflow: hidden;
127
- text-overflow: ellipsis;
128
- white-space: nowrap;
129
- color: var(--smrt-color-on-surface-variant);
130
- }
131
-
132
- .event-client {
133
- font-family: var(--smrt-font-family-mono, monospace);
134
- font-size: var(--smrt-typography-body-small-size, 0.75rem);
135
- color: var(--smrt-color-on-surface-variant);
136
- }
137
-
138
- .event-time {
139
- white-space: nowrap;
140
- color: var(--smrt-color-on-surface-variant);
141
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
142
- }
143
-
144
- .status-pill {
145
- display: inline-block;
146
- padding: 0.125rem 0.5rem;
147
- border-radius: var(--smrt-radius-full);
148
- font-size: var(--smrt-typography-label-small-size, 0.6875rem);
149
- font-weight: var(--smrt-typography-weight-medium, 500);
150
- }
151
-
152
- .status-sent {
153
- background: var(--smrt-color-success-container);
154
- color: var(--smrt-color-on-success-container);
155
- }
156
-
157
- .status-failed {
158
- background: var(--smrt-color-error-container);
159
- color: var(--smrt-color-on-error-container);
160
- }
161
-
162
- .status-pending {
163
- background: var(--smrt-color-warning-container);
164
- color: var(--smrt-color-on-warning-container);
165
- }
166
-
167
- .events-empty {
168
- text-align: center;
169
- padding: 2rem;
170
- color: var(--smrt-color-on-surface-variant);
171
- }
75
+ @layer smrt.structure {
76
+ .smrt-events-table__root {
77
+ overflow-x: auto;
78
+ }
79
+ .smrt-events-table__table {
80
+ width: 100%;
81
+ }
82
+ /* Visually hidden but available to assistive tech (table accessible name). */
83
+ .smrt-events-table__caption {
84
+ position: absolute;
85
+ width: 1px;
86
+ height: 1px;
87
+ padding: 0;
88
+ margin: -1px;
89
+ overflow: hidden;
90
+ clip: rect(0, 0, 0, 0);
91
+ white-space: nowrap;
92
+ }
93
+ .smrt-events-table__table th {
94
+ padding: 0.5rem 0.75rem;
95
+ }
96
+ .smrt-events-table__table td {
97
+ padding: 0.5rem 0.75rem;
98
+ }
99
+ .smrt-events-table__event-page {
100
+ max-width: 200px;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ white-space: nowrap;
104
+ }
105
+ .smrt-events-table__event-time {
106
+ white-space: nowrap;
107
+ }
108
+ .smrt-events-table__status-pill {
109
+ display: inline-block;
110
+ padding: 0.125rem 0.5rem;
111
+ }
112
+ .smrt-events-table__empty {
113
+ padding: 2rem;
114
+ }
115
+ .smrt-events-table__overflow {
116
+ padding: 0.5rem;
117
+ }
118
+ }
172
119
 
173
- .events-overflow {
174
- text-align: center;
175
- padding: 0.5rem;
176
- color: var(--smrt-color-on-surface-variant);
177
- font-size: var(--smrt-typography-body-small-size, 0.75rem);
178
- }
120
+ @layer smrt.theme {
121
+ .smrt-events-table__table {
122
+ border-collapse: collapse;
123
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
124
+ }
125
+ /* Visually hidden but available to assistive tech (table accessible name). */
126
+ .smrt-events-table__caption {
127
+ border: 0;
128
+ }
129
+ .smrt-events-table__table th {
130
+ text-align: left;
131
+ font-weight: var(--smrt-typography-weight-semibold, 600);
132
+ color: var(--smrt-color-on-surface-variant);
133
+ border-bottom: 2px solid var(--smrt-color-outline-variant);
134
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
135
+ text-transform: uppercase;
136
+ letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
137
+ }
138
+ .smrt-events-table__table td {
139
+ border-bottom: var(--smrt-hairline);
140
+ color: var(--smrt-color-on-surface);
141
+ }
142
+ .smrt-events-table__table tbody tr:hover {
143
+ background: var(--smrt-color-surface-container);
144
+ }
145
+ .smrt-events-table__event-name {
146
+ font-weight: var(--smrt-typography-weight-medium, 500);
147
+ }
148
+ .smrt-events-table__event-page {
149
+ color: var(--smrt-color-on-surface-variant);
150
+ }
151
+ .smrt-events-table__event-client {
152
+ font-family: var(--smrt-font-family-mono, monospace);
153
+ font-size: var(--smrt-typography-body-small-size, 0.75rem);
154
+ color: var(--smrt-color-on-surface-variant);
155
+ }
156
+ .smrt-events-table__event-time {
157
+ color: var(--smrt-color-on-surface-variant);
158
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
159
+ }
160
+ .smrt-events-table__status-pill {
161
+ border-radius: var(--smrt-radius-full);
162
+ font-size: var(--smrt-typography-label-small-size, 0.6875rem);
163
+ font-weight: var(--smrt-typography-weight-medium, 500);
164
+ }
165
+ .smrt-events-table__status-sent {
166
+ background: var(--smrt-color-success-container);
167
+ color: var(--smrt-color-on-success-container);
168
+ }
169
+ .smrt-events-table__status-failed {
170
+ background: var(--smrt-color-error-container);
171
+ color: var(--smrt-color-on-error-container);
172
+ }
173
+ .smrt-events-table__status-pending {
174
+ background: var(--smrt-color-warning-container);
175
+ color: var(--smrt-color-on-warning-container);
176
+ }
177
+ .smrt-events-table__empty {
178
+ text-align: center;
179
+ color: var(--smrt-color-on-surface-variant);
180
+ }
181
+ .smrt-events-table__overflow {
182
+ text-align: center;
183
+ color: var(--smrt-color-on-surface-variant);
184
+ font-size: var(--smrt-typography-body-small-size, 0.75rem);
185
+ }
179
186
  }
187
+
180
188
  </style>
@@ -47,102 +47,109 @@ const lastSyncFormatted = $derived.by(() => {
47
47
  });
48
48
  </script>
49
49
 
50
- <div class="property-info" data-smrt-component="PropertyInfo">
51
- <div class="property-header">
50
+ <div class="smrt-property-info__root" data-smrt-component="PropertyInfo">
51
+ <div class="smrt-property-info__header" data-smrt-part="header">
52
52
  <h3>{t(M['analytics.property_info.title'])}</h3>
53
53
  <PropertyStatusBadge {status} />
54
54
  </div>
55
55
 
56
56
  {#if propertyId}
57
- <dl class="property-details">
58
- <div class="detail-row">
57
+ <dl class="smrt-property-info__details" data-smrt-part="body">
58
+ <div class="smrt-property-info__row" data-smrt-part="row">
59
59
  <dt>Provider</dt>
60
60
  <dd>{providerLabel}</dd>
61
61
  </div>
62
62
  {#if measurementId}
63
- <div class="detail-row">
63
+ <div class="smrt-property-info__row" data-smrt-part="row">
64
64
  <dt>{t(M['analytics.property_info.measurement_id'])}</dt>
65
65
  <dd><code>{measurementId}</code></dd>
66
66
  </div>
67
67
  {/if}
68
68
  {#if siteDomain}
69
- <div class="detail-row">
69
+ <div class="smrt-property-info__row" data-smrt-part="row">
70
70
  <dt>Domain</dt>
71
71
  <dd>{siteDomain}</dd>
72
72
  </div>
73
73
  {/if}
74
- <div class="detail-row">
74
+ <div class="smrt-property-info__row" data-smrt-part="row">
75
75
  <dt>{t(M['analytics.property_info.last_synced'])}</dt>
76
76
  <dd>{lastSyncFormatted}</dd>
77
77
  </div>
78
78
  </dl>
79
79
  {:else}
80
- <p class="no-property">{t(M['analytics.property_info.no_property'])}</p>
80
+ <p class="smrt-property-info__empty" data-smrt-part="empty">{t(M['analytics.property_info.no_property'])}</p>
81
81
  {/if}
82
82
  </div>
83
83
 
84
84
  <style>
85
85
  @layer smrt.reset, smrt.structure, smrt.theme;
86
- @layer smrt.theme {
87
- .property-info {
88
- padding: 1rem;
89
- background: var(--smrt-color-surface);
90
- border: var(--smrt-hairline);
91
- border-radius: 0.5rem;
92
- }
93
-
94
- .property-header {
95
- display: flex;
96
- align-items: center;
97
- justify-content: space-between;
98
- margin-bottom: 0.75rem;
99
- }
100
-
101
- .property-header h3 {
102
- margin: 0;
103
- font-size: var(--smrt-typography-title-medium-size, 1rem);
104
- font-weight: var(--smrt-typography-weight-semibold, 600);
105
- }
106
-
107
- .property-details {
108
- margin: 0;
109
- }
110
-
111
- .detail-row {
112
- display: flex;
113
- justify-content: space-between;
114
- padding: 0.375rem 0;
115
- border-bottom: var(--smrt-hairline);
116
- }
117
-
118
- .detail-row:last-child {
119
- border-bottom: none;
120
- }
121
-
122
- dt {
123
- font-size: var(--smrt-typography-label-large-size, 0.8125rem);
124
- color: var(--smrt-color-on-surface-variant);
125
- }
126
-
127
- dd {
128
- margin: 0;
129
- font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
130
- font-weight: var(--smrt-typography-weight-medium, 500);
131
- color: var(--smrt-color-on-surface);
132
- }
133
-
134
- code {
135
- font-family: var(--smrt-font-family-mono, monospace);
136
- font-size: var(--smrt-typography-body-small-size, 0.75rem);
137
- padding: 0.125rem 0.25rem;
138
- background: var(--smrt-color-surface-container);
139
- border-radius: 0.25rem;
140
- }
86
+ @layer smrt.structure {
87
+ .smrt-property-info__root {
88
+ padding: 1rem;
89
+ }
90
+ .smrt-property-info__header {
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ margin-bottom: 0.75rem;
95
+ }
96
+ .smrt-property-info__header h3 {
97
+ margin: 0;
98
+ }
99
+ .smrt-property-info__details {
100
+ margin: 0;
101
+ }
102
+ .smrt-property-info__row {
103
+ display: flex;
104
+ justify-content: space-between;
105
+ padding: 0.375rem 0;
106
+ }
107
+ dd {
108
+ margin: 0;
109
+ }
110
+ code {
111
+ padding: 0.125rem 0.25rem;
112
+ }
113
+ .smrt-property-info__empty {
114
+ margin: 0;
115
+ }
116
+ }
141
117
 
142
- .no-property {
143
- margin: 0;
144
- color: var(--smrt-color-on-surface-variant);
145
- font-size: var(--smrt-typography-body-medium-size, 0.875rem);
146
- }
118
+ @layer smrt.theme {
119
+ .smrt-property-info__root {
120
+ background: var(--smrt-color-surface);
121
+ border: var(--smrt-hairline);
122
+ border-radius: 0.5rem;
123
+ }
124
+ .smrt-property-info__header h3 {
125
+ font-size: var(--smrt-typography-title-medium-size, 1rem);
126
+ font-weight: var(--smrt-typography-weight-semibold, 600);
127
+ }
128
+ .smrt-property-info__row {
129
+ border-bottom: var(--smrt-hairline);
130
+ }
131
+ .smrt-property-info__row:last-child {
132
+ border-bottom: none;
133
+ }
134
+ dt {
135
+ font-size: var(--smrt-typography-label-large-size, 0.8125rem);
136
+ color: var(--smrt-color-on-surface-variant);
137
+ }
138
+ dd {
139
+ font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
140
+ font-weight: var(--smrt-typography-weight-medium, 500);
141
+ color: var(--smrt-color-on-surface);
142
+ }
143
+ code {
144
+ font-family: var(--smrt-font-family-mono, monospace);
145
+ font-size: var(--smrt-typography-body-small-size, 0.75rem);
146
+ background: var(--smrt-color-surface-container);
147
+ border-radius: 0.25rem;
148
+ }
149
+ .smrt-property-info__empty {
150
+ color: var(--smrt-color-on-surface-variant);
151
+ font-size: var(--smrt-typography-body-medium-size, 0.875rem);
152
+ }
147
153
  }
154
+
148
155
  </style>
@@ -15,55 +15,56 @@ const label = $derived(
15
15
  );
16
16
  </script>
17
17
 
18
- <span class="status-badge" class:connected={status === 'active'} class:pending={status === 'pending'} class:disconnected={status === 'inactive'} data-smrt-component="PropertyStatusBadge">
19
- <span class="status-dot" aria-hidden="true"></span>
18
+ <span class="smrt-property-status-badge__root" class:smrt-property-status-badge__connected={status === 'active'} class:smrt-property-status-badge__pending={status === 'pending'} class:smrt-property-status-badge__disconnected={status === 'inactive'} data-smrt-component="PropertyStatusBadge">
19
+ <span class="smrt-property-status-badge__dot" data-smrt-part="indicator" aria-hidden="true"></span>
20
20
  {label}
21
21
  </span>
22
22
 
23
23
  <style>
24
24
  @layer smrt.reset, smrt.structure, smrt.theme;
25
- @layer smrt.theme {
26
- .status-badge {
27
- display: inline-flex;
28
- align-items: center;
29
- gap: 0.375rem;
30
- padding: 0.25rem 0.625rem;
31
- border-radius: var(--smrt-radius-full);
32
- font-size: var(--smrt-typography-label-medium-size, 0.75rem);
33
- font-weight: var(--smrt-typography-weight-medium, 500);
34
- }
35
-
36
- .status-dot {
37
- width: 0.5rem;
38
- height: 0.5rem;
39
- border-radius: var(--smrt-radius-full);
40
- }
41
-
42
- .connected {
43
- background: var(--smrt-color-success-container);
44
- color: var(--smrt-color-on-success-container);
45
- }
46
-
47
- .connected .status-dot {
48
- background: var(--smrt-color-success);
49
- }
50
-
51
- .pending {
52
- background: var(--smrt-color-warning-container);
53
- color: var(--smrt-color-on-warning-container);
54
- }
55
-
56
- .pending .status-dot {
57
- background: var(--smrt-color-warning);
58
- }
59
-
60
- .disconnected {
61
- background: var(--smrt-color-surface-container);
62
- color: var(--smrt-color-on-surface-variant);
63
- }
25
+ @layer smrt.structure {
26
+ .smrt-property-status-badge__root {
27
+ display: inline-flex;
28
+ align-items: center;
29
+ gap: 0.375rem;
30
+ padding: 0.25rem 0.625rem;
31
+ }
32
+ .smrt-property-status-badge__dot {
33
+ width: 0.5rem;
34
+ height: 0.5rem;
35
+ }
36
+ }
64
37
 
65
- .disconnected .status-dot {
66
- background: var(--smrt-color-outline);
67
- }
38
+ @layer smrt.theme {
39
+ .smrt-property-status-badge__root {
40
+ border-radius: var(--smrt-radius-full);
41
+ font-size: var(--smrt-typography-label-medium-size, 0.75rem);
42
+ font-weight: var(--smrt-typography-weight-medium, 500);
43
+ }
44
+ .smrt-property-status-badge__dot {
45
+ border-radius: var(--smrt-radius-full);
46
+ }
47
+ .smrt-property-status-badge__connected {
48
+ background: var(--smrt-color-success-container);
49
+ color: var(--smrt-color-on-success-container);
50
+ }
51
+ .smrt-property-status-badge__connected .smrt-property-status-badge__dot {
52
+ background: var(--smrt-color-success);
53
+ }
54
+ .smrt-property-status-badge__pending {
55
+ background: var(--smrt-color-warning-container);
56
+ color: var(--smrt-color-on-warning-container);
57
+ }
58
+ .smrt-property-status-badge__pending .smrt-property-status-badge__dot {
59
+ background: var(--smrt-color-warning);
60
+ }
61
+ .smrt-property-status-badge__disconnected {
62
+ background: var(--smrt-color-surface-container);
63
+ color: var(--smrt-color-on-surface-variant);
64
+ }
65
+ .smrt-property-status-badge__disconnected .smrt-property-status-badge__dot {
66
+ background: var(--smrt-color-outline);
67
+ }
68
68
  }
69
+
69
70
  </style>