@seamapi/react 5.2.1 → 5.2.3

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 (37) hide show
  1. package/README.md +13 -5
  2. package/dist/ecosystem.js +10 -11
  3. package/dist/ecosystem.js.map +1 -1
  4. package/dist/elements.js +8547 -8365
  5. package/dist/elements.js.map +1 -1
  6. package/dist/index.css +121 -23
  7. package/dist/index.css.map +1 -1
  8. package/dist/index.min.css +1 -1
  9. package/dist/index.min.css.map +1 -1
  10. package/lib/seam/components/SupportedDevices/DeviceModelRow.js +33 -31
  11. package/lib/seam/components/SupportedDevices/DeviceModelRow.js.map +1 -1
  12. package/lib/seam/components/SupportedDevices/ManufacturerSection.js +2 -7
  13. package/lib/seam/components/SupportedDevices/ManufacturerSection.js.map +1 -1
  14. package/lib/seam/components/SupportedDevices/RequirementIcon.d.ts +5 -0
  15. package/lib/seam/components/SupportedDevices/RequirementIcon.js +6 -0
  16. package/lib/seam/components/SupportedDevices/RequirementIcon.js.map +1 -0
  17. package/lib/seam/components/SupportedDevices/SupportedDevices.js +14 -5
  18. package/lib/seam/components/SupportedDevices/SupportedDevices.js.map +1 -1
  19. package/lib/seam/components/SupportedDevices/device-models.d.ts +6 -1
  20. package/lib/seam/components/SupportedDevices/device-models.js +70 -2
  21. package/lib/seam/components/SupportedDevices/device-models.js.map +1 -1
  22. package/lib/seam/ecosystem/types.d.ts +9 -0
  23. package/lib/seam/ecosystem/use-ecosystem-provider-requirements.d.ts +4 -0
  24. package/lib/seam/ecosystem/use-ecosystem-provider-requirements.js +49 -0
  25. package/lib/seam/ecosystem/use-ecosystem-provider-requirements.js.map +1 -0
  26. package/lib/version.d.ts +1 -1
  27. package/lib/version.js +1 -1
  28. package/package.json +1 -1
  29. package/src/lib/seam/components/SupportedDevices/DeviceModelRow.tsx +120 -65
  30. package/src/lib/seam/components/SupportedDevices/ManufacturerSection.tsx +1 -25
  31. package/src/lib/seam/components/SupportedDevices/RequirementIcon.tsx +39 -0
  32. package/src/lib/seam/components/SupportedDevices/SupportedDevices.tsx +36 -3
  33. package/src/lib/seam/components/SupportedDevices/device-models.ts +109 -4
  34. package/src/lib/seam/ecosystem/types.ts +11 -0
  35. package/src/lib/seam/ecosystem/use-ecosystem-provider-requirements.ts +62 -0
  36. package/src/lib/version.ts +1 -1
  37. package/src/styles/_supported-devices.scss +141 -22
