@ably/ui 8.7.0-dev.e7c81e7 → 8.7.0-dev.ef0470f

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 (98) hide show
  1. package/core/Code/component.css +2 -0
  2. package/core/Code/component.js +1 -1
  3. package/core/Code.jsx +108 -88
  4. package/core/CompanyAutocomplete/component.js +1 -1
  5. package/core/ConnectStateWrapper/component.js +1 -1
  6. package/core/ConnectStateWrapper.jsx +7 -7
  7. package/core/ContactFooter/component.js +1 -1
  8. package/core/ContactFooter.jsx +12 -12
  9. package/core/CookieMessage/component.js +1 -1
  10. package/core/CookieMessage.jsx +10 -10
  11. package/core/CustomerLogos/component.js +1 -1
  12. package/core/CustomerLogos.jsx +7 -7
  13. package/core/DropdownMenu/component.js +1 -1
  14. package/core/DropdownMenu.jsx +11 -11
  15. package/core/FeatureFooter/component.js +1 -1
  16. package/core/FeaturedLink/component.js +1 -1
  17. package/core/FeaturedLink.jsx +10 -10
  18. package/core/Flash/component.js +1 -1
  19. package/core/Flash.jsx +19 -19
  20. package/core/Footer/component.js +1 -1
  21. package/core/Footer.jsx +19 -19
  22. package/core/Icon/component.js +1 -1
  23. package/core/Icon.jsx +7 -7
  24. package/core/Loader/component.js +1 -1
  25. package/core/Loader.jsx +7 -7
  26. package/core/Logo/component.js +1 -1
  27. package/core/Logo.jsx +7 -7
  28. package/core/Meganav/component.css +1 -3
  29. package/core/Meganav/component.js +1 -1
  30. package/core/Meganav.jsx +167 -142
  31. package/core/MeganavBlogPostsList/component.js +1 -1
  32. package/core/MeganavBlogPostsList.jsx +13 -13
  33. package/core/MeganavContentCompany/component.js +1 -1
  34. package/core/MeganavContentCompany.jsx +39 -27
  35. package/core/MeganavContentDevelopers/component.js +1 -1
  36. package/core/MeganavContentDevelopers.jsx +30 -17
  37. package/core/MeganavContentPlatform/component.js +1 -1
  38. package/core/MeganavContentPlatform.jsx +15 -15
  39. package/core/MeganavContentUseCases/component.js +1 -1
  40. package/core/MeganavContentUseCases.jsx +16 -16
  41. package/core/MeganavControl/component.js +1 -1
  42. package/core/MeganavControl.jsx +10 -10
  43. package/core/MeganavControlMobileDropdown/component.js +1 -1
  44. package/core/MeganavControlMobileDropdown.jsx +11 -11
  45. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  46. package/core/MeganavControlMobilePanelClose.jsx +10 -10
  47. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  48. package/core/MeganavControlMobilePanelOpen.jsx +10 -10
  49. package/core/MeganavItemsDesktop/component.js +1 -1
  50. package/core/MeganavItemsDesktop.jsx +16 -16
  51. package/core/MeganavItemsMobile/component.js +1 -1
  52. package/core/MeganavItemsMobile.jsx +39 -39
  53. package/core/MeganavItemsSignedIn/component.js +1 -1
  54. package/core/MeganavItemsSignedIn.jsx +33 -33
  55. package/core/MeganavSearch/component.js +1 -1
  56. package/core/MeganavSearch.jsx +23 -23
  57. package/core/MeganavSearchAutocomplete/component.js +1 -1
  58. package/core/MeganavSearchAutocomplete.jsx +4 -4
  59. package/core/MeganavSearchPanel/component.js +1 -1
  60. package/core/MeganavSearchPanel.jsx +19 -19
  61. package/core/MeganavSearchSuggestions/component.js +1 -1
  62. package/core/MeganavSearchSuggestions.jsx +13 -13
  63. package/core/Notice/component.js +1 -1
  64. package/core/Notice.jsx +30 -30
  65. package/core/Showcase/component.js +1 -1
  66. package/core/Showcase.jsx +1 -1
  67. package/core/SignOutLink/component.js +1 -1
  68. package/core/SignOutLink.jsx +7 -7
  69. package/core/Slider/component.js +1 -1
  70. package/core/Slider.jsx +14 -14
  71. package/core/Uptime/component.js +1 -1
  72. package/core/Uptime.jsx +15 -15
  73. package/core/fonts/jetBrains-mono.css +3 -0
  74. package/core/fonts/manrope.css +3 -0
  75. package/core/scripts.js +1 -1
  76. package/core/sprites.svg +12 -0
  77. package/core/styles.css +122 -94
  78. package/package.json +1 -1
  79. package/reset/scripts.js +1 -1
  80. package/reset/styles.css +1 -11
  81. package/src/core/Meganav/component.css +1 -1
  82. package/src/core/MeganavContentCompany/component.html.erb +9 -0
  83. package/src/core/MeganavContentCompany/component.jsx +9 -0
  84. package/src/core/MeganavContentDevelopers/component.html.erb +9 -2
  85. package/src/core/MeganavContentDevelopers/component.jsx +11 -1
  86. package/src/core/MeganavContentUseCases/component.html.erb +1 -1
  87. package/src/core/MeganavContentUseCases/component.jsx +1 -1
  88. package/src/core/fonts/jetBrains-mono.css +3 -0
  89. package/src/core/fonts/manrope.css +3 -0
  90. package/src/core/icons/icon-display-events-col.svg +13 -0
  91. package/src/core/styles/buttons.css +5 -5
  92. package/src/core/styles/forms.css +5 -5
  93. package/src/core/styles/properties.css +47 -31
  94. package/src/core/styles/text.css +65 -47
  95. package/src/core/utils/syntax-highlighter-registry.js +2 -0
  96. package/src/core/utils/syntax-highlighter.css +2 -0
  97. package/src/core/utils/syntax-highlighter.js +5 -0
  98. package/tailwind.config.js +42 -26
