stimulus_plumbers 0.2.9 → 0.3.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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +5 -4
  4. data/app/assets/javascripts/stimulus-plumbers/stimulus-plumbers-controllers.es.js +246 -269
  5. data/app/assets/javascripts/stimulus-plumbers/stimulus-plumbers-controllers.umd.js +1 -1
  6. data/lib/stimulus_plumbers/components/avatar.rb +4 -3
  7. data/lib/stimulus_plumbers/components/calendar/month/turbo/days_of_month.rb +58 -39
  8. data/lib/stimulus_plumbers/components/calendar/month/turbo/days_of_week.rb +13 -10
  9. data/lib/stimulus_plumbers/components/calendar.rb +36 -13
  10. data/lib/stimulus_plumbers/components/combobox/trigger.rb +6 -6
  11. data/lib/stimulus_plumbers/components/date_picker/navigation.rb +14 -22
  12. data/lib/stimulus_plumbers/components/icon.rb +14 -20
  13. data/lib/stimulus_plumbers/components/popover.rb +11 -6
  14. data/lib/stimulus_plumbers/configuration.rb +3 -18
  15. data/lib/stimulus_plumbers/engine.rb +2 -2
  16. data/lib/stimulus_plumbers/form/builder.rb +1 -1
  17. data/lib/stimulus_plumbers/form/fields/combobox.rb +7 -4
  18. data/lib/stimulus_plumbers/form/fields/renderer.rb +5 -2
  19. data/lib/stimulus_plumbers/plumber/base.rb +1 -1
  20. data/lib/stimulus_plumbers/plumber/dispatcher/callable_inspector.rb +19 -0
  21. data/lib/stimulus_plumbers/plumber/dispatcher/instance_exec.rb +35 -0
  22. data/lib/stimulus_plumbers/plumber/dispatcher/klass_proxy.rb +34 -0
  23. data/lib/stimulus_plumbers/plumber/dispatcher/method_call.rb +36 -0
  24. data/lib/stimulus_plumbers/plumber/dispatcher.rb +4 -87
  25. data/lib/stimulus_plumbers/plumber/html_options.rb +6 -5
  26. data/lib/stimulus_plumbers/plumber/renderer.rb +2 -2
  27. data/lib/stimulus_plumbers/themes/base.rb +25 -5
  28. data/lib/stimulus_plumbers/themes/configuration.rb +38 -0
  29. data/lib/stimulus_plumbers/themes/schema/form/ranges.rb +14 -0
  30. data/lib/stimulus_plumbers/themes/schema/icon.rb +32 -0
  31. data/lib/stimulus_plumbers/themes/schema/ranges.rb +1 -1
  32. data/lib/stimulus_plumbers/themes/schema.rb +10 -4
  33. data/lib/stimulus_plumbers/version.rb +1 -1
  34. metadata +9 -11
  35. data/lib/stimulus_plumbers/themes/tailwind/action_list.rb +0 -33
  36. data/lib/stimulus_plumbers/themes/tailwind/avatar.rb +0 -52
  37. data/lib/stimulus_plumbers/themes/tailwind/button.rb +0 -89
  38. data/lib/stimulus_plumbers/themes/tailwind/calendar.rb +0 -80
  39. data/lib/stimulus_plumbers/themes/tailwind/card.rb +0 -24
  40. data/lib/stimulus_plumbers/themes/tailwind/combobox.rb +0 -75
  41. data/lib/stimulus_plumbers/themes/tailwind/form.rb +0 -108
  42. data/lib/stimulus_plumbers/themes/tailwind/layout.rb +0 -25
  43. data/lib/stimulus_plumbers/themes/tailwind_theme.rb +0 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d76429866edf575ec9095b3e73a601255f68195aacba6db0dc40c3215786e8e7
4
- data.tar.gz: 3e1051dd9edc8f3bfc4f2d4881f1e94f76c9af700fbf142c703f53efbaf6e511
3
+ metadata.gz: 24b44f53bd74bf3d60b97cbf5957a3f759f1f67f9e107a0073283c84d042ec4d
4
+ data.tar.gz: 3a25d7f60c7e1060ad50702ecf1246a92a0c1aff61ece5c3b5d00b4d84e14b02
5
5
  SHA512:
6
- metadata.gz: def84ab70ce388aaeb0267be2def55739fe9bd94ecb68d69327ea9061180cde93b8a4e68d3d54959aa7af995f67d22ead8eb70d6cf09f2de85a3a9a7735124d7
7
- data.tar.gz: fd1bec2e6d8a28bb0f90390ddb7c32785e8ff24e7ec0c60bb3b5128625d8997904167282e58ac28493eee05b5a23f5a51d948d0a16a0af8b604c06dc88b2784d
6
+ metadata.gz: 1d63614d10f54fe15f692b7047c4ab638151b979fd1e4491fc2d7d9df5f8f2131eb0525e49d57ca482204a2bf3850953f24704a2262afad7c0c45cb6b7b0bdc8
7
+ data.tar.gz: edbf1b318041423db316becab23d992ae44d215ae0ad4df73fa2953c8f22c2106879d4d6c55d766f3d25c96899a29c1a00104cc10ff95e60615b0061aafd97db
data/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
4
4
 
