clack 0.6.1 → 0.6.2

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: 01366d1d6cc81f2514adc5c7bbdc726b3dec22d6697ae2bf26077c2db84efa1b
4
- data.tar.gz: e1e96b35ef913ee377ed38c0fd98612aa1d758760991ee39ba27ac1cf8dc6136
3
+ metadata.gz: 731bb8423776790866c97bc0a19e5e20c872113a6bdde1d0b631991c7d96257d
4
+ data.tar.gz: 892738ddc556225ce2b85db29bc845b0a2665a05b3492d0f98392612247db0ca
5
5
  SHA512:
6
- metadata.gz: ac79a1a3887e261b9d2f14b989381430c35796a1acac47a449e44c773314bcea8985b294880a646213c53bd004900e9e749f9a0d69db55a19dfecd2b4d6eab34
7
- data.tar.gz: 891cea3cc9b0047602a627396c40950c4397a968aa2ca021b4e2f71719ce40463d62b01db19c3b59ea92fd9efd9e0807b9120afa6cfacbbe5df90fcb391d328a
6
+ metadata.gz: 71463cbd46a0aa1a99a15853df6b840e96dbffa9a44e32a3370e89dcb98b4ff9cc0e1b427edbe67f034fe4b6f794b5030c4fa29f5f4e3a174899e37ee6cefae7
7
+ data.tar.gz: bae64d320b7ad71ee2db3ef3c49a7c97c041d76edf14996f0fb4fd4bf106edb266f8280d5f211f54692b0356d2cab12c8624c811e8c0ee726e25d6ecf3c14071
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.2] - 2026-08-13
4
+
5
+ ### Added
6
+ - `group_multiselect` now shows a keyboard hints footer (`space select`), matching `multiselect` and `autocomplete_multiselect`
7
+
8
+ ### Fixed
9
+ - `note` no longer dims its content, matching upstream `@clack/prompts` (only the border/gutter stays dim)
10
+
3
11
  ## [0.6.1] - 2026-06-21
4
12
 
5
13
  ### Added
data/lib/clack/note.rb CHANGED
@@ -23,7 +23,7 @@ module Clack
23
23
  lines.each do |line|
24
24
  pad = width - Clack::Utils.visible_length(line)
25
25
  padded = pad.positive? ? line + (" " * pad) : line
26
- output.puts "#{Colors.gray(Symbols::S_BAR)} #{Colors.dim(padded)}#{Colors.gray(Symbols::S_BAR)}"
26
+ output.puts "#{Colors.gray(Symbols::S_BAR)} #{padded}#{Colors.gray(Symbols::S_BAR)}"
27
27
  end
28
28
 
29
29
  output.puts build_bottom_border(width)
@@ -110,9 +110,13 @@ module Clack
110
110
  prev_was_group = is_group
111
111
  end
112
112
 
113
- lines << "#{bar_end}\n"
114
-
115
- lines[-1] = "#{Colors.yellow(Symbols::S_BAR_END)} #{Colors.yellow(@error_message)}\n" if @state == :error
113
+ if @state == :error
114
+ lines << "#{bar_end}\n"
115
+ lines[-1] = "#{Colors.yellow(Symbols::S_BAR_END)} #{Colors.yellow(@error_message)}\n"
116
+ else
117
+ lines << "#{bar} #{keyboard_hints}\n"
118
+ lines << "#{bar_end}\n"
119
+ end
116
120
 
117
121
  lines.join
118
122
  end
@@ -215,6 +219,10 @@ module Clack
215
219
 
216
220
  def update_value = update_selection_value
217
221
 
222
+ def keyboard_hints
223
+ Colors.dim("#{Colors.dim("space")} select")
224
+ end
225
+
218
226
  def group_display(item, active)
219
227
  if @selectable_groups
220
228
  all_selected = item.options.reject { |o| o.disabled }.all? { |o| @selected.include?(o.value) }
data/lib/clack/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Clack
4
4
  # Current gem version.
5
- VERSION = "0.6.1"
5
+ VERSION = "0.6.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Whittaker