poetry-ui 0.1.3 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d60854dfc65e3eb23ea1bdb0541a9e6290d69d8712ec913e1df746667def08f2
4
- data.tar.gz: ede37b77181f5842f3d6d484757d1c38a08d3b2883596dc9e65daf4d6f54e27b
3
+ metadata.gz: 1dc3d057d2a1fd8016bbf07932226f34cc1cb43ae92fab30787e8111790d7737
4
+ data.tar.gz: dc55e865b56c2616c1b3bc071aebb6b6ef1d597159e468972be626b45242e65d
5
5
  SHA512:
6
- metadata.gz: 8ca0c7adb7ee3844f1debc06a974b6103b3414fb79d9bc3a18ce237591d260b99352efd91337b90ec5cb6d840fc7cb2d3d8cb48eb2c0c8014cb2b7f55768ee37
7
- data.tar.gz: c828928ac82441d518eaf35dc879eb8e134e070b88ca32c6559add9ec5d48786f126d4a3bfac5784a1413a4ee29328ff38707ae540a74b04c26ad50c7d770bdf
6
+ metadata.gz: '011951d31c612220f1b733879608a7c47fba2e713b293b651cd615fe240018000eae5118a391aeb87141c0c20132b9a55fa96a9fb205c8090e5896ca7f7b11a8'
7
+ data.tar.gz: 43ffba5aa6ee261bfee9f0b7d6e8283069672f62fc38666c9572a76ce18720a6d9622f84a1db07d155f7e6bf427fe5594ae69b71d15170110442eec1465d57b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.4] - 2026-09-15
4
+
5
+ ### Fixed
6
+
7
+ - The Autocomplete popup opens 4 pixels below the input, like Combobox, Select and the menus, instead of flush against it; `side_offset:` sets the gap.
8
+
3
9
  ## [0.1.3] - 2026-09-13
4
10
 
5
11
  ### Fixed
@@ -34,7 +34,10 @@ module Poetry
34
34
  register
35
35
  value :open_on_focus, "false", if: -> { !open_on_focus }
36
36
  end
37
- controller(:popper) { register }
37
+ controller :popper do
38
+ register
39
+ value :side_offset
40
+ end
38
41
  end
39
42
  on :input do
40
43
  controller :autocomplete do
@@ -73,6 +76,8 @@ module Poetry
73
76
  doc: "The no-matches message; hidden while anything matches."
74
77
  option :open, :boolean, default: false, doc: "Server-renders the suggestion popup open."
75
78
  option :open_on_focus, :boolean, default: true, doc: "Opens the suggestions on focus; false waits for typing."
79
+ option :side_offset, :integer, default: 4,
80
+ doc: "Gap in px between the input and the suggestion popup (Combobox's default)."
76
81
 
77
82
  part "autocomplete", "Root wrapper carrying the controller + popper pair"
78
83
  part "autocomplete-input", "The REAL text input - role=combobox with aria-expanded " \
@@ -578,6 +578,11 @@ components:
578
578
  - name: placeholder
579
579
  type: string
580
580
  description: Placeholder text shown while the input is empty.
581
+ - name: side_offset
582
+ type: integer
583
+ default: 4
584
+ description: Gap in px between the input and the suggestion popup (Combobox's
585
+ default).
581
586
  - name: value
582
587
  type: string
583
588
  description: The initial input text.
@@ -682,6 +687,8 @@ components:
682
687
  conditional: if
683
688
  - identifier: poetry--core--popper
684
689
  registers: true
690
+ values:
691
+ - name: side_offset
685
692
  - element: input
686
693
  controllers:
687
694
  - identifier: poetry--core--autocomplete
@@ -3,6 +3,6 @@
3
3
  module Poetry
4
4
  module Ui
5
5
  # The gem version.
6
- VERSION = "0.1.3"
6
+ VERSION = "0.1.4"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poetry-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Solt
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.3
18
+ version: 0.1.4
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.1.3
25
+ version: 0.1.4
26
26
  description: 'Poetry''s components for the AI-native UI component library: accessible,
27
27
  themeable, agent-legible ViewComponents built entirely on poetry-core''s public
28
28
  DSL.'
@@ -504,7 +504,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
504
  - !ruby/object:Gem::Version
505
505
  version: '0'
506
506
  requirements: []
507
- rubygems_version: 4.0.16
507
+ rubygems_version: 4.0.20
508
508
  specification_version: 4
509
509
  summary: 'The Poetry component library: AI-native UI components for Rails'
510
510
  test_files: []