kiso 0.2.1.pre → 0.2.2.pre

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: fc81659a56fbdc6091f37b314d096fa6eeca6a430284f594a2666e7646b49bed
4
- data.tar.gz: 75d5f93f6d15684a044b340c1159fca84d0ac8285e16bf859c6805ceef35da4a
3
+ metadata.gz: cfca4f2a1e45d61e45de52c22a96428de18c04643860ea07c0913d2c29d3c397
4
+ data.tar.gz: e46ba40a7fe00c0818958742e745058e6cec5990e2b195df085cc2b3e8242477
5
5
  SHA512:
6
- metadata.gz: 452f1fcafc008d9257fe03b6530a182e4be66a8fbcf7e42ae6d03131cc0fb3fe8f8f144330a6c667d7e9fbb4dad65a592dd17e24c1833fb28cfbd71c5e4224fc
7
- data.tar.gz: cae0cecec57517234b7f5c02d44cfe7b3542b463bec938ae955793c345345be7daf63a7212adfd040cf1849ec2d5faeaa377e410b79c477abfe68e6a92110699
6
+ metadata.gz: 8ca9dcd4857e5f4eb41086239901a6c347314432ba75189372642dba08d6975fe9caa5466635e94e013f26c858a84ff5af64e2701dd75a3ef946e560b3025011
7
+ data.tar.gz: 75689ce3b7a06d3377d74ed37f7d5fe1d44c95d19549b6992e5c66bd3b78a8b07e924bbc2ba26a15f02b861f74986565c124369fb7648de5b5655b060dd2d4f6
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2.pre] - 2026-03-03
11
+
12
+ ### Fixed
13
+
14
+ - Dashboard layout rendering — components called without a block inside a layout (e.g., sidebar toggle, collapse) would capture the entire page template via ERB yield bubbling, breaking the dashboard grid. The `kui()` helper now passes an empty proc to prevent yield from reaching the layout.
15
+ - Dashboard toggle and collapse icon sizing — SVG icons now render at the correct size via `[&>svg]:size-4`.
16
+
10
17
  ## [0.2.1.pre] - 2026-03-03
11
18
 
12
19
  ### Fixed
@@ -61,7 +68,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
61
68
  - Lookbook component previews
62
69
  - Bridgetown documentation site
63
70
 
64
- [Unreleased]: https://github.com/steveclarke/kiso/compare/v0.2.1.pre...HEAD
71
+ [Unreleased]: https://github.com/steveclarke/kiso/compare/v0.2.2.pre...HEAD
72
+ [0.2.2.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.2.2.pre
65
73
  [0.2.1.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.2.1.pre
66
74
  [0.2.0.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.2.0.pre
67
75
  [0.1.1.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.1.1.pre
@@ -30,6 +30,16 @@ module Kiso
30
30
  "kiso/components/#{component}"
31
31
  end
32
32
 
33
+ # Prevent yield from bubbling up the ERB rendering chain when no block
34
+ # is passed. Without this, partials that use `capture { yield }.presence`
35
+ # to support optional block overrides (e.g., toggle/collapse/separator)
36
+ # would have their `yield` bubble through nested content_tag blocks all
37
+ # the way to the layout's `<%= yield %>`, capturing the entire page
38
+ # template content. An explicit empty proc gives `yield` something to
39
+ # call, returning empty string → `.presence` returns nil → default
40
+ # content renders correctly.
41
+ block ||= proc {}
42
+
33
43
  if collection
34
44
  render partial: path, collection: collection, locals: kwargs, &block
35
45
  else
@@ -9,7 +9,7 @@ module Kiso
9
9
  )
10
10
 
11
11
  DashboardNavbarToggle = ClassVariants.build(
12
- base: "flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0"
12
+ base: "flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0 [&>svg]:size-4"
13
13
  )
14
14
 
15
15
  DashboardSidebar = ClassVariants.build(
@@ -29,11 +29,11 @@ module Kiso
29
29
  )
30
30
 
31
31
  DashboardSidebarToggle = ClassVariants.build(
32
- base: "lg:hidden flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0 cursor-pointer"
32
+ base: "lg:hidden flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0 cursor-pointer [&>svg]:size-4"
33
33
  )
34
34
 
35
35
  DashboardSidebarCollapse = ClassVariants.build(
36
- base: "hidden lg:flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0 cursor-pointer"
36
+ base: "hidden lg:flex items-center justify-center w-8 h-8 rounded-md text-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-150 shrink-0 cursor-pointer [&>svg]:size-4"
37
37
  )
38
38
 
39
39
  DashboardToolbar = ClassVariants.build(
@@ -20,7 +20,7 @@ module Kiso
20
20
  # @example
21
21
  # InputOtpSlot.render(size: :md)
22
22
  InputOtpSlot = ClassVariants.build(
23
- base: "border-accented relative flex items-center justify-center " \
23
+ base: "border-border relative flex items-center justify-center " \
24
24
  "border-y border-r shadow-xs transition-all outline-none " \
25
25
  "first:rounded-l-md first:border-l last:rounded-r-md " \
26
26
  "data-[active=true]:z-10 data-[active=true]:border-primary " \
data/lib/kiso/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Kiso
4
4
  # @return [String] the current gem version
5
- VERSION = "0.2.1.pre"
5
+ VERSION = "0.2.2.pre"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.pre
4
+ version: 0.2.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Clarke