lightning_ui_kit 0.1.1 → 0.1.3
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} +422 -100
- data/app/assets/builds/lightning_ui_kit.js +6 -0
- data/app/assets/builds/{lightning_ui.js.map → lightning_ui_kit.js.map} +4 -4
- 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_kit/badge_component.rb +68 -0
- data/app/components/{lightning_ui → lightning_ui_kit}/banner_component.rb +2 -2
- 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.html.erb +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_kit/dropzone_component.html.erb +82 -0
- data/app/components/lightning_ui_kit/dropzone_component.rb +61 -0
- data/app/components/lightning_ui_kit/errors.rb +34 -0
- data/app/components/lightning_ui_kit/file_input_component.html.erb +50 -0
- data/app/components/lightning_ui_kit/file_input_component.rb +62 -0
- data/app/components/{lightning_ui → lightning_ui_kit}/input_component.html.erb +21 -14
- data/app/components/{lightning_ui → lightning_ui_kit}/input_component.rb +18 -3
- 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_kit/select_component.html.erb +40 -0
- data/app/components/lightning_ui_kit/select_component.rb +55 -0
- 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.html.erb +8 -1
- data/app/components/{lightning_ui → lightning_ui_kit}/switch_component.rb +13 -2
- 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.html.erb +15 -8
- data/app/components/{lightning_ui → lightning_ui_kit}/textarea_component.rb +18 -3
- 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/app/javascript/lightning_ui_kit/controllers/dropzone_controller.js +76 -0
- data/app/javascript/{lightning_ui → lightning_ui_kit}/index.js +5 -0
- data/config/locales/en.yml +3 -0
- data/lib/{lightning_ui → lightning_ui_kit}/engine.rb +5 -6
- data/lib/lightning_ui_kit/version.rb +3 -0
- data/lib/lightning_ui_kit.rb +6 -0
- metadata +78 -72
- data/app/assets/builds/lightning_ui.js +0 -6
- data/app/components/lightning_ui/badge_component.rb +0 -43
- 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/select_component.html.erb +0 -20
- data/app/components/lightning_ui/select_component.rb +0 -25
- 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}/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}/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}/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}/table_component.html.erb +0 -0
- /data/app/components/{lightning_ui → lightning_ui_kit}/text_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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07de361b5a73c23fba6a4e1251d34036347650754cbef89b150447e539c4c85c
|
4
|
+
data.tar.gz: 68f010e0fc8c15f787532483bbf3f38e7144146642563c3e3cb71f8e4d338340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a38949dde9cc57c2f002ffec89ea8241fc373c246c3e1da61eb12c5349ab94428fdbf8ecce8f7959f7b717e131ae239f73095d67d4f74a8f0b09ea2bc3b0c3f
|
7
|
+
data.tar.gz: f8cc15a3205eaa1803193476b66b8dc10310205a3d9f2260da08d5fa8d220050f57ebc782ee8297512384dd74e792489d1135f35977f9e424df06a0bf611dd9f
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# LightningUiKit
|
2
2
|
UI components for fast prototyping in Rails applications.
|
3
3
|
|
4
4
|
## Usage
|
@@ -16,14 +16,14 @@ $ bundle
|
|
16
16
|
|
17
17
|
Add the following lines to your `application.html.erb` file:
|
18
18
|
```erb
|
19
|
-
<%= stylesheet_link_tag "
|
20
|
-
<%= javascript_include_tag "
|
19
|
+
<%= stylesheet_link_tag "lightning_ui_kit" %>
|
20
|
+
<%= javascript_include_tag "lightning_ui_kit" %>
|
21
21
|
```
|
22
22
|
|
23
23
|
Then you can use components in your views like this:
|
24
24
|
|
25
25
|
```erb
|
26
|
-
<%= render
|
26
|
+
<%= render LightningUiKit::ButtonComponent.new(text: "Click me!") %>
|
27
27
|
```
|
28
28
|
|
29
29
|
## Contributing
|