anchor_view_components 0.10.0 → 0.11.0

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: 0be49890274371371051a17571a4d63276ea13a028d20ab7919c81b3705e176c
4
- data.tar.gz: c94763ed3b102c7092fd511afafb0449482831647fe2cdc53f25497d585a2db4
3
+ metadata.gz: 2a5167cac9ca6478d5e51a9279ac1212038cb6b4d5a20b711387c59455395a2e
4
+ data.tar.gz: df621b41c737a6c76db80d5504cd9e84bd45a3c3833854ef85745f19338f197c
5
5
  SHA512:
6
- metadata.gz: ec9d21ab342505fd902d5aea1d35f0a74e185e6cb4b215cca2ea9f2519a2b6b9d336d4242aa4d345bf54a74d3c4c0daef84fd70097cea9f1f5a7e65cb5dd2008
7
- data.tar.gz: df4148f0e6d101872fbe40fb3a71f10ca683eac0b21b41ebc7d242e7420184329af2f19e2642b4c749b28bdf764a2645bf66db5900fd52863955b958bdd6af93
6
+ metadata.gz: 4233e62c73ca5e91b29a2226608a05959017904d4bb5954cceddb03bd9aea63b0a492377116122806cab8417a6dbf840bf19d144837e87e13dd36b5c457d3dd0
7
+ data.tar.gz: 23e18e5d88540b94bb3184a36a5d6296cb48ccb9ed40b876999d3e851f44de9a1b7d8665a0340962b95e472d1d1b2aee9108fdbecdb87b09607529eed13ffd59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.0 - 2023-08-31
4
+
5
+ ### Added
6
+
7
+ - The `Dialog`, `Panel`, `SideNav` and `TabBar` components now pass the
8
+ `classes` argument into their view.
9
+
3
10
  ## 0.10.0 - 2023-08-28
4
11
 
5
12
  ### Added
@@ -2,7 +2,7 @@
2
2
 
3
3
  <%= tag.dialog(
4
4
  aria: { labelledby: title_id },
5
- class: "w-[36rem] rounded-lg p-0 bg-white shadow-lg backdrop:bg-grey-100/50",
5
+ class: class_names("w-[36rem] rounded-lg p-0 bg-white shadow-lg backdrop:bg-grey-100/50", classes),
6
6
  data: {
7
7
  controller: "dialog",
8
8
  testid: title_id,
@@ -1,8 +1,8 @@
1
- <div class="border border-subdued">
1
+ <%= tag.div(class: class_names("border border-subdued", classes)) do %>
2
2
  <%= header %>
3
3
 
4
4
  <% if active? %>
5
5
  <%= body %>
6
6
  <%= footer %>
7
7
  <% end %>
8
- </div>
8
+ <% end %>
@@ -7,7 +7,7 @@ module Anchor
7
7
  renders_one :body, Panel::BodyComponent
8
8
  renders_one :footer, Panel::FooterComponent
9
9
 
10
- def initialize(active: false)
10
+ def initialize(active: false, **kwargs)
11
11
  @active = active
12
12
 
13
13
  super
@@ -11,6 +11,7 @@
11
11
  class: class_names(
12
12
  "flex flex-shrink-0 w-[15rem] relative",
13
13
  "[.side-nav-open_&]:w-[3.5rem] transition-[width] duration-500",
14
+ classes
14
15
  ),
15
16
  data: { testid: "side-nav" }
16
17
  ) do %>
@@ -7,7 +7,8 @@ module Anchor
7
7
  apps:,
8
8
  apps_button_text:,
9
9
  nav_items:,
10
- employee:
10
+ employee:,
11
+ **kwargs
11
12
  )
12
13
  @apps = apps
13
14
  @apps_button_text = apps_button_text
@@ -1,6 +1,6 @@
1
1
  <%= tag.nav(
2
2
  aria: { label: label },
3
- class: "shadow-[inset_0_-1px] shadow-gray-400 pb-1",
3
+ class: class_names("shadow-[inset_0_-1px] shadow-gray-400 pb-1", classes),
4
4
  ) do %>
5
5
  <ul class="flex">
6
6
  <% tabs.each do |tab| %>
@@ -2,7 +2,7 @@ module Anchor
2
2
  class TabBarComponent < Component
3
3
  renders_many :tabs, TabBar::TabComponent
4
4
 
5
- def initialize(label:)
5
+ def initialize(label:, **kwargs)
6
6
  @label = label
7
7
 
8
8
  super
@@ -1,5 +1,5 @@
1
1
  module Anchor
2
2
  module ViewComponents
3
- VERSION = "0.10.0".freeze
3
+ VERSION = "0.11.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anchor_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buoy Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails