@ably/ui 11.7.1 → 12.0.0-dev.31bc8d9

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 (128) hide show
  1. package/README.md +6 -9
  2. package/core/.DS_Store +0 -0
  3. package/core/Code/component.css +2 -0
  4. package/core/ContactFooter.jsx +8 -8
  5. package/core/DropdownMenu.jsx +1 -1
  6. package/core/FeaturedLink/component.css +0 -15
  7. package/core/FeaturedLink/component.js +1 -1
  8. package/core/FeaturedLink.jsx +17 -6
  9. package/core/Flash/component.css +0 -4
  10. package/core/Flash.jsx +1 -1
  11. package/core/Footer/component.css +3 -3
  12. package/core/Footer.jsx +14 -14
  13. package/core/Meganav/component.css +6 -6
  14. package/core/Meganav.jsx +23 -12
  15. package/core/MeganavBlogPostsList.jsx +17 -6
  16. package/core/MeganavContentCompany.jsx +17 -6
  17. package/core/MeganavContentProducts.jsx +19 -8
  18. package/core/MeganavItemsMobile.jsx +17 -6
  19. package/core/MeganavItemsSignedIn.jsx +17 -6
  20. package/core/MeganavSearch.jsx +17 -6
  21. package/core/MeganavSearchPanel.jsx +17 -6
  22. package/core/MeganavSearchSuggestions.jsx +17 -6
  23. package/core/Notice/component.js +1 -1
  24. package/core/Notice.jsx +4 -4
  25. package/core/Showcase/component.css +2 -0
  26. package/core/Showcase/component.js +6 -1
  27. package/core/Showcase.jsx +3 -0
  28. package/core/Uptime/component.css +4 -3
  29. package/core/Uptime/component.js +6 -1
  30. package/core/Uptime.jsx +65 -28
  31. package/core/fonts/jetBrains-mono.css +3 -0
  32. package/core/fonts/manrope.css +3 -0
  33. package/core/scripts.js +1 -1
  34. package/core/styles.css +232 -124
  35. package/package.json +2 -5
  36. package/src/core/.DS_Store +0 -0
  37. package/src/core/ContactFooter/component.jsx +8 -8
  38. package/src/core/DropdownMenu/component.jsx +1 -1
  39. package/src/core/FeaturedLink/component.js +0 -1
  40. package/src/core/FeaturedLink/component.jsx +27 -4
  41. package/src/core/Flash/component.css +0 -4
  42. package/src/core/Flash/component.jsx +1 -1
  43. package/src/core/Footer/component.css +3 -3
  44. package/src/core/Footer/component.jsx +14 -14
  45. package/src/core/Meganav/component.css +6 -6
  46. package/src/core/MeganavContentProducts/component.jsx +2 -2
  47. package/src/core/Notice/component.jsx +3 -3
  48. package/src/core/fonts/jetBrains-mono.css +3 -0
  49. package/src/core/fonts/manrope.css +3 -0
  50. package/src/core/react-renderer.js +7 -4
  51. package/src/core/styles/buttons.css +5 -5
  52. package/src/core/styles/forms.css +5 -5
  53. package/src/core/styles/properties.css +153 -52
  54. package/src/core/styles/text.css +68 -61
  55. package/src/core/styles.components.css +1 -1
  56. package/src/core/utils/syntax-highlighter.css +2 -0
  57. package/tailwind.config.js +194 -69
  58. package/tailwind.extend.js +1 -4
  59. package/src/core/Code/component.html.erb +0 -3
  60. package/src/core/Code/component.rb +0 -12
  61. package/src/core/ContactFooter/component.html.erb +0 -32
  62. package/src/core/ContactFooter/component.rb +0 -13
  63. package/src/core/CustomerLogos/component.html.erb +0 -9
  64. package/src/core/CustomerLogos/component.rb +0 -14
  65. package/src/core/FeatureFooter/component.html.erb +0 -54
  66. package/src/core/FeatureFooter/component.rb +0 -30
  67. package/src/core/FeaturedLink/component.css +0 -15
  68. package/src/core/FeaturedLink/component.html.erb +0 -6
  69. package/src/core/FeaturedLink/component.rb +0 -19
  70. package/src/core/Footer/component.html.erb +0 -256
  71. package/src/core/Footer/component.rb +0 -14
  72. package/src/core/Icon/component.html.erb +0 -3
  73. package/src/core/Icon/component.rb +0 -25
  74. package/src/core/Loader/component.html.erb +0 -18
  75. package/src/core/Loader/component.rb +0 -19
  76. package/src/core/Logo/component.html.erb +0 -3
  77. package/src/core/Logo/component.rb +0 -31
  78. package/src/core/Meganav/component.html.erb +0 -31
  79. package/src/core/Meganav/component.rb +0 -60
  80. package/src/core/MeganavBlogPostsList/component.html.erb +0 -5
  81. package/src/core/MeganavBlogPostsList/component.rb +0 -13
  82. package/src/core/MeganavContentCompany/component.html.erb +0 -90
  83. package/src/core/MeganavContentCompany/component.rb +0 -14
  84. package/src/core/MeganavContentDevelopers/component.html.erb +0 -129
  85. package/src/core/MeganavContentDevelopers/component.rb +0 -13
  86. package/src/core/MeganavContentProducts/component.html.erb +0 -83
  87. package/src/core/MeganavContentProducts/component.rb +0 -14
  88. package/src/core/MeganavContentUseCases/component.html.erb +0 -135
  89. package/src/core/MeganavContentUseCases/component.rb +0 -13
  90. package/src/core/MeganavControl/component.html.erb +0 -6
  91. package/src/core/MeganavControl/component.rb +0 -20
  92. package/src/core/MeganavControlMobileDropdown/component.html.erb +0 -7
  93. package/src/core/MeganavControlMobileDropdown/component.rb +0 -11
  94. package/src/core/MeganavControlMobilePanelClose/component.html.erb +0 -12
  95. package/src/core/MeganavControlMobilePanelClose/component.rb +0 -12
  96. package/src/core/MeganavControlMobilePanelOpen/component.html.erb +0 -7
  97. package/src/core/MeganavControlMobilePanelOpen/component.rb +0 -9
  98. package/src/core/MeganavItemsDesktop/component.html.erb +0 -17
  99. package/src/core/MeganavItemsDesktop/component.rb +0 -23
  100. package/src/core/MeganavItemsMobile/component.html.erb +0 -75
  101. package/src/core/MeganavItemsMobile/component.rb +0 -21
  102. package/src/core/MeganavItemsSignedIn/component.html.erb +0 -53
  103. package/src/core/MeganavItemsSignedIn/component.rb +0 -33
  104. package/src/core/MeganavSearch/component.html.erb +0 -15
  105. package/src/core/MeganavSearch/component.rb +0 -13
  106. package/src/core/MeganavSearchAutocomplete/component.html.erb +0 -6
  107. package/src/core/MeganavSearchAutocomplete/component.rb +0 -6
  108. package/src/core/MeganavSearchPanel/component.html.erb +0 -22
  109. package/src/core/MeganavSearchPanel/component.rb +0 -13
  110. package/src/core/MeganavSearchSuggestions/component.html.erb +0 -22
  111. package/src/core/MeganavSearchSuggestions/component.rb +0 -18
  112. package/src/core/Notice/component.html.erb +0 -16
  113. package/src/core/Notice/component.rb +0 -29
  114. package/src/core/Showcase/component.css +0 -30
  115. package/src/core/Showcase/component.html.erb +0 -76
  116. package/src/core/Showcase/component.js +0 -180
  117. package/src/core/Showcase/component.jsx +0 -0
  118. package/src/core/Showcase/component.rb +0 -190
  119. package/src/core/SignOutLink/component.html.erb +0 -1
  120. package/src/core/SignOutLink/component.rb +0 -17
  121. package/src/core/Slider/component.html.erb +0 -28
  122. package/src/core/Slider/component.rb +0 -38
  123. package/src/core/Uptime/component.css +0 -128
  124. package/src/core/Uptime/component.html.erb +0 -0
  125. package/src/core/Uptime/component.js +0 -1
  126. package/src/core/Uptime/component.jsx +0 -186
  127. package/src/core/Uptime/component.rb +0 -7
  128. package/src/core/core.rb +0 -81
