poetry-ui 0.1.11 → 0.1.12
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/context_menu/style.rb +5 -0
- data/app/components/poetry/ui/dropdown_menu/style.rb +5 -0
- data/app/components/poetry/ui/menubar/style.rb +5 -0
- data/app/components/poetry/ui/menus.rb +4 -1
- data/config/component_registry.yml +6 -3
- 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: 8676875c7f97a1dd931abb718a49a3da6877873b20aafec53006b68a022a04ca
|
|
4
|
+
data.tar.gz: 40933fec5bc880f597fd5eec6b2eb2485087ce141280d5c05e3e30fc949a7863
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1d773fc597f9d72558ffca7a6ae6f3fade21d73fe06455c6e3fa319107f7bfc741e6d4c9b758b57879fffdf43e61db0a7d88cf2c3211e10999e6486e6882360
|
|
7
|
+
data.tar.gz: aaa0f3b9bc18469dec3de18ef48c55f05e508a519b9e1423ce580781fbbcc008d7fd7a750553c387eb06c14d92f5f1414b0900f60e83c7a5d06086f03691ef0e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.12] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- A submit item in DropdownMenu, ContextMenu or Menubar (`with_item(submit:)`) fills its row like the link items. It renders a `<button>`, which sizes to its label even as a flex box, so its hover and focus highlight stopped at the text. Each family's new `item_submit` element carries `w-full text-start`, so the classes reach the host safelist with the rest of the dictionary.
|
|
8
|
+
|
|
3
9
|
## [0.1.11] - 2026-10-05
|
|
4
10
|
|
|
5
11
|
### Fixed
|
|
@@ -47,6 +47,11 @@ module Poetry
|
|
|
47
47
|
# visibility.
|
|
48
48
|
element :item_indicator_state, "[[data-unchecked]>&]:hidden"
|
|
49
49
|
|
|
50
|
+
# POETRY ADDITION (family convention): a submit item is a <button>, which
|
|
51
|
+
# sizes to its label even as a flex box where the link and plain items
|
|
52
|
+
# fill the row; it takes the full width and starts its text like them.
|
|
53
|
+
element :item_submit, "w-full text-start"
|
|
54
|
+
|
|
50
55
|
# The source's inline lucide icon classes, named per part. DELTA:
|
|
51
56
|
# the context sub chevron is a bare ml-auto (the item's [&_svg]
|
|
52
57
|
# rules provide size-4).
|
|
@@ -50,6 +50,11 @@ module Poetry
|
|
|
50
50
|
# flip is the whole toggle.
|
|
51
51
|
element :item_indicator_state, "[[data-unchecked]>&]:hidden"
|
|
52
52
|
|
|
53
|
+
# POETRY ADDITION (family convention): a submit item is a <button>, which
|
|
54
|
+
# sizes to its label even as a flex box where the link and plain items
|
|
55
|
+
# fill the row; it takes the full width and starts its text like them.
|
|
56
|
+
element :item_submit, "w-full text-start"
|
|
57
|
+
|
|
53
58
|
# The source's inline lucide icon classes, named per part.
|
|
54
59
|
element :indicator_check, "size-4"
|
|
55
60
|
element :indicator_circle, "size-2 fill-current"
|
|
@@ -60,6 +60,11 @@ module Poetry
|
|
|
60
60
|
# visibility.
|
|
61
61
|
element :item_indicator_state, "[[data-unchecked]>&]:hidden"
|
|
62
62
|
|
|
63
|
+
# POETRY ADDITION (family convention): a submit item is a <button>, which
|
|
64
|
+
# sizes to its label even as a flex box where the link and plain items
|
|
65
|
+
# fill the row; it takes the full width and starts its text like them.
|
|
66
|
+
element :item_submit, "w-full text-start"
|
|
67
|
+
|
|
63
68
|
# The source's inline lucide icon classes, named per part. DELTA:
|
|
64
69
|
# the menubar sub chevron is ml-auto h-4 w-4 (source-exact).
|
|
65
70
|
element :indicator_check, "size-4"
|
|
@@ -134,10 +134,13 @@ module Poetry
|
|
|
134
134
|
submit = options.delete(:submit)
|
|
135
135
|
method = options.delete(:method)
|
|
136
136
|
disabled = options[:disabled]
|
|
137
|
+
# A submit item is a <button>, which sizes to its label; the
|
|
138
|
+
# item_submit element makes it fill the row like the others.
|
|
139
|
+
item_class = [(family_style.css(:item_submit) if submit && !disabled), options.delete(:class)].compact
|
|
137
140
|
attrs = {
|
|
138
141
|
"data-slot" => "#{family_slot_prefix}-item", "role" => "menuitem", "tabindex" => "-1",
|
|
139
142
|
"data-poetry-collection-item" => "", "data-variant" => variant,
|
|
140
|
-
"class" => family_style.css(:item, class:
|
|
143
|
+
"class" => family_style.css(:item, class: item_class)
|
|
141
144
|
}.merge(item_action_attributes)
|
|
142
145
|
apply_item_flags(attrs, **options.extract!(:inset, :disabled, :text_value, :close_on_select))
|
|
143
146
|
content = safe_join([capture(&), shortcut_span(shortcut)].compact)
|
|
@@ -3307,10 +3307,11 @@ components:
|
|
|
3307
3307
|
- sub_content
|
|
3308
3308
|
- item_indicator
|
|
3309
3309
|
- item_indicator_state
|
|
3310
|
+
- item_submit
|
|
3310
3311
|
- indicator_check
|
|
3311
3312
|
- indicator_circle
|
|
3312
3313
|
- sub_indicator
|
|
3313
|
-
capsule:
|
|
3314
|
+
capsule: cc47e5e60e90
|
|
3314
3315
|
controllers:
|
|
3315
3316
|
- identifier: poetry--core--context-menu
|
|
3316
3317
|
targets: []
|
|
@@ -4914,10 +4915,11 @@ components:
|
|
|
4914
4915
|
- sub_content
|
|
4915
4916
|
- item_indicator
|
|
4916
4917
|
- item_indicator_state
|
|
4918
|
+
- item_submit
|
|
4917
4919
|
- indicator_check
|
|
4918
4920
|
- indicator_circle
|
|
4919
4921
|
- sub_indicator
|
|
4920
|
-
capsule:
|
|
4922
|
+
capsule: 7303732042e7
|
|
4921
4923
|
controllers:
|
|
4922
4924
|
- identifier: poetry--core--menu
|
|
4923
4925
|
targets: []
|
|
@@ -6744,10 +6746,11 @@ components:
|
|
|
6744
6746
|
- sub_content
|
|
6745
6747
|
- item_indicator
|
|
6746
6748
|
- item_indicator_state
|
|
6749
|
+
- item_submit
|
|
6747
6750
|
- indicator_check
|
|
6748
6751
|
- indicator_circle
|
|
6749
6752
|
- sub_indicator
|
|
6750
|
-
capsule:
|
|
6753
|
+
capsule: 937cafa689af
|
|
6751
6754
|
controllers:
|
|
6752
6755
|
- identifier: poetry--core--menu
|
|
6753
6756
|
targets: []
|
data/lib/poetry/ui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Solt
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-10-
|
|
10
|
+
date: 2026-10-07 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: poetry-core
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.1.
|
|
18
|
+
version: 0.1.12
|
|
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.12
|
|
26
26
|
description: 'The component library of Poetry, the AI-native frontend framework for
|
|
27
27
|
Rails: accessible, themeable, agent-legible ViewComponents built entirely on poetry-core''s
|
|
28
28
|
public DSL.'
|