package/core/styles.css CHANGED
@@ -4,20 +4,24 @@
4
4
  --color-active-orange: #ff5416;
5
5
  --color-red-orange: #e40000;
6
6
  --color-white: #ffffff;
7
- --color-electric-cyan: #4af7ff;
7
+ --color-electric-cyan: #4ad4ff;
8
8
  --color-zingy-green: #08ff13;
9
- --color-bright-red: #ff2739;
9
+ --color-bright-red: #fe372b;
10
+ --color-orange-700: #ff2739;
10
11
  --color-jazzy-pink: #ff17d2;
11
- --color-extra-light-grey: #fafafb;
12
- --color-light-grey: #f5f5f6;
13
- --color-mid-grey: #d9d9da;
14
- --color-dark-grey: #76767c;
15
- --color-charcoal-grey: #292831;
16
- --color-gui-default: #0073e6;
17
- --color-gui-hover: #0867c4;
18
- --color-gui-focus: #0073e6;
19
- --color-gui-focus-outline: #80b9f2;
12
+ --color-extra-light-grey: #f8fafc;
13
+ --color-light-grey: #f4f8fb;
14
+ --color-mid-grey: #c6ced9;
15
+ --color-dark-grey: #667085;
16
+ --color-charcoal-grey: #2b303b;
17
+ --color-gui-default: #006edc;
18
+ --color-gui-hover: #0862b9;
20
19
  --color-gui-active: #074095;
20
+ --color-gui-default-dark: #4da6ff;
21
+ --color-gui-hover-dark: #2894ff;
22
+ --color-gui-active-dark: #0080ff;
23
+ --color-gui-focus: #80b9f2;
24
+ --color-gui-focus-outline: #80b9f2;
21
25
  --color-gui-visited: #4887c2;
22
26
  --color-gui-unavailable: #a8a8a8;
23
27
  --color-gui-error: #fb0c0c;
@@ -36,6 +40,10 @@
36
40
  --syntax-red: #d54e53;
37
41
  --syntax-lilac: #bb87d3;
38
42
 
43
+ /* New Neutral colors */
44
+ --color-neutral-900: #39414e;
45
+ --color-neutral-500: #c6ced9;
46
+
39
47
  /* uptime status colors */
40
48
  --uptime-color-up: #39b54a;
41
49
  --uptime-color-trouble: #e87623;
@@ -70,38 +78,43 @@
70
78
 
71
79
  --gradient-hot-pink: linear-gradient(
72
80
  80.2deg,
73
- var(--color-bright-red) 0%,
81
+ var(--color-orange-700) 0%,
74
82
  var(--color-jazzy-pink) 100%
75
83
  );
76
84
 
77
- --fs-title-xl: 4rem;
78
- --fs-title: 3.5rem;
79
- --fs-title-xs: 3rem;
80
- --fs-h1-xl: 3.5rem;
81
- --fs-h1: 3rem;
82
- --fs-h1-xs: 2.625rem;
83
- --fs-h2-xl: 2.5rem;
85
+ --fs-title-xl: 3rem;
86
+ --fs-title: 2.75rem;
87
+ --fs-title-xs: 2.5rem;
88
+ --fs-h1-xl: 2.5rem;
89
+ --fs-h1: 2.25rem;
90
+ --fs-h1-xs: 2rem;
91
+
92
+ --fs-h2-xl: 2.125rem;
84
93
  --fs-h2: 2rem;
