@seamapi/react 4.14.0 → 5.0.0

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 (86) hide show
  1. package/README.md +2 -3
  2. package/dist/elements.js +9525 -10202
  3. package/dist/elements.js.map +1 -1
  4. package/dist/index.css +0 -345
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.min.css.map +1 -1
  8. package/lib/seam/components/index.d.ts +0 -2
  9. package/lib/seam/components/index.js +0 -2
  10. package/lib/seam/components/index.js.map +1 -1
  11. package/lib/version.d.ts +1 -1
  12. package/lib/version.js +1 -1
  13. package/lib/version.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/lib/seam/components/elements.ts +0 -2
  16. package/src/lib/seam/components/index.ts +0 -2
  17. package/src/lib/version.ts +1 -1
  18. package/src/styles/_main.scss +0 -4
  19. package/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.d.ts +0 -20
  20. package/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.js +0 -22
  21. package/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.js.map +0 -1
  22. package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.d.ts +0 -6
  23. package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.js +0 -8
  24. package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.js.map +0 -1
  25. package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.d.ts +0 -9
  26. package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js +0 -14
  27. package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js.map +0 -1
  28. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.d.ts +0 -13
  29. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js +0 -58
  30. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js.map +0 -1
  31. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContentRows.d.ts +0 -7
  32. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContentRows.js +0 -6
  33. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContentRows.js.map +0 -1
  34. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.d.ts +0 -12
  35. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js +0 -58
  36. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js.map +0 -1
  37. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceManufacturerSection.d.ts +0 -8
  38. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceManufacturerSection.js +0 -39
  39. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceManufacturerSection.js.map +0 -1
  40. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.d.ts +0 -10
  41. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js +0 -35
  42. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js.map +0 -1
  43. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.d.ts +0 -11
  44. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js +0 -20
  45. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js.map +0 -1
  46. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.d.ts +0 -6
  47. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js +0 -21
  48. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js.map +0 -1
  49. package/lib/seam/components/SupportedDeviceTable/use-device-model.d.ts +0 -7
  50. package/lib/seam/components/SupportedDeviceTable/use-device-model.js +0 -21
  51. package/lib/seam/components/SupportedDeviceTable/use-device-model.js.map +0 -1
  52. package/lib/seam/components/SupportedDeviceTable/use-device-models.d.ts +0 -7
  53. package/lib/seam/components/SupportedDeviceTable/use-device-models.js +0 -30
  54. package/lib/seam/components/SupportedDeviceTable/use-device-models.js.map +0 -1
  55. package/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.d.ts +0 -15
  56. package/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.js +0 -45
  57. package/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.js.map +0 -1
  58. package/lib/seam/components/SupportedDeviceTable/use-filtered-manufacturers.d.ts +0 -10
  59. package/lib/seam/components/SupportedDeviceTable/use-filtered-manufacturers.js +0 -42
  60. package/lib/seam/components/SupportedDeviceTable/use-filtered-manufacturers.js.map +0 -1
  61. package/lib/seam/components/SupportedDeviceTable/use-manufacturer.d.ts +0 -7
  62. package/lib/seam/components/SupportedDeviceTable/use-manufacturer.js +0 -17
  63. package/lib/seam/components/SupportedDeviceTable/use-manufacturer.js.map +0 -1
  64. package/lib/seam/components/SupportedDeviceTable/use-manufacturers.d.ts +0 -7
  65. package/lib/seam/components/SupportedDeviceTable/use-manufacturers.js +0 -26
  66. package/lib/seam/components/SupportedDeviceTable/use-manufacturers.js.map +0 -1
  67. package/src/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.tsx +0 -78
  68. package/src/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.tsx +0 -13
  69. package/src/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.tsx +0 -32
  70. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.tsx +0 -161
  71. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceContentRows.tsx +0 -22
  72. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.tsx +0 -145
  73. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceManufacturerSection.tsx +0 -109
  74. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx +0 -93
  75. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.element.ts +0 -15
  76. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.tsx +0 -70
  77. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.element.ts +0 -9
  78. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.tsx +0 -64
  79. package/src/lib/seam/components/SupportedDeviceTable/use-device-model.ts +0 -44
  80. package/src/lib/seam/components/SupportedDeviceTable/use-device-models.ts +0 -57
  81. package/src/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.ts +0 -88
  82. package/src/lib/seam/components/SupportedDeviceTable/use-filtered-manufacturers.ts +0 -69
  83. package/src/lib/seam/components/SupportedDeviceTable/use-manufacturer.ts +0 -40
  84. package/src/lib/seam/components/SupportedDeviceTable/use-manufacturers.ts +0 -53
  85. package/src/styles/_supported-device-table-manufacturer-keys.scss +0 -20
  86. package/src/styles/_supported-device-table.scss +0 -412
