kiso 0.6.3.pre → 0.6.4.pre

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: fc54430908619f2cb1581ca13089cfceb7b9c527f7050a0079cfced84ed088ea
4
- data.tar.gz: ea34c1970ff36648de7571bac67bec65cf5a57083a4afb4afe933c89eb27d1b2
3
+ metadata.gz: f5d78e8e49ea9fce1eab8c9a5256fdf3206fadbed1d9be331de0ff170635854b
4
+ data.tar.gz: 0e55fa2c06753ce39316c236cb7bb2e28ce6e4ce7d990bac09ef3353c020d181
5
5
  SHA512:
6
- metadata.gz: '02761138a1d470cec63228c7d3e5ffe2d9d93d271427814059cb6193450492051755bba4514f945c225a669276540b9a6bd223469ec6eb0b05b13ae361ef2601'
7
- data.tar.gz: 2bc1f27fc05aa8da6aecf7e3b6eaae668e02afc45caa3636ebc55270738588dd4dc61102554e0cadfe33e99cba0a72a9e4e56decb3094b4646d5955a28e03ca3
6
+ metadata.gz: 0c2825304496c4c52bd37fa995606f1595e792883ba7012f69f40cf1bea1a8555b5e301cb685e9ff327b324e15c479c343ca3376ddffa15f7b6260d31d36cd61
7
+ data.tar.gz: 7f4b9fc6b6fb7152bff04aaebb47bd4ab0044b1da5f8dc0ca3a4d5be5a61e5a153a25643def18b072e2a36e3056e6fbdd18b1596d1c30174dced163c8cb1529e
@@ -1,7 +1,7 @@
1
1
  <%# locals: (variant: :default, inset: false, disabled: false,
2
2
  href: nil, method: nil, form: {},
3
3
  css_classes: "", **component_options) %>
4
- <%# Clickable menu action. Polymorphic tag: <div> by default, <a> when href:
4
+ <%# Clickable menu action. Polymorphic tag: <button> by default, <a> when href:
5
5
  is provided, button_to form when href: + method: (non-GET). %>
6
6
  <%
7
7
  css = Kiso::Themes::DropdownMenuItem.render(variant: variant, class: css_classes)
@@ -34,7 +34,9 @@
34
34
  <%= yield %>
35
35
  <% end %>
36
36
  <% else %>
37
- <%= content_tag :div, class: css, data: data, **component_options do %>
37
+ <% component_options[:type] = :button
38
+ component_options[:disabled] = true if disabled %>
39
+ <%= content_tag :button, class: css, data: data, **component_options do %>
38
40
  <%= yield %>
39
41
  <% end %>
40
42
  <% end %>
@@ -32,6 +32,7 @@ module Kiso
32
32
  say_status :skip, initializer_path, :yellow
33
33
  else
34
34
  template "initializer.rb.tt", initializer_path
35
+ @initializer_created = true
35
36
  end
36
37
  end
37
38
 
@@ -40,14 +41,10 @@ module Kiso
40
41
  when true then false
41
42
  when false then true
42
43
  else
43
- yes?(<<~PROMPT)
44
-
45
- Would you like to generate a Design System document?
46
- This creates DESIGN_SYSTEM.md with your app's spacing, typography, color,
47
- and component conventions — useful for team alignment and AI coding agents.
48
-
49
- Generate DESIGN_SYSTEM.md? (y/n)
50
- PROMPT
44
+ say ""
45
+ say "Would you like to generate a Design System document? This creates DESIGN_SYSTEM.md with your app's spacing, typography, color, and component conventions — useful for team alignment and AI coding agents."
46
+ say ""
47
+ yes?("Generate DESIGN_SYSTEM.md? (y/n)")
51
48
  end
52
49
 
53
50
  return unless should_generate
@@ -58,10 +55,12 @@ module Kiso
58
55
  end
59
56
 
60
57
  def print_next_steps
58
+ return unless @initializer_created || @design_system_created
59
+
61
60
  say ""
62
61
  say "Kiso installed!", :green
63
62
  say ""
64
- say " Initializer: config/initializers/kiso.rb"
63
+ say " Initializer: config/initializers/kiso.rb" if @initializer_created
65
64
  say " Design System: DESIGN_SYSTEM.md" if @design_system_created
66
65
  say ""
67
66
  say "Next steps:"
@@ -80,10 +79,8 @@ module Kiso
80
79
  return options[:app_name] if options[:app_name].present?
81
80
  return "My App" if options[:skip_design_system] == false
82
81
 
83
- response = ask(<<~PROMPT)
84
- What's your app called? This is just a friendly name for the document
85
- header (e.g. "Outport", "My App"). [default: My App]
86
- PROMPT
82
+ say 'What\'s your app called? This is just a friendly name for the document header (e.g. "Outport", "My App").'
83
+ response = ask("App name [My App]:")
87
84
  response.presence || "My App"
88
85
  end
89
86
  end
data/lib/kiso/version.rb CHANGED
@@ -5,5 +5,5 @@ module Kiso
5
5
  # Updated by +bin/release+.
6
6
  #
7
7
  # @return [String]
8
- VERSION = "0.6.3.pre"
8
+ VERSION = "0.6.4.pre"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3.pre
4
+ version: 0.6.4.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Clarke