85
- --fs-h2-xs: 1.875rem;
94
+ --fs-h2-xs: 1.75rem;
95
+
86
96
  --fs-h3: 1.5rem;
87
- --fs-h4: 1.125rem;
88
- --fs-p1: 1.125rem;
89
- --fs-p2: 1rem;
97
+ --fs-h4: 1.25rem;
98
+ --fs-h5: 1rem;
99
+
100
+ --fs-p1: 1rem;
101
+ --fs-p2: 0.938rem;
90
102
  --fs-p3: 0.875rem;
91
103
  --fs-standfirst-xl: 2.25rem;
92
104
  --fs-standfirst: 1.5rem;
93
- --fs-sub-header: 1.5rem;
94
- --fs-sub-header-xs: 1.125rem;
105
+ --fs-sub-header: 1.125rem;
106
+ --fs-sub-header-xs: 1.063rem;
95
107
  --fs-overline1: 1rem;
96
108
  --fs-overline2: 0.875rem;
97
- --fs-btn1: 1.125rem;
98
- --fs-btn2: 1rem;
109
+ --fs-btn1: 1rem;
110
+ --fs-btn2: 0.938rem;
99
111
  --fs-btn3: 0.875rem;
100
- --fs-menu1: 1.125rem;
101
- --fs-menu2: 1rem;
112
+ --fs-menu1: 1rem;
113
+ --fs-menu2: 0.938rem;
102
114
  --fs-menu3: 0.875rem;
103
- --fs-quote: 1.5rem;
104
- --fs-code: 0.875rem;
115
+ --fs-quote: 1.25rem;
116
+ --fs-code: 0.938rem;
117
+ --fs-code2: 0.813rem;
105
118
 
106
119
  --lh-dense: 1;
107
120
  --lh-tight: 1.125;
@@ -115,7 +128,9 @@
115
128
  --ls-tighten-0_01: -0.01em;
116
129
  --ls-tighten-0_005: -0.005em;
117
130
  --ls-tighten-0_0025: -0.0025em;
131
+ --ls-tighten-0_0015: -0.0015em;
118
132
  --ls-widen-0_1: 0.1em;
133
+ --ls-widen-0_16: 0.16em;
119
134
  --ls-widen-0_15: 0.15em;
120
135
 
121
136
  --spacing-0: 0px;
@@ -130,6 +145,7 @@
130
145
  --spacing-20: 1.25rem;
131
146
  --spacing-24: 1.5rem;
132
147
  --spacing-32: 2rem;
148
+ --spacing-36: 2.25rem;
133
149
  --spacing-40: 2.5rem;
134
150
  --spacing-48: 3rem;
135
151
  --spacing-64: 4rem;
@@ -177,7 +193,7 @@
177
193
  }
178
194
  @layer components {
179
195
  .ui-btn {
180
- @apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block rounded p-btn;
196
+ @apply text-white bg-cool-black text-btn2 font-manrope font-bold inline-block rounded p-btn;
181
197
  @apply hover:text-white hover:bg-active-orange;
182
198
  @apply active:text-white active:bg-red-orange;
183
199
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -201,7 +217,7 @@
201
217
  background-size: 200% 100%;
202
218
  background-position: 0% 0%;
203
219
 
204
- @apply text-white text-btn2 font-sans font-medium inline-block rounded p-btn;
220
+ @apply text-white text-btn2 font-manrope font-bold inline-block rounded p-btn;
205
221
  @apply focus:outline-gui-focus;
206
222
  @apply inline-flex items-center justify-center;
207
223
  }
@@ -217,7 +233,7 @@
217
233
  }
218
234
 
219
235
  .ui-btn-invert {
220
- @apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block rounded p-btn;
236
+ @apply text-cool-black bg-white text-btn2 font-manrope font-bold inline-block rounded p-btn;
221
237
  @apply hover:text-white hover:bg-active-orange;
222
238
  @apply active:text-white active:bg-red-orange;
223
239
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -227,7 +243,7 @@
227
243
  }
228
244
 
229
245
  .ui-btn-secondary {
230
- @apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block border-btn border-cool-black rounded p-btn;
246
+ @apply text-cool-black bg-white text-btn2 font-manrope font-bold inline-block border-btn border-cool-black rounded p-btn;
231
247
  @apply hover:text-cool-black hover:border-active-orange hover:bg-white;
232
248
  @apply active:border-red-orange active:bg-white;
233
249
  @apply focus:border-cool-black focus:bg-white focus:outline-gui-focus;
@@ -237,7 +253,7 @@
237
253
  }
