ariadne_view_components 0.0.70 → 0.0.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +20 -1
  4. data/app/assets/javascripts/ariadne_view_components.js +14 -14
  5. data/app/assets/javascripts/ariadne_view_components.js.br +0 -0
  6. data/app/assets/javascripts/ariadne_view_components.js.gz +0 -0
  7. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  8. data/app/assets/stylesheets/ariadne_view_components.css +1 -1
  9. data/app/assets/stylesheets/ariadne_view_components.css.br +0 -0
  10. data/app/assets/stylesheets/ariadne_view_components.css.gz +0 -0
  11. data/app/components/ariadne/base_component.rb +9 -1
  12. data/app/components/ariadne/behaviors/captionable.rb +55 -0
  13. data/app/components/ariadne/behaviors/tooltipable.rb +15 -15
  14. data/app/components/ariadne/form/base_component.rb +1 -1
  15. data/app/components/ariadne/form/checkbox/component.html.erb +6 -0
  16. data/app/components/ariadne/form/checkbox/component.rb +34 -0
  17. data/app/components/ariadne/form/group/component.html.erb +2 -2
  18. data/app/components/ariadne/form/group/component.rb +29 -2
  19. data/app/components/ariadne/form/hidden_field/component.html.erb +6 -1
  20. data/app/components/ariadne/form/hidden_field/component.rb +10 -3
  21. data/app/components/ariadne/form/radio/component.html.erb +6 -0
  22. data/app/components/ariadne/form/radio/component.rb +26 -0
  23. data/app/components/ariadne/form/radio_button/component.html.erb +6 -0
  24. data/app/components/ariadne/form/radio_button/component.rb +60 -0
  25. data/app/components/ariadne/form/radio_button_group/component.html.erb +24 -0
  26. data/app/components/ariadne/form/radio_button_group/component.rb +59 -0
  27. data/app/components/ariadne/form/text_field/component.html.erb +1 -0
  28. data/app/components/ariadne/layout/grid/component.html.erb +5 -0
  29. data/app/components/ariadne/layout/grid/component.rb +49 -0
  30. data/app/components/ariadne/layout/grid/item/component.html.erb +12 -0
  31. data/app/components/ariadne/layout/grid/item/component.rb +41 -0
  32. data/app/components/ariadne/layout/nav_bar/component.html.erb +12 -101
  33. data/app/components/ariadne/layout/nav_bar/component.rb +38 -9
  34. data/app/components/ariadne/layout/two_panel/component.html.erb +14 -0
  35. data/app/components/ariadne/layout/two_panel/component.rb +38 -0
  36. data/app/components/ariadne/layout/wide/component.html.erb +9 -0
  37. data/app/components/ariadne/layout/wide/component.rb +24 -0
  38. data/app/components/ariadne/turbo/frame/component.html.erb +3 -0
  39. data/app/components/ariadne/turbo/frame/component.rb +16 -0
  40. data/app/components/ariadne/turbo/stream_action/component.html.erb +4 -0
  41. data/app/components/ariadne/turbo/stream_action/component.rb +25 -0
  42. data/app/components/ariadne/ui/badge/component.html.erb +1 -0
  43. data/app/components/ariadne/ui/badge/component.rb +76 -0
  44. data/app/components/ariadne/ui/blankslate/component.html.erb +9 -0
  45. data/app/components/ariadne/ui/blankslate/component.rb +37 -0
  46. data/app/components/ariadne/ui/button/component.rb +2 -1
  47. data/app/components/ariadne/ui/color_dot/component.html.erb +7 -0
  48. data/app/components/ariadne/ui/color_dot/component.rb +39 -0
  49. data/app/components/ariadne/ui/combobox/component.html.erb +9 -15
  50. data/app/components/ariadne/ui/combobox/component.rb +38 -26
  51. data/app/components/ariadne/ui/combobox/{menu_item → item}/component.html.erb +1 -1
  52. data/app/components/ariadne/ui/combobox/item/component.rb +61 -0
  53. data/app/components/ariadne/ui/combobox/option/component.html.erb +1 -1
  54. data/app/components/ariadne/ui/combobox/option/component.rb +11 -12
  55. data/app/components/ariadne/ui/data_table/component.html.erb +1 -0
  56. data/app/components/ariadne/ui/data_table/component.rb +11 -0
  57. data/app/components/ariadne/ui/dialog/component.html.erb +32 -0
  58. data/app/components/ariadne/ui/dialog/component.rb +37 -0
  59. data/app/components/ariadne/ui/dialog/component.ts +27 -0
  60. data/app/components/ariadne/ui/heroicon/component.rb +6 -1
  61. data/app/components/ariadne/ui/list/component.html.erb +6 -0
  62. data/app/components/ariadne/ui/list/component.rb +12 -0
  63. data/app/components/ariadne/ui/list/item/component.html.erb +16 -0
  64. data/app/components/ariadne/ui/list/item/component.rb +17 -0
  65. data/app/components/ariadne/ui/table/cell/component.html.erb +3 -0
  66. data/app/components/ariadne/ui/table/cell/component.rb +38 -0
  67. data/app/components/ariadne/ui/table/component.html.erb +13 -0
  68. data/app/components/ariadne/ui/table/component.rb +45 -0
  69. data/app/components/ariadne/ui/table/footer/component.html.erb +0 -0
  70. data/app/components/ariadne/ui/table/footer/component.rb +14 -0
  71. data/app/components/ariadne/ui/table/header/component.html.erb +3 -0
  72. data/app/components/ariadne/ui/table/header/component.rb +40 -0
  73. data/app/components/ariadne/ui/table/row/component.html.erb +5 -0
  74. data/app/components/ariadne/ui/table/row/component.rb +28 -0
  75. data/app/components/ariadne/ui/typography/component.html.erb +1 -3
  76. data/app/components/ariadne/ui/typography/component.rb +62 -2
  77. data/app/frontend/ariadne/index.ts +0 -1
  78. data/app/frontend/controllers/autosubmittable_controller.ts +25 -0
  79. data/lib/ariadne/forms/base.html.erb +4 -5
  80. data/lib/ariadne/forms/dsl/badge.rb +35 -0
  81. data/lib/ariadne/forms/dsl/button_input.rb +4 -3
  82. data/lib/ariadne/forms/dsl/form_object.rb +8 -0
  83. data/lib/ariadne/forms/dsl/form_reference_input.rb +59 -0
  84. data/lib/ariadne/forms/dsl/hidden_input.rb +32 -0
  85. data/lib/ariadne/forms/dsl/input.rb +4 -2
  86. data/lib/ariadne/forms/dsl/input_group.rb +3 -3
  87. data/lib/ariadne/forms/dsl/radio_button_group_input.rb +50 -0
  88. data/lib/ariadne/forms/dsl/radio_button_input.rb +48 -0
  89. data/lib/ariadne/forms/dsl/text_field_input.rb +4 -1
  90. data/lib/ariadne/view_components/version.rb +1 -1
  91. metadata +56 -10
  92. data/app/components/ariadne/form/caption/component.html.erb +0 -10
  93. data/app/components/ariadne/form/caption/component.rb +0 -32
  94. data/app/components/ariadne/form/spacing_wrapper/component.html.erb +0 -3
  95. data/app/components/ariadne/form/spacing_wrapper/component.rb +0 -10
  96. data/app/components/ariadne/ui/combobox/menu_item/component.rb +0 -53
  97. data/app/frontend/controllers/tooltip.ts +0 -75
  98. data/app/frontend/stylesheets/typography.css +0 -117
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '00283730c0b81a03a514e4ee26dc7ff6f0d060781405895ad94cf61b9b35f3cd'
4
- data.tar.gz: afc31ddbf34e20dfe289efcdfd431a67ca24bb12e4b4524ed22e984e39a95ffd
3
+ metadata.gz: f848c1788900a06c340b53619d83b4671dbe21131bd3124fbf5d2afb1b8c808d
4
+ data.tar.gz: 1b94f9742a2a4e128e9648ffad69a13c08c1c781c517a67c78aadf5cb717c432
5
5
  SHA512:
6
- metadata.gz: cff1a33a7041099d972c23067b9dd68660bc4f4e72332fec09e281e8de684e3178db2c98d998883f3a0e2faf3c4c69505fc39d759b3ae7668aba5090763a2b47
7
- data.tar.gz: 968d3b24a57eeb5a44c1652066fd4632c6af3910f75a3093de93cc65926a14bff08ea16e642cff108db9e2b9eba0c6019a560cd9203ce135a130058e4105d033
6
+ metadata.gz: 02e6e263b603330306f87f0cdb2d8f9211240a0e0d6567cd0764de30d70022558db4eb3d1ac8c9a5cdf770637c767bc3134f857af1f72ceaa0515f954afe2f29
7
+ data.tar.gz: 1e7ae7d77bfb480a76afcc0a7412eef0a4b4a0525b62aaa4e68f8ef22f78a2e070f2c0763cb74c5eb53cf58ffe333f13756e358e75b5031bd37c742e3d4f88ef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [v0.0.71] - 17-04-2024
2
+ ## What's Changed
3
+ * [auto-browserslist] Update Browserslist db by @sisyphusbot in https://github.com/yettoapp/ariadne/pull/479
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.70...v0.0.71
7
+ ## [v0.0.70] - 09-04-2024
8
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.69...v0.0.70
1
9
  ## [v0.0.69] - 05-04-2024
2
10
  **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.68...v0.0.69
3
11
  ## [v0.0.68] - 05-04-2024
data/README.md CHANGED
@@ -65,10 +65,29 @@ export default defineConfig({
65
65
  });
66
66
  ```
67
67
 
68
- ## remove @tailwind base;
68
+ ## rearrange @tailwind base;
69
69
 
70
70
  this resets styles applied by ariadne, which already resets styles!!
71
71
 
72
+ ## Helpers
73
+
74
+ `Ariadne::ViewHelpers`
75
+
76
+ ## Wrappers
77
+
78
+ - `render_if`
79
+ - `with_tooltip`
80
+
81
+ ## Style
82
+
83
+ use `content` when you want everything slurped up
84
+ prefer `renders_one :text` etc to limit the type of data which can be entered
85
+
86
+ item means one click only
87
+ option means one selection or one of many
88
+
89
+ use `option` for config stuff, not rendering
90
+
72
91
  ### Incorporating Rubocop and other linters
73
92
 
74
93
  This gem comes with some standard linters to keep your code fresh and consistent. Refer to [the documentation](./docs/content/linting.md) for more information.