atomic_view 0.5.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38ae2486d6b3e69c8668b5cc8b1c8ac229e8af46f2bfa8c0217c24b6a9ba0d4e
4
- data.tar.gz: 28f821334d300ed260178324a905541230a944ca0d32763a7d031ab302f4396f
3
+ metadata.gz: 165a6c2614a15ffc294ecb82a4c969e73bdc9821e05f5cd11961b2bc8670d863
4
+ data.tar.gz: 19adaf0af4395f5880d1ad44a5f5fdb4b273d841a95ed5f072e88830c7521c18
5
5
  SHA512:
6
- metadata.gz: 11e8dd2b1b6c2de279a77e819b834e1ab742be92e1c48b61586ec8944eadb1e1fe7587e3e34ab6d85ac13121c0e3dbb3f099c62b6db2b7054e5e7f2d9c8fe2c4
7
- data.tar.gz: 74391beffa39c72a0ca5bccd400039d704ae773d5e57dc9a7696a493a825aa1f57efb00c6d959f26dac809d36a2b7c881a7112d71a09c83d156d9d4d9be2898e
6
+ metadata.gz: 5beeb078b1ea0fff91b7ad5b9e13c8f3336da75a4eeb1f37f0f4686e2556bd1896b1dc3d87d5d4d562de8fe3b819e20b312c9f556411d49258172afc43c23ffe
7
+ data.tar.gz: c69212fa8f25195f3724fa13a58db718235d0877379bd7ba7339c4354505d6e5af83430ca937ffd7957d137a4cd1496e3f272a1ee9ba8e358a39e7c9a5220bc7
@@ -14,7 +14,7 @@ module AtomicView
14
14
  #
15
15
  # Unlike SegmentedControlComponent's pill track (mutually-exclusive
16
16
  # filter chips raised on a muted background), tabs read as page-level
17
- # navigation -- a plain row of links with a colored underline on the
17
+ # navigation -- a plain row of links with a neutral underline on the
18
18
  # active one, sharing a bottom divider with the rest of the row.
19
19
  #
20
20
  # Pass `turbo_frame:` to swap tabs without a full page load: every tab
@@ -62,8 +62,12 @@ module AtomicView
62
62
  "-mb-px border-b-2 pb-3 text-sm font-semibold"
63
63
  end
64
64
 
65
+ # Neutral foreground for both the text and the underline (not
66
+ # `text-accent`/`border-accent`) -- matches SegmentedControlComponent's
67
+ # active segment, which raises the selected option in
68
+ # `text-foreground` rather than an accent color.
65
69
  def active_classes
66
- "border-accent text-accent"
70
+ "border-foreground text-foreground"
67
71
  end
68
72
 
69
73
  def inactive_classes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicView
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.2"
5
5
  end
data/lib/atomic_view.rb CHANGED
@@ -4,6 +4,7 @@ require 'atomic_view/version'
4
4
  require 'atomic_view/engine'
5
5
  require 'atomic_view/configuration'
6
6
 
7
+ require "ostruct"
7
8
  require "tailwind_merge"
8
9
  require "heroicons"
9
10
  require "local_time"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Warrington