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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/app/assets/builds/{lightning_ui.css → lightning_ui_kit.css} +422 -100
  4. data/app/assets/builds/lightning_ui_kit.js +6 -0
  5. data/app/assets/builds/{lightning_ui.js.map → lightning_ui_kit.js.map} +4 -4
  6. data/app/components/{lightning_ui → lightning_ui_kit}/alert_component.rb +1 -1
  7. data/app/components/{lightning_ui → lightning_ui_kit}/avatar_component.rb +1 -1
  8. data/app/components/lightning_ui_kit/badge_component.rb +68 -0
  9. data/app/components/{lightning_ui → lightning_ui_kit}/banner_component.rb +2 -2
  10. data/app/components/{lightning_ui → lightning_ui_kit}/base_component.rb +2 -2
  11. data/app/components/{lightning_ui → lightning_ui_kit}/button_component.rb +1 -1
  12. data/app/components/{lightning_ui → lightning_ui_kit}/checkbox_component.html.erb +1 -1
  13. data/app/components/{lightning_ui → lightning_ui_kit}/checkbox_component.rb +1 -1
  14. data/app/components/{lightning_ui → lightning_ui_kit}/description_list/item_component.rb +1 -1
  15. data/app/components/lightning_ui_kit/description_list_component.rb +5 -0
  16. data/app/components/lightning_ui_kit/dropdown/item_component.rb +5 -0
  17. data/app/components/{lightning_ui → lightning_ui_kit}/dropdown_component.rb +1 -1
  18. data/app/components/lightning_ui_kit/dropzone_component.html.erb +82 -0
  19. data/app/components/lightning_ui_kit/dropzone_component.rb +61 -0
  20. data/app/components/lightning_ui_kit/errors.rb +34 -0
  21. data/app/components/lightning_ui_kit/file_input_component.html.erb +50 -0
  22. data/app/components/lightning_ui_kit/file_input_component.rb +62 -0
  23. data/app/components/{lightning_ui → lightning_ui_kit}/input_component.html.erb +21 -14
  24. data/app/components/{lightning_ui → lightning_ui_kit}/input_component.rb +18 -3
  25. data/app/components/{lightning_ui → lightning_ui_kit}/link_component.rb +1 -1
  26. data/app/components/{lightning_ui → lightning_ui_kit}/modal_component.rb +1 -1
  27. data/app/components/{lightning_ui → lightning_ui_kit}/pagination_component.rb +1 -1
  28. data/app/components/lightning_ui_kit/select_component.html.erb +40 -0
  29. data/app/components/lightning_ui_kit/select_component.rb +55 -0
  30. data/app/components/lightning_ui_kit/sidebar_component.rb +4 -0
  31. data/app/components/{lightning_ui → lightning_ui_kit}/skeleton_component.rb +1 -1
  32. data/app/components/lightning_ui_kit/spinner_component.rb +4 -0
  33. data/app/components/{lightning_ui → lightning_ui_kit}/switch_component.html.erb +8 -1
  34. data/app/components/{lightning_ui → lightning_ui_kit}/switch_component.rb +13 -2
  35. data/app/components/{lightning_ui → lightning_ui_kit}/table/action_component.rb +1 -1
  36. data/app/components/{lightning_ui → lightning_ui_kit}/table/column_component.rb +1 -1
  37. data/app/components/{lightning_ui → lightning_ui_kit}/table_component.rb +3 -3
  38. data/app/components/{lightning_ui → lightning_ui_kit}/text_component.rb +1 -1
  39. data/app/components/{lightning_ui → lightning_ui_kit}/textarea_component.html.erb +15 -8
  40. data/app/components/{lightning_ui → lightning_ui_kit}/textarea_component.rb +18 -3
  41. data/app/helpers/lightning_ui_kit/application_helper.rb +7 -0
  42. data/app/helpers/{lightning_ui → lightning_ui_kit}/heroicon_helper.rb +1 -1
  43. data/app/javascript/lightning_ui_kit/controllers/dropzone_controller.js +76 -0
  44. data/app/javascript/{lightning_ui → lightning_ui_kit}/index.js +5 -0
  45. data/config/locales/en.yml +3 -0
  46. data/lib/{lightning_ui → lightning_ui_kit}/engine.rb +5 -6
  47. data/lib/lightning_ui_kit/version.rb +3 -0
  48. data/lib/lightning_ui_kit.rb +6 -0
  49. metadata +78 -72
  50. data/app/assets/builds/lightning_ui.js +0 -6
  51. data/app/components/lightning_ui/badge_component.rb +0 -43
  52. data/app/components/lightning_ui/description_list_component.rb +0 -5
  53. data/app/components/lightning_ui/dropdown/item_component.rb +0 -5
  54. data/app/components/lightning_ui/select_component.html.erb +0 -20
  55. data/app/components/lightning_ui/select_component.rb +0 -25
  56. data/app/components/lightning_ui/sidebar_component.rb +0 -4
  57. data/app/components/lightning_ui/spinner_component.rb +0 -4
  58. data/app/helpers/lightning_ui/application_helper.rb +0 -7
  59. data/lib/lightning_ui/version.rb +0 -3
  60. data/lib/lightning_ui.rb +0 -6
  61. data/lib/tasks/lightning_ui_tasks.rake +0 -4
  62. /data/app/assets/stylesheets/{lightning_ui → lightning_ui_kit}/application.css +0 -0
  63. /data/app/components/{lightning_ui → lightning_ui_kit}/alert_component.html.erb +0 -0
  64. /data/app/components/{lightning_ui → lightning_ui_kit}/avatar_component.html.erb +0 -0
  65. /data/app/components/{lightning_ui → lightning_ui_kit}/badge_component.html.erb +0 -0
  66. /data/app/components/{lightning_ui → lightning_ui_kit}/banner_component.html.erb +0 -0
  67. /data/app/components/{lightning_ui → lightning_ui_kit}/button_component.html.erb +0 -0
  68. /data/app/components/{lightning_ui → lightning_ui_kit}/description_list/item_component.html.erb +0 -0
  69. /data/app/components/{lightning_ui → lightning_ui_kit}/description_list_component.html.erb +0 -0
  70. /data/app/components/{lightning_ui → lightning_ui_kit}/dropdown_component.html.erb +0 -0
  71. /data/app/components/{lightning_ui → lightning_ui_kit}/link_component.html.erb +0 -0
  72. /data/app/components/{lightning_ui → lightning_ui_kit}/modal_component.html.erb +0 -0
  73. /data/app/components/{lightning_ui → lightning_ui_kit}/pagination_component.html.erb +0 -0
  74. /data/app/components/{lightning_ui → lightning_ui_kit}/sidebar_component.html.erb +0 -0
  75. /data/app/components/{lightning_ui → lightning_ui_kit}/skeleton_component.html.erb +0 -0
  76. /data/app/components/{lightning_ui → lightning_ui_kit}/spinner_component.html.erb +0 -0
  77. /data/app/components/{lightning_ui → lightning_ui_kit}/table_component.html.erb +0 -0
  78. /data/app/components/{lightning_ui → lightning_ui_kit}/text_component.html.erb +0 -0
  79. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/accordion_controller.js +0 -0
  80. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/banner_controller.js +0 -0
  81. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/checkbox_controller.js +0 -0
  82. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/clipboard_controller.js +0 -0
  83. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/dropdown_controller.js +0 -0
  84. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/main_controller.js +0 -0
  85. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/modal_controller.js +0 -0
  86. /data/app/javascript/{lightning_ui → lightning_ui_kit}/controllers/reveal_controller.js +0 -0
  87. /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: 3afe24a01aa6c9eed33182f7b284a322949b1a48949780efc777a7327d07df9d