package/core/styles.css CHANGED
@@ -1,34 +1,132 @@
1
1
  @layer base {
2
2
  :root {
3
- --color-cool-black: #03020d;
4
- --color-active-orange: #ff5416;
5
- --color-red-orange: #e40000;
6
- --color-white: #ffffff;
7
- --color-electric-cyan: #4af7ff;
8
- --color-zingy-green: #08ff13;
9
- --color-bright-red: #ff2739;
10
- --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;
3
+ /* Neutral colors */
4
+ --color-neutral-000: #ffffff;
5
+ --color-neutral-100: #f8fafc;
6
+ --color-neutral-200: #f4f8fb;
7
+ --color-neutral-300: #edf1f7;
8
+ --color-neutral-400: #e2e7ef;
9
+ --color-neutral-500: #c6ced9;
10
+ --color-neutral-600: #adb6c2;
11
+ --color-neutral-700: #89929f;
12
+ --color-neutral-800: #667085;
13
+ --color-neutral-900: #39414e;
14
+ --color-neutral-1000: #2b303b;
15
+ --color-neutral-1100: #202531;
16
+ --color-neutral-1200: #141924;
17
+ --color-neutral-1300: #03020d;
18
+
19
+ /* Ably orange */
20
+ --color-orange-100: #fff5f1;
21
+ --color-orange-200: #ffe3d8;
22
+ --color-orange-300: #ffc4ae;
23
+ --color-orange-400: #ff9c79;
24
+ --color-orange-500: #ff723f;
25
+ --color-orange-600: #ff5416;
26
+ --color-orange-700: #ff2739;
27
+ --color-orange-800: #e40000;
28
+ --color-orange-900: #b82202;
29
+ --color-orange-1000: #751500;
30
+ --color-orange-1100: #2a0b00;
31
+
32
+ /* Secondary colours */
33
+ --color-yellow-100: #fffbef;
34
+ --color-yellow-200: #fff0ba;
35
+ --color-yellow-300: #ffe27c;
36
+ --color-yellow-400: #ffd43d;
37
+ --color-yellow-500: #f8c100;
38
+ --color-yellow-600: #e8a700;
39
+ --color-yellow-700: #ac8600;
40
+ --color-yellow-800: #654f00;
41
+ --color-yellow-900: #291c01;
42
+ --color-green-100: #f1fff1;
43
+ --color-green-200: #b8ffbb;
44
+ --color-green-300: #80ff85;
45
+ --color-green-400: #08ff13;
46
+ --color-green-500: #00e80b;
47
+ --color-green-600: #00c008;
48
+ --color-green-700: #008e06;
49
+ --color-green-800: #005303;
50
+ --color-green-900: #002a02;
51
+ --color-blue-100: #f1fbff;
52
+ --color-blue-200: #b8eaff;
53
+ --color-blue-300: #80d9ff;
54
+ --color-blue-400: #4ad4ff;
55
+ --color-blue-500: #2cc0ff;
56
+ --color-blue-600: #00a5ec;
57
+ --color-blue-700: #0284cd;
58
+ --color-blue-800: #004b75;
59
+ --color-blue-900: #001b2a;
60
+ --color-violet-100: #f7f2fe;
61
+ --color-violet-200: #d8bcfb;
62
+ --color-violet-300: #b986f8;
63
+ --color-violet-400: #9951f5;
64
+ --color-violet-500: #7a1bf2;
65
+ --color-violet-600: #5f0bc9;
66
+ --color-violet-700: #460894;
67
+ --color-violet-800: #2d055e;
68
+ --color-violet-900: #130228;
69
+ --color-pink-100: #fff1fc;
70
+ --color-pink-200: #ffb8f1;
71
+ --color-pink-300: #ff80e6;
72
+ --color-pink-400: #ff47db;
73
+ --color-pink-500: #ff17d2;
74
+ --color-pink-600: #d400ab;
75
+ --color-pink-700: #9c007e;
76
+ --color-pink-800: #630050;
77
+ --color-pink-900: #2a0022;
78
+
79
+ /* GUI colours */
80
+ /* Note: The ‘Light and ‘Dark’ refers to the colour of the background on which the colour is used. */
81
+ --color-gui-blue-default-light: #006edc;
82
+ --color-gui-blue-hover-light: #0862b9;
83
+ --color-gui-blue-active-light: #074095;
84
+ --color-gui-blue-default-dark: #4da6ff;
85
+ --color-gui-blue-hover-dark: #2894ff;
86
+ --color-gui-blue-active-dark: #0080ff;
87
+ --color-gui-blue-focus: #80b9f2;
88
+ --color-gui-unavailable: #a8a8a8;
89
+ --color-gui-success-green: #11cb24;
90
+ --color-gui-error-red: #fb0c0c;
91
+ --color-gui-focus: #80b9f2;
19
92
  --color-gui-focus-outline: #80b9f2;
20
- --color-gui-active: #074095;
21
93
  --color-gui-visited: #4887c2;
22
- --color-gui-unavailable: #a8a8a8;
23
- --color-gui-error: #fb0c0c;
24
- --color-gui-success: #11cb24;
94
+
95
+ /* Colours replaced by neutral colours */
96
+ --color-white: var(--color-neutral-000);
97
+ --color-extra-light-grey: var(--color-neutral-100);
98
+ --color-light-grey: var(--color-neutral-200);
99
+ --color-mid-grey: var(--color-neutral-500);
100
+ --color-dark-grey: var(--color-neutral-800);
101
+ --color-charcoal-grey: var(--color-neutral-1000);
102
+ --color-cool-black: var(--color-neutral-1300);
103
+
104
+ /* Colours replaced by orange colours */
105
+ --color-active-orange: var(--color-orange-600);
106
+ --color-bright-red: var(--color-orange-700);
107
+ --color-red-orange: var(--color-orange-800);
108
+
109
+ /* Colours replaced by secondary colours */
110
+ --color-electric-cyan: var(--color-blue-400);
111
+ --color-zingy-green: var(--color-green-400);
112
+ --color-jazzy-pink: var(--color-pink-500);
113
+
114
+ /* Colours replaced by GUI colours */
115
+ --color-gui-default: var(--color-gui-blue-default-light);
116
+ --color-gui-hover: var(--color-gui-blue-hover-light);
117
+ --color-gui-active: var(--color-gui-blue-active-light);
118
+ --color-gui-error: var(--color-gui-error-red);
119
+ --color-gui-success: var(--color-gui-success-green);
120
+ --color-gui-default-dark: var(--color-gui-blue-default-dark);
121
+ --color-gui-hover-dark: var(--color-gui-blue-hover-dark);
122
+ --color-gui-active-dark: var(--color-gui-blue-active-dark);
25
123
 
26
124
  /* code syntax: theme */
27
- --syntax-black: var(--color-cool-black);
28
- --syntax-dark-grey: var(--color-dark-grey);
29
- --syntax-mid-grey: var(--color-mid-grey);
30
- --syntax-light-grey: var(--color-light-grey);
31
- --syntax-extra-light-grey: var(--color-extra-light-grey);
125
+ --syntax-black: var(--color-neutral-1300);
126
+ --syntax-dark-grey: var(--color-neutral-800);
127
+ --syntax-mid-grey: var(--color-neutral-500);
128
+ --syntax-light-grey: var(--color-neutral-200);
129
+ --syntax-extra-light-grey: var(--color-neutral-100);
32
130
  --syntax-orange: #e78c45;
33
131
  --syntax-yellow: #e7c547;
34
132
  --syntax-blue: #3490ec;
@@ -36,11 +134,6 @@
36
134
  --syntax-red: #d54e53;
37
135
  --syntax-lilac: #bb87d3;
38
136
 
39
- /* uptime status colors */
40
- --uptime-color-up: #39b54a;
41
- --uptime-color-trouble: #e87623;
42
- --uptime-color-down: #e6242c;
43
-
44
137
  /* flat colors for social icons */
45
138
  --icon-color-linkedin: #1269bf;
46
139
  --icon-color-twitter: #2caae1;
@@ -70,44 +163,51 @@
70
163
 
71
164
  --gradient-hot-pink: linear-gradient(
72
165
  80.2deg,
73
- var(--color-bright-red) 0%,
166
+ var(--color-orange-700) 0%,
74
167
  var(--color-jazzy-pink) 100%
75
168
  );
76
169
 
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;
170
+ --fs-title-xl: 3rem;
171
+ --fs-title: 2.75rem;
172
+ --fs-title-xs: 2.5rem;
173
+ --fs-h1-xl: 2.5rem;
174
+ --fs-h1: 2.25rem;
175
+ --fs-h1-xs: 2rem;
176
+
177
+ --fs-h2-xl: 2.125rem;
84
178
  --fs-h2: 2rem;
85
- --fs-h2-xs: 1.875rem;
179
+ --fs-h2-xs: 1.75rem;
180
+
86
181
  --fs-h3: 1.5rem;
87
- --fs-h4: 1.125rem;
88
- --fs-p1: 1.125rem;
89
- --fs-p2: 1rem;
182
+ --fs-h4: 1.25rem;
183
+ --fs-h5: 1rem;
184
+
185
+ --fs-p1: 1rem;
186
+ --fs-p2: 0.938rem;
90
187
  --fs-p3: 0.875rem;
91
188
  --fs-standfirst-xl: 2.25rem;
92
189
  --fs-standfirst: 1.5rem;
93
- --fs-sub-header: 1.5rem;
94
- --fs-sub-header-xs: 1.125rem;
190
+ --fs-sub-header: 1.125rem;
191
+ --fs-sub-header-xs: 1.063rem;
95
192
  --fs-overline1: 1rem;
96
193
  --fs-overline2: 0.875rem;
97
- --fs-btn1: 1.125rem;
98
- --fs-btn2: 1rem;
194
+ --fs-btn1: 1rem;
195
+ --fs-btn2: 0.938rem;
99
196
  --fs-btn3: 0.875rem;
100
- --fs-menu1: 1.125rem;
101
- --fs-menu2: 1rem;
197
+ --fs-menu1: 1rem;
198
+ --fs-menu2: 0.938rem;
102
199
  --fs-menu3: 0.875rem;
103
- --fs-quote: 1.5rem;
104
- --fs-code: 0.875rem;
200
+ --fs-quote: 1.25rem;
201
+ --fs-code: 0.938rem;
202
+ --fs-code2: 0.813rem;
105
203
 
106
204
  --lh-dense: 1;
107
205
  --lh-tight: 1.125;
108
206
  --lh-snug: 1.15;
207
+ --lh-min-normal: 1.2;
109
208
  --lh-normal: 1.25;
110
209
  --lh-relaxed: 1.45;
210
+ --lh-extra-relaxed: 1.6;
111
211
 
112
212
  --ls-tighten-0_025: -0.025em;
113
213
  --ls-tighten-0_02: -0.02em;
@@ -115,7 +215,9 @@
115
215
  --ls-tighten-0_01: -0.01em;
116
216
  --ls-tighten-0_005: -0.005em;
117
217
  --ls-tighten-0_0025: -0.0025em;
218
+ --ls-tighten-0_0015: -0.0015em;
118
219
  --ls-widen-0_1: 0.1em;
220
+ --ls-widen-0_16: 0.16em;
119
221
  --ls-widen-0_15: 0.15em;
120
222
 
121
223
  --spacing-0: 0px;
@@ -130,6 +232,7 @@
130
232
  --spacing-20: 1.25rem;
131
233
  --spacing-24: 1.5rem;
132
234
  --spacing-32: 2rem;
235
+ --spacing-36: 2.25rem;
133
236
  --spacing-40: 2.5rem;
134
237
  --spacing-48: 3rem;
135
238
  --spacing-64: 4rem;
@@ -171,13 +274,11 @@
171
274
 
172
275
  /* Expose component values for cross-component usage */
173
276
  --ui-meganav-height: 4rem;
174
- --ui-showcase-client-logo-min-width: 8.75rem; /* 140px at 16px base*/
175
- --ui-showcase-client-logo-max-width: 15rem; /* 240px at 16px base*/
176
277
  }
177
278
  }
