@ably/ui 6.9.0 → 6.10.0-dev.67b3652
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/Code/component.css +1 -1
- package/core/Code.jsx +1 -1
- package/core/fonts/.DS_Store +0 -0
- package/core/images/.DS_Store +0 -0
- package/core/styles.css +22 -8
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Code/component.css +1 -1
- package/src/core/Code/component.jsx +1 -1
- package/src/core/Code/component.rb +1 -1
- package/src/core/fonts/.DS_Store +0 -0
- package/src/core/images/.DS_Store +0 -0
- package/src/core/styles/properties.css +2 -2
- package/src/core/styles/text.css +20 -6
- package/src/reset/.DS_Store +0 -0
- package/tailwind.config.js +2 -2
package/core/Code/component.css
CHANGED
package/core/Code.jsx
CHANGED
|
@@ -7548,7 +7548,7 @@ var Code = function Code(_ref) {
|
|
|
7548
7548
|
var language = _ref.language,
|
|
7549
7549
|
snippet = _ref.snippet,
|
|
7550
7550
|
_ref$textSize = _ref.textSize,
|
|
7551
|
-
textSize = _ref$textSize === void 0 ? "ui-text-
|
|
7551
|
+
textSize = _ref$textSize === void 0 ? "ui-text-code" : _ref$textSize,
|
|
7552
7552
|
_ref$padding = _ref.padding,
|
|
7553
7553
|
padding = _ref$padding === void 0 ? "p-32" : _ref$padding,
|
|
7554
7554
|
_ref$additionalCSS = _ref.additionalCSS,
|
|
Binary file
|
|
Binary file
|
package/core/styles.css
CHANGED
|
@@ -96,8 +96,7 @@
|
|
|
96
96
|
--fs-menu2: 1rem;
|
|
97
97
|
--fs-menu3: 0.875rem;
|
|
98
98
|
--fs-quote: 1.5rem;
|
|
99
|
-
--fs-
|
|
100
|
-
--fs-code2: 0.875rem;
|
|
99
|
+
--fs-code: 0.875rem;
|
|
101
100
|
|
|
102
101
|
--lh-dense: 1;
|
|
103
102
|
--lh-tight: 1.125;
|
|
@@ -149,6 +148,7 @@
|
|
|
149
148
|
--spacing-chip-small: 0.5rem 0.75rem; /* 8px 12px */
|
|
150
149
|
--spacing-chip: 0.75rem 1rem; /* 6px 8px */
|
|
151
150
|
--spacing-chip-large: 1rem 1.25rem; /* 16px 20px */
|
|
151
|
+
--spacing-inline-code: 0.375rem 0.5rem; /* 6px 8px */
|
|
152
152
|
|
|
153
153
|
/* In components, when looking at implementing viewport margin and spacing between elements,
|
|
154
154
|
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
|
@@ -400,12 +400,12 @@
|
|
|
400
400
|
@apply text-menu3;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
.ui-text-
|
|
404
|
-
@apply font-mono font-
|
|
403
|
+
.ui-text-code {
|
|
404
|
+
@apply font-mono font-semibold text-code;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
.ui-text-
|
|
408
|
-
@apply font-mono font-
|
|
407
|
+
.ui-text-code-inline {
|
|
408
|
+
@apply font-mono font-semibold text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.ui-unordered-list {
|
|
@@ -413,10 +413,24 @@
|
|
|
413
413
|
@apply list-disc ml-32 mb-24;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
.ui-ordered-list {
|
|
417
|
+
@apply text-p1 font-light text-cool-black;
|
|
418
|
+
@apply ml-32 mb-24 list-decimal;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
422
|
+
.ui-ordered-list li > *:last-of-type:not(ul):not(ol) {
|
|
423
|
+
margin-bottom: 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
416
426
|
.ui-unordered-list ul {
|
|
417
427
|
@apply ml-24 mt-16 list-circle;
|
|
418
428
|
}
|
|
419
429
|
|
|
430
|
+
.ui-ordered-list ol {
|
|
431
|
+
@apply ml-24 mt-16 list-decimal;
|
|
432
|
+
}
|
|
433
|
+
|
|
420
434
|
.ui-unordered-list ul ul {
|
|
421
435
|
@apply list-square;
|
|
422
436
|
}
|
|
@@ -436,11 +450,11 @@
|
|
|
436
450
|
|
|
437
451
|
.ui-unordered-list-with-emphasis ul {
|
|
438
452
|
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
439
|
-
@apply ml-24 list-
|
|
453
|
+
@apply ml-24 list-circle;
|
|
440
454
|
}
|
|
441
455
|
|
|
442
456
|
.ui-unordered-list-with-emphasis ul ul {
|
|
443
|
-
@apply list-
|
|
457
|
+
@apply list-square;
|
|
444
458
|
}
|
|
445
459
|
|
|
446
460
|
/* visited needs to come before :hover et all else it overrides them */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0-dev.67b3652",
|
|
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/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ import T from "prop-types";
|
|
|
4
4
|
import "./component.css";
|
|
5
5
|
import { highlight } from "./component.js";
|
|
6
6
|
|
|
7
|
-
const Code = ({ language, snippet, textSize = "ui-text-
|
|
7
|
+
const Code = ({ language, snippet, textSize = "ui-text-code", padding = "p-32", additionalCSS = "" }) => {
|
|
8
8
|
const HTMLraw = highlight(language, `${snippet}`.trim());
|
|
9
9
|
const className = `language-${language} ${textSize}`;
|
|
10
10
|
return (
|
|
@@ -2,7 +2,7 @@ module AblyUi
|
|
|
2
2
|
module Core
|
|
3
3
|
class Code < ViewComponent::Base
|
|
4
4
|
include AblyUi::Core::Util
|
|
5
|
-
def initialize(language:, snippet:, text_size: 'ui-text-
|
|
5
|
+
def initialize(language:, snippet:, text_size: 'ui-text-code')
|
|
6
6
|
@language = language
|
|
7
7
|
@snippet = snippet.try(:strip)
|
|
8
8
|
@text_size = text_size
|
|
Binary file
|
|
Binary file
|
|
@@ -96,8 +96,7 @@
|
|
|
96
96
|
--fs-menu2: 1rem;
|
|
97
97
|
--fs-menu3: 0.875rem;
|
|
98
98
|
--fs-quote: 1.5rem;
|
|
99
|
-
--fs-
|
|
100
|
-
--fs-code2: 0.875rem;
|
|
99
|
+
--fs-code: 0.875rem;
|
|
101
100
|
|
|
102
101
|
--lh-dense: 1;
|
|
103
102
|
--lh-tight: 1.125;
|
|
@@ -149,6 +148,7 @@
|
|
|
149
148
|
--spacing-chip-small: 0.5rem 0.75rem; /* 8px 12px */
|
|
150
149
|
--spacing-chip: 0.75rem 1rem; /* 6px 8px */
|
|
151
150
|
--spacing-chip-large: 1rem 1.25rem; /* 16px 20px */
|
|
151
|
+
--spacing-inline-code: 0.375rem 0.5rem; /* 6px 8px */
|
|
152
152
|
|
|
153
153
|
/* In components, when looking at implementing viewport margin and spacing between elements,
|
|
154
154
|
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
package/src/core/styles/text.css
CHANGED
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
@apply text-menu3;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.ui-text-
|
|
93
|
-
@apply font-mono font-
|
|
92
|
+
.ui-text-code {
|
|
93
|
+
@apply font-mono font-semibold text-code;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.ui-text-
|
|
97
|
-
@apply font-mono font-
|
|
96
|
+
.ui-text-code-inline {
|
|
97
|
+
@apply font-mono font-semibold text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.ui-unordered-list {
|
|
@@ -102,10 +102,24 @@
|
|
|
102
102
|
@apply list-disc ml-32 mb-24;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
.ui-ordered-list {
|
|
106
|
+
@apply text-p1 font-light text-cool-black;
|
|
107
|
+
@apply ml-32 mb-24 list-decimal;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
111
|
+
.ui-ordered-list li > *:last-of-type:not(ul):not(ol) {
|
|
112
|
+
margin-bottom: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
105
115
|
.ui-unordered-list ul {
|
|
106
116
|
@apply ml-24 mt-16 list-circle;
|
|
107
117
|
}
|
|
108
118
|
|
|
119
|
+
.ui-ordered-list ol {
|
|
120
|
+
@apply ml-24 mt-16 list-decimal;
|
|
121
|
+
}
|
|
122
|
+
|
|
109
123
|
.ui-unordered-list ul ul {
|
|
110
124
|
@apply list-square;
|
|
111
125
|
}
|
|
@@ -125,11 +139,11 @@
|
|
|
125
139
|
|
|
126
140
|
.ui-unordered-list-with-emphasis ul {
|
|
127
141
|
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
128
|
-
@apply ml-24 list-
|
|
142
|
+
@apply ml-24 list-circle;
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
.ui-unordered-list-with-emphasis ul ul {
|
|
132
|
-
@apply list-
|
|
146
|
+
@apply list-square;
|
|
133
147
|
}
|
|
134
148
|
|
|
135
149
|
/* visited needs to come before :hover et all else it overrides them */
|
|
Binary file
|
package/tailwind.config.js
CHANGED
|
@@ -52,8 +52,7 @@ module.exports = {
|
|
|
52
52
|
menu2: ["var(--fs-menu2)", "var(--lh-tight)"],
|
|
53
53
|
menu3: ["var(--fs-menu3)", "var(--lh-snug)"],
|
|
54
54
|
quote: ["var(--fs-quote)", "var(--lh-relaxed)"],
|
|
55
|
-
|
|
56
|
-
code2: ["var(--fs-code2)", "var(--lh-relaxed)"],
|
|
55
|
+
code: ["var(--fs-code)", "var(--lh-dense)"],
|
|
57
56
|
},
|
|
58
57
|
colors: {
|
|
59
58
|
transparent: "transparent",
|
|
@@ -107,6 +106,7 @@ module.exports = {
|
|
|
107
106
|
media: "var(--spacing-media)",
|
|
108
107
|
input: "var(--spacing-input)",
|
|
109
108
|
overline: "var(--spacing-overline)",
|
|
109
|
+
"inline-code": "var(--spacing-inline-code)",
|
|
110
110
|
...theme("spacing"),
|
|
111
111
|
}),
|
|
112
112
|
spacing: {
|