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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/poetry/ui/autocomplete/component.rb +6 -1
- data/config/component_registry.yml +7 -0
- data/lib/poetry/ui/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dc3d057d2a1fd8016bbf07932226f34cc1cb43ae92fab30787e8111790d7737
|
|
4
|
+
data.tar.gz: dc55e865b56c2616c1b3bc071aebb6b6ef1d597159e468972be626b45242e65d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '011951d31c612220f1b733879608a7c47fba2e713b293b651cd615fe240018000eae5118a391aeb87141c0c20132b9a55fa96a9fb205c8090e5896ca7f7b11a8'
|
|
7
|
+
data.tar.gz: 43ffba5aa6ee261bfee9f0b7d6e8283069672f62fc38666c9572a76ce18720a6d9622f84a1db07d155f7e6bf427fe5594ae69b71d15170110442eec1465d57b1
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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
|
data/lib/poetry/ui/version.rb
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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: []
|