ably-ui 7.8.0.dev.ba22343 → 7.8.2.dev.e8b31f4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0bff5367b27b28e4a0ed78bef3bafcd77debe896ecc322732138ef894ecfd7d
4
- data.tar.gz: 6d3845361bf3c9942e50d78758f47b3be08964f0206d4527ec557bfc7ffd4d0a
3
+ metadata.gz: 93fe05c1f516bd76cd872302ea5300bb8117129228348fca7442355c1afb5c37
4
+ data.tar.gz: 5ebcc9f5f087c67c4adc6efa9ee507640f894a4ecef0b41b4aad4360c9f154ca
5
5
  SHA512:
6
- metadata.gz: 19c42bd7b322646629fa4834c643729ced73f82e7bd2443bd8f3dbf7f5d7289b908af126eb69790b4c6c9a1c8e19ea934d356989a1f6de20200ba8c8a528f3c4
7
- data.tar.gz: 898b9fb4f066437d40f9407e5a638029825e1b2a12cf7daaf84582ee907e4fea1109310408e1d74e3682c31a032db54a1e1b713f697d3e1bcdbb157f3a2eee8a
6
+ metadata.gz: 99cfd4edbc8e1bcddc11bdbe8ca3c255e38315a214fb456689f13fb87b218d26204d9a9c5c247f22f9755b54203029cb2e0b11cc4909f067a5283fa3f582e178
7
+ data.tar.gz: 27951a326a734504d60d4d89779916ae073828535173619d08397beebbb7d1526978a9b99192e5bef9f00bcfb2cc06fbc4849b8293fdc4dcf4eb3d9d3a5a78de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ably-ui (7.8.0)
4
+ ably-ui (7.8.2)
5
5
  view_component (>= 2.33, < 2.50)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -73,8 +73,16 @@ import "@ably/ui/core/styles.css";
73
73
  Currently, AblyUI CSS is built to work with TailwindCSS. To integrate it into your app:
74
74
 
75
75
  1. Add AblyUI to your project
