nanoui 0.3.0 → 0.4.0
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: f766927e1424d01ab34dd6f17a48b877f19de856399f5cb2584e86b6cc5accad
|
|
4
|
+
data.tar.gz: a09a0124675316288e9ac788c0207f035b379ecf305f388f9da619a82002aeae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce86b42ceaf868b5fcc626d2f7cabcce77bfe273636e78cca191adbf783473c1b92fa0e44de1e0c1d44360aa9095048d78a0f959fb287a7aca4a55d576ae7d53
|
|
7
|
+
data.tar.gz: 50b79fafd8493e2981d864cce626b121096eebd24a0206c670496bdace202bc6d85196bedd235ca2963b612a9418775c444b55fed8f7ae92f723057e46212e52
|
|
@@ -22,8 +22,11 @@ module Nanoui
|
|
|
22
22
|
tabs
|
|
23
23
|
accordion
|
|
24
24
|
progress
|
|
25
|
+
container
|
|
25
26
|
].freeze
|
|
26
27
|
|
|
28
|
+
LAYOUT_COMPONENTS = %w[container].freeze
|
|
29
|
+
|
|
27
30
|
argument :components, type: :array, default: [], banner: "component [component] ..."
|
|
28
31
|
|
|
29
32
|
class_option :group, type: :string, desc: "Install a component group"
|
|
@@ -34,6 +37,7 @@ module Nanoui
|
|
|
34
37
|
"forms" => %w[button input label checkbox radio switch select badge alert],
|
|
35
38
|
"overlays" => %w[dialog dropdown tooltip toast],
|
|
36
39
|
"data" => %w[table tabs accordion progress],
|
|
40
|
+
"layout" => %w[container],
|
|
37
41
|
}.freeze
|
|
38
42
|
|
|
39
43
|
STIMULUS_COMPONENTS = %w[dialog dropdown tooltip toast tabs accordion switch].freeze
|
|
@@ -52,8 +56,9 @@ module Nanoui
|
|
|
52
56
|
|
|
53
57
|
def copy_component_css
|
|
54
58
|
@resolved.each do |name|
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
subfolder = LAYOUT_COMPONENTS.include?(name) ? "layout" : "components"
|
|
60
|
+
copy_file "css/#{subfolder}/#{name}.css",
|
|
61
|
+
"app/assets/stylesheets/nanoui/#{subfolder}/#{name}.css"
|
|
57
62
|
end
|
|
58
63
|
end
|
|
59
64
|
|
data/lib/nanoui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nanoui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Omerovic
|
|
@@ -79,6 +79,7 @@ files:
|
|
|
79
79
|
- lib/generators/nanoui/templates/css/components/toast.css
|
|
80
80
|
- lib/generators/nanoui/templates/css/components/tooltip.css
|
|
81
81
|
- lib/generators/nanoui/templates/css/fonts/inter-variable.ttf
|
|
82
|
+
- lib/generators/nanoui/templates/css/layout/container.css
|
|
82
83
|
- lib/generators/nanoui/templates/js/controllers/accordion_controller.js
|
|
83
84
|
- lib/generators/nanoui/templates/js/controllers/dialog_controller.js
|
|
84
85
|
- lib/generators/nanoui/templates/js/controllers/dropdown_controller.js
|