4
- data.tar.gz: 2c0c686bf992e0802c9906d45295e7de7cd0a8a3f339b77c3778932f2e60878a
3
+ metadata.gz: 07de361b5a73c23fba6a4e1251d34036347650754cbef89b150447e539c4c85c
4
+ data.tar.gz: 68f010e0fc8c15f787532483bbf3f38e7144146642563c3e3cb71f8e4d338340
5
5
  SHA512:
6
- metadata.gz: 9a990420d69acfc214bb25f885576a787d4dfcb6577a294efa33898c203682fbc7457292883f26795e05e286dbcf2ce2f28542f8f33fb1d3a60569abed5a38cb
7
- data.tar.gz: 4e8b38e85e6aa6689bc03672166442e14ab1ffd938b1771057c8e586d54168ca7f5a75134101bc1053aa992c9a046ca9c00b114d474e71d9044ef8fddc270f4b
6
+ metadata.gz: 6a38949dde9cc57c2f002ffec89ea8241fc373c246c3e1da61eb12c5349ab94428fdbf8ecce8f7959f7b717e131ae239f73095d67d4f74a8f0b09ea2bc3b0c3f
7
+ data.tar.gz: f8cc15a3205eaa1803193476b66b8dc10310205a3d9f2260da08d5fa8d220050f57ebc782ee8297512384dd74e792489d1135f35977f9e424df06a0bf611dd9f
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # LightningUi
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 "lightning_ui" %>
20
- <%= javascript_include_tag "lightning_ui" %>
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 LightningUi::ButtonComponent.new(text: "Click me!") %>
26
+ <%= render LightningUiKit::ButtonComponent.new(text: "Click me!") %>
27
27
  ```
28
28
 
29
29
  ## Contributing