238
254
 
239
255
  .ui-btn-secondary-invert {
240
- @apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block border-btn border-mid-grey rounded p-btn;
256
+ @apply text-white bg-cool-black text-btn2 font-manrope font-bold inline-block border-btn border-mid-grey rounded p-btn;
241
257
  @apply hover:text-white hover:border-active-orange;
242
258
  @apply active:border-red-orange;
243
259
  @apply focus:outline-gui-focus;
@@ -322,48 +338,54 @@
322
338
  }
323
339
  @layer components {
324
340
  .ui-text-title {
325
- @apply font-sans font-medium text-cool-black;
326
- @apply text-title-xs xs:text-title xl:text-title-xl;
327
- @apply tracking-tighten-0.01 xs:tracking-tighten-0.015 xl:tracking-tighten-0.02;
341
+ @apply font-manrope font-extrabold text-cool-black;
342
+ @apply text-title-xs xs:text-title xl:text-title-xl leading-tight;
343
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
328
344
  }
329
345
 
330
346
  .ui-text-h1 {
331
- @apply font-sans font-medium text-cool-black;
332
- @apply text-h1-xs xs:text-h1 xl:text-h1-xl;
333
- @apply tracking-tighten-0.01;
347
+ @apply font-manrope font-extrabold text-cool-black;
348
+ @apply text-h1-xs xs:text-h1 xl:text-h1-xl leading-tight;
349
+ @apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
334
350
  }
335
351
 
336
352
  .ui-text-h2 {
337
- @apply font-sans font-medium text-cool-black;
338
- @apply text-h2-xs xs:text-h2 xl:text-h2-xl;
339
- @apply tracking-tighten-0.005;
353
+ @apply font-manrope font-extrabold text-cool-black;
354
+ @apply text-h2-xs xs:text-h2 xl:text-h2-xl leading-tight;
355
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
340
356
  }
341
357
 
342
358
  .ui-text-h3 {
343
- @apply font-sans font-medium text-cool-black;
344
- @apply text-h3;
345
- @apply tracking-tighten-0.0025;
359
+ @apply font-manrope font-extrabold text-cool-black;
360
+ @apply text-h3 leading-tight;
361
+ @apply tracking-tighten-0.005;
346
362
  }
347
363
 
348
364
  .ui-text-h4 {
349
- @apply font-sans font-medium text-cool-black;
350
- @apply text-h4 uppercase;
351
- @apply tracking-widen-0.1;
365
+ @apply font-manrope font-extrabold text-cool-black;
366
+ @apply text-h4 leading-tight;
367
+ @apply tracking-tighten-0.0015;
368
+ }
369
+
370
+ .ui-text-h5 {
371
+ @apply font-manrope font-extrabold text-cool-black;
372
+ @apply text-h5 leading-tight;
373
+ @apply tracking-tighten-0.0025;
352
374
  }
353
375
 
354
376
  .ui-text-p1 {
355
- @apply font-sans font-light text-charcoal-grey;
356
- @apply text-p1;
377
+ @apply font-manrope font-medium text-charcoal-grey;
378
+ @apply text-p1 leading-relaxed;
357
379
  }
358
380
 
359
381
  .ui-text-p2 {
360
- @apply font-sans font-light text-charcoal-grey;
361
- @apply text-p2;
382
+ @apply font-manrope font-medium text-charcoal-grey;
383
+ @apply text-p2 leading-relaxed;
362
384
  }
363
385
 
364
386
  .ui-text-p3 {
365
- @apply font-sans font-light text-charcoal-grey;
366
- @apply text-p3;
387
+ @apply font-manrope font-medium text-charcoal-grey;
388
+ @apply text-p3 leading-relaxed;
367
389
  }
368
390
 
369
391
  .ui-text-standfirst {
@@ -373,60 +395,63 @@
373
395
  }
374
396
 
375
397
  .ui-text-quote {
376
- @apply font-sans font-light text-cool-black;
377
- @apply text-quote;
378
- @apply tracking-tighten-0.025;
398
+ @apply font-manrope font-normal text-cool-black;
399
+ @apply text-quote leading-normal;
400
+ @apply tracking-tighten-0.0015;
379
401
  }
380
402
 
381
403
  .ui-text-sub-header {
382
- @apply font-sans font-light text-dark-grey;
383
- @apply text-sub-header-xs xs:text-sub-header;
384
- @apply tracking-tighten-0.025;
404
+ @apply font-manrope font-semibold text-neutral-900;
405
+ @apply text-sub-header-xs xs:text-sub-header leading-normal;
385
406
  }
386
407
 
387
408
  .ui-text-overline1 {
388
- @apply font-sans font-medium text-dark-grey uppercase;
389
- @apply text-overline1;
390
- @apply tracking-widen-0.15;
409
+ @apply font-jetbrains_mono font-medium text-active-orange uppercase;
410
+ @apply text-overline1 leading-normal;
411
+ @apply tracking-widen-0.16;
391
412
  }
392
413
 
393
414
  .ui-text-overline2 {
394
- @apply font-sans font-medium text-dark-grey uppercase;
395
- @apply text-overline2;
396
- @apply tracking-widen-0.1;
415
+ @apply font-jetbrains_mono font-medium text-active-orange uppercase;
416
+ @apply text-overline2 leading-normal;
417
+ @apply tracking-widen-0.16;
397
418
  }
398
419
 
399
420
  .ui-text-menu1 {
400
- @apply font-sans font-light text-cool-black;
401
- @apply text-menu1;
421
+ @apply font-manrope font-medium text-cool-black;
422
+ @apply text-menu1 leading-snug;
402
423
  }
403
424
 
404
425
  .ui-text-menu2 {
405
- @apply font-sans font-light text-cool-black;
406
- @apply text-menu2;
426
+ @apply font-manrope font-medium text-cool-black;
427
+ @apply text-menu2 leading-snug;
407
428
  }
408
429
 
409
430
  .ui-text-menu3 {
410
- @apply font-sans font-light text-cool-black;
411
- @apply text-menu3;
431
+ @apply font-manrope font-medium text-cool-black;
432
+ @apply text-menu3 leading-snug;
412
433
  }
413
434
 
414
435
  .ui-text-code {
415
- @apply font-mono font-semibold text-code;
436
+ @apply font-jetbrains_mono font-medium text-code;
437
+ }
438
+
439
+ .ui-text-code2 {
440
+ @apply font-jetbrains_mono font-medium text-code2;
416
441
  }
417
442
 
418
443
  .ui-text-code-inline {
419
- @apply font-mono font-semibold text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
444
+ @apply font-jetbrains_mono font-medium text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
420
445
  }
421
446
 
422
447
  .ui-unordered-list {
423
- @apply text-p1 font-light text-cool-black;
424
- @apply list-disc ml-32 mb-24;
448
+ @apply text-p1 font-medium text-cool-black;
449
+ @apply list-disc ml-32 my-16;
425
450
  }
426
451
 
427
452
  .ui-ordered-list {
428
- @apply text-p1 font-light text-cool-black;
429
- @apply ml-32 mb-24 list-decimal;
453
+ @apply text-p1 font-medium text-charcoal-grey;
454
+ @apply ml-32 my-16 list-decimal;
430
455
  }
431
456
 
432
457
  .ui-unordered-list li > *:last-of-type:not(ul):not(ol),
@@ -443,11 +468,20 @@
443
468
  }
