primer_view_components 0.0.11 → 0.0.12

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: befa90070fd7a8cd5a5668c8ac39697fb4baf39d11ebc50f938f72eb1805543a
4
- data.tar.gz: c9b3abe81ae870566a2a2decf6135b8f13158842c43fd46b40346aba6fcc6e45
3
+ metadata.gz: c05ad651f3b5b7815ccb7f623f098b488019c938c11b1d00ee93e467ec535b55
4
+ data.tar.gz: aafd79851c5e551d193d5282536806a1446ada7e12d1d25ba29437e58d7b1212
5
5
  SHA512:
6
- metadata.gz: 16cbb49509d19431d5dba889847c350c5720b471452a62d5452de2ce454376826edc37628b5b65711255dbe4bd50357f7b7c0d158b2c595b15685db974e11607
7
- data.tar.gz: aea1f3880d89157176c509eba04c7a79d9fd443e9f8ca8d5e3f40960e27ed94e100c69bfde39c86bba76471e76d6afca4f6ed7919d398e35b076a4ef5f659309
6
+ metadata.gz: 30d274cb5271343b460ca8bfc1dc08317eff24ef71213633537acedf34eca63ffcb58a1581b5a95a678d5b88d1ec5229467c5b96dc7c3f2fa7aa918ce45b8426
7
+ data.tar.gz: 7806725e6845939d302bde336a73a89a1b1918e878a6b15666b157e2d8b4ce53535d630e2960d1077cc8bb7ba7867a60eadfd346ecda15fabce07aaacaabbb3d
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## main
4
4
 
5
+ ## 0.0.12
6
+
7
+ * Adds support for disabling inline box-sizing style for `SpinnerComponent` via style parameter `Primer::SpinnerComponent.new(style: nil)`.
8
+
9
+ *Chris Wilson*
10
+
5
11
  ## 0.0.11
6
12
 
7
13
  * Renames DetailsComponent::OVERLAY_DEFAULT to DetailsComponent::NO_OVERLAY to more correctly describe its value.
data/README.md CHANGED
@@ -8,7 +8,9 @@
8
8
 
9
9
  _Note: This library is in pre-release development and should not be considered stable._
10
10
 
11
- Visit [https://view-components.primer.vercel.app/](https://view-components.primer.vercel.app/) to view documentation.
11
+ ## Documentation
12
+
13
+ Visit [https://primer.style/view-components/](https://primer.style/view-components//) to view documentation.
12
14
 
13
15
  ## License
14
16
 
@@ -11,6 +11,9 @@ module Primer
11
11
  :large => 64,
12
12
  }.freeze
13
13
  SIZE_OPTIONS = SIZE_MAPPINGS.keys
14
+ # Setting `box-sizing: content-box` allows consumers to add padding
15
+ # to the spinner without shrinking the icon
16
+ DEFAULT_STYLE = "box-sizing: content-box; color: var(--color-icon-primary);"
14
17
 
15
18
  #
16
19
  # @example 48|Default
@@ -23,16 +26,14 @@ module Primer
23
26
  # <%= render(Primer::SpinnerComponent.new(size: :large)) %>
24
27
  #
25
28
  # @param size [Symbol] <%= one_of(Primer::SpinnerComponent::SIZE_OPTIONS) %>
26
- def initialize(size: DEFAULT_SIZE, **kwargs)
29
+ def initialize(size: DEFAULT_SIZE, style: DEFAULT_STYLE, **kwargs)
27
30
  @kwargs = kwargs
28
31
  @kwargs[:tag] = :svg
29
32
  @kwargs[:width] = SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, DEFAULT_SIZE)]
30
33
  @kwargs[:height] = SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, DEFAULT_SIZE)]
31
34
  @kwargs[:viewBox] = "0 0 16 16"
32
35
  @kwargs[:fill] = :none
33
- # Setting `box-sizing: content-box` allows consumers to add padding
34
- # to the spinner without shrinking the icon
35
- @kwargs[:style] = "box-sizing: content-box; color: var(--color-icon-primary);"
36
+ @kwargs[:style] = DEFAULT_STYLE unless style.nil?
36
37
  end
37
38
  end
38
39
  end
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 11
8
+ PATCH = 12
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-26 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -182,7 +182,7 @@ dependencies:
182
182
  - - "~>"
183
183
  - !ruby/object:Gem::Version
184
184
  version: 0.9.25
185
- description:
185
+ description:
186
186
  email:
187
187
  - opensource+primer_view_components@github.com
188
188
  executables: []
@@ -245,7 +245,7 @@ licenses:
245
245
  - MIT
246
246
  metadata:
247
247
  allowed_push_host: https://rubygems.org
248
- post_install_message:
248
+ post_install_message:
249
249
  rdoc_options: []
250
250
  require_paths:
251
251
  - lib
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubygems_version: 3.1.2
264
- signing_key:
264
+ signing_key:
265
265
  specification_version: 4
266
266
  summary: ViewComponents for the Primer Design System
267
267
  test_files: []