178
279
  @layer components {
179
280
  .ui-btn {
180
- @apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block rounded p-btn;
281
+ @apply text-white bg-cool-black text-btn2 font-sans font-bold inline-block rounded p-btn;
181
282
  @apply hover:text-white hover:bg-active-orange;
182
283
  @apply active:text-white active:bg-red-orange;
183
284
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -201,7 +302,7 @@
201
302
  background-size: 200% 100%;
202
303
  background-position: 0% 0%;
203
304
 
204
- @apply text-white text-btn2 font-sans font-medium inline-block rounded p-btn;
305
+ @apply text-white text-btn2 font-sans font-bold inline-block rounded p-btn;
205
306
  @apply focus:outline-gui-focus;
206
307
  @apply inline-flex items-center justify-center;
207
308
  }
@@ -217,7 +318,7 @@
217
318
  }
218
319
 
219
320
  .ui-btn-invert {
220
- @apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block rounded p-btn;
321
+ @apply text-cool-black bg-white text-btn2 font-sans font-bold inline-block rounded p-btn;
221
322
  @apply hover:text-white hover:bg-active-orange;
222
323
  @apply active:text-white active:bg-red-orange;
223
324
  @apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
@@ -227,7 +328,7 @@
227
328
  }
228
329
 
229
330
  .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;
331
+ @apply text-cool-black bg-white text-btn2 font-sans font-bold inline-block border-btn border-cool-black rounded p-btn;
231
332
  @apply hover:text-cool-black hover:border-active-orange hover:bg-white;
232
333
  @apply active:border-red-orange active:bg-white;
233
334
  @apply focus:border-cool-black focus:bg-white focus:outline-gui-focus;
@@ -237,7 +338,7 @@
237
338
  }
238
339
 
239
340
  .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;
341
+ @apply text-white bg-cool-black text-btn2 font-sans font-bold inline-block border-btn border-mid-grey rounded p-btn;
241
342
  @apply hover:text-white hover:border-active-orange;
242
343
  @apply active:border-red-orange;
243
344
  @apply focus:outline-gui-focus;
@@ -322,47 +423,53 @@
322
423
  }
323
424
  @layer components {
324
425
  .ui-text-title {
325
- @apply font-sans font-medium text-cool-black;
426
+ @apply font-sans font-extrabold text-cool-black;
326
427
  @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;
428
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
328
429
  }
329
430
 
330
431
  .ui-text-h1 {
331
- @apply font-sans font-medium text-cool-black;
432
+ @apply font-sans font-extrabold text-cool-black;
332
433
  @apply text-h1-xs xs:text-h1 xl:text-h1-xl;
333
- @apply tracking-tighten-0.01;
434
+ @apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
334
435
  }
335
436
 
336
437
  .ui-text-h2 {
337
- @apply font-sans font-medium text-cool-black;
438
+ @apply font-sans font-extrabold text-cool-black;
338
439
  @apply text-h2-xs xs:text-h2 xl:text-h2-xl;
339
- @apply tracking-tighten-0.005;
440
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
340
441
  }
341
442
 
342
443
  .ui-text-h3 {
343
- @apply font-sans font-medium text-cool-black;
444
+ @apply font-sans font-extrabold text-cool-black;
344
445
  @apply text-h3;
345
- @apply tracking-tighten-0.0025;
446
+ @apply tracking-tighten-0.005;
346
447
  }
347
448
 
348
449
  .ui-text-h4 {
349
- @apply font-sans font-medium text-cool-black;
450
+ @apply font-sans font-extrabold text-cool-black;
350
451
  @apply text-h4;
351
- @apply tracking-widen-0.1;
452
+ @apply tracking-tighten-0.0015;
453
+ }
454
+
455
+ .ui-text-h5 {
456
+ @apply font-sans font-extrabold text-cool-black;
457
+ @apply text-h5;
458
+ @apply tracking-tighten-0.0025;
352
459
  }
353
460
 
354
461
  .ui-text-p1 {
355
- @apply font-sans font-light text-charcoal-grey;
462
+ @apply font-sans font-medium text-charcoal-grey;
356
463
  @apply text-p1;
357
464
  }
358
465
 
359
466
  .ui-text-p2 {
360
- @apply font-sans font-light text-charcoal-grey;
467
+ @apply font-sans font-medium text-charcoal-grey;
361
468
  @apply text-p2;
362
469
  }
363
470
 
364
471
  .ui-text-p3 {
365
- @apply font-sans font-light text-charcoal-grey;
472
+ @apply font-sans font-medium text-charcoal-grey;
366
473
  @apply text-p3;
367
474
  }
368
475
 
@@ -373,60 +480,70 @@
373
480
  }
