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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5d78e8e49ea9fce1eab8c9a5256fdf3206fadbed1d9be331de0ff170635854b
|
|
4
|
+
data.tar.gz: 0e55fa2c06753ce39316c236cb7bb2e28ce6e4ce7d990bac09ef3353c020d181
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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: <
|
|
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
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
84
|
-
|
|
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