444
469
 
445
470
  .ui-unordered-list ul ul {
446
- @apply list-square;
471
+ @apply list-square my-8;
472
+ }
473
+
474
+ .ui-unordered-list ul ul {
475
+ @apply my-8;
476
+ }
477
+
478
+ .ui-ordered-list li,
479
+ .ui-unordered-list li {
480
+ @apply font-medium font-manrope tracking-widen-0 leading-relaxed;
447
481
  }
448
482
 
449
483
  .ui-unordered-list-with-emphasis {
450
- @apply text-p1 font-light text-cool-black;
484
+ @apply text-p1 font-medium text-cool-black;
451
485
  @apply list-disc ml-32 mt-32 -mb-12;
452
486
  }
453
487
 
@@ -483,11 +517,11 @@
483
517
  }
484
518
  @layer components {
485
519
  .ui-checkbox-p1 {
486
- @apply flex items-start mb-16 font-sans;
520
+ @apply flex items-start mb-16 font-manrope font-medium;
487
521
  }
488
522
 
489
523
  .ui-checkbox-p2 {
490
- @apply flex items-start mb-12 font-sans;
524
+ @apply flex items-start mb-12 font-manrope font-medium;
491
525
  }
492
526
 
493
527
  .ui-checkbox-input {
@@ -506,12 +540,12 @@
506
540
 
507
541
  .ui-checkbox-label-p1 {
508
542
  @apply select-none;
509
- @apply text-p1 font-light text-cool-black;
543
+ @apply text-p1 font-medium text-cool-black;
510
544
  }
511
545
 
512
546
  .ui-checkbox-label-p2 {
513
547
  @apply select-none;
514
- @apply text-p2 font-light text-cool-black;
548
+ @apply text-p2 font-medium text-cool-black;
515
549
  }
516
550
 
517
551
  .ui-checkbox-input:disabled + .ui-checkbox-styled {
@@ -532,7 +566,7 @@
532
566
  }
533
567
 
534
568
  .ui-textarea {
535
- @apply font-sans font-light text-cool-black text-p1;
569
+ @apply font-manrope font-medium text-cool-black text-p1;
536
570
  @apply p-input mb-16;
537
571
  @apply bg-light-grey border-mid-grey transition-input border rounded block w-full;
538
572
  @apply hover:bg-white hover:shadow-input hover:border-transparent;
@@ -545,12 +579,6 @@
545
579
  color: #76767c;
546
580
  }
547
581
 
548
- .ui-textarea:-ms-input-placeholder {
549
- /* CSS vars don't work in ::placeholder in Webkit :( */
550
- /* color: var(--text-dark-grey); */
551
- color: #76767c;
552
- }
553
-
554
582
  .ui-textarea::placeholder {
555
583
  /* CSS vars don't work in ::placeholder in Webkit :( */
556
584
  /* color: var(--text-dark-grey); */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "8.7.0-dev.e7c81e7",
3
+ "version": "8.7.0-dev.ef0470f",
4
4
  "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5
5
  "repository": {
6
6
  "type": "git",
package/reset/scripts.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Reset=t())}(this,(function(){return(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Reset=t())}(this,(()=>(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})()));
package/reset/styles.css CHANGED
@@ -86,8 +86,7 @@
86
86
  abbr[title] {
87
87
  border-bottom: none; /* 1 */
88
88
  text-decoration: underline; /* 2 */
89
- -webkit-text-decoration: underline dotted;
90
- text-decoration: underline dotted; /* 2 */
89
+ text-decoration: underline dotted; /* 2 */
91
90
  }
92
91
 
93
92
  /**
@@ -444,19 +443,10 @@
444
443
  resize: vertical;
445
444
  }
446
445
 
447
- input:-ms-input-placeholder,
448
- textarea:-ms-input-placeholder {
449
- color: #a0aec0;
450
- }
451
-
452
446
  input::-moz-placeholder, textarea::-moz-placeholder {
453
447
  color: #a0aec0;
454
448
  }
455
449
 
456
- input:-ms-input-placeholder, textarea:-ms-input-placeholder {
457
- color: #a0aec0;
458
- }
459
-
460
450
  input::placeholder,
461
451
  textarea::placeholder {
462
452
  color: #a0aec0;
@@ -93,7 +93,7 @@
93
93
  grid-template-rows: min-content 1fr;
94
94
 
95
95
  @apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
96
- @apply grid gap-x-8;
96
+ @apply grid gap-x-16;
97
97
  }
98
98
 
99
99
  .ui-meganav-media-heading {
@@ -72,6 +72,15 @@
72
72
  </div>
73
73
  <% end %>
74
74
  </li>
75
+ <li>
76
+ <%= link_to abs_url("/events"), class: "ui-meganav-media-with-image group" do %>
77
+ <%= render(AblyUi::Core::Icon.new(name: "icon-display-events-col", size: "2.5rem")) %>
78
+ <div class="flex flex-col justify-center">
79
+ <p class="ui-meganav-media-heading">Events</p>
80
+ <p class="ui-meganav-media-copy">Join Ably at upcoming events.</p>
81
+ </div>
82
+ <% end %>
83
+ </li>
75
84
  </ul>
76
85
  </div>
77
86
 
@@ -88,6 +88,15 @@ const MeganavContentCompany = ({ paths, absUrl }) => {
88
88
  </div>
89
89
  </a>
90
90
  </li>
91
+ <li>
92
+ <a href={absUrl("/events")} className="ui-meganav-media-with-image group">
93
+ <Icon name="icon-display-events-col" size="2.5rem" />
94
+ <div className="flex flex-col justify-center">
95
+ <p className="ui-meganav-media-heading">Events</p>
96
+ <p className="ui-meganav-media-copy">Join Ably at upcoming events.</p>
97
+ </div>
98
+ </a>
99
+ </li>
91
100
  </ul>
92
101
  </div>
93
102
 
@@ -35,7 +35,6 @@
35
35
  </li>
36
36
  </ul>
37
37
  </div>
38
-
39
38
  <div class="col-span-full md:col-span-4 pb-8 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
40
39
  <ul class="md:mt-40" aria-labelledby="meganav-developers-panel-explore">
41
40
  <li>
@@ -65,9 +64,17 @@
65
64
  </div>
66
65
  <% end %>
67
66
  </li>
67
+ <li>
68
+ <%= link_to abs_url("/reference-guide-multiplayer"), class: "ui-meganav-media-with-image group" do %>
69
+ <%= render(AblyUi::Core::Icon.new(name: "icon-multi-user-spaces-col", size: "2.5rem")) %>
70
+ <div class="flex flex-col justify-center">
71
+ <p class="ui-meganav-media-heading">Multiplayer reference guide</p>
72
+ <p class="ui-meganav-media-copy">Learn how to build collaborative features with Ably.</p>
73
+ </div>
74
+ <% end %>
75
+ </li>
68
76
  </ul>
69
77
  </div>
70
-
71
78
  <div class="col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
72
79
  <h3 class="ui-meganav-overline uppercase" id="meganav-developers-panel-quick-links">
73
80
  Quick links
@@ -58,7 +58,7 @@ const MeganavContentDevelopers = ({ absUrl }) => (
58
58
  <Icon name="icon-display-tutorials-demos-col" size="2.5rem" />
59
59
  <div className="flex flex-col justify-center">
60
60
  <p className="ui-meganav-media-heading">Tutorials & Demos</p>
61
- <p className="ui-meganav-media-copy">Get stuck in with our hands-on resources. </p>
61
+ <p className="ui-meganav-media-copy">Get stuck in with our hands-on resources.</p>
62
62
  </div>
63
63
  </a>
64
64
  </li>
@@ -71,6 +71,15 @@ const MeganavContentDevelopers = ({ absUrl }) => (
71
71
  </div>
72
72
  </a>
73
73
  </li>
74
+ <li>
75
+ <a href={absUrl("/reference-guide-multiplayer")} className="ui-meganav-media-with-image group">
76
+ <Icon name="icon-multi-user-spaces-col" size="2.5rem" />
77
+ <div className="flex flex-col justify-center">
78
+ <p className="ui-meganav-media-heading">Multiplayer reference guide</p>
79
+ <p className="ui-meganav-media-copy">Learn how to build collaborative features with Ably.</p>
80
+ </div>
81
+ </a>
82
+ </li>
74
83
  </ul>
75
84
  </div>
76
85
 
@@ -99,6 +108,7 @@ const MeganavContentDevelopers = ({ absUrl }) => (
99
108
  <p className="ui-meganav-media-heading">
100
109
  Status
101
110
  <iframe
111
+ title="Ably status"
102
112
  src="https://status.ably.com/embed/icon"
103
113
  allowtransparency="true"
104
114
  frameBorder="0"
@@ -11,7 +11,7 @@
11
11
  <%= link_to abs_url("/solutions/chat"), class: "ui-meganav-media-with-image group" do %>
12
12
  <%= render(AblyUi::Core::Icon.new(name: "icon-display-chat-stack-col", size: "2.5rem")) %>
13
13
  <div class="flex flex-col justify-center">
14
- <p class="ui-meganav-media-heading">Chat</p>
14
+ <p class="ui-meganav-media-heading">Live Chat</p>
15
15
  <p class="ui-meganav-media-copy">Deliver highly reliable chat experiences at scale.</p>
16
16
  </div>
17
17
  <% end %>
@@ -16,7 +16,7 @@ const MeganavContentUseCases = ({ absUrl }) => (
16
16
  <a href={absUrl("/solutions/chat")} className="ui-meganav-media-with-image group">
17
17
  <Icon name="icon-display-chat-stack-col" size="2.5rem" />
18
18
  <div className="flex flex-col justify-center">
19
- <p className="ui-meganav-media-heading">Chat</p>
19
+ <p className="ui-meganav-media-heading">Live Chat</p>
20
20
  <p className="ui-meganav-media-copy">Deliver highly reliable chat experiences at scale.</p>
21
21
  </div>
22
22
  </a>
@@ -0,0 +1,3 @@
1
+ @layer base {
2
+ @import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap");
3
+ }
@@ -0,0 +1,3 @@
1
+ @layer base {
2
+ @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
3
+ }
@@ -0,0 +1,13 @@
1
+ <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M42 16.75H6V15.25H42V16.75Z" fill="#03020D"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.25 14C5.25 11.3766 7.37665 9.25 10 9.25H38C40.6234 9.25 42.75 11.3766 42.75 14V38C42.75 40.6234 40.6234 42.75 38 42.75H10C7.37665 42.75 5.25 40.6234 5.25 38V14ZM10 10.75C8.20507 10.75 6.75 12.2051 6.75 14V38C6.75 39.7949 8.20507 41.25 10 41.25H38C39.7949 41.25 41.25 39.7949 41.25 38V14C41.25 12.2051 39.7949 10.75 38 10.75H10Z" fill="#03020D"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M16.75 7C17.1642 7 17.5 7.33579 17.5 7.75L17.5 12.25C17.5 12.6642 17.1642 13 16.75 13C16.3358 13 16 12.6642 16 12.25L16 7.75C16 7.33579 16.3358 7 16.75 7Z" fill="#03020D"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.75 7C32.1642 7 32.5 7.33579 32.5 7.75L32.5 12.25C32.5 12.6642 32.1642 13 31.75 13C31.3358 13 31 12.6642 31 12.25L31 7.75C31 7.33579 31.3358 7 31.75 7Z" fill="#03020D"/>
6
+ <path d="M10 21C10 20.4477 10.4477 20 11 20H17C17.5523 20 18 20.4477 18 21V27C18 27.5523 17.5523 28 17 28H11C10.4477 28 10 27.5523 10 27V21Z" fill="#FF5416"/>
7
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.5 21.5V26.5H16.5V21.5H11.5ZM11 20C10.4477 20 10 20.4477 10 21V27C10 27.5523 10.4477 28 11 28H17C17.5523 28 18 27.5523 18 27V21C18 20.4477 17.5523 20 17 20H11Z" fill="#FF5416"/>
8
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.5 31.5V36.5H16.5V31.5H11.5ZM11 30C10.4477 30 10 30.4477 10 31V37C10 37.5523 10.4477 38 11 38H17C17.5523 38 18 37.5523 18 37V31C18 30.4477 17.5523 30 17 30H11Z" fill="#03020D"/>
9
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.5 21.5V26.5H26.5V21.5H21.5ZM21 20C20.4477 20 20 20.4477 20 21V27C20 27.5523 20.4477 28 21 28H27C27.5523 28 28 27.5523 28 27V21C28 20.4477 27.5523 20 27 20H21Z" fill="#03020D"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.5 31.5V36.5H26.5V31.5H21.5ZM21 30C20.4477 30 20 30.4477 20 31V37C20 37.5523 20.4477 38 21 38H27C27.5523 38 28 37.5523 28 37V31C28 30.4477 27.5523 30 27 30H21Z" fill="#03020D"/>
11
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.5 21.5V26.5H36.5V21.5H31.5ZM31 20C30.4477 20 30 20.4477 30 21V27C30 27.5523 30.4477 28 31 28H37C37.5523 28 38 27.5523 38 27V21C38 20.4477 37.5523 20 37 20H31Z" fill="#03020D"/>
12
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.5 31.5V36.5H36.5V31.5H31.5ZM31 30C30.4477 30 30 30.4477 30 31V37C30 37.5523 30.4477 38 31 38H37C37.5523 38 38 37.5523 38 37V31C38 30.4477 37.5523 30 37 30H31Z" fill="#03020D"/>
13
+ </svg>
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .ui-btn {
3
- @apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block rounded p-btn;
3
+ @apply text-white bg-cool-black text-btn2 font-manrope font-bold inline-block rounded p-btn;
4
4
  @apply hover:text-white hover:bg-active-orange;
5
5
  @apply active:text-white active:bg-red-orange;
6
6
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -24,7 +24,7 @@
24
24
  background-size: 200% 100%;
25
25
  background-position: 0% 0%;
26
26
 
27
- @apply text-white text-btn2 font-sans font-medium inline-block rounded p-btn;
27
+ @apply text-white text-btn2 font-manrope font-bold inline-block rounded p-btn;
28
28
  @apply focus:outline-gui-focus;
29
29
  @apply inline-flex items-center justify-center;
30
30
  }
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  .ui-btn-invert {
43
- @apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block rounded p-btn;
43
+ @apply text-cool-black bg-white text-btn2 font-manrope font-bold inline-block rounded p-btn;
44
44
  @apply hover:text-white hover:bg-active-orange;
45
45
  @apply active:text-white active:bg-red-orange;
46
46
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .ui-btn-secondary {
53
- @apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block border-btn border-cool-black rounded p-btn;
53
+ @apply text-cool-black bg-white text-btn2 font-manrope font-bold inline-block border-btn border-cool-black rounded p-btn;
54
54
  @apply hover:text-cool-black hover:border-active-orange hover:bg-white;
55
55
  @apply active:border-red-orange active:bg-white;
56
56
  @apply focus:border-cool-black focus:bg-white focus:outline-gui-focus;
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .ui-btn-secondary-invert {
63
- @apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block border-btn border-mid-grey rounded p-btn;
63
+ @apply text-white bg-cool-black text-btn2 font-manrope font-bold inline-block border-btn border-mid-grey rounded p-btn;
64
64
  @apply hover:text-white hover:border-active-orange;
65
65
  @apply active:border-red-orange;
66
66
  @apply focus:outline-gui-focus;