@@ -1,412 +0,0 @@
1
- @use 'sass:math';
2
- @use './colors';
3
-
4
- $row-height: 64px;
5
- $row-padding: 8px;
6
- $see-all-button-height: 30px;
7
-
8
- @mixin all {
9
- .seam-supported-device-table-content-wrap {
10
- background: colors.$white;
11
- }
12
-
13
- .seam-supported-device-table-filter-area {
14
- width: 100%;
15
- display: flex;
16
- justify-content: space-between;
17
- align-items: center;
18
- flex-direction: row;
19
- padding: 16px;
20
-
21
- .seam-filters-wrap {
22
- display: flex;
23
- justify-content: flex-start;
24
- align-items: center;
25
- flex-direction: row;
26
- gap: 8px;
27
- }
28
-
29
- .seam-supported-device-table-filter-area-search-bar-wrap {
30
- position: relative;
31
- display: flex;
32
- justify-content: center;
33
- align-items: center;
34
- flex-direction: row;
35
- }
36
- }
37
-
38
- .seam-supported-device-table-filter-menu {
39
- width: 100%;
40
- padding: 8px 16px;
41
-
42
- .seam-filter-menu-row {
43
- width: 100%;
44
- display: flex;
45
- justify-content: space-between;
46
- align-items: center;
47
- flex-direction: row;
48
-
49
- &:not(:last-of-type) {
50
- margin-bottom: 8px;
51
- }
52
-
53
- .seam-filter-checkbox-label {
54
- width: 100%;
55
- display: flex;
56
- justify-content: space-between;
57
- align-items: center;
58
- flex-direction: row;
59
- }
60
-
61
- .seam-filter-checkbox {
62
- appearance: checkbox;
63
- }
64
- }
65
-
66
- .seam-supported-device-table-filter-menu-wrap {
67
- width: 100%;
68
- display: flex;
69
- justify-content: space-between;
70
- align-items: center;
71
- flex-direction: row;
72
-
73
- & button {
74
- appearance: none;
75
- padding: 4px 8px;
76
- padding-right: 24px;
77
- margin: 0;
78
- border: 0;
79
- box-shadow: none;
80
- border-radius: 4px;
81
- background-color: colors.$bg-b;
82
- position: relative;
83
- cursor: pointer;
84
-
85
- &:hover {
86
- background-color: colors.$bg-c;
87
- }
88
-
89
- & span {
90
- font-size: 14px;
91
- font-weight: 500;
92
- }
93
-
94
- & svg {
95
- position: absolute;
96
- top: 2px;
97
- }
98
- }
99
- }
100
- }
101
-
102
- .seam-manufacturer-section {
103
- margin-bottom: 32px;
104
- position: relative;
105
- display: flex;
106
- padding: 8px 16px 16px;
107
- flex-direction: column;
108
- justify-content: center;
109
- align-items: flex-start;
110
- gap: 10px;
111
- align-self: stretch;
112
-
113
- .seam-manufacturer-annotation-box {
114
- display: flex;
115
- padding: 8px;
116
- align-items: center;
117
- align-content: center;
118
- gap: 0 8px;
119
- align-self: stretch;
120
- flex-wrap: wrap;
121
- border-radius: 6px;
122
- background-color: colors.$primary-transparent;
123
-
124
- .seam-annotation {
125
- display: flex;
126
- align-items: flex-start;
127
- align-content: flex-start;
128
- gap: 2px;
129
- flex: 1 0 0;
130
- flex-wrap: wrap;
131
- color: colors.$text-gray-1;
132
- font-size: 14px;
133
- line-height: 120%;
134
- }
135
- }
136
-
137
- .seam-header {
138
- display: flex;
139
- align-items: center;
140
- height: 64px;
141
-
142
- .seam-manufacturer-image {
143
- width: 48px;
144
- height: 48px;
145
- padding: 0 8px;
146
- box-sizing: content-box;
147
- margin-right: 8px;
148
- }
149
-
150
- .seam-manufacturer-name {
151
- font-size: 21px;
152
- line-height: 132%;
153
- flex: 1;
154
- }
155
-
156
- .chevron {
157
- transform: rotate(90deg);
158
- margin-right: 24px;
159
- }
160
- }
161
-
162
- .show-all-devices-button {
163
- cursor: pointer;
164
- background: colors.$white;
165
- display: flex;
166
- height: $see-all-button-height;
167
- padding: 5px 24px 4px 16px;
168
- align-items: center;
169
- gap: 2px;
170
- font-size: 14px;
171
- line-height: 115%;
172
- color: colors.$text-gray-1;
173
- border-radius: 30px;
174
- border: 0;
175
- box-shadow:
176
- 0 1px 1px 0 rgb(16 27 37 / 10%),
177
- 0 1px 8px 0 rgb(46 69 82 / 12%);
178
- position: absolute;
179
- bottom: math.div(
180
- -($row-height - $see-all-button-height - $row-padding),
181
- 2
182
- )
183
- or calc(-1 * ($row-height - $see-all-button-height - $row-padding) / 2);
184
- left: 50%;
185
- transform: translate(-50%, -47px);
186
- z-index: 3;
187
-
188
- svg {
189
- transform: rotate(90deg);
190
- font-size: 25px;
191
- }
192
- }
193
-
194
- .hidden-devices-overlay {
195
- background: linear-gradient(
196
- 180deg,
197
- rgb(255 255 255 / 0%) 10.17%,
198
- #fff 86.98%
199
- );
200
- position: absolute;
201
- height: $row-height;
202
- width: 100%;
203
- bottom: 0;
204
- z-index: 2;
205
- }
206
-
207
- &.can-expand {
208
- .seam-header {
209
- cursor: pointer;
210
-
211
- &:hover {
212
- background: colors.$bg-aa;
213
- }
214
- }
215
- }
216
-
217
- &.expanded {
218
- margin-bottom: 96px; // 32px (usual margin) + 64px (empty row)
219
-
220
- .seam-header {
221
- .chevron {
222
- transform: rotate(270deg);
223
- }
224
- }
225
-
226
- .show-all-devices-button {
227
- transform: translate(-50%, 16px);
228
-
229
- svg {
230
- transform: rotate(270deg);
231
- }
232
- }
233
- }
234
- }
235
-
236
- .seam-supported-device-table-content-state-block {
237
- width: 100%;
238
- background-color: colors.$bg-a;
239
- padding: 32px 8px;
240
- display: flex;
241
- justify-content: center;
242
- align-items: center;
243
- flex-direction: column;
244
- gap: 8px;
245
- }
246
-
247
- .seam-supported-device-table-content-message-row {
248
- height: auto !important;
249
- }
250
-
251
- .seam-supported-device-table-content-message {
252
- width: 100%;
253
- padding: 32px 0;
254
- display: flex;
255
- justify-content: center;
256
- align-items: center;
257
- flex-direction: column;
258
- text-align: center;
259
- gap: 4px;
260
-
261
- & p {
262
- line-height: 1;
263
- margin: 0;
264
- }
265
-
266
- & button {
267
- cursor: pointer;
268
- margin-top: 8px;
269
- }
270
- }
271
-
272
- .seam-supported-device-table-content {
273
- width: 100%;
274
- overflow-x: auto;
275
- table-layout: auto;
276
- border-collapse: collapse;
277
-
278
- .seam-row {
279
- height: $row-height;
280
- border-bottom: 1px solid colors.$bg-b;
281
- display: flex;
282
-
283
- &:first-child {
284
- border-top: 1px solid colors.$bg-b;
285
- }
286
-
287
- .seam-col {
288
- display: flex;
289
- padding: 8px;
290
- }
291
- }
292
-
293
- .seam-status-pill {
294
- display: inline-flex;
295
- padding: 4px 8px;
296
- border-radius: 16px;
297
-
298
- & span {
299
- font-size: 11px;
300
- line-height: 134%;
301
- letter-spacing: 0.55px;
302
- }
303
-
304
- &.status-green {
305
- background-color: colors.$pill-green-bg;
306
- color: colors.$pill-green-text;
307
- }
308
-
309
- &.status-blue {
310
- background-color: colors.$pill-blue-bg;
311
- color: colors.$pill-blue-text;
312
- }
313
-
314
- &.status-unknown {
315
- color: colors.$text-gray-1;
316
- font-size: 12px;
317
- line-height: 118%;
318
- }
319
-
320
- &:not(.status-unknown) {
321
- font-weight: 600;
322
- }
323
- }
324
-
325
- .seam-device-image-col {
326
- align-items: center;
327
-
328
- .seam-image-box {
329
- width: 48px;
330
- height: 48px;
331
-
332
- img {
333
- width: 100%;
334
- }
335
- }
336
- }
337
-
338
- .seam-model-col {
339
- flex: 1;
340
- display: flex;
341
- flex-direction: column;
342
- align-items: flex-start;
343
- justify-content: center;
344
- gap: 2px;
345
-
346
- .seam-model-name {
347
- font-size: 14px;
348
-
349
- .seam-truncated-text {
350
- width: 270px;
351
- }
352
- }
353
-
354
- .seam-model-id {
355
- color: colors.$text-gray-2;
356
- font-size: 12px;
357
-
358
- .seam-truncated-text {
359
- width: 220px;
360
- }
361
-
362
- .seam-dot-divider {
363
- margin: 0 4px;
364
- color: colors.$text-gray-3;
365
- }
366
- }
367
-
368
- @media only screen and (width >= 450px) {
369
- .seam-model-name {
370
- font-size: 16px;
371
- }
372
-
373
- .seam-model-id {
374
- font-size: 14px;
375
- }
376
- }
377
-
378
- @media only screen and (width >= 768px) {
379
- flex-direction: row;
380
- align-items: center;
381
- justify-content: flex-start;
382
-
383
- .seam-model-name {
384
- flex: 1;
385
- font-size: 14px;
386
- }
387
-
388
- .seam-model-id {
389
- flex: 0 0 40%;
390
- font-size: 14px;
391
- display: flex;
392
- justify-content: flex-end;
393
-
394
- .seam-truncated-text {
395
- text-align: right;
396
- }
397
- }
398
- }
399
- }
400
-
401
- .seam-status-col {
402
- width: 70px;
403
- text-align: center;
404
- align-items: center;
405
- }
406
- }
407
-
408
- .seam-supported-device-table-filter-menu-content {
409
- max-height: 300px;
410
- overflow: auto;
411
- }
412
- }