ably-ui 7.8.2.dev.e8b31f4 → 7.8.2
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -12
- data/lib/ably_ui/core/styles.css +22 -17
- data/lib/ably_ui/version.rb +1 -1
- metadata +8 -11
- data/lib/ably_ui/core/fonts/source-code-pro.css +0 -3
- data/lib/ably_ui/react/connect_state_wrapper/component.js +0 -1
- data/lib/ably_ui/react/scripts.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bde61226b5f6a191c68aa300a043c9cece9986a3b3dac6af0f2a94af71ccc2af
|
4
|
+
data.tar.gz: d0612a892d69a1e47db0b6c0deb2e47dc49921e8397b609b6445e9372ae4b519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50eb420c73b8fd342d329f4645e2a23c97c29ebf5da91b43efeb6b2ff22efc1e36a0db602764c2fc76d478cdf3e39a53694dd0ade5405cb58792dc38d705c94b
|
7
|
+
data.tar.gz: 790d81482e6f4573059c3773a1145151c2be7bda2607ec188fea5d174164285c5ee474257be9035911a563c3e26ec6544a5bb2f86cc200aaeee32c9be4c5bdcf
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -73,16 +73,8 @@ 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
|
-
|
77
|
-
|
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`:
|
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`:
|
86
78
|
|
87
79
|
```js
|
88
80
|
const extendConfig = require("@ably/ui/tailwind.extend.js");
|
@@ -101,7 +93,7 @@ module.exports = extendConfig((ablyUIConfig) => ({
|
|
101
93
|
}));
|
102
94
|
```
|
103
95
|
|
104
|
-
1. In the CSS file you added your tailwind declarations
|
96
|
+
1. In the CSS file you added your tailwind declarations too, import the CSS for the modules and components you need:
|
105
97
|
|
106
98
|
```css
|
107
99
|
@import "tailwindcss/base";
|
@@ -144,7 +136,7 @@ Note that this loads neither CSS nor JS — these need to still be loaded by a b
|
|
144
136
|
|
145
137
|
### Icons
|
146
138
|
|
147
|
-
Putting SVG files inside
|
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.
|
148
140
|
|
149
141
|
Usage with the `Icon` React component:
|
150
142
|
|
data/lib/ably_ui/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 {
|
data/lib/ably_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ably-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.8.2
|
4
|
+
version: 7.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Piatek
|
8
8
|
- Arti Mathanda
|
9
9
|
- Bruce Thomas
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: view_component
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '2.50'
|
35
|
-
description:
|
35
|
+
description:
|
36
36
|
email:
|
37
37
|
- dominik.piatek@ably.com
|
38
38
|
- arti.mathanda@ably.com
|
@@ -91,7 +91,6 @@ 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
|
95
94
|
- lib/ably_ui/core/footer/component.css
|
96
95
|
- lib/ably_ui/core/footer/component.js
|
97
96
|
- lib/ably_ui/core/footer/footer.html.erb
|
@@ -202,8 +201,6 @@ files:
|
|
202
201
|
- lib/ably_ui/core/uptime/component.js
|
203
202
|
- lib/ably_ui/core/uptime/uptime.html.erb
|
204
203
|
- lib/ably_ui/core/uptime/uptime.rb
|
205
|
-
- lib/ably_ui/react/connect_state_wrapper/component.js
|
206
|
-
- lib/ably_ui/react/scripts.js
|
207
204
|
- lib/ably_ui/reset/scripts.js
|
208
205
|
- lib/ably_ui/reset/styles.css
|
209
206
|
- lib/ably_ui/version.rb
|
@@ -212,7 +209,7 @@ licenses:
|
|
212
209
|
- Apache-2.0
|
213
210
|
metadata:
|
214
211
|
source_code_uri: https://github.com/ably/ably-ui
|
215
|
-
post_install_message:
|
212
|
+
post_install_message:
|
216
213
|
rdoc_options: []
|
217
214
|
require_paths:
|
218
215
|
- lib
|
@@ -223,12 +220,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
220
|
version: '0'
|
224
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
222
|
requirements:
|
226
|
-
- - "
|
223
|
+
- - ">="
|
227
224
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
225
|
+
version: '0'
|
229
226
|
requirements: []
|
230
227
|
rubygems_version: 3.2.3
|
231
|
-
signing_key:
|
228
|
+
signing_key:
|
232
229
|
specification_version: 4
|
233
230
|
summary: Shared component library and design system for Ably Real-time Ltd (ably.com)
|
234
231
|
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.React=e.AblyUi.React||{},e.AblyUi.React.ConnectStateWrapper=t())}(this,(function(){return{}.default}));
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define([,],t):"object"==typeof exports?exports.AblyUi=t(require("react"),require("react-dom")):(e.AblyUi=e.AblyUi||{},e.AblyUi.React=t(e[void 0],e[void 0]))}(this,(function(e,t){return(()=>{"use strict";var r={281:t=>{t.exports=e},645:e=>{e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.r(n),a.d(n,{reactRenderer:()=>i});var e=a(281),t=a.n(e),r=a(645),o=a.n(r);function i(e){var r=document.querySelectorAll("[data-react]");Array.from(r).forEach((function(r){var a=r.getAttribute("data-react"),n=e[a];if(!n)throw new Error('Found a data-react attribute with "'.concat(a,'" but no matching component.'));var i=r.getAttribute("data-react-props"),c=i&&JSON.parse(i||{});o().render(t().createElement(n,c),r),r.removeAttribute("data-react"),r.removeAttribute("data-react-props")}))}})(),n})()}));
|