374
481
 
375
482
  .ui-text-quote {
376
- @apply font-sans font-light text-cool-black;
377
- @apply text-quote;
378
- @apply tracking-tighten-0.025;
483
+ @apply font-sans font-normal text-cool-black;
484
+ @apply text-quote leading-normal;
485
+ @apply tracking-tighten-0.0015;
379
486
  }
380
487
 
381
488
  .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;
489
+ @apply font-sans font-semibold text-neutral-800;
490
+ @apply text-sub-header-xs xs:text-sub-header leading-normal;
385
491
  }
386
492
 
387
493
  .ui-text-overline1 {
388
- @apply font-sans font-medium text-dark-grey uppercase;
389
- @apply text-overline1;
390
- @apply tracking-widen-0.15;
494
+ @apply font-mono font-medium text-active-orange uppercase;
495
+ @apply text-overline1 leading-normal;
496
+ @apply tracking-widen-0.16;
391
497
  }
392
498
 
393
499
  .ui-text-overline2 {
394
- @apply font-sans font-medium text-dark-grey uppercase;
395
- @apply text-overline2;
396
- @apply tracking-widen-0.1;
500
+ @apply font-mono font-medium text-active-orange uppercase;
501
+ @apply text-overline2 leading-normal;
502
+ @apply tracking-widen-0.16;
397
503
  }
