shadcn_view_component 0.3.3 → 0.3.4
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/app/javascript/shadcn/floating.js +8 -2
- data/lib/shadcn_view_component/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29ea0d023e1f27ef89c4fec8cfef87fc258edaaa4e2ac5e994786714333a6a53
|
|
4
|
+
data.tar.gz: 32b77516f70a481572ecc1bdaade20b183a42124b5d5326e42627ce694fc6515
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfc31a66bcedf151beafde89640b2b477c899ea6e79da842cf718aea3765ada90ad61a6de19683d43627c8b9ab52d6ae396613a4892aa66393a77ac1c4161183
|
|
7
|
+
data.tar.gz: 48f5c878af4cb5f3473dd898eddfc590254b76b3dc84dcc91f7c406318bf5f3a905b3da2d88dc5e807f217f8c6d34c184b044a9610ca7caacdd0c23d49c0ada1
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.3.4] — 2026-10-29
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- A floating layer is placed again when **its own** size changes, not only the
|
|
12
|
+
trigger's. A searchable `Select` opened above its trigger computes its top
|
|
13
|
+
edge from its height, so when the search hid rows the panel shrank towards
|
|
14
|
+
its top and its bottom edge climbed away from the field — 132px in the
|
|
15
|
+
gallery, 329px on a host's form. The resize observer in `FloatingLayer` now
|
|
16
|
+
watches the content as well as the anchor, which is what floating-ui's
|
|
17
|
+
`autoUpdate` does, so every component built on it (Select, Combobox,
|
|
18
|
+
Popover, DropdownMenu, HoverCard, Tooltip) follows its own size.
|
|
19
|
+
|
|
20
|
+
`spec/system/select_spec.rb` opens the searchable select above its trigger,
|
|
21
|
+
filters it down to one row, and checks the panel is still against the field.
|
|
22
|
+
|
|
7
23
|
## [0.3.3] — 2026-08-20
|
|
8
24
|
|
|
9
25
|
### Fixed
|
|
@@ -79,9 +79,15 @@ export class FloatingLayer {
|
|
|
79
79
|
// size while it stays still — a sidebar menu button goes from 239px to
|
|
80
80
|
// 32px when the panel collapses under an open tooltip, which left the
|
|
81
81
|
// label 200px out to the right of the icon it names. floating-ui's
|
|
82
|
-
// `autoUpdate` observes both the reference and the floating element
|
|
83
|
-
//
|
|
82
|
+
// `autoUpdate` observes both the reference and the floating element, and
|
|
83
|
+
// so does this: the content's own size moves the result too. Placed above
|
|
84
|
+
// its trigger, a searchable Select's top edge is computed from its height,
|
|
85
|
+
// so when the search hides rows the panel shrinks towards its top and its
|
|
86
|
+
// bottom edge climbed away from the field it belongs to. A transform does
|
|
87
|
+
// not change an element's box, so writing the position cannot loop back
|
|
88
|
+
// here.
|
|
84
89
|
if (this.trigger) this.resizes.observe(this.trigger)
|
|
90
|
+
this.resizes.observe(this.content)
|
|
85
91
|
|
|
86
92
|
this.layer = pushLayer({
|
|
87
93
|
element: this.content,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shadcn_view_component
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sirion1987
|
|
@@ -587,6 +587,7 @@ metadata:
|
|
|
587
587
|
source_code_uri: https://github.com/gestartcloudsrl/shadcn_view_component
|
|
588
588
|
changelog_uri: https://github.com/gestartcloudsrl/shadcn_view_component/blob/main/CHANGELOG.md
|
|
589
589
|
bug_tracker_uri: https://github.com/gestartcloudsrl/shadcn_view_component/issues
|
|
590
|
+
keywords: shadcn, shadcn-ui, view_component, stimulus
|
|
590
591
|
rubygems_mfa_required: 'true'
|
|
591
592
|
rdoc_options: []
|
|
592
593
|
require_paths:
|