76
- 1. Add TailwindCSS to your project https://tailwindcss.com/docs/installation#installing-tailwind-css-as-a-post-css-plugin
77
- 1. Add the following to your `tailwind.config.js`. Note how different config properties are always extended by the `ablyUIConfig`:
76
+ 2. Add TailwindCSS to your project
77
+ 1. By project type:
78
+ 1. In [HTML](https://tailwindcss.com/docs/installation#installing-tailwind-css-as-a-post-css-plugin)
79
+ 2. In [Gatsby](https://tailwindcss.com/docs/guides/gatsby)
80
+ 1. Add postCSS import with `npm install postcss-import`
81
+ 1. Further to the instructions, if installation is hanging for over 5 minutes or otherwise problematic, try installing the libraries one at a time
82
+ 2. Make sure you are installing v2 with `npm install -D tailwindcss@2.X`
83
+ 3. Make sure that tailwindcss-filters is also set to v2 in your package.json: otherwise `npm install -D tailwindcss-filters@2.X`
84
+ 3. Make sure you are using the format `@import 'tailwindcss/base';...` in your `global.css` file rather than the `@tailwind/base` format from Tailwind v3
85
+ 4. Add the following to your `tailwind.config.js`. Note how different config properties are always extended by the `ablyUIConfig`:
78
86
 
79
87
  ```js
80
88
  const extendConfig = require("@ably/ui/tailwind.extend.js");
@@ -93,7 +101,7 @@ module.exports = extendConfig((ablyUIConfig) => ({
93
101
  }));
94
102
  ```
95
103
 
96
- 1. In the CSS file you added your tailwind declarations too, import the CSS for the modules and components you need:
104
+ 1. In the CSS file you added your tailwind declarations to, import the CSS for the modules and components you need:
97
105
 
98
106
  ```css
99
107
  @import "tailwindcss/base";
@@ -136,7 +144,7 @@ Note that this loads neither CSS nor JS — these need to still be loaded by a b
136
144
 
137
145
  ### Icons
138
146
 
139
- Putting SVG files inside and `src/MODULE_NAME/icons` folder will add them to a per-module sprites file that will be available at the root of the module (e.g., `core/sprites.svg`). This file can be loaded with the `loadSprites` helper available in the `core` module or include in the page directly.
147
+ Putting SVG files inside a`src/MODULE_NAME/icons` folder will add them to a per-module sprites file that will be available at the root of the module (e.g., `core/sprites.svg`). This file can be loaded with the `loadSprites` helper available in the `core` module or include in the page directly.
140
148
 
141
149
  Usage with the `Icon` React component:
142
150
 
@@ -0,0 +1,3 @@
1
+ @layer base {
2
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@600&display=swap");
3
+ }
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+
1
3
  module AblyUi
2
4
  module Core
3
5
  class Logo < ViewComponent::Base
@@ -8,9 +10,8 @@ module AblyUi
8
10
  def initialize(data_id: '', href:)
9
11
  @data_id = data_id
10
12
  @href = href
11
- @gradient_id_0 = "paint_linear_#{Date.now}"
12
- @gradient_id_1 = "paint_linear_#{Date.now}"
13
- theme_setup(theme_name)
13
+ @gradient_id_0 = "paint_linear_#{SecureRandom.uuid}"
14
+ @gradient_id_1 = "paint_linear_#{SecureRandom.uuid}"
14
15
  end
15
16
 
16
17
  def logo_href
@@ -15,9 +15,10 @@
15
15
  --color-charcoal-grey: #292831;
16
16
  --color-gui-default: #0073e6;
17
17
  --color-gui-hover: #0867c4;
18
- --color-gui-focus: #80b9f2;
18
+ --color-gui-focus: #0073e6;
19
+ --color-gui-focus-outline: #80b9f2;
19
20
  --color-gui-active: #074095;
20
- --color-gui-viewed: #4887c2;
21
+ --color-gui-visited: #4887c2;
21
22
  --color-gui-unavailable: #a8a8a8;
22
23
  --color-gui-error: #fb0c0c;
23
24
  --color-gui-success: #11cb24;
@@ -155,7 +156,7 @@
155
156
  /* In components, when looking at implementing viewport margin and spacing between elements,
156
157
  the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
157
158
  alternatively, look for ui-grid-* helpers. */
158
- --bp-xs: 375px; /* gutters 8px, side-margin 24px */
159
+ --bp-xs: 428px; /* gutters 8px, side-margin 24px */
159
160
  --bp-sm: 768px; /* gutters 16px, side-margin 32px */
160
161
  --bp-md: 1040px; /* gutters 24px, side-margin 40px, meganav desktop */
161
162
  --bp-lg: 1280px; /* gutters 24px, side-margin 64px */
@@ -343,17 +344,17 @@
343
344
  }
344
345
 
345
346
  .ui-text-p1 {
346
- @apply font-sans font-light text-cool-black;
347
+ @apply font-sans font-light text-charcoal-grey;
347
348
  @apply text-p1;
348
349
  }
349
350
 
350
351
  .ui-text-p2 {
351
- @apply font-sans font-light text-cool-black;
352
+ @apply font-sans font-light text-charcoal-grey;
352
353
  @apply text-p2;
353
354
  }
354
355
 
355
356
  .ui-text-p3 {
356
- @apply font-sans font-light text-cool-black;
357
+ @apply font-sans font-light text-charcoal-grey;
357
358
  @apply text-p3;
358
359
  }
359
360
 
@@ -459,24 +460,18 @@
459
460
  @apply list-square;
460
461
  }
461
462
 
462
- /* visited needs to come before :hover et all else it overrides them */
463
- .ui-link:visited {
464
- @apply text-gui-viewed;
463
+ .ui-link {
464
+ @apply visited:text-gui-visited;
465
+ @apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
466
+ @apply focus:text-gui-focus focus:outline-gui-focus;
467
+ @apply underline;
465
468
  }
466
469
 
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;
470
+ .ui-link-neutral {
471
+ @apply visited:text-dark-grey;
472
+ @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
473
+ @apply focus:text-gui-focus focus:outline-gui-focus-neutral;
474
+ @apply underline;
480
475
  }
481
476
  }
482
477
  @layer components {
@@ -1,3 +1,3 @@
1
1
  module AblyUi
2
- VERSION = '7.8.0.dev.ba22343'
2
+ VERSION = '7.8.2.dev.e8b31f4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ably-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.8.0.dev.ba22343
4
+ version: 7.8.2.dev.e8b31f4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Piatek
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-05-27 00:00:00.000000000 Z
13
+ date: 2022-06-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: view_component
@@ -91,6 +91,7 @@ files:
91
91
  - lib/ably_ui/core/fonts/NEXT-Book-Medium.woff
92
92
  - lib/ably_ui/core/fonts/NEXT-Book-Medium.woff2
93
93
  - lib/ably_ui/core/fonts/next.css
94
+ - lib/ably_ui/core/fonts/source-code-pro.css
94
95
  - lib/ably_ui/core/footer/component.css
95
96
  - lib/ably_ui/core/footer/component.js
96
97
  - lib/ably_ui/core/footer/footer.html.erb