398
504
 
399
505
  .ui-text-menu1 {
400
- @apply font-sans font-light text-cool-black;
401
- @apply text-menu1;
506
+ @apply font-sans font-medium text-cool-black;
507
+ @apply text-menu1 leading-snug;
402
508
  }
403
509
 
404
510
  .ui-text-menu2 {
405
- @apply font-sans font-light text-cool-black;
406
- @apply text-menu2;
511
+ @apply font-sans font-medium text-cool-black;
512
+ @apply text-menu2 leading-snug;
407
513
  }
408
514
 
409
515
  .ui-text-menu3 {
410
- @apply font-sans font-light text-cool-black;
411
- @apply text-menu3;
516
+ @apply font-sans font-medium text-cool-black;
517
+ @apply text-menu3 leading-snug;
412
518
  }
413
519
 
414
520
  .ui-text-code {
415
- @apply font-mono font-semibold text-code;
521
+ @apply font-mono font-normal text-code;
522
+ }
523
+
524
+ .ui-text-code2 {
525
+ @apply font-mono font-normal text-code2;
416
526
  }
417
527
 
418
528
  .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;
529
+ @apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
420
530
  }
421
531
 
422
532
  .ui-unordered-list {
423
- @apply text-p1 font-light text-cool-black;
424
- @apply list-disc ml-32 mb-24;
533
+ @apply text-p1 font-medium text-charcoal-grey;
534
+ @apply ml-32 my-16;
535
+ @apply list-disc;
425
536
  }
