@ably/ui 7.8.4-dev.f992ca8 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/styles.css +22 -17
- package/package.json +5 -3
- package/src/core/Code/component.css +3 -1
- package/src/core/styles/properties.css +3 -4
- package/src/core/styles/text.css +16 -12
- package/tailwind.config.js +4 -12
- package/core/fonts/.DS_Store +0 -0
- package/core/fonts/source-code-pro.css +0 -3
- package/core/images/.DS_Store +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/log/.keep +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/.keep +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/pids/.keep +0 -0
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/fonts/.DS_Store +0 -0
- package/src/core/fonts/source-code-pro.css +0 -3
- package/src/core/images/.DS_Store +0 -0
- package/src/reset/.DS_Store +0 -0
package/core/styles.css
CHANGED
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
--color-charcoal-grey: #292831;
|
|
16
16
|
--color-gui-default: #0073e6;
|
|
17
17
|
--color-gui-hover: #0867c4;
|
|
18
|
-
--color-gui-focus: #
|
|
19
|
-
--color-gui-focus-outline: #80b9f2;
|
|
18
|
+
--color-gui-focus: #80b9f2;
|
|
20
19
|
--color-gui-active: #074095;
|
|
21
|
-
--color-gui-
|
|
20
|
+
--color-gui-viewed: #4887c2;
|
|
22
21
|
--color-gui-unavailable: #a8a8a8;
|
|
23
22
|
--color-gui-error: #fb0c0c;
|
|
24
23
|
--color-gui-success: #11cb24;
|
|
@@ -156,7 +155,7 @@
|
|
|
156
155
|
/* In components, when looking at implementing viewport margin and spacing between elements,
|
|
157
156
|
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
|
158
157
|
alternatively, look for ui-grid-* helpers. */
|
|
159
|
-
--bp-xs:
|
|
158
|
+
--bp-xs: 375px; /* gutters 8px, side-margin 24px */
|
|
160
159
|
--bp-sm: 768px; /* gutters 16px, side-margin 32px */
|
|
161
160
|
--bp-md: 1040px; /* gutters 24px, side-margin 40px, meganav desktop */
|
|
162
161
|
--bp-lg: 1280px; /* gutters 24px, side-margin 64px */
|
|
@@ -344,17 +343,17 @@
|
|
|
344
343
|
}
|
|
345
344
|
|
|
346
345
|
.ui-text-p1 {
|
|
347
|
-
@apply font-sans font-light text-
|
|
346
|
+
@apply font-sans font-light text-cool-black;
|
|
348
347
|
@apply text-p1;
|
|
349
348
|
}
|
|
350
349
|
|
|
351
350
|
.ui-text-p2 {
|
|
352
|
-
@apply font-sans font-light text-
|
|
351
|
+
@apply font-sans font-light text-cool-black;
|
|
353
352
|
@apply text-p2;
|
|
354
353
|
}
|
|
355
354
|
|
|
356
355
|
.ui-text-p3 {
|
|
357
|
-
@apply font-sans font-light text-
|
|
356
|
+
@apply font-sans font-light text-cool-black;
|
|
358
357
|
@apply text-p3;
|
|
359
358
|
}
|
|
360
359
|
|
|
@@ -460,18 +459,24 @@
|
|
|
460
459
|
@apply list-square;
|
|
461
460
|
}
|
|
462
461
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
@apply
|
|
466
|
-
@apply focus:text-gui-focus focus:outline-gui-focus;
|
|
467
|
-
@apply underline;
|
|
462
|
+
/* visited needs to come before :hover et all else it overrides them */
|
|
463
|
+
.ui-link:visited {
|
|
464
|
+
@apply text-gui-viewed;
|
|
468
465
|
}
|
|
469
466
|
|
|
470
|
-
.ui-link
|
|
471
|
-
@apply
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
467
|
+
.ui-link {
|
|
468
|
+
@apply hover:text-active-orange active:text-red-orange;
|
|
469
|
+
-webkit-text-decoration-color: var(--color-active-orange);
|
|
470
|
+
text-decoration-color: var(--color-active-orange);
|
|
471
|
+
text-underline-offset: 4px; /* px used here as behaves weird with rem's */
|
|
472
|
+
-webkit-text-decoration-line: underline;
|
|
473
|
+
text-decoration-line: underline;
|
|
474
|
+
text-decoration-thickness: 0.125rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.ui-link:focus {
|
|
478
|
+
@apply focus:text-white focus:bg-active-orange focus:outline-none;
|
|
479
|
+
text-decoration: none;
|
|
475
480
|
}
|
|
476
481
|
}
|
|
477
482
|
@layer components {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.1",
|
|
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",
|
|
@@ -54,13 +54,15 @@
|
|
|
54
54
|
"build": "node scripts/build.js",
|
|
55
55
|
"build:verbose": "node scripts/build.js -v",
|
|
56
56
|
"watch": "node scripts/build.js -w",
|
|
57
|
-
"dev": "./cleanstart.sh",
|
|
57
|
+
"dev": "./scripts/cleanstart.sh",
|
|
58
58
|
"format:check": "yarn prettier -c *.js src src/**/*.jsx cypress",
|
|
59
59
|
"format:write": "yarn prettier -w *.js src src/**/*.jsx cypress",
|
|
60
60
|
"lint": "eslint *.js src src/**/*.jsx cypress",
|
|
61
61
|
"cy:open": "cypress open",
|
|
62
62
|
"cy:headless": "cypress run --quiet",
|
|
63
|
-
"update:all": "./scripts/update-dependents.sh"
|
|
63
|
+
"update:all": "./scripts/update-dependents.sh",
|
|
64
|
+
"pre-release": "./scripts/pre-release.sh",
|
|
65
|
+
"release": "./scripts/release.sh"
|
|
64
66
|
},
|
|
65
67
|
"dependencies": {
|
|
66
68
|
"array-flat-polyfill": "^1.0.1",
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
--color-charcoal-grey: #292831;
|
|
16
16
|
--color-gui-default: #0073e6;
|
|
17
17
|
--color-gui-hover: #0867c4;
|
|
18
|
-
--color-gui-focus: #
|
|
19
|
-
--color-gui-focus-outline: #80b9f2;
|
|
18
|
+
--color-gui-focus: #80b9f2;
|
|
20
19
|
--color-gui-active: #074095;
|
|
21
|
-
--color-gui-
|
|
20
|
+
--color-gui-viewed: #4887c2;
|
|
22
21
|
--color-gui-unavailable: #a8a8a8;
|
|
23
22
|
--color-gui-error: #fb0c0c;
|
|
24
23
|
--color-gui-success: #11cb24;
|
|
@@ -156,7 +155,7 @@
|
|
|
156
155
|
/* In components, when looking at implementing viewport margin and spacing between elements,
|
|
157
156
|
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
|
158
157
|
alternatively, look for ui-grid-* helpers. */
|
|
159
|
-
--bp-xs:
|
|
158
|
+
--bp-xs: 375px; /* gutters 8px, side-margin 24px */
|
|
160
159
|
--bp-sm: 768px; /* gutters 16px, side-margin 32px */
|
|
161
160
|
--bp-md: 1040px; /* gutters 24px, side-margin 40px, meganav desktop */
|
|
162
161
|
--bp-lg: 1280px; /* gutters 24px, side-margin 64px */
|
package/src/core/styles/text.css
CHANGED
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.ui-text-p1 {
|
|
33
|
-
@apply font-sans font-light text-
|
|
33
|
+
@apply font-sans font-light text-cool-black;
|
|
34
34
|
@apply text-p1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.ui-text-p2 {
|
|
38
|
-
@apply font-sans font-light text-
|
|
38
|
+
@apply font-sans font-light text-cool-black;
|
|
39
39
|
@apply text-p2;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.ui-text-p3 {
|
|
43
|
-
@apply font-sans font-light text-
|
|
43
|
+
@apply font-sans font-light text-cool-black;
|
|
44
44
|
@apply text-p3;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -146,17 +146,21 @@
|
|
|
146
146
|
@apply list-square;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/* visited needs to come before :hover et all else it overrides them */
|
|
150
|
+
.ui-link:visited {
|
|
151
|
+
@apply text-gui-viewed;
|
|
152
|
+
}
|
|
153
|
+
|
|
149
154
|
.ui-link {
|
|
150
|
-
@apply
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
@apply hover:text-active-orange active:text-red-orange;
|
|
156
|
+
text-decoration-color: var(--color-active-orange);
|
|
157
|
+
text-underline-offset: 4px; /* px used here as behaves weird with rem's */
|
|
158
|
+
text-decoration-line: underline;
|
|
159
|
+
text-decoration-thickness: 0.125rem;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
.ui-link
|
|
157
|
-
@apply
|
|
158
|
-
|
|
159
|
-
@apply focus:text-gui-focus focus:outline-gui-focus-neutral;
|
|
160
|
-
@apply underline;
|
|
162
|
+
.ui-link:focus {
|
|
163
|
+
@apply focus:text-white focus:bg-active-orange focus:outline-none;
|
|
164
|
+
text-decoration: none;
|
|
161
165
|
}
|
|
162
166
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -17,7 +17,7 @@ module.exports = {
|
|
|
17
17
|
theme: {
|
|
18
18
|
screens: {
|
|
19
19
|
// CSS custom properties can't be used in media queries
|
|
20
|
-
xs: "
|
|
20
|
+
xs: "375px",
|
|
21
21
|
sm: "768px",
|
|
22
22
|
md: "1040px",
|
|
23
23
|
lg: "1280px",
|
|
@@ -74,7 +74,7 @@ module.exports = {
|
|
|
74
74
|
"gui-hover": "var(--color-gui-hover)",
|
|
75
75
|
"gui-focus": "var(--color-gui-focus)",
|
|
76
76
|
"gui-active": "var(--color-gui-active)",
|
|
77
|
-
"gui-
|
|
77
|
+
"gui-viewed": "var(--color-gui-viewed)",
|
|
78
78
|
"gui-unavailable": "var(--color-gui-unavailable)",
|
|
79
79
|
"gui-error": "var(--color-gui-error)",
|
|
80
80
|
"gui-success": "var(--color-gui-success)",
|
|
@@ -181,8 +181,7 @@ module.exports = {
|
|
|
181
181
|
filter: "filter",
|
|
182
182
|
},
|
|
183
183
|
outline: {
|
|
184
|
-
"gui-focus": "
|
|
185
|
-
"gui-focus-neutral": "2px solid var(--color-white)",
|
|
184
|
+
"gui-focus": "4px solid var(--color-gui-focus)",
|
|
186
185
|
},
|
|
187
186
|
width: {
|
|
188
187
|
"extend-8": "calc(100% + var(--spacing-8))",
|
|
@@ -209,14 +208,7 @@ module.exports = {
|
|
|
209
208
|
variants: {
|
|
210
209
|
extend: {
|
|
211
210
|
borderColor: ["hover", "focus", "active", "group-focus", "disabled"],
|
|
212
|
-
textColor: [
|
|
213
|
-
"hover",
|
|
214
|
-
"focus",
|
|
215
|
-
"active",
|
|
216
|
-
"group-focus",
|
|
217
|
-
"disabled",
|
|
218
|
-
"visited",
|
|
219
|
-
],
|
|
211
|
+
textColor: ["hover", "focus", "active", "group-focus", "disabled"],
|
|
220
212
|
display: ["group-focus"],
|
|
221
213
|
backgroundColor: ["hover", "focus", "active", "group-focus", "disabled"],
|
|
222
214
|
backgroundImage: ["hover", "active", "focus"],
|
package/core/fonts/.DS_Store
DELETED
|
Binary file
|
package/core/images/.DS_Store
DELETED
|
Binary file
|
package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/log/.keep
DELETED
|
File without changes
|
package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/.keep
DELETED
|
File without changes
|
package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/pids/.keep
DELETED
|
File without changes
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/core/.DS_Store
DELETED
|
Binary file
|
package/src/core/fonts/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
package/src/reset/.DS_Store
DELETED
|
Binary file
|