@ably/ui 11.7.1-dev.d65c98c → 12.0.0-dev.f7338b0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/core/ContactFooter.jsx +8 -8
- package/core/DropdownMenu.jsx +1 -1
- package/core/FeaturedLink/component.css +0 -6
- package/core/FeaturedLink/component.js +1 -1
- package/core/FeaturedLink.jsx +8 -4
- package/core/Flash/component.css +0 -4
- package/core/Flash.jsx +1 -1
- package/core/Footer.jsx +2 -2
- package/core/Meganav/component.css +1 -1
- package/core/Meganav.jsx +12 -8
- package/core/MeganavBlogPostsList.jsx +8 -4
- package/core/MeganavContentCompany.jsx +8 -4
- package/core/MeganavContentProducts.jsx +9 -5
- package/core/MeganavItemsMobile.jsx +8 -4
- package/core/MeganavItemsSignedIn.jsx +8 -4
- package/core/MeganavSearch.jsx +8 -4
- package/core/MeganavSearchPanel.jsx +8 -4
- package/core/MeganavSearchSuggestions.jsx +8 -4
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +3 -3
- package/core/Showcase/component.js +1 -1
- package/core/Uptime/component.css +2 -3
- package/core/Uptime.jsx +9 -5
- package/core/styles.css +20 -37
- package/package.json +2 -3
- package/src/core/ContactFooter/component.html.erb +8 -8
- package/src/core/ContactFooter/component.jsx +8 -8
- package/src/core/DropdownMenu/component.jsx +1 -1
- package/src/core/FeatureFooter/component.html.erb +6 -6
- package/src/core/FeaturedLink/component.html.erb +3 -3
- package/src/core/FeaturedLink/component.js +0 -1
- package/src/core/FeaturedLink/component.jsx +27 -10
- package/src/core/Flash/component.css +0 -4
- package/src/core/Flash/component.jsx +1 -1
- package/src/core/Footer/component.html.erb +2 -2
- package/src/core/Footer/component.jsx +2 -2
- package/src/core/Meganav/component.css +1 -1
- package/src/core/MeganavContentProducts/component.html.erb +1 -1
- package/src/core/MeganavContentProducts/component.jsx +1 -1
- package/src/core/Notice/component.html.erb +2 -2
- package/src/core/Notice/component.jsx +2 -2
- package/src/core/Showcase/component.html.erb +9 -9
- package/src/core/Showcase/component.js +1 -1
- package/src/core/Uptime/component.css +2 -3
- package/src/core/Uptime/component.jsx +1 -4
- package/src/core/styles/text.css +19 -36
- package/src/core/styles.components.css +1 -1
- package/tailwind.config.js +3 -7
- package/src/core/FeaturedLink/component.css +0 -6
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
type: 'button',
|
|
14
14
|
data: { id: 'showcase-control' },
|
|
15
15
|
aria: { controls: @random_id } do %>
|
|
16
|
-
<%= image_tag company[:logo], alt: "#{company[:name]} logo", class: ['ui-showcase-logo-img', index === 0 ? '
|
|
16
|
+
<%= image_tag company[:logo], alt: "#{company[:name]} logo", class: ['ui-showcase-logo-img', index === 0 ? 'grayscale-0' : 'grayscale', 'hover:grayscale-0'], srcset: [["#{company[:logo2x]}", "2x"]] %>
|
|
17
17
|
<% end %>
|
|
18
18
|
</li>
|
|
19
19
|
<% end %>
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
<% if company[:layout] == "quotes" %>
|
|
37
37
|
<%= render(AblyUi::Core::Icon.new(name: "quote", size: "1.25rem", color: "text-cool-black")) %>
|
|
38
38
|
|
|
39
|
-
<p class="text-quote
|
|
39
|
+
<p class="ui-text-quote mb-24"><%= company[:quote] %></p>
|
|
40
40
|
|
|
41
41
|
<div class="flex items-center">
|
|
42
42
|
<div class="flex-shrink-0 flex-grow-0 mr-16 overflow-hidden rounded-full flex align-center justify-center w-48 h-48">
|
|
43
|
-
<%= image_tag company[:author][:thumbnail], alt: "Picture of #{company[:author][:name]}, #{company[:author][:title]}", class: "w-48 h-48
|
|
43
|
+
<%= image_tag company[:author][:thumbnail], alt: "Picture of #{company[:author][:name]}, #{company[:author][:title]}", class: "w-48 h-48 grayscale" %>
|
|
44
44
|
</div>
|
|
45
45
|
<div>
|
|
46
|
-
<p class="text-p2
|
|
47
|
-
<p class="text-p3
|
|
46
|
+
<p class="ui-text-p2"><%= company[:author][:name] %></p>
|
|
47
|
+
<p class="ui-text-p3"><%= company[:author][:title] %></p>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
<% end %>
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
<% company[:columns].each_with_index do |col, n| %>
|
|
55
55
|
<% if company[:columns].last == col %>
|
|
56
56
|
<div class="flex-1 mt-40 sm:mt-0 <%= col[:classname] %>" data-id="casestudy-column">
|
|
57
|
-
<p class="text-h4 pb-24"><%= col[:heading] %></p>
|
|
58
|
-
<p class="text-p1
|
|
57
|
+
<p class="ui-text-h4 pb-24"><%= col[:heading] %></p>
|
|
58
|
+
<p class="ui-text-p1"><%= col[:text] %></p>
|
|
59
59
|
<%- if col[:button] %>
|
|
60
60
|
<a class="ui-btn self-start p-btn mt-24" href="<%= col[:button][:href] %>"><%= col[:button][:label] %></a>
|
|
61
61
|
<% end %>
|
|
62
62
|
</div>
|
|
63
63
|
<% else %>
|
|
64
64
|
<div class="flex-1 mt-40 sm:mt-0 mr-24 sm:mr-32 xl:mr-64 <%= col[:classname] %>" data-id="casestudy-column">
|
|
65
|
-
<p class="text-title-xl
|
|
66
|
-
<p class="text-p1
|
|
65
|
+
<p class="ui-text-title-xl"><%= col[:heading] %></p>
|
|
66
|
+
<p class="ui-text-p1 mb-0 sm:mb-32"><%= col[:text] %></p>
|
|
67
67
|
</div>
|
|
68
68
|
<% end %>
|
|
69
69
|
<% end %>
|
|
@@ -6,7 +6,7 @@ import "./component.css";
|
|
|
6
6
|
const SLIDE_SHOW_INTERVAL = 5000;
|
|
7
7
|
|
|
8
8
|
const updateLogoOpacity = (logos, currentIndex) => {
|
|
9
|
-
const visible = ["
|
|
9
|
+
const visible = ["grayscale", "grayscale-0"];
|
|
10
10
|
const opaque = [...visible].reverse();
|
|
11
11
|
logos.forEach((logo, i) => {
|
|
12
12
|
logo.classList.replace(...(i === currentIndex ? visible : opaque));
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.ui-uptime-day:hover {
|
|
33
|
-
|
|
34
|
-
@apply z-10;
|
|
33
|
+
@apply z-10 brightness-125;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
.ui-uptime-day:hover span {
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
.ui-uptime-key {
|
|
87
86
|
@apply block mt-16 mr-20 bg-transparent;
|
|
88
87
|
@apply sm:inline-block sm:mt-0;
|
|
89
|
-
@apply font-
|
|
88
|
+
@apply font-medium text-p2 text-white block sm:inline-flex items-center;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
.ui-uptime-key:first-child {
|
|
@@ -139,10 +139,7 @@ export default function Uptime({ serverUrl, linkTo = null, theme = "light" }) {
|
|
|
139
139
|
|
|
140
140
|
if (data && data.error) {
|
|
141
141
|
return (
|
|
142
|
-
<div
|
|
143
|
-
className={`flex sm:flex-row justify-center items-center p-24 border rounded font-sans font-light text-p2 ${themes[theme].text}`}
|
|
144
|
-
data-id="uptime-error"
|
|
145
|
-
>
|
|
142
|
+
<div className={`flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ${themes[theme].text}`} data-id="uptime-error">
|
|
146
143
|
Sorry, we can’t retrieve uptime data right now.
|
|
147
144
|
</div>
|
|
148
145
|
);
|
package/src/core/styles/text.css
CHANGED
|
@@ -95,25 +95,32 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ui-text-code {
|
|
98
|
-
@apply font-mono font-
|
|
98
|
+
@apply font-mono font-normal text-code;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.ui-text-code2 {
|
|
102
|
-
@apply font-mono font-
|
|
102
|
+
@apply font-mono font-normal text-code2;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.ui-text-code-inline {
|
|
106
|
-
@apply font-mono font-
|
|
106
|
+
@apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ui-unordered-list {
|
|
110
|
-
@apply text-p1 font-medium text-
|
|
111
|
-
@apply
|
|
110
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
111
|
+
@apply ml-32 my-16;
|
|
112
|
+
@apply list-disc;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.ui-ordered-list {
|
|
115
116
|
@apply text-p1 font-medium text-charcoal-grey;
|
|
116
|
-
@apply ml-32 my-16
|
|
117
|
+
@apply ml-32 my-16;
|
|
118
|
+
@apply list-decimal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui-ordered-list li,
|
|
122
|
+
.ui-unordered-list li {
|
|
123
|
+
@apply mb-8;
|
|
117
124
|
}
|
|
118
125
|
|
|
119
126
|
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
@@ -122,11 +129,11 @@
|
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
.ui-unordered-list ul {
|
|
125
|
-
@apply ml-24
|
|
132
|
+
@apply ml-24 my-8 list-circle;
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
.ui-ordered-list ol {
|
|
129
|
-
@apply ml-24
|
|
136
|
+
@apply ml-24 my-16 list-decimal;
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
.ui-unordered-list ul ul {
|
|
@@ -137,34 +144,6 @@
|
|
|
137
144
|
@apply my-8;
|
|
138
145
|
}
|
|
139
146
|
|
|
140
|
-
.ui-ordered-list li,
|
|
141
|
-
.ui-unordered-list li {
|
|
142
|
-
@apply font-medium font-sans tracking-widen-0;
|
|
143
|
-
line-height: var(--lh-extra-relaxed);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ui-unordered-list-with-emphasis {
|
|
147
|
-
@apply text-p1 font-medium text-cool-black;
|
|
148
|
-
@apply list-disc ml-32 mt-32 -mb-12;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.ui-unordered-list-with-emphasis li div {
|
|
152
|
-
@apply relative -top-12;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.ui-unordered-list-with-emphasis li div > strong {
|
|
156
|
-
@apply block;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ui-unordered-list-with-emphasis ul {
|
|
160
|
-
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
161
|
-
@apply ml-24 list-circle;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ui-unordered-list-with-emphasis ul ul {
|
|
165
|
-
@apply list-square;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
147
|
.ui-link {
|
|
169
148
|
@apply text-gui-default;
|
|
170
149
|
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
|
@@ -177,4 +156,8 @@
|
|
|
177
156
|
@apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
|
|
178
157
|
@apply underline;
|
|
179
158
|
}
|
|
159
|
+
|
|
160
|
+
.ui-figcaption {
|
|
161
|
+
@apply font-mono text-p3 text-neutral-800;
|
|
162
|
+
}
|
|
180
163
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components {
|
|
7
7
|
.ui-input {
|
|
8
|
-
@apply text-p2 font-
|
|
8
|
+
@apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
|
9
9
|
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
10
10
|
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
|
11
11
|
@apply max-w-screen-sm;
|
package/tailwind.config.js
CHANGED
|
@@ -136,6 +136,7 @@ module.exports = {
|
|
|
136
136
|
"gui-blue-hover-dark": "var(--color-gui-blue-hover-dark)",
|
|
137
137
|
"gui-blue-active-dark": "var(--color-gui-blue-active-dark)",
|
|
138
138
|
"gui-blue-focus": "var(--color-gui-blue-focus)",
|
|
139
|
+
"gui-blue-visited": "var(--color-gui-blue-focus)",
|
|
139
140
|
"gui-unavailable": "var(--color-gui-unavailable)",
|
|
140
141
|
"gui-success-green": "var(--color-gui-success-green)",
|
|
141
142
|
"gui-error-red": "var(--color-gui-error-red)",
|
|
@@ -298,10 +299,6 @@ module.exports = {
|
|
|
298
299
|
full: "9999px",
|
|
299
300
|
DEFAULT: "0.375rem",
|
|
300
301
|
},
|
|
301
|
-
filter: {
|
|
302
|
-
none: "none",
|
|
303
|
-
grayscale: "grayscale(1)",
|
|
304
|
-
},
|
|
305
302
|
extend: {
|
|
306
303
|
backgroundImage: {
|
|
307
304
|
"gradient-active-orange": "var(--gradient-active-orange)",
|
|
@@ -353,12 +350,11 @@ module.exports = {
|
|
|
353
350
|
backgroundImage: ["hover", "active", "focus"],
|
|
354
351
|
filter: ["hover"],
|
|
355
352
|
cursor: ["disabled"],
|
|
356
|
-
inset: [
|
|
357
|
-
|
|
353
|
+
inset: ["group-hover"],
|
|
358
354
|
},
|
|
359
355
|
},
|
|
360
356
|
corePlugins: {
|
|
361
357
|
preflight: false,
|
|
362
358
|
},
|
|
363
|
-
plugins: [
|
|
359
|
+
plugins: [],
|
|
364
360
|
};
|