lightning_ui_kit 0.1.1 → 0.1.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 +4 -4
- data/README.md +4 -4
- data/app/assets/builds/{lightning_ui.css → lightning_ui_kit.css} +0 -58
- data/app/assets/builds/{lightning_ui.js → lightning_ui_kit.js} +1 -1
- data/app/assets/builds/{lightning_ui.js.map → lightning_ui_kit.js.map} +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/alert_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/avatar_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/badge_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/banner_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/base_component.rb +2 -2
- data/app/components/{lightning_ui → lightning_ui_kit}/button_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/checkbox_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/description_list/item_component.rb +1 -1
- data/app/components/lightning_ui_kit/description_list_component.rb +5 -0
- data/app/components/lightning_ui_kit/dropdown/item_component.rb +5 -0
- data/app/components/{lightning_ui → lightning_ui_kit}/dropdown_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/input_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/link_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/modal_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/pagination_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/select_component.rb +1 -1
- data/app/components/lightning_ui_kit/sidebar_component.rb +4 -0
- data/app/components/{lightning_ui → lightning_ui_kit}/skeleton_component.rb +1 -1
- data/app/components/lightning_ui_kit/spinner_component.rb +4 -0
- data/app/components/{lightning_ui → lightning_ui_kit}/switch_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/table/action_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/table/column_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/table_component.rb +3 -3
- data/app/components/{lightning_ui → lightning_ui_kit}/text_component.rb +1 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/textarea_component.rb +1 -1
- data/app/helpers/lightning_ui_kit/application_helper.rb +7 -0
- data/app/helpers/{lightning_ui → lightning_ui_kit}/heroicon_helper.rb +1 -1
- data/lib/{lightning_ui → lightning_ui_kit}/engine.rb +5 -5
- data/lib/lightning_ui_kit/version.rb +3 -0
- data/lib/lightning_ui_kit.rb +6 -0
- metadata +70 -71
- data/app/components/lightning_ui/description_list_component.rb +0 -5
- data/app/components/lightning_ui/dropdown/item_component.rb +0 -5
- data/app/components/lightning_ui/sidebar_component.rb +0 -4
- data/app/components/lightning_ui/spinner_component.rb +0 -4
- data/app/helpers/lightning_ui/application_helper.rb +0 -7
- data/lib/lightning_ui/version.rb +0 -3
- data/lib/lightning_ui.rb +0 -6
- data/lib/tasks/lightning_ui_tasks.rake +0 -4
- /data/app/assets/stylesheets/{lightning_ui → lightning_ui_kit}/application.css +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/alert_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/avatar_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/badge_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/banner_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/button_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/checkbox_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/description_list/item_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/description_list_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/dropdown_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/input_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/link_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/modal_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/pagination_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/select_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/sidebar_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/skeleton_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/spinner_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/switch_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/table_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/text_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/textarea_component.html.erb +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/accordion_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/banner_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/checkbox_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/clipboard_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/dropdown_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/main_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/modal_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/reveal_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/switch_controller.js +0 -0
- /data/app/javascript/{lightning_ui → lightning_ui_kit}/index.js +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::InputComponent < LightningUiKit::BaseComponent
|
4
4
|
def initialize(name:, value: nil, autofocus: false, label: nil, form: nil, type: :text, description: nil, disabled: false, placeholder: nil, **options)
|
5
5
|
@name = name
|
6
6
|
@value = value
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::PaginationComponent < LightningUiKit::BaseComponent
|
4
4
|
def initialize(current_page:, total_pages:, path:, page_param: "page", with_arrows: false, **options)
|
5
5
|
@current_page = current_page
|
6
6
|
@total_pages = total_pages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::SelectComponent < LightningUiKit::BaseComponent
|
4
4
|
def initialize(name:, form: nil, label: nil, description: nil, disabled: false, options_for_select: [], multiple: false, **options)
|
5
5
|
@name = name
|
6
6
|
@form = form
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::SwitchComponent < LightningUiKit::BaseComponent
|
4
4
|
def initialize(name:, form: nil, label: nil, description: nil, enabled: false, disabled: false, **options)
|
5
5
|
@name = name
|
6
6
|
@form = form
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::TableComponent < LightningUiKit::BaseComponent
|
4
4
|
renders_many :columns, ->(title, &block) do
|
5
|
-
|
5
|
+
LightningUiKit::Table::ColumnComponent.new(title, &block)
|
6
6
|
end
|
7
7
|
renders_many :actions, ->(&block) do
|
8
|
-
|
8
|
+
LightningUiKit::Table::ActionComponent.new(&block)
|
9
9
|
end
|
10
10
|
|
11
11
|
def initialize(data:, actions_title: "Actions", empty_message: "No data available")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class LightningUiKit::TextareaComponent < LightningUiKit::BaseComponent
|
4
4
|
def initialize(name:, value: nil, autofocus: false, label: nil, form: nil, type: :text, description: nil, disabled: false, multiple: false, rows: 3, cols: nil, **options)
|
5
5
|
@name = name
|
6
6
|
@value = value
|
@@ -1,19 +1,19 @@
|
|
1
1
|
require "view_component"
|
2
2
|
require "stimulus-rails"
|
3
3
|
|
4
|
-
module
|
4
|
+
module LightningUiKit
|
5
5
|
class Engine < ::Rails::Engine
|
6
|
-
isolate_namespace
|
6
|
+
isolate_namespace LightningUiKit
|
7
7
|
|
8
8
|
config.autoload_paths = %W[
|
9
9
|
#{root}/app/components
|
10
10
|
#{root}/app/helpers
|
11
11
|
]
|
12
12
|
|
13
|
-
initializer "
|
13
|
+
initializer "lightning_ui_kit.helpers" do
|
14
14
|
ActiveSupport.on_load(:action_controller_base) do
|
15
|
-
helper
|
16
|
-
helper
|
15
|
+
helper LightningUiKit::ApplicationHelper
|
16
|
+
helper LightningUiKit::HeroiconHelper
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightning_ui_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Koval
|
@@ -104,80 +104,79 @@ files:
|
|
104
104
|
- MIT-LICENSE
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
|
-
- app/assets/builds/
|
108
|
-
- app/assets/builds/
|
109
|
-
- app/assets/builds/
|
110
|
-
- app/assets/stylesheets/
|
111
|
-
- app/components/
|
112
|
-
- app/components/
|
113
|
-
- app/components/
|
114
|
-
- app/components/
|
115
|
-
- app/components/
|
116
|
-
- app/components/
|
117
|
-
- app/components/
|
118
|
-
- app/components/
|
119
|
-
- app/components/
|
120
|
-
- app/components/
|
121
|
-
- app/components/
|
122
|
-
- app/components/
|
123
|
-
- app/components/
|
124
|
-
- app/components/
|
125
|
-
- app/components/
|
126
|
-
- app/components/
|
127
|
-
- app/components/
|
128
|
-
- app/components/
|
129
|
-
- app/components/
|
130
|
-
- app/components/
|
131
|
-
- app/components/
|
132
|
-
- app/components/
|
133
|
-
- app/components/
|
134
|
-
- app/components/
|
135
|
-
- app/components/
|
136
|
-
- app/components/
|
137
|
-
- app/components/
|
138
|
-
- app/components/
|
139
|
-
- app/components/
|
140
|
-
- app/components/
|
141
|
-
- app/components/
|
142
|
-
- app/components/
|
143
|
-
- app/components/
|
144
|
-
- app/components/
|
145
|
-
- app/components/
|
146
|
-
- app/components/
|
147
|
-
- app/components/
|
148
|
-
- app/components/
|
149
|
-
- app/components/
|
150
|
-
- app/components/
|
151
|
-
- app/components/
|
152
|
-
- app/components/
|
153
|
-
- app/components/
|
154
|
-
- app/components/
|
155
|
-
- app/components/
|
156
|
-
- app/components/
|
157
|
-
- app/helpers/
|
158
|
-
- app/helpers/
|
159
|
-
- app/javascript/
|
160
|
-
- app/javascript/
|
161
|
-
- app/javascript/
|
162
|
-
- app/javascript/
|
163
|
-
- app/javascript/
|
164
|
-
- app/javascript/
|
165
|
-
- app/javascript/
|
166
|
-
- app/javascript/
|
167
|
-
- app/javascript/
|
168
|
-
- app/javascript/
|
107
|
+
- app/assets/builds/lightning_ui_kit.css
|
108
|
+
- app/assets/builds/lightning_ui_kit.js
|
109
|
+
- app/assets/builds/lightning_ui_kit.js.map
|
110
|
+
- app/assets/stylesheets/lightning_ui_kit/application.css
|
111
|
+
- app/components/lightning_ui_kit/alert_component.html.erb
|
112
|
+
- app/components/lightning_ui_kit/alert_component.rb
|
113
|
+
- app/components/lightning_ui_kit/avatar_component.html.erb
|
114
|
+
- app/components/lightning_ui_kit/avatar_component.rb
|
115
|
+
- app/components/lightning_ui_kit/badge_component.html.erb
|
116
|
+
- app/components/lightning_ui_kit/badge_component.rb
|
117
|
+
- app/components/lightning_ui_kit/banner_component.html.erb
|
118
|
+
- app/components/lightning_ui_kit/banner_component.rb
|
119
|
+
- app/components/lightning_ui_kit/base_component.rb
|
120
|
+
- app/components/lightning_ui_kit/button_component.html.erb
|
121
|
+
- app/components/lightning_ui_kit/button_component.rb
|
122
|
+
- app/components/lightning_ui_kit/checkbox_component.html.erb
|
123
|
+
- app/components/lightning_ui_kit/checkbox_component.rb
|
124
|
+
- app/components/lightning_ui_kit/description_list/item_component.html.erb
|
125
|
+
- app/components/lightning_ui_kit/description_list/item_component.rb
|
126
|
+
- app/components/lightning_ui_kit/description_list_component.html.erb
|
127
|
+
- app/components/lightning_ui_kit/description_list_component.rb
|
128
|
+
- app/components/lightning_ui_kit/dropdown/item_component.rb
|
129
|
+
- app/components/lightning_ui_kit/dropdown_component.html.erb
|
130
|
+
- app/components/lightning_ui_kit/dropdown_component.rb
|
131
|
+
- app/components/lightning_ui_kit/input_component.html.erb
|
132
|
+
- app/components/lightning_ui_kit/input_component.rb
|
133
|
+
- app/components/lightning_ui_kit/link_component.html.erb
|
134
|
+
- app/components/lightning_ui_kit/link_component.rb
|
135
|
+
- app/components/lightning_ui_kit/modal_component.html.erb
|
136
|
+
- app/components/lightning_ui_kit/modal_component.rb
|
137
|
+
- app/components/lightning_ui_kit/pagination_component.html.erb
|
138
|
+
- app/components/lightning_ui_kit/pagination_component.rb
|
139
|
+
- app/components/lightning_ui_kit/select_component.html.erb
|
140
|
+
- app/components/lightning_ui_kit/select_component.rb
|
141
|
+
- app/components/lightning_ui_kit/sidebar_component.html.erb
|
142
|
+
- app/components/lightning_ui_kit/sidebar_component.rb
|
143
|
+
- app/components/lightning_ui_kit/skeleton_component.html.erb
|
144
|
+
- app/components/lightning_ui_kit/skeleton_component.rb
|
145
|
+
- app/components/lightning_ui_kit/spinner_component.html.erb
|
146
|
+
- app/components/lightning_ui_kit/spinner_component.rb
|
147
|
+
- app/components/lightning_ui_kit/switch_component.html.erb
|
148
|
+
- app/components/lightning_ui_kit/switch_component.rb
|
149
|
+
- app/components/lightning_ui_kit/table/action_component.rb
|
150
|
+
- app/components/lightning_ui_kit/table/column_component.rb
|
151
|
+
- app/components/lightning_ui_kit/table_component.html.erb
|
152
|
+
- app/components/lightning_ui_kit/table_component.rb
|
153
|
+
- app/components/lightning_ui_kit/text_component.html.erb
|
154
|
+
- app/components/lightning_ui_kit/text_component.rb
|
155
|
+
- app/components/lightning_ui_kit/textarea_component.html.erb
|
156
|
+
- app/components/lightning_ui_kit/textarea_component.rb
|
157
|
+
- app/helpers/lightning_ui_kit/application_helper.rb
|
158
|
+
- app/helpers/lightning_ui_kit/heroicon_helper.rb
|
159
|
+
- app/javascript/lightning_ui_kit/controllers/accordion_controller.js
|
160
|
+
- app/javascript/lightning_ui_kit/controllers/banner_controller.js
|
161
|
+
- app/javascript/lightning_ui_kit/controllers/checkbox_controller.js
|
162
|
+
- app/javascript/lightning_ui_kit/controllers/clipboard_controller.js
|
163
|
+
- app/javascript/lightning_ui_kit/controllers/dropdown_controller.js
|
164
|
+
- app/javascript/lightning_ui_kit/controllers/main_controller.js
|
165
|
+
- app/javascript/lightning_ui_kit/controllers/modal_controller.js
|
166
|
+
- app/javascript/lightning_ui_kit/controllers/reveal_controller.js
|
167
|
+
- app/javascript/lightning_ui_kit/controllers/switch_controller.js
|
168
|
+
- app/javascript/lightning_ui_kit/index.js
|
169
169
|
- config/initializers/heroicons.rb
|
170
|
-
- lib/
|
171
|
-
- lib/
|
172
|
-
- lib/
|
173
|
-
|
174
|
-
homepage: https://github.com/k0va1/lightning_ui
|
170
|
+
- lib/lightning_ui_kit.rb
|
171
|
+
- lib/lightning_ui_kit/engine.rb
|
172
|
+
- lib/lightning_ui_kit/version.rb
|
173
|
+
homepage: https://github.com/k0va1/lightning_ui_kit
|
175
174
|
licenses:
|
176
175
|
- MIT
|
177
176
|
metadata:
|
178
|
-
homepage_uri: https://github.com/k0va1/
|
179
|
-
source_code_uri: https://github.com/k0va1/
|
180
|
-
changelog_uri: https://github.com/k0va1/
|
177
|
+
homepage_uri: https://github.com/k0va1/lightning_ui_kit
|
178
|
+
source_code_uri: https://github.com/k0va1/lightning_ui_kit
|
179
|
+
changelog_uri: https://github.com/k0va1/lightning_ui_kit/blob/main/CHANGELOG.md
|
181
180
|
post_install_message:
|
182
181
|
rdoc_options: []
|
183
182
|
require_paths:
|
data/lib/lightning_ui/version.rb
DELETED
data/lib/lightning_ui.rb
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/app/components/{lightning_ui → lightning_ui_kit}/description_list/item_component.html.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|