@@ -2,6 +2,36 @@
2
2
  .seam-supported-devices {
3
3
  container-type: inline-size;
4
4
 
5
+ .seam-ecosystem-controls {
6
+ width: 100%;
7
+ margin-left: 0;
8
+ }
9
+
10
+ .seam-ecosystem-search {
11
+ flex: 1;
12
+ min-width: min(200px, 100%);
13
+ }
14
+
15
+ .seam-supported-devices-legend {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+ gap: 6px 16px;
19
+ margin-bottom: 12px;
20
+ color: var(--seam-ecosystem-fg-2);
21
+ font-size: 12px;
22
+
23
+ span {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ gap: 4px;
27
+ }
28
+
29
+ svg {
30
+ width: 16px;
31
+ height: 16px;
32
+ }
33
+ }
34
+
5
35
  .seam-supported-devices-sections {
6
36
  display: flex;
7
37
  flex-direction: column;
@@ -32,8 +62,10 @@
32
62
  height: 40px;
33
63
  overflow: hidden;
34
64
  border-radius: 8px;
35
- background: var(--seam-ecosystem-surface-2);
36
- color: var(--seam-ecosystem-fg-2);
65
+
66
+ // Catalog monochrome logos are often black, not dark-mode variants.
67
+ background: #fff;
68
+ color: #434a54;
37
69
  font-weight: 600;
38
70
 
39
71
  img {
@@ -70,9 +102,9 @@
70
102
  .seam-supported-devices-row {
71
103
  display: grid;
72
104
  grid-template-columns: 48px minmax(0, 1fr);
73
- align-items: center;
105
+ align-items: start;
74
106
  gap: 8px 12px;
75
- padding: 12px 16px;
107
+ padding: 20px 16px;
76
108
 
77
109
  &:not(:last-child) {
78
110
  border-bottom: 1px solid var(--seam-ecosystem-line-1);
@@ -81,6 +113,7 @@
81
113
 
82
114
  .seam-supported-devices-image {
83
115
  display: flex;
116
+ grid-row: 1 / span 2;
84
117
  align-items: center;
85
118
  justify-content: center;
86
119
  width: 48px;
@@ -115,21 +148,69 @@
115
148
  }
116
149
 
117
150
  .seam-supported-devices-meta {
118
- overflow: hidden;
119
151
  color: var(--seam-ecosystem-fg-2);
120
152
  font-size: 13px;
121
- white-space: nowrap;
122
- text-overflow: ellipsis;
123
153
  }
124
154
 
125
- .seam-supported-devices-badges {
126
- display: flex;
127
- flex-wrap: wrap;
155
+ .seam-supported-devices-capabilities {
156
+ display: grid;
128
157
  grid-column: 2;
129
158
  gap: 4px;
159
+ }
160
+
161
+ .seam-supported-devices-capabilities-label {
162
+ color: var(--seam-ecosystem-fg-2);
163
+ font-size: 12px;
164
+ font-weight: 600;
165
+ }
166
+
167
+ .seam-supported-devices-features {
168
+ display: flex;
169
+ flex-wrap: wrap;
170
+ gap: 6px 16px;
130
171
  margin: 0;
131
172
  padding: 0;
132
173
  list-style: none;
174
+ font-size: 13px;
175
+
176
+ li {
177
+ display: flex;
178
+ align-items: center;
179
+ gap: 4px;
180
+ }
181
+
182
+ svg {
183
+ flex-shrink: 0;
184
+ width: 16px;
185
+ height: 16px;
186
+ }
187
+
188
+ .seam-supported-devices-conditional-icon path {
189
+ fill: #d48c23;
190
+ }
191
+ }
192
+
193
+ .seam-supported-devices-requirement-toggle {
194
+ display: inline-flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ width: 24px;
198
+ height: 24px;
199
+ margin: -4px 0 -4px -4px;
200
+ padding: 4px;
201
+ border: 0;
202
+ border-radius: 4px;
203
+ background: transparent;
204
+ cursor: pointer;
205
+
206
+ &:hover {
207
+ background: var(--seam-ecosystem-surface-2);
208
+ }
209
+
210
+ &:focus-visible {
211
+ outline: 2px solid var(--seam-ecosystem-accent);
212
+ outline-offset: 2px;
213
+ }
133
214
  }
134
215
 
135
216
  .seam-supported-devices-section-footer {
@@ -140,29 +221,67 @@
140
221
  }
141
222
 
142
223
  .seam-supported-devices-status,
143
- .seam-supported-devices-requirements {
224
+ .seam-supported-devices-requirements,
225
+ .seam-supported-devices-details {
144
226
  grid-column: 2 / -1;
145
227
  color: var(--seam-ecosystem-fg-2);
146
228
  font-size: 13px;
147
229
  }
148
230
 
149
- .seam-supported-devices-requirements summary {
150
- cursor: pointer;
231
+ .seam-supported-devices-requirements {
232
+ display: grid;
233
+ gap: 12px;
234
+ margin: 12px 0;
235
+ padding: 12px;
236
+ border-radius: 8px;
237
+ background: var(--seam-ecosystem-surface-2);
238
+ list-style: none;
239
+
240
+ li {
241
+ display: flex;
242
+ align-items: start;
243
+ gap: 10px;
244
+ }
245
+
246
+ .seam-supported-devices-requirement-icon {
247
+ flex-shrink: 0;
248
+ margin-top: 2px;
249
+ color: var(--seam-ecosystem-fg-1);
250
+ }
151
251
  }
152
252
 
153
- .seam-supported-devices-requirements ul {
154
- margin: 8px 0 0;
155
- padding-left: 20px;
253
+ .seam-supported-devices-requirement-features {
254
+ display: block;
255
+ margin-top: 2px;
256
+ color: var(--seam-ecosystem-fg-2);
257
+ font-size: 12px;
156
258
  }
157
259
 
158
- @container (width >= 720px) {
159
- .seam-supported-devices-row {
160
- grid-template-columns: 48px minmax(0, 1fr) minmax(0, 45%);
260
+ .seam-supported-devices-details {
261
+ overflow-wrap: anywhere;
262
+
263
+ summary {
264
+ width: fit-content;
265
+ cursor: pointer;
266
+
267
+ &:focus-visible {
268
+ outline: 2px solid var(--seam-ecosystem-accent);
269
+ outline-offset: 4px;
270
+ }
271
+ }
272
+
273
+ dl {
274
+ display: grid;
275
+ gap: 8px;
276
+ margin-top: 10px;
277
+ }
278
+
279
+ dt {
280
+ font-weight: 600;
161
281
  }
162
282
 
163
- .seam-supported-devices-badges {
164
- grid-column: 3;
165
- justify-content: flex-end;
283
+ dd {
284
+ margin: 2px 0 0;
166
285
  }
167
286
  }
168
287
  }