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: 1ee0efe5f709d40b9486a2becffafaebc490c770ff33b2ecc5b10133626bc37d
4
- data.tar.gz: 873b05607d941e5515a5a699947ce4b03b70a18d21bde51b71f0b8ea1f8e3586
3
+ metadata.gz: f766927e1424d01ab34dd6f17a48b877f19de856399f5cb2584e86b6cc5accad
4
+ data.tar.gz: a09a0124675316288e9ac788c0207f035b379ecf305f388f9da619a82002aeae
5
5
  SHA512:
6
- metadata.gz: 38d72d4d339a553ce778d211b7bea7cf323205126de29307a6aac578457197b5042e243779c6aa874cf772ef8c58be14d1589a0079b42528deddfc43e7f26a44
7
- data.tar.gz: bb3401e429e2c28f4e6e416988ac37822572afdc466140cdab8648b361f10c185fd1261372d85ac10ff138ac9c73b2acd3aed2332dae17e3420e7a8f1447811e
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
- copy_file "css/components/#{name}.css",
56
- "app/assets/stylesheets/nanoui/components/#{name}.css"
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
 
@@ -0,0 +1,14 @@
1
+ .nano-container {
2
+ width: 100%;
3
+ max-width: 1280px;
4
+ margin-inline: auto;
5
+ padding-inline: var(--space-6);
6
+ }
7
+
8
+ .nano-container--md {
9
+ max-width: 1024px;
10
+ }
11
+
12
+ .nano-container--sm {
13
+ max-width: 640px;
14
+ }
@@ -1,3 +1,3 @@
1
1
  module Nanoui
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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