@ably/ui 5.0.1-dev.baf5b97.0 → 5.3.0-dev.3c981a4
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/core/.gitignore +1 -0
- package/core/Code/component.css +70 -0
- package/core/Code/component.js +1 -0
- package/core/Code.jsx +7578 -0
- package/core/ConnectStateWrapper/component.js +1 -0
- package/core/ConnectStateWrapper.jsx +213 -0
- package/core/ContactFooter/component.css +12 -0
- package/core/ContactFooter/component.js +1 -0
- package/core/ContactFooter.jsx +448 -0
- package/core/CookieMessage/component.css +14 -0
- package/core/CookieMessage/component.js +1 -0
- package/core/CookieMessage.jsx +476 -0
- package/core/CustomerLogos/component.js +1 -0
- package/core/CustomerLogos.jsx +246 -0
- package/core/FeatureFooter/component.css +13 -0
- package/core/FeatureFooter/component.js +1 -0
- package/core/FeatureFooter.jsx +17 -0
- package/core/FeaturedLink/component.css +16 -0
- package/core/FeaturedLink/component.js +1 -0
- package/core/FeaturedLink.jsx +307 -0
- package/core/Flash/component.css +30 -0
- package/core/Flash/component.js +1 -0
- package/core/Flash.jsx +2002 -0
- package/core/Footer/component.css +14 -0
- package/core/Footer/component.js +1 -0
- package/core/Footer.jsx +593 -0
- package/core/Icon/component.css +1 -0
- package/core/Icon/component.js +1 -0
- package/core/Icon.jsx +257 -0
- package/core/Logo/component.js +1 -0
- package/core/Logo.jsx +302 -0
- package/core/Meganav/component.css +103 -0
- package/core/Meganav/component.js +1 -0
- package/core/Meganav/component.json +37 -0
- package/core/Meganav.jsx +6514 -0
- package/core/MeganavBlogPostsList/component.js +1 -0
- package/core/MeganavBlogPostsList.jsx +360 -0
- package/core/MeganavContentDevelopers/component.js +1 -0
- package/core/MeganavContentDevelopers.jsx +418 -0
- package/core/MeganavContentPlatform/component.js +1 -0
- package/core/MeganavContentPlatform.jsx +440 -0
- package/core/MeganavContentUseCases/component.js +1 -0
- package/core/MeganavContentUseCases.jsx +309 -0
- package/core/MeganavContentWhyAbly/component.js +1 -0
- package/core/MeganavContentWhyAbly.jsx +1471 -0
- package/core/MeganavControl/component.js +1 -0
- package/core/MeganavControl.jsx +301 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -0
- package/core/MeganavControlMobileDropdown.jsx +303 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -0
- package/core/MeganavControlMobilePanelClose.jsx +301 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -0
- package/core/MeganavControlMobilePanelOpen.jsx +299 -0
- package/core/MeganavItemsDesktop/component.js +1 -0
- package/core/MeganavItemsDesktop.jsx +377 -0
- package/core/MeganavItemsMobile/component.js +1 -0
- package/core/MeganavItemsMobile.jsx +581 -0
- package/core/MeganavItemsSignedIn/component.js +1 -0
- package/core/MeganavItemsSignedIn.jsx +461 -0
- package/core/Notice/component.css +8 -0
- package/core/Notice/component.js +2 -0
- package/core/Notice/component.js.LICENSE.txt +9 -0
- package/core/Notice.jsx +2915 -0
- package/core/Showcase/component.css +31 -0
- package/core/Showcase/component.js +1 -0
- package/core/Showcase.jsx +17 -0
- package/core/SignOutLink/component.js +1 -0
- package/core/SignOutLink.jsx +262 -0
- package/core/Slider/component.css +9 -0
- package/core/Slider/component.js +1 -0
- package/core/Slider.jsx +957 -0
- package/core/Test/component.js +59 -0
- package/core/Test.jsx +4 -0
- package/core/Uptime/component.css +129 -0
- package/core/Uptime/component.js +1 -0
- package/core/Uptime.jsx +1373 -0
- package/core/core.base.css +1 -0
- package/core/core.components.css +49 -0
- package/core/fonts/.DS_Store +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Light.eot +0 -0
- package/core/fonts/NEXT-Book-Light.otf +0 -0
- package/core/fonts/NEXT-Book-Light.woff +0 -0
- package/core/fonts/NEXT-Book-Light.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium.eot +0 -0
- package/core/fonts/NEXT-Book-Medium.otf +0 -0
- package/core/fonts/NEXT-Book-Medium.woff +0 -0
- package/core/fonts/NEXT-Book-Medium.woff2 +0 -0
- package/core/fonts/next.css +59 -0
- package/core/images/.DS_Store +0 -0
- package/core/images/ably-logo.svg +15 -0
- package/core/images/ably-stack.svg +14 -0
- package/core/images/blog-thumb1.jpg +0 -0
- package/core/images/blog-thumb2.jpg +0 -0
- package/core/images/blog-thumb3.jpg +0 -0
- package/core/images/cust-logo-ao-col-pos.png +0 -0
- package/core/images/cust-logo-ao-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/core/images/cust-logo-hubspot-col-pos.png +0 -0
- package/core/images/cust-logo-hubspot-col-pos@2x.png +0 -0
- package/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/core/images/cust-logo-lightspeed-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-col-pos@2x.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-col-pos.png +0 -0
- package/core/images/cust-logo-split-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/core/images/cust-logo-vitac-col-pos.png +0 -0
- package/core/images/cust-logo-vitac-col-pos@2x.png +0 -0
- package/core/images/cust-photo-hubspot-max-freiert.jpg +0 -0
- package/core/images/cust-photo-split-pato-echague.jpg +0 -0
- package/core/images/cust-photo-vitac-joe-antonio.jpg +0 -0
- package/core/images/flexible-companies.png +0 -0
- package/core/images/rocket-list-2021.png +0 -0
- package/core/images/scale-motif-open-empathetic.svg +1 -0
- package/core/images/technical-support-01-800x533.jpg +0 -0
- package/core/scripts.js +1 -0
- package/core/sprites.svg +130 -0
- package/core/styles.base.css +1 -0
- package/core/styles.components.css +49 -0
- package/core/styles.css +560 -0
- package/package.json +1 -1
- package/preview/log/.keep +0 -0
- package/preview/tmp/.keep +0 -0
- package/preview/tmp/pids/.keep +0 -0
- package/reset/.gitignore +1 -0
- package/reset/scripts.js +1 -0
- package/reset/styles.css +487 -0
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Code/component.html.erb +3 -3
- package/src/core/Code/component.jsx +3 -2
- package/src/core/Code/component.rb +2 -1
- package/src/core/CustomerLogos/component.html.erb +9 -0
- package/src/core/CustomerLogos/component.js +0 -0
- package/src/core/CustomerLogos/component.jsx +27 -0
- package/src/core/CustomerLogos/component.rb +13 -0
- package/src/core/FeaturedLink/component.css +1 -2
- package/src/core/FeaturedLink/component.html.erb +1 -1
- package/src/core/FeaturedLink/component.rb +3 -1
- package/src/core/MeganavItemsSignedIn/component.html.erb +1 -1
- package/src/core/MeganavItemsSignedIn/component.jsx +1 -1
- package/src/core/Slider/component.html.erb +2 -2
- package/src/core/Slider/component.js +2 -2
- package/src/core/Slider/component.jsx +2 -2
- package/src/core/icons/icon-display-api-keys.svg +3 -0
- package/src/core/icons/icon-display-cloud-servers.svg +3 -0
- package/src/core/icons/icon-display-map-pin.svg +1 -1
- package/src/core/icons/icon-display-servers.svg +3 -0
- package/src/core/icons/icon-gui-history.svg +3 -0
- package/src/core/icons/icon-gui-refresh.svg +10 -0
- package/src/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/src/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/src/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/src/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/src/core/styles/buttons.css +91 -4
- package/src/core/styles/forms.css +50 -0
- package/src/core/styles/properties.css +34 -6
- package/src/core/styles/text.css +62 -1
- package/src/core/styles.components.css +1 -0
- package/tailwind.config.js +22 -1
package/reset/styles.css
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
3
|
+
|
|
4
|
+
/* Document
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 1. Correct the line height in all browsers.
|
|
9
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
line-height: 1.15; /* 1 */
|
|
14
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Sections
|
|
18
|
+
========================================================================== */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Remove the margin in all browsers.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
body {
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Render the `main` element consistently in IE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
main {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
38
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
h1 {
|
|
42
|
+
font-size: 2em;
|
|
43
|
+
margin: 0.67em 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Grouping content
|
|
47
|
+
========================================================================== */
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 1. Add the correct box sizing in Firefox.
|
|
51
|
+
* 2. Show the overflow in Edge and IE.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
hr {
|
|
55
|
+
box-sizing: content-box; /* 1 */
|
|
56
|
+
height: 0; /* 1 */
|
|
57
|
+
overflow: visible; /* 2 */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
62
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
pre {
|
|
66
|
+
font-family: monospace, monospace; /* 1 */
|
|
67
|
+
font-size: 1em; /* 2 */
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Text-level semantics
|
|
71
|
+
========================================================================== */
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Remove the gray background on active links in IE 10.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
a {
|
|
78
|
+
background-color: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
83
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
abbr[title] {
|
|
87
|
+
border-bottom: none; /* 1 */
|
|
88
|
+
text-decoration: underline; /* 2 */
|
|
89
|
+
-webkit-text-decoration: underline dotted;
|
|
90
|
+
text-decoration: underline dotted; /* 2 */
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
b,
|
|
98
|
+
strong {
|
|
99
|
+
font-weight: bolder;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
104
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
code,
|
|
108
|
+
kbd,
|
|
109
|
+
samp {
|
|
110
|
+
font-family: monospace, monospace; /* 1 */
|
|
111
|
+
font-size: 1em; /* 2 */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Add the correct font size in all browsers.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
small {
|
|
119
|
+
font-size: 80%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
124
|
+
* all browsers.
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
sub,
|
|
128
|
+
sup {
|
|
129
|
+
font-size: 75%;
|
|
130
|
+
line-height: 0;
|
|
131
|
+
position: relative;
|
|
132
|
+
vertical-align: baseline;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
sub {
|
|
136
|
+
bottom: -0.25em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
sup {
|
|
140
|
+
top: -0.5em;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Embedded content
|
|
144
|
+
========================================================================== */
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Remove the border on images inside links in IE 10.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
img {
|
|
151
|
+
border-style: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Forms
|
|
155
|
+
========================================================================== */
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 1. Change the font styles in all browsers.
|
|
159
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
button,
|
|
163
|
+
input,
|
|
164
|
+
optgroup,
|
|
165
|
+
select,
|
|
166
|
+
textarea {
|
|
167
|
+
font-family: inherit; /* 1 */
|
|
168
|
+
font-size: 100%; /* 1 */
|
|
169
|
+
line-height: 1.15; /* 1 */
|
|
170
|
+
margin: 0; /* 2 */
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Show the overflow in IE.
|
|
175
|
+
* 1. Show the overflow in Edge.
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
button,
|
|
179
|
+
input {
|
|
180
|
+
/* 1 */
|
|
181
|
+
overflow: visible;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
186
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
button,
|
|
190
|
+
select {
|
|
191
|
+
/* 1 */
|
|
192
|
+
text-transform: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
button,
|
|
200
|
+
[type="button"],
|
|
201
|
+
[type="reset"],
|
|
202
|
+
[type="submit"] {
|
|
203
|
+
-webkit-appearance: button;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Remove the inner border and padding in Firefox.
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
button::-moz-focus-inner,
|
|
211
|
+
[type="button"]::-moz-focus-inner,
|
|
212
|
+
[type="reset"]::-moz-focus-inner,
|
|
213
|
+
[type="submit"]::-moz-focus-inner {
|
|
214
|
+
border-style: none;
|
|
215
|
+
padding: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Restore the focus styles unset by the previous rule.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
button:-moz-focusring,
|
|
223
|
+
[type="button"]:-moz-focusring,
|
|
224
|
+
[type="reset"]:-moz-focusring,
|
|
225
|
+
[type="submit"]:-moz-focusring {
|
|
226
|
+
outline: 1px dotted ButtonText;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Correct the padding in Firefox.
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
fieldset {
|
|
234
|
+
padding: 0.35em 0.75em 0.625em;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
239
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
240
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
241
|
+
* `fieldset` elements in all browsers.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
legend {
|
|
245
|
+
box-sizing: border-box; /* 1 */
|
|
246
|
+
color: inherit; /* 2 */
|
|
247
|
+
display: table; /* 1 */
|
|
248
|
+
max-width: 100%; /* 1 */
|
|
249
|
+
padding: 0; /* 3 */
|
|
250
|
+
white-space: normal; /* 1 */
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
progress {
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
textarea {
|
|
266
|
+
overflow: auto;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* 1. Add the correct box sizing in IE 10.
|
|
271
|
+
* 2. Remove the padding in IE 10.
|
|
272
|
+
*/
|
|
273
|
+
|
|
274
|
+
[type="checkbox"],
|
|
275
|
+
[type="radio"] {
|
|
276
|
+
box-sizing: border-box; /* 1 */
|
|
277
|
+
padding: 0; /* 2 */
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
285
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
286
|
+
height: auto;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
291
|
+
* 2. Correct the outline style in Safari.
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
[type="search"] {
|
|
295
|
+
-webkit-appearance: textfield; /* 1 */
|
|
296
|
+
outline-offset: -2px; /* 2 */
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
[type="search"]::-webkit-search-decoration {
|
|
304
|
+
-webkit-appearance: none;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
309
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
::-webkit-file-upload-button {
|
|
313
|
+
-webkit-appearance: button; /* 1 */
|
|
314
|
+
font: inherit; /* 2 */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Interactive
|
|
318
|
+
========================================================================== */
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
details {
|
|
325
|
+
display: block;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/*
|
|
329
|
+
* Add the correct display in all browsers.
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
summary {
|
|
333
|
+
display: list-item;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Misc
|
|
337
|
+
========================================================================== */
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Add the correct display in IE 10+.
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
template {
|
|
344
|
+
display: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Add the correct display in IE 10.
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
[hidden] {
|
|
352
|
+
display: none;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
/* Reset based on https://unpkg.com/tailwindcss@1.9.6/dist/base.css */
|
|
356
|
+
@layer base {
|
|
357
|
+
html {
|
|
358
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
359
|
+
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
|
|
360
|
+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
|
|
361
|
+
"Noto Color Emoji";
|
|
362
|
+
line-height: 1.5;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
blockquote,
|
|
366
|
+
dl,
|
|
367
|
+
dd,
|
|
368
|
+
h1,
|
|
369
|
+
h2,
|
|
370
|
+
h3,
|
|
371
|
+
h4,
|
|
372
|
+
h5,
|
|
373
|
+
h6,
|
|
374
|
+
figure,
|
|
375
|
+
p,
|
|
376
|
+
pre {
|
|
377
|
+
margin: 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
h1,
|
|
381
|
+
h2,
|
|
382
|
+
h3,
|
|
383
|
+
h4,
|
|
384
|
+
h5,
|
|
385
|
+
h6 {
|
|
386
|
+
font-size: inherit;
|
|
387
|
+
font-weight: inherit;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
fieldset {
|
|
391
|
+
margin: 0;
|
|
392
|
+
padding: 0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
ol,
|
|
396
|
+
ul {
|
|
397
|
+
list-style: none;
|
|
398
|
+
margin: 0;
|
|
399
|
+
padding: 0;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
pre,
|
|
403
|
+
code,
|
|
404
|
+
kbd,
|
|
405
|
+
samp {
|
|
406
|
+
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
|
407
|
+
monospace;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
button {
|
|
411
|
+
background-color: transparent;
|
|
412
|
+
background-image: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
button:focus {
|
|
416
|
+
outline: 1px dotted;
|
|
417
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
img,
|
|
421
|
+
video {
|
|
422
|
+
max-width: 100%;
|
|
423
|
+
height: auto;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
*,
|
|
427
|
+
::before,
|
|
428
|
+
::after {
|
|
429
|
+
box-sizing: border-box;
|
|
430
|
+
border-width: 0;
|
|
431
|
+
border-style: solid;
|
|
432
|
+
border-color: #e2e8f0;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
hr {
|
|
436
|
+
border-top-width: 1px;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
img {
|
|
440
|
+
border-style: solid;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
textarea {
|
|
444
|
+
resize: vertical;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
input:-ms-input-placeholder,
|
|
448
|
+
textarea:-ms-input-placeholder {
|
|
449
|
+
color: #a0aec0;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
input::-moz-placeholder, textarea::-moz-placeholder {
|
|
453
|
+
color: #a0aec0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
|
|
457
|
+
color: #a0aec0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
input::placeholder,
|
|
461
|
+
textarea::placeholder {
|
|
462
|
+
color: #a0aec0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
input::-webkit-search-cancel-button {
|
|
466
|
+
display: none;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
button,
|
|
470
|
+
[role="button"] {
|
|
471
|
+
cursor: pointer;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
table {
|
|
475
|
+
border-collapse: collapse;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
a {
|
|
479
|
+
color: inherit;
|
|
480
|
+
text-decoration: inherit;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
svg {
|
|
484
|
+
fill: currentColor;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
package/src/.DS_Store
CHANGED
|
Binary file
|
package/src/core/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<%= tag.div class: "hljs p-32 overflow-auto", data: { id: "code" } do %>
|
|
2
|
+
<%= tag.pre lang: @language do %><%= tag.code class: "language-#{@language} #{@text_size}" do %><%= @snippet %><% end %><% end %>
|
|
3
|
+
<% end %>
|
|
@@ -4,9 +4,9 @@ import T from "prop-types";
|
|
|
4
4
|
import "./component.css";
|
|
5
5
|
import { highlight } from "./component.js";
|
|
6
6
|
|
|
7
|
-
const Code = ({ language, snippet }) => {
|
|
7
|
+
const Code = ({ language, snippet, textSize = "ui-text-code1" }) => {
|
|
8
8
|
const HTMLraw = highlight(language, `${snippet}`.trim());
|
|
9
|
-
const className = `
|
|
9
|
+
const className = `language-${language} ${textSize}`;
|
|
10
10
|
return (
|
|
11
11
|
<div className="hljs p-32 overflow-auto" data-id="code">
|
|
12
12
|
<pre lang={language}>
|
|
@@ -19,6 +19,7 @@ const Code = ({ language, snippet }) => {
|
|
|
19
19
|
Code.propTypes = {
|
|
20
20
|
language: T.string,
|
|
21
21
|
snippet: T.string,
|
|
22
|
+
textSize: T.string,
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export default Code;
|
|
@@ -2,9 +2,10 @@ module AblyUi
|
|
|
2
2
|
module Core
|
|
3
3
|
class Code < ViewComponent::Base
|
|
4
4
|
include AblyUi::Core::Util
|
|
5
|
-
def initialize(language:, snippet:)
|
|
5
|
+
def initialize(language:, snippet:, text_size: 'ui-text-code1')
|
|
6
6
|
@language = language
|
|
7
7
|
@snippet = snippet.try(:strip)
|
|
8
|
+
@text_size = text_size
|
|
8
9
|
end
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<section class="w-full bg-white">
|
|
2
|
+
<ul class="py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center">
|
|
3
|
+
<% companies.each do |company| %>
|
|
4
|
+
<li class="flex-auto text-center sm:w-1/3 w-1/2">
|
|
5
|
+
<%= image_tag company[:logo], alt: "#{company[:label]} logo", class: 'mx-auto' %>
|
|
6
|
+
</li>
|
|
7
|
+
<% end %>
|
|
8
|
+
</ul>
|
|
9
|
+
</section>
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import T from "prop-types";
|
|
3
|
+
|
|
4
|
+
const CustomerLogos = ({ companies }) => {
|
|
5
|
+
return (
|
|
6
|
+
<section className="w-full bg-white">
|
|
7
|
+
<ul className="py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center">
|
|
8
|
+
{companies.map((company) => (
|
|
9
|
+
<li key={company.label} className="flex-auto text-center sm:w-1/3 w-1/2">
|
|
10
|
+
<img alt={company.label} src={company.logo} className="mx-auto" />
|
|
11
|
+
</li>
|
|
12
|
+
))}
|
|
13
|
+
</ul>
|
|
14
|
+
</section>
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
CustomerLogos.propTypes = {
|
|
19
|
+
companies: T.arrayOf(
|
|
20
|
+
T.shape({
|
|
21
|
+
label: T.string,
|
|
22
|
+
logo: T.string,
|
|
23
|
+
})
|
|
24
|
+
),
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default CustomerLogos;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= link_to(@url, class: "ui-featured-link #{@text_size} #{@flush ? '' : 'py-8'}", style: "--featured-link-icon-size: var(#{@text_size.gsub("text", "--fs")})") do %>
|
|
1
|
+
<%= link_to(@url, class: "ui-featured-link #{@text_size} #{@flush ? '' : 'py-8'} #{@additional_css}", style: "--featured-link-icon-size: var(#{@text_size.gsub("text", "--fs")})") do %>
|
|
2
2
|
<%= content -%><%= render(AblyUi::Core::Icon.new(name: "icon-gui-link-arrow",
|
|
3
3
|
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
4
4
|
color: @icon_color,
|
|
@@ -5,12 +5,14 @@ module AblyUi
|
|
|
5
5
|
url:,
|
|
6
6
|
text_size: 'text-menu3',
|
|
7
7
|
icon_color: 'text-cool-black',
|
|
8
|
-
flush: false
|
|
8
|
+
flush: false,
|
|
9
|
+
additional_css: ''
|
|
9
10
|
)
|
|
10
11
|
@url = url
|
|
11
12
|
@text_size = text_size
|
|
12
13
|
@icon_color = icon_color
|
|
13
14
|
@flush = flush
|
|
15
|
+
@additional_css = additional_css
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<% if access_tokens? %>
|
|
26
26
|
<li>
|
|
27
27
|
<%= link_to @session_data[:myAccessTokens][:href], class: "ui-meganav-account-link" do %>
|
|
28
|
-
<%= @session_data[:myAccessTokens][:text] %><span class="ui-version-tag">
|
|
28
|
+
<%= @session_data[:myAccessTokens][:text] %><span class="ui-version-tag">preview</span>
|
|
29
29
|
<% end %>
|
|
30
30
|
</li>
|
|
31
31
|
<% end %>
|
|
@@ -48,7 +48,7 @@ const MeganavItemsSignedIn = ({ sessionState, theme, absUrl }) => {
|
|
|
48
48
|
<li>
|
|
49
49
|
<a href={absUrl(sessionState.myAccessTokens.href)} className="ui-meganav-account-link">
|
|
50
50
|
{sessionState.myAccessTokens.text}
|
|
51
|
-
<span className="ui-version-tag">
|
|
51
|
+
<span className="ui-version-tag">preview</span>
|
|
52
52
|
</a>
|
|
53
53
|
</li>
|
|
54
54
|
)}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<% end %>
|
|
7
7
|
|
|
8
8
|
<div class="hidden justify-center items-center my-24" data-id="slider-controls">
|
|
9
|
-
<button type="button" class="p-0
|
|
9
|
+
<button type="button" class="p-0 w-24 h-24 flex items-center focus:outline-gui-focus" data-id="slider-previous">
|
|
10
10
|
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-disclosure-arrow", size: "1.5rem", color: "text-cool-black", additional_css: "transform rotate-180")) %>
|
|
11
11
|
</button>
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<% end %>
|
|
22
22
|
</ul>
|
|
23
23
|
|
|
24
|
-
<button type="button" class="p-0
|
|
24
|
+
<button type="button" class="p-0 w-24 h-24 flex items-center focus:outline-gui-focus" data-id="slider-next">
|
|
25
25
|
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-disclosure-arrow", size: "1.5rem", color: "text-cool-black")) %>
|
|
26
26
|
</button>
|
|
27
27
|
</div>
|
|
@@ -4,7 +4,7 @@ import throttle from "lodash.throttle";
|
|
|
4
4
|
|
|
5
5
|
import { queryId, queryIdAll } from "../dom-query";
|
|
6
6
|
|
|
7
|
-
const mdBreakpoint = () => window.matchMedia("(min-width:
|
|
7
|
+
const mdBreakpoint = () => window.matchMedia("(min-width: 48rem)").matches;
|
|
8
8
|
const DRAG_BUFFER = 20;
|
|
9
9
|
|
|
10
10
|
const init = (slidesContainer) => {
|
|
@@ -80,7 +80,7 @@ const init = (slidesContainer) => {
|
|
|
80
80
|
|
|
81
81
|
return () => {
|
|
82
82
|
transformContainer.style.transform = null;
|
|
83
|
-
sliderControls.classList("flex", "hidden");
|
|
83
|
+
sliderControls.classList.replace("flex", "hidden");
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -45,7 +45,7 @@ const Slider = ({
|
|
|
45
45
|
</ol>
|
|
46
46
|
|
|
47
47
|
<div className="justify-center items-center my-24 hidden" data-id="slider-controls">
|
|
48
|
-
<button type="button" className="p-0
|
|
48
|
+
<button type="button" className="p-0 w-24 h-24 flex items-center focus:outline-gui-focus" data-id="slider-previous">
|
|
49
49
|
<Icon
|
|
50
50
|
name="icon-gui-disclosure-arrow"
|
|
51
51
|
size="1.5rem"
|
|
@@ -66,7 +66,7 @@ const Slider = ({
|
|
|
66
66
|
))}
|
|
67
67
|
</ul>
|
|
68
68
|
|
|
69
|
-
<button type="button" className="p-0
|
|
69
|
+
<button type="button" className="p-0 w-24 h-24 flex items-center focus:outline-gui-focus" data-id="slider-next">
|
|
70
70
|
<Icon name="icon-gui-disclosure-arrow" size="1.5rem" color="text-cool-black" data-id="meganav-control-mobile-dropdown-menu" />
|
|
71
71
|
</button>
|
|
72
72
|
</div>
|