@seamapi/react 5.0.0 → 5.1.1
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/README.md +111 -2
- package/dist/ecosystem.js +45 -0
- package/dist/ecosystem.js.map +1 -0
- package/dist/elements.js +12872 -11737
- package/dist/elements.js.map +1 -1
- package/dist/index.css +469 -0
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/seam/SeamProvider.d.ts +10 -3
- package/lib/seam/SeamProvider.js +5 -3
- package/lib/seam/SeamProvider.js.map +1 -1
- package/lib/seam/components/CompatibleApps/CompatibleApps.d.ts +26 -0
- package/lib/seam/components/CompatibleApps/CompatibleApps.js +126 -0
- package/lib/seam/components/CompatibleApps/CompatibleApps.js.map +1 -0
- package/lib/seam/components/SupportedDevices/DeviceModelRow.d.ts +8 -0
- package/lib/seam/components/SupportedDevices/DeviceModelRow.js +31 -0
- package/lib/seam/components/SupportedDevices/DeviceModelRow.js.map +1 -0
- package/lib/seam/components/SupportedDevices/FilterSelect.d.ts +12 -0
- package/lib/seam/components/SupportedDevices/FilterSelect.js +9 -0
- package/lib/seam/components/SupportedDevices/FilterSelect.js.map +1 -0
- package/lib/seam/components/SupportedDevices/ManufacturerSection.d.ts +10 -0
- package/lib/seam/components/SupportedDevices/ManufacturerSection.js +35 -0
- package/lib/seam/components/SupportedDevices/ManufacturerSection.js.map +1 -0
- package/lib/seam/components/SupportedDevices/SupportedDevices.d.ts +24 -0
- package/lib/seam/components/SupportedDevices/SupportedDevices.js +151 -0
- package/lib/seam/components/SupportedDevices/SupportedDevices.js.map +1 -0
- package/lib/seam/components/SupportedDevices/device-models.d.ts +47 -0
- package/lib/seam/components/SupportedDevices/device-models.js +217 -0
- package/lib/seam/components/SupportedDevices/device-models.js.map +1 -0
- package/lib/seam/components/index.d.ts +2 -0
- package/lib/seam/components/index.js +2 -0
- package/lib/seam/components/index.js.map +1 -1
- package/lib/seam/ecosystem/EcosystemProvider.d.ts +37 -0
- package/lib/seam/ecosystem/EcosystemProvider.js +56 -0
- package/lib/seam/ecosystem/EcosystemProvider.js.map +1 -0
- package/lib/seam/ecosystem/client.d.ts +28 -0
- package/lib/seam/ecosystem/client.js +74 -0
- package/lib/seam/ecosystem/client.js.map +1 -0
- package/lib/seam/ecosystem/index.d.ts +9 -0
- package/lib/seam/ecosystem/index.js +8 -0
- package/lib/seam/ecosystem/index.js.map +1 -0
- package/lib/seam/ecosystem/types.d.ts +312 -0
- package/lib/seam/ecosystem/types.js +10 -0
- package/lib/seam/ecosystem/types.js.map +1 -0
- package/lib/seam/ecosystem/use-compatible-partners.d.ts +21 -0
- package/lib/seam/ecosystem/use-compatible-partners.js +36 -0
- package/lib/seam/ecosystem/use-compatible-partners.js.map +1 -0
- package/lib/seam/ecosystem/use-ecosystem-device-model-summaries.d.ts +11 -0
- package/lib/seam/ecosystem/use-ecosystem-device-model-summaries.js +53 -0
- package/lib/seam/ecosystem/use-ecosystem-device-model-summaries.js.map +1 -0
- package/lib/seam/ecosystem/use-ecosystem-device-models.d.ts +20 -0
- package/lib/seam/ecosystem/use-ecosystem-device-models.js +51 -0
- package/lib/seam/ecosystem/use-ecosystem-device-models.js.map +1 -0
- package/lib/seam/ecosystem/use-ecosystem-manufacturers.d.ts +11 -0
- package/lib/seam/ecosystem/use-ecosystem-manufacturers.js +49 -0
- package/lib/seam/ecosystem/use-ecosystem-manufacturers.js.map +1 -0
- package/lib/seam/ecosystem/use-ecosystem-query-result.d.ts +7 -0
- package/lib/seam/ecosystem/use-ecosystem-query-result.js +7 -0
- package/lib/seam/ecosystem/use-ecosystem-query-result.js.map +1 -0
- package/lib/seam/ecosystem/use-embed-key-resolution.d.ts +20 -0
- package/lib/seam/ecosystem/use-embed-key-resolution.js +51 -0
- package/lib/seam/ecosystem/use-embed-key-resolution.js.map +1 -0
- package/lib/seam/index.d.ts +1 -0
- package/lib/seam/index.js +1 -0
- package/lib/seam/index.js.map +1 -1
- package/lib/seam/seam-components-class-name.d.ts +1 -0
- package/lib/seam/seam-components-class-name.js +2 -0
- package/lib/seam/seam-components-class-name.js.map +1 -0
- package/lib/ui/ecosystem/SearchField.d.ts +9 -0
- package/lib/ui/ecosystem/SearchField.js +8 -0
- package/lib/ui/ecosystem/SearchField.js.map +1 -0
- package/lib/ui/ecosystem/StateMessage.d.ts +8 -0
- package/lib/ui/ecosystem/StateMessage.js +5 -0
- package/lib/ui/ecosystem/StateMessage.js.map +1 -0
- package/lib/ui/ecosystem/errors.d.ts +5 -0
- package/lib/ui/ecosystem/errors.js +25 -0
- package/lib/ui/ecosystem/errors.js.map +1 -0
- package/lib/ui/ecosystem/storybook.d.ts +15 -0
- package/lib/ui/ecosystem/storybook.js +16 -0
- package/lib/ui/ecosystem/storybook.js.map +1 -0
- package/lib/ui/ecosystem/theme.d.ts +6 -0
- package/lib/ui/ecosystem/theme.js +11 -0
- package/lib/ui/ecosystem/theme.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +11 -3
- package/src/ecosystem.d.ts +2 -0
- package/src/ecosystem.ts +12 -0
- package/src/elements.ts +4 -0
- package/src/lib/ecosystem-element.tsx +154 -0
- package/src/lib/element.tsx +6 -0
- package/src/lib/seam/SeamProvider.tsx +18 -2
- package/src/lib/seam/components/CompatibleApps/CompatibleApps.element.ts +19 -0
- package/src/lib/seam/components/CompatibleApps/CompatibleApps.tsx +344 -0
- package/src/lib/seam/components/SupportedDevices/DeviceModelRow.tsx +108 -0
- package/src/lib/seam/components/SupportedDevices/FilterSelect.tsx +43 -0
- package/src/lib/seam/components/SupportedDevices/ManufacturerSection.tsx +114 -0
- package/src/lib/seam/components/SupportedDevices/SupportedDevices.element.ts +17 -0
- package/src/lib/seam/components/SupportedDevices/SupportedDevices.tsx +382 -0
- package/src/lib/seam/components/SupportedDevices/device-models.ts +326 -0
- package/src/lib/seam/components/ecosystem-elements.ts +2 -0
- package/src/lib/seam/components/index.ts +2 -0
- package/src/lib/seam/ecosystem/EcosystemProvider.tsx +133 -0
- package/src/lib/seam/ecosystem/client.ts +116 -0
- package/src/lib/seam/ecosystem/index.ts +19 -0
- package/src/lib/seam/ecosystem/types.ts +402 -0
- package/src/lib/seam/ecosystem/use-compatible-partners.ts +80 -0
- package/src/lib/seam/ecosystem/use-ecosystem-device-model-summaries.ts +89 -0
- package/src/lib/seam/ecosystem/use-ecosystem-device-models.ts +96 -0
- package/src/lib/seam/ecosystem/use-ecosystem-manufacturers.ts +86 -0
- package/src/lib/seam/ecosystem/use-ecosystem-query-result.ts +19 -0
- package/src/lib/seam/ecosystem/use-embed-key-resolution.ts +80 -0
- package/src/lib/seam/index.ts +1 -0
- package/src/lib/seam/seam-components-class-name.ts +1 -0
- package/src/lib/ui/ecosystem/SearchField.tsx +32 -0
- package/src/lib/ui/ecosystem/StateMessage.tsx +29 -0
- package/src/lib/ui/ecosystem/errors.ts +30 -0
- package/src/lib/ui/ecosystem/storybook.tsx +40 -0
- package/src/lib/ui/ecosystem/theme.ts +14 -0
- package/src/lib/version.ts +1 -1
- package/src/styles/_compatible-apps.scss +102 -0
- package/src/styles/_ecosystem.scss +295 -0
- package/src/styles/_main.scss +6 -0
- package/src/styles/_supported-devices.scss +153 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
@mixin all {
|
|
2
|
+
.seam-compatible-apps {
|
|
3
|
+
.seam-compatible-apps-grid {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
6
|
+
gap: 12px;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
list-style: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.seam-compatible-apps-card {
|
|
13
|
+
border: 1px solid var(--seam-ecosystem-line-1);
|
|
14
|
+
border-radius: 12px;
|
|
15
|
+
background: var(--seam-ecosystem-surface-1);
|
|
16
|
+
transition: border-color 0.15s ease;
|
|
17
|
+
|
|
18
|
+
&:hover,
|
|
19
|
+
&:focus-within {
|
|
20
|
+
border-color: var(--seam-ecosystem-line-2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.seam-compatible-apps-card-body {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 12px;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 12px;
|
|
31
|
+
border-radius: 12px;
|
|
32
|
+
|
|
33
|
+
&:focus-visible {
|
|
34
|
+
outline: 2px solid var(--seam-ecosystem-accent);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.seam-compatible-apps-logo {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: 48px;
|
|
45
|
+
height: 48px;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
border: 1px solid var(--seam-ecosystem-line-1);
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
background: var(--seam-ecosystem-surface-2);
|
|
50
|
+
|
|
51
|
+
img {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
padding: 4px;
|
|
55
|
+
object-fit: contain;
|
|
56
|
+
object-position: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.seam-compatible-apps-logo-initial {
|
|
61
|
+
color: var(--seam-ecosystem-fg-2);
|
|
62
|
+
font-size: 18px;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.seam-compatible-apps-text {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: 2px;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
flex: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.seam-compatible-apps-name {
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
color: var(--seam-ecosystem-fg-1);
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.seam-compatible-apps-subtitle {
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
color: var(--seam-ecosystem-fg-2);
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.seam-compatible-apps-note {
|
|
91
|
+
padding-top: 4px;
|
|
92
|
+
color: var(--seam-ecosystem-fg-2);
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.seam-compatible-apps-footer {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
padding-top: 16px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
@use './colors';
|
|
2
|
+
|
|
3
|
+
// Shared styles for the Seam Ecosystem components (CompatibleApps, SupportedDevices).
|
|
4
|
+
// Colors are CSS custom properties so the light, dark and auto themes share one set of rules.
|
|
5
|
+
|
|
6
|
+
@mixin light-tokens {
|
|
7
|
+
--seam-ecosystem-fg-1: #{colors.$text-default};
|
|
8
|
+
--seam-ecosystem-fg-2: #{colors.$text-gray-1};
|
|
9
|
+
--seam-ecosystem-fg-3: #{colors.$text-gray-2};
|
|
10
|
+
--seam-ecosystem-surface-1: #{colors.$white};
|
|
11
|
+
--seam-ecosystem-surface-2: #{colors.$bg-a};
|
|
12
|
+
--seam-ecosystem-line-1: #{colors.$bg-b};
|
|
13
|
+
--seam-ecosystem-line-2: #{colors.$bg-d};
|
|
14
|
+
--seam-ecosystem-accent: #{colors.$primary};
|
|
15
|
+
--seam-ecosystem-accent-soft: #{colors.$primary-transparent};
|
|
16
|
+
--seam-ecosystem-skeleton: #{colors.$bg-b};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin dark-tokens {
|
|
20
|
+
--seam-ecosystem-fg-1: #f1f3f4;
|
|
21
|
+
--seam-ecosystem-fg-2: #b9bec5;
|
|
22
|
+
--seam-ecosystem-fg-3: #8a9099;
|
|
23
|
+
--seam-ecosystem-surface-1: #16191d;
|
|
24
|
+
--seam-ecosystem-surface-2: #22262c;
|
|
25
|
+
--seam-ecosystem-line-1: #2c3138;
|
|
26
|
+
--seam-ecosystem-line-2: #434a54;
|
|
27
|
+
--seam-ecosystem-accent: #4da3ff;
|
|
28
|
+
--seam-ecosystem-accent-soft: rgb(77 163 255 / 14%);
|
|
29
|
+
--seam-ecosystem-skeleton: #2c3138;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin dark-images {
|
|
33
|
+
.seam-ecosystem-light-only {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.seam-ecosystem-dark-only {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin all {
|
|
43
|
+
.seam-ecosystem {
|
|
44
|
+
@include light-tokens;
|
|
45
|
+
|
|
46
|
+
width: 100%;
|
|
47
|
+
color: var(--seam-ecosystem-fg-1);
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
line-height: 1.4;
|
|
50
|
+
|
|
51
|
+
&.seam-ecosystem-theme-dark {
|
|
52
|
+
@include dark-tokens;
|
|
53
|
+
@include dark-images;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (prefers-color-scheme: dark) {
|
|
57
|
+
&.seam-ecosystem-theme-auto {
|
|
58
|
+
@include dark-tokens;
|
|
59
|
+
@include dark-images;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.seam-ecosystem-dark-only {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a {
|
|
68
|
+
color: inherit;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
img {
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.seam-ecosystem-header {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-flow: row wrap;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 8px 12px;
|
|
82
|
+
margin-bottom: 16px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.seam-ecosystem-title {
|
|
86
|
+
margin: 0 auto 0 0;
|
|
87
|
+
font-size: 20px;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
line-height: 1.3;
|
|
90
|
+
color: var(--seam-ecosystem-fg-1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.seam-ecosystem-controls {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-flow: row wrap;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 8px;
|
|
98
|
+
margin-left: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.seam-ecosystem-search {
|
|
102
|
+
position: relative;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
min-width: 200px;
|
|
106
|
+
|
|
107
|
+
.seam-ecosystem-search-icon {
|
|
108
|
+
position: absolute;
|
|
109
|
+
left: 10px;
|
|
110
|
+
font-size: 18px;
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
|
|
113
|
+
path {
|
|
114
|
+
fill: var(--seam-ecosystem-fg-3);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.seam-ecosystem-search-input {
|
|
119
|
+
width: 100%;
|
|
120
|
+
height: 36px;
|
|
121
|
+
padding: 0 12px 0 34px;
|
|
122
|
+
border: 1px solid var(--seam-ecosystem-line-2);
|
|
123
|
+
border-radius: 8px;
|
|
124
|
+
background: var(--seam-ecosystem-surface-1);
|
|
125
|
+
color: var(--seam-ecosystem-fg-1);
|
|
126
|
+
font: inherit;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
|
|
129
|
+
&::placeholder {
|
|
130
|
+
color: var(--seam-ecosystem-fg-3);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:focus {
|
|
134
|
+
outline: 2px solid var(--seam-ecosystem-accent);
|
|
135
|
+
outline-offset: -1px;
|
|
136
|
+
border-color: transparent;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:disabled {
|
|
140
|
+
opacity: 0.6;
|
|
141
|
+
cursor: not-allowed;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.seam-ecosystem-select {
|
|
147
|
+
position: relative;
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
|
|
151
|
+
.seam-ecosystem-select-input {
|
|
152
|
+
appearance: none;
|
|
153
|
+
height: 36px;
|
|
154
|
+
max-width: 220px;
|
|
155
|
+
padding: 0 32px 0 12px;
|
|
156
|
+
border: 1px solid var(--seam-ecosystem-line-2);
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
background: var(--seam-ecosystem-surface-1);
|
|
159
|
+
color: var(--seam-ecosystem-fg-1);
|
|
160
|
+
font: inherit;
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
text-overflow: ellipsis;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
|
|
165
|
+
&:focus {
|
|
166
|
+
outline: 2px solid var(--seam-ecosystem-accent);
|
|
167
|
+
outline-offset: -1px;
|
|
168
|
+
border-color: transparent;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:disabled {
|
|
172
|
+
opacity: 0.6;
|
|
173
|
+
cursor: not-allowed;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.seam-ecosystem-select-icon {
|
|
178
|
+
position: absolute;
|
|
179
|
+
right: 8px;
|
|
180
|
+
font-size: 18px;
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
|
|
183
|
+
path {
|
|
184
|
+
fill: var(--seam-ecosystem-fg-2);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.seam-ecosystem-button {
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: center;
|
|
193
|
+
height: 32px;
|
|
194
|
+
padding: 0 14px;
|
|
195
|
+
border: 1px solid var(--seam-ecosystem-line-2);
|
|
196
|
+
border-radius: 8px;
|
|
197
|
+
background: var(--seam-ecosystem-surface-1);
|
|
198
|
+
color: var(--seam-ecosystem-fg-1);
|
|
199
|
+
font: inherit;
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
|
|
204
|
+
&:hover {
|
|
205
|
+
background: var(--seam-ecosystem-surface-2);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:focus-visible {
|
|
209
|
+
outline: 2px solid var(--seam-ecosystem-accent);
|
|
210
|
+
outline-offset: 2px;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.seam-ecosystem-message {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 12px;
|
|
219
|
+
padding: 32px 16px;
|
|
220
|
+
border: 1px dashed var(--seam-ecosystem-line-2);
|
|
221
|
+
border-radius: 12px;
|
|
222
|
+
color: var(--seam-ecosystem-fg-2);
|
|
223
|
+
font-size: 14px;
|
|
224
|
+
text-align: center;
|
|
225
|
+
|
|
226
|
+
p {
|
|
227
|
+
margin: 0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.seam-ecosystem-badge {
|
|
232
|
+
display: inline-flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
padding: 2px 8px;
|
|
235
|
+
border: 1px solid transparent;
|
|
236
|
+
border-radius: 999px;
|
|
237
|
+
background: var(--seam-ecosystem-accent-soft);
|
|
238
|
+
color: var(--seam-ecosystem-accent);
|
|
239
|
+
font-size: 12px;
|
|
240
|
+
font-weight: 600;
|
|
241
|
+
line-height: 18px;
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
|
|
244
|
+
&.seam-ecosystem-badge-type {
|
|
245
|
+
background: var(--seam-ecosystem-surface-2);
|
|
246
|
+
color: var(--seam-ecosystem-fg-1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.seam-ecosystem-badge-conditional {
|
|
250
|
+
border: 1px dashed var(--seam-ecosystem-accent);
|
|
251
|
+
background: transparent;
|
|
252
|
+
cursor: help;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.seam-ecosystem-skeleton {
|
|
257
|
+
border-radius: 6px;
|
|
258
|
+
background: var(--seam-ecosystem-skeleton);
|
|
259
|
+
animation: seam-ecosystem-pulse 1.5s ease-in-out infinite;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.seam-ecosystem-skeleton-line {
|
|
263
|
+
width: 60%;
|
|
264
|
+
height: 14px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.seam-ecosystem-skeleton-line-short {
|
|
268
|
+
width: 35%;
|
|
269
|
+
height: 12px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.seam-ecosystem-visually-hidden {
|
|
273
|
+
position: absolute;
|
|
274
|
+
width: 1px;
|
|
275
|
+
height: 1px;
|
|
276
|
+
padding: 0;
|
|
277
|
+
margin: -1px;
|
|
278
|
+
overflow: hidden;
|
|
279
|
+
clip: rect(0 0 0 0);
|
|
280
|
+
white-space: nowrap;
|
|
281
|
+
border: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@keyframes seam-ecosystem-pulse {
|
|
285
|
+
50% {
|
|
286
|
+
opacity: 0.5;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@media (prefers-reduced-motion: reduce) {
|
|
291
|
+
.seam-ecosystem-skeleton {
|
|
292
|
+
animation: none;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
package/src/styles/_main.scss
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
@use './noise-sensor';
|
|
30
30
|
@use './seam-editable-device-name';
|
|
31
31
|
@use './popover';
|
|
32
|
+
@use './ecosystem';
|
|
33
|
+
@use './compatible-apps';
|
|
34
|
+
@use './supported-devices';
|
|
32
35
|
|
|
33
36
|
.seam-components {
|
|
34
37
|
// Reset
|
|
@@ -66,4 +69,7 @@
|
|
|
66
69
|
@include seam-table.all;
|
|
67
70
|
@include noise-sensor.all;
|
|
68
71
|
@include popover.all;
|
|
72
|
+
@include ecosystem.all;
|
|
73
|
+
@include compatible-apps.all;
|
|
74
|
+
@include supported-devices.all;
|
|
69
75
|
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@mixin all {
|
|
2
|
+
.seam-supported-devices {
|
|
3
|
+
container-type: inline-size;
|
|
4
|
+
|
|
5
|
+
.seam-supported-devices-sections {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.seam-supported-devices-section {
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border: 1px solid var(--seam-ecosystem-line-1);
|
|
14
|
+
border-radius: 12px;
|
|
15
|
+
background: var(--seam-ecosystem-surface-1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.seam-supported-devices-section-header {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 12px;
|
|
22
|
+
padding: 12px 16px;
|
|
23
|
+
border-bottom: 1px solid var(--seam-ecosystem-line-1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.seam-supported-devices-logo {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
width: 40px;
|
|
32
|
+
height: 40px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
background: var(--seam-ecosystem-surface-2);
|
|
36
|
+
color: var(--seam-ecosystem-fg-2);
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
|
|
39
|
+
img {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
padding: 4px;
|
|
43
|
+
object-fit: contain;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.seam-supported-devices-section-title {
|
|
48
|
+
flex: 1;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
margin: 0;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
text-overflow: ellipsis;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.seam-supported-devices-count {
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
color: var(--seam-ecosystem-fg-2);
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.seam-supported-devices-rows {
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
list-style: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.seam-supported-devices-row {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-columns: 48px minmax(0, 1fr);
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 8px 12px;
|
|
75
|
+
padding: 12px 16px;
|
|
76
|
+
|
|
77
|
+
&:not(:last-child) {
|
|
78
|
+
border-bottom: 1px solid var(--seam-ecosystem-line-1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.seam-supported-devices-image {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: 48px;
|
|
87
|
+
height: 48px;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
background: var(--seam-ecosystem-surface-2);
|
|
91
|
+
color: var(--seam-ecosystem-fg-3);
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
|
|
94
|
+
img {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
object-fit: contain;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.seam-supported-devices-info {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 2px;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.seam-supported-devices-name {
|
|
109
|
+
color: var(--seam-ecosystem-fg-1);
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
a.seam-supported-devices-name:hover {
|
|
114
|
+
text-decoration: underline;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.seam-supported-devices-meta {
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
color: var(--seam-ecosystem-fg-2);
|
|
120
|
+
font-size: 13px;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.seam-supported-devices-badges {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-wrap: wrap;
|
|
128
|
+
grid-column: 2;
|
|
129
|
+
gap: 4px;
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0;
|
|
132
|
+
list-style: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.seam-supported-devices-section-footer {
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
padding: 12px 16px;
|
|
139
|
+
border-top: 1px solid var(--seam-ecosystem-line-1);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@container (width >= 720px) {
|
|
143
|
+
.seam-supported-devices-row {
|
|
144
|
+
grid-template-columns: 48px minmax(0, 1fr) minmax(0, 45%);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.seam-supported-devices-badges {
|
|
148
|
+
grid-column: 3;
|
|
149
|
+
justify-content: flex-end;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|