sdr_view_components 0.1.2 → 0.1.3
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/README.md +7 -13
- data/lib/sdr_view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16f9c65aca5c79312e48c511e61e6b5181de67e763d85b99185d6b558f726124
|
|
4
|
+
data.tar.gz: d1b86d685d6a82e90bfc2974906874f57d717d27d1026605ce62cc8bd33d8b9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74181bc2ebb10bb5e0b8113041ed135c8fa2e6d3987de57b3d0e562948232a902b5d134f1fc04c1c85f49871b75cd0871efc0bf905dbfa6a5d2a3f30665d45f8
|
|
7
|
+
data.tar.gz: b1910536f68eafa46c193b6b94d0c2671d7f53684c40d42c0e5058bb537f4f78dff23f7785805f84594f8de9095a24ab106758027a1ade39745b1e7ae6295689
|
data/README.md
CHANGED
|
@@ -7,22 +7,20 @@
|
|
|
7
7
|
A rails gem to provide reusable view components used throughout the SDR applications and implement
|
|
8
8
|
component library assets.
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
# Installation
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Add to gemfile:
|
|
13
13
|
|
|
14
14
|
```
|
|
15
|
-
gem 'sdr_view_components'
|
|
15
|
+
gem 'sdr_view_components'
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Or via github path
|
|
19
|
-
|
|
20
18
|
## Requirements
|
|
21
19
|
|
|
22
20
|
This set of components relies on the component library stylesheets, add:
|
|
23
21
|
|
|
24
22
|
```
|
|
25
|
-
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sul-dlss/component-library@v2025-09-11/styles/sul.css">
|
|
26
24
|
```
|
|
27
25
|
|
|
28
26
|
with the most recent date tagged release to your `application.html.erb` layout file.
|
|
@@ -53,7 +51,7 @@ Supported header variations are `:dark`, `:light`, and `:white` (default is `:li
|
|
|
53
51
|
<% end %>
|
|
54
52
|
```
|
|
55
53
|
|
|
56
|
-
The `:dark` variation supports providing an rgb value via the `
|
|
54
|
+
The `:dark` variation supports providing an rgb value via the `background_color` param in order to override the default dark background, for example:
|
|
57
55
|
|
|
58
56
|
```
|
|
59
57
|
<%= render SdrViewComponents::Structure::HeaderComponent.new(title: 'Test Header', subtitle: 'Test Subtitle', variant: :dark, rgb_color_str: '1, 104, 149') do |header| %>
|
|
@@ -63,14 +61,10 @@ The `:dark` variation supports providing an rgb value via the `rgb_color_str` pa
|
|
|
63
61
|
<% end %>
|
|
64
62
|
```
|
|
65
63
|
|
|
64
|
+
By default, the SUL Rosette is included in the header, this can be disabled by setting `rosette: false` in the parameter list when instantiating the header.
|
|
65
|
+
|
|
66
66
|
### General usage:
|
|
67
67
|
|
|
68
68
|
```
|
|
69
69
|
<% render SdrViewComponent::....>
|
|
70
70
|
```
|
|
71
|
-
|
|
72
|
-
## Contributing
|
|
73
|
-
Contribution directions go here.
|
|
74
|
-
|
|
75
|
-
## License
|
|
76
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sdr_view_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Collier
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-12-
|
|
10
|
+
date: 2025-12-10 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|