head 0.0.4 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d40b022159d002893a320ac68e135202e6406f8df5d63054ea0639f2ccc0cd6
4
- data.tar.gz: 99f7a6cb41d1121d8f6d1c8cfb089248ea97378c1bdf12de6c7f680cce99c083
3
+ metadata.gz: 280eda1efe687ba91febae4f95cc1cca7b076c4ca2e67de4cf1951c5f8e98d81
4
+ data.tar.gz: 9ec49c8102a73e4079f7fd8125778220091daa40c5250548cd001cbae97131ff
5
5
  SHA512:
6
- metadata.gz: 2ebdd214cff669e67821b3a80123ec2260dd8f0815615a815a35a133d4a451e3a930ec5c3ebe3e2a8817f66c27a5be655133cae1f7ea172caad2bc5b282e097c
7
- data.tar.gz: 54ba066db077606d3e21e861a350c9bf9b549d2fb1a1eb607b2d9333a0428426a7b47490a29a4bb28f54530660b44461b7853fe80f46aa8ced4ad35ad88f77af
6
+ metadata.gz: c84255c65581c5bdac71847536cb9ec50014e4f9d22c68b890e468230e8a3c88d753641ca29474dc768196a6e6b81d3ba1c98b006202227ea9e89abafba2d1c5
7
+ data.tar.gz: c88efd648e6ad721f8e91b15342a81f1c6feafd17a6a47f62c6ac95452cc4390bfc32ace7bd631967220284867ce2a1b2c2a8ba3dc5b0946ba8c36c21b733b38
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.6] - 2026-04-29
4
+
5
+ - Fix rails complaining about require'ing view_component too early
6
+
3
7
  ## [0.0.1] - 2025-10-02
4
8
 
5
9
  - Initial release
@@ -16,7 +16,7 @@
16
16
 
17
17
  &--right
18
18
  right: 0
19
- position: inherit
19
+ // position: inherit
20
20
 
21
21
  // On very very large screens, permanently show notifications sidebar on the right.
22
22
  // Using container queries for this, because the main menu on the left may affect the layout.
@@ -48,6 +48,16 @@
48
48
  +responsive.xlarge-container
49
49
  display: none
50
50
 
51
+ // The right wing has three states
52
+ // Small screens: appear on top of the content
53
+ // Medium screens: appear next to the content
54
+ // Large screens: always show next to the content
55
+ // This snippet here is for medium screens:
56
+ // When the (right) curtain disappears, make the right wing next to the content
57
+ .c-head-wing--right:has(> .c-head-wing__curtain)
58
+ +responsive.xlarge-container
59
+ position: inherit
60
+
51
61
  // Keep this breakpoint analogous to knob.sass
52
62
  +responsive.xlarge
53
63
  .c-head-wing
data/lib/head/engine.rb CHANGED
@@ -26,12 +26,14 @@ module Head
26
26
  # AND the view_component gem has been fully initialized (configured).
27
27
  #
28
28
  # That's right here and now.
29
- require_relative '../../app/components/head/application_component'
29
+ ActiveSupport.on_load(:action_view) do
30
+ require_relative '../../app/components/head/application_component'
30
31
 
31
- # Components
32
- require_relative '../../app/components/head/wing'
33
- require_relative '../../app/components/head/knob'
34
- require_relative '../../app/components/head/theater'
32
+ # Components
33
+ require_relative '../../app/components/head/wing'
34
+ require_relative '../../app/components/head/knob'
35
+ require_relative '../../app/components/head/theater'
36
+ end
35
37
  end
36
38
  end
37
39
  end
data/lib/head/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Head
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: head
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.7.2
181
+ rubygems_version: 4.0.6
182
182
  specification_version: 4
183
183
  summary: A simple, opinionated navigation menu ViewComponent
184
184
  test_files: []