426
537
 
427
538
  .ui-ordered-list {
428
- @apply text-p1 font-light text-cool-black;
429
- @apply ml-32 mb-24 list-decimal;
539
+ @apply text-p1 font-medium text-charcoal-grey;
540
+ @apply ml-32 my-16;
541
+ @apply list-decimal;
542
+ }
543
+
544
+ .ui-ordered-list li,
545
+ .ui-unordered-list li {
546
+ @apply mb-8;
430
547
  }
431
548
 
432
549
  .ui-unordered-list li > *:last-of-type:not(ul):not(ol),
@@ -435,37 +552,19 @@
435
552
  }
436
553
 
437
554
  .ui-unordered-list ul {
438
- @apply ml-24 mt-16 list-circle;
555
+ @apply ml-24 my-8 list-circle;
439
556
  }
440
557
 
441
558
  .ui-ordered-list ol {
442
- @apply ml-24 mt-16 list-decimal;
559
+ @apply ml-24 my-16 list-decimal;
443
560
  }
444
561
 
445
562
  .ui-unordered-list ul ul {
446
- @apply list-square;
563
+ @apply list-square my-8;
447
564
  }
448
565
 
449
- .ui-unordered-list-with-emphasis {
450
- @apply text-p1 font-light text-cool-black;
451
- @apply list-disc ml-32 mt-32 -mb-12;
452
- }
453
-
454
- .ui-unordered-list-with-emphasis li div {
455
- @apply relative -top-12;
456
- }
457
-
458
- .ui-unordered-list-with-emphasis li div > strong {
459
- @apply block;
460
- }
461
-
462
- .ui-unordered-list-with-emphasis ul {
463
- margin-top: calc(var(--spacing-16) + var(--spacing-8));
464
- @apply ml-24 list-circle;
465
- }
466
-
467
- .ui-unordered-list-with-emphasis ul ul {
468
- @apply list-square;
566
+ .ui-unordered-list ul ul {
567
+ @apply my-8;
469
568
  }
470
569
 
471
570
  .ui-link {
@@ -477,17 +576,26 @@
477
576
 
478
577
  .ui-link-neutral {
479
578
  @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
480
- @apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
579
+ @apply focus:text-charcoal-grey;
481
580
  @apply underline;
482
581
  }
582
+
583
+ /* focus:outline-gui-focus-neutral does not get created under Tailwind 3.3.5, not sure why */
584
+ .ui-link-neutral:focus {
585
+ outline: 2px solid var(--color-neutral-000);
586
+ }
587
+
588
+ .ui-figcaption {
589
+ @apply font-mono text-p3 text-neutral-800;
590
+ }
483
591
  }
484
592
  @layer components {
485
593
  .ui-checkbox-p1 {
486
- @apply flex items-start mb-16 font-sans;
594
+ @apply flex items-start mb-16 font-sans font-medium;
487
595
  }
488
596
 
489
597
  .ui-checkbox-p2 {
490
- @apply flex items-start mb-12 font-sans;
598
+ @apply flex items-start mb-12 font-sans font-medium;
491
599
  }
492
600
 
493
601
  .ui-checkbox-input {
@@ -506,12 +614,12 @@
506
614
 
507
615
  .ui-checkbox-label-p1 {
508
616
  @apply select-none;
509
- @apply text-p1 font-light text-cool-black;
617
+ @apply text-p1 font-medium text-cool-black;
510
618
  }
511
619
 
512
620
  .ui-checkbox-label-p2 {
513
621
  @apply select-none;
514
- @apply text-p2 font-light text-cool-black;
622
+ @apply text-p2 font-medium text-cool-black;
515
623
  }
516
624
 
517
625
  .ui-checkbox-input:disabled + .ui-checkbox-styled {
@@ -532,7 +640,7 @@
532
640
  }
533
641
 
534
642
  .ui-textarea {
535
- @apply font-sans font-light text-cool-black text-p1;
643
+ @apply font-sans font-medium text-cool-black text-p1;
536
644
  @apply p-input mb-16;
537
645
  @apply bg-light-grey border-mid-grey transition-input border rounded block w-full;
538
646
  @apply hover:bg-white hover:shadow-input hover:border-transparent;
@@ -553,7 +661,7 @@
553
661
  }
554
662
  @layer components {
555
663
  .ui-input {
556
- @apply text-p2 font-light bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
664
+ @apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
557
665
  @apply hover:bg-white hover:shadow-input hover:border-transparent;
558
666
  @apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
559
667
  @apply max-w-screen-sm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "11.7.1",
3
+ "version": "12.0.0-dev.31bc8d9",
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",
@@ -24,7 +24,6 @@
24
24
  "autoprefixer": "^10.0.2",
25
25
  "babel-loader": "^8.2.0",
26
26
  "blink-diff": "^1.0.13",
27
- "change-case": "^4.1.1",
28
27
  "commander": "^7.2.0",
29
28
  "css-loader": "^5.0.0",
30
29
  "cypress": "^13.3.1",
@@ -32,7 +31,6 @@
32
31
  "eslint-config-prettier": "^6.15.0",
33
32
  "eslint-plugin-cypress": "^2.11.2",
34
33
  "eslint-plugin-react": "^7.21.5",
35
- "extra-watch-webpack-plugin": "^1.0.3",
36
34
  "find-imports": "^1.1.0",
37
35
  "mini-css-extract-plugin": "^1.2.1",
38
36
  "null-loader": "^4.0.1",
@@ -43,8 +41,7 @@
43
41
  "postcss-loader": "^4.0.4",
44
42
  "prettier": "^2.3.0",
45
43
  "svg-spritemap-webpack-plugin": "^3.7.1",
46
- "tailwindcss": "^2.0.1",
47
- "tailwindcss-filters": "^3.0.0",
44
+ "tailwindcss": "^3.3.6",
48
45
  "webpack": "^5.3.2",
49
46
  "webpack-cli": "^4.2.0",
50
47
  "yargs": "^16.2.0"
Binary file
@@ -16,8 +16,8 @@ export default function ContactFooter({ urlBase }) {
16
16
  <div className="ui-contact-footer-box">
17
17
  <Icon name="icon-display-live-chat" size="3rem" additionalCSS="block mb-16" />
18
18
  <div>
19
- <div className="text-h3 mb-24">Live Chat</div>
20
- <p className="text-p1 font-light">Reach out team of experts over chat powered by Ably.</p>
19
+ <div className="ui-text-h3 mb-24">Live Chat</div>
20
+ <p className="ui-text-p1">Reach out team of experts over chat powered by Ably.</p>
21
21
  </div>
22
22
  <button
23
23
  type="button"
@@ -34,13 +34,13 @@ export default function ContactFooter({ urlBase }) {
34
34
  <div className="ui-contact-footer-box">
35
35
  <Icon name="icon-display-call-mobile" size="3rem" additionalCSS="block mb-16" />
36
36
  <div className="flex-grow">
37
- <div className="text-h3 mb-24">Call us</div>
38
- <p className="text-p1 font-light">
37
+ <div className="ui-text-h3 mb-24">Call us</div>
38
+ <p className="ui-text-p1">
39
39
  <span className="block">
40
- <strong className="text-p1 font-medium">+1 877 434 5287</strong> (USA, toll free)
40
+ <strong className="font-bold">+1 877 434 5287</strong> (USA, toll free)
41
41
  </span>
42
42
  <span className="block">
43
- <strong className="text-p1 font-medium">+44 20 3318 4689</strong> (UK)
43
+ <strong className="font-bold">+44 20 3318 4689</strong> (UK)
44
44
  </span>
45
45
  </p>
46
46
  </div>
@@ -49,8 +49,8 @@ export default function ContactFooter({ urlBase }) {
49
49
  <div className="ui-contact-footer-box">
50
50
  <Icon name="icon-display-tech-account-comms" size="3rem" additionalCSS="block mb-16" />
51
51
  <div>
52
- <div className="text-h3 mb-24">Technical and account support</div>
53
- <p className="text-p1 font-light">We&apos;re standing by to help with any questions or code.</p>
52
+ <div className="ui-text-h3 mb-24">Technical and account support</div>
53
+ <p className="ui-text-p1">We&apos;re standing by to help with any questions or code.</p>
54
54
  </div>
55
55
  <a className="ui-btn-secondary self-start p-btn mt-16" href={absUrl("/support")}>
56
56
  Get support now
@@ -92,7 +92,7 @@ const Link = ({ url, title, subtitle, iconName, children }) => {
92
92
  {title}
93
93
  {iconName ? <Icon name={iconName} size="1rem" color="text-cool-black" additionalCSS="align-middle ml-8 relative -top-1 -left-4" /> : null}
94
94
  </p>
95
- {subtitle ? <p className="text-p3 mb-16 text-dark-grey">{subtitle}</p> : null}
95
+ {subtitle ? <p className="ui-text-p3 mb-16">{subtitle}</p> : null}
96
96
  {children}
97
97
  </a>
98
98
  );
@@ -1 +0,0 @@
1
- import "./component.css";