@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.
@@ -1,5 +1,5 @@
1
1
  @layer base {
2
- @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@600&display=swap");
3
3
  }
4
4
 
5
5
  @layer components {
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-code1" : _ref$textSize,
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-code1: 1rem;
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-code1 {
404
- @apply font-mono font-normal text-code1;
403
+ .ui-text-code {
404
+ @apply font-mono font-semibold text-code;
405
405
  }
406
406
 
407
- .ui-text-code2 {
408
- @apply font-mono font-normal text-code2;
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-disc;
453
+ @apply ml-24 list-circle;
440
454
  }
441
455
 
442
456
  .ui-unordered-list-with-emphasis ul ul {
443
- @apply list-circle;
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.9.0",
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
@@ -1,5 +1,5 @@
1
1
  @layer base {
2
- @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@600&display=swap");
3
3
  }
4
4
 
5
5
  @layer components {
@@ -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-code1", padding = "p-32", additionalCSS = "" }) => {
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-code1')
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-code1: 1rem;
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.
@@ -89,12 +89,12 @@
89
89
  @apply text-menu3;
90
90
  }
91
91
 
92
- .ui-text-code1 {
93
- @apply font-mono font-normal text-code1;
92
+ .ui-text-code {
93
+ @apply font-mono font-semibold text-code;
94
94
  }
95
95
 
96
- .ui-text-code2 {
97
- @apply font-mono font-normal text-code2;
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-disc;
142
+ @apply ml-24 list-circle;
129
143
  }
130
144
 
131
145
  .ui-unordered-list-with-emphasis ul ul {
132
- @apply list-circle;
146
+ @apply list-square;
133
147
  }
134
148
 
135
149
  /* visited needs to come before :hover et all else it overrides them */
Binary file
@@ -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
- code1: ["var(--fs-code1)", "var(--lh-relaxed)"],
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: {