5
+ ---
6
+ ## [0.3.0](https://github.com/ryancyq/stimulus-plumbers/compare/stimulus-plumbers-rails/v0.2.9..stimulus-plumbers-rails/v0.3.0) - 2026-05-18
7
+
8
+ ### Bug Fixes
9
+
10
+ - reduce complexity violations raised by rubocop ([#65](https://github.com/ryancyq/stimulus-plumbers/issues/65)) - ([f540d38](https://github.com/ryancyq/stimulus-plumbers/commit/f540d3820158229661249c2c9095eca95c638ff1)) - Ryan Chang
11
+ - default theme to base ([#71](https://github.com/ryancyq/stimulus-plumbers/issues/71)) - ([3ba50fe](https://github.com/ryancyq/stimulus-plumbers/commit/3ba50feb8233083c3cca40467940ebf99eab7178)) - Ryan Chang
12
+ - update calendar + combobox documentation and test coverage ([#72](https://github.com/ryancyq/stimulus-plumbers/issues/72)) - ([3fb4a6f](https://github.com/ryancyq/stimulus-plumbers/commit/3fb4a6f93f049bb7d88ed7de2dcbb592f8a58185)) - Ryan Chang
13
+
14
+ ### Dependencies
15
+
16
+ - replace runtime dep from railties to actionview ([#66](https://github.com/ryancyq/stimulus-plumbers/issues/66)) - ([c58dff5](https://github.com/ryancyq/stimulus-plumbers/commit/c58dff56149319f97247a4078fba766218c7bf9b)) - Ryan Chang
17
+
18
+ ### Documentation
19
+
20
+ - update readme with rake task cmds - ([8bbb0f8](https://github.com/ryancyq/stimulus-plumbers/commit/8bbb0f855d4b0a1cd2c115b071f6b1e6388d47d2)) - Ryan Chang
21
+
22
+ ### Features
23
+
24
+ - icon schema for theme ([#70](https://github.com/ryancyq/stimulus-plumbers/issues/70)) - ([ff952c6](https://github.com/ryancyq/stimulus-plumbers/commit/ff952c6eb390b249e4605a9ddc178709133b8bbc)) - Ryan Chang
25
+ - theme config ([#73](https://github.com/ryancyq/stimulus-plumbers/issues/73)) - ([2745309](https://github.com/ryancyq/stimulus-plumbers/commit/27453095d7c6140cda49dc24eb86b12bab5894c7)) - Ryan Chang
26
+
27
+ ### Style
28
+
29
+ - add calendar week + combobox trigger theme option ([#67](https://github.com/ryancyq/stimulus-plumbers/issues/67)) - ([e7f52e3](https://github.com/ryancyq/stimulus-plumbers/commit/e7f52e3c394138b146da96d22381e06008fd0f6b)) - Ryan Chang
30
+
31
+ ### Tests
32
+
33
+ - rename system tests as a11y test to reflect its usage accurately ([#64](https://github.com/ryancyq/stimulus-plumbers/issues/64)) - ([4bd7563](https://github.com/ryancyq/stimulus-plumbers/commit/4bd7563aea00543cfdb01bebe9d2491e8846caca)) - Ryan Chang
34
+ - playwright snapshot ([#68](https://github.com/ryancyq/stimulus-plumbers/issues/68)) - ([d0ef50e](https://github.com/ryancyq/stimulus-plumbers/commit/d0ef50e7bf8fd86d67f1b19b453a56ed8a0d9349)) - Ryan Chang
35
+
5
36
  ---
6
37
  ## [0.2.9](https://github.com/ryancyq/stimulus-plumbers/compare/stimulus-plumbers-rails/v0.2.8..stimulus-plumbers-rails/v0.2.9) - 2026-05-15
7
38
 
data/README.md CHANGED
@@ -60,7 +60,7 @@ config.action_view.default_form_builder = StimulusPlumbers::Form::Builder
60
60
 
61
61
  ## Theming
62
62
 
63
- Includes a Tailwind CSS theme out of the box. Supports custom themes by subclassing `Themes::Base`.
63
+ Supports custom themes by subclassing `StimulusPlumbers::Themes::Base`. A ready-made Tailwind CSS v4 theme is available via the [`stimulus_plumbers_tailwind`](../stimulus-plumbers-tailwind) gem.
64
64
 
65
65
  → [docs/component/theme.md](docs/component/theme.md)
66
66
 
@@ -69,9 +69,10 @@ Includes a Tailwind CSS theme out of the box. Supports custom themes by subclass
69
69
  ```bash
70
70
  bundle install
71
71
 
72
- bundle exec rake test:unit # unit tests
73
- bundle exec rake test:system # accessibility system tests
74
- bundle exec rake rubocop # lint
72
+ bundle exec rake test:unit # unit tests
73
+ bundle exec rake test:accessibility # accessibility tests (Capybara + axe-core)
74
+ bundle exec rake rubocop # lint
75
+ bundle exec rake coverage # run tests with coverage + collate report
75
76
  ```
76
77
 
77
78
  Test against a specific Rails version: