recurrence_ui 0.3.3 → 0.4.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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -12
  3. data/app/assets/stylesheets/recurrence_ui/application.css +962 -12
  4. data/app/components/recurrence_ui/recurrence_picker_component.html.erb +85 -83
  5. data/app/javascript/recurrence_ui/recurrence_ui_controller.js +53 -42
  6. data/app/views/recurrence_ui/_daily.html.erb +3 -3
  7. data/app/views/recurrence_ui/_duration.html.erb +33 -36
  8. data/app/views/recurrence_ui/_end_at.html.erb +5 -4
  9. data/app/views/recurrence_ui/_exceptions.html.erb +22 -22
  10. data/app/views/recurrence_ui/_footer_actions.html.erb +1 -1
  11. data/app/views/recurrence_ui/_monthly_by_day_of_month.html.erb +5 -5
  12. data/app/views/recurrence_ui/_monthly_by_weekday.html.erb +12 -12
  13. data/app/views/recurrence_ui/_rdates.html.erb +22 -22
  14. data/app/views/recurrence_ui/_rule_card.html.erb +9 -9
  15. data/app/views/recurrence_ui/_single_rule.html.erb +13 -11
  16. data/app/views/recurrence_ui/_start_at.html.erb +17 -21
  17. data/app/views/recurrence_ui/_summary_link.html.erb +4 -4
  18. data/app/views/recurrence_ui/_termination.html.erb +13 -12
  19. data/app/views/recurrence_ui/_time_zone.html.erb +11 -9
  20. data/app/views/recurrence_ui/_weekly.html.erb +19 -24
  21. data/app/views/recurrence_ui/_yearly_by_day_of_month.html.erb +9 -10
  22. data/app/views/recurrence_ui/_yearly_by_weekday.html.erb +11 -12
  23. data/config/locales/recurrence_ui.ru.yml +2 -2
  24. data/config/routes.rb +0 -3
  25. data/lib/generators/recurrence_ui/install/install_generator.rb +29 -23
  26. data/lib/generators/recurrence_ui/install/templates/recurrence_ui.rb +40 -0
  27. data/lib/recurrence_ui/engine.rb +1 -0
  28. data/lib/recurrence_ui/version.rb +1 -1
  29. metadata +3 -4
  30. data/app/assets/stylesheets/recurrence_ui/components.css +0 -295
  31. data/app/assets/stylesheets/recurrence_ui/tokens.css +0 -102
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 148ea1c9b90cf1ead7565260393624603281a68ffc349fd02b774721e65c1882
4
- data.tar.gz: 64c351c8e924ef1676ca94e062061f03feb78d9c326c61f07168ba93d50d9859
3
+ metadata.gz: 418a99f8158ee9ec11630d5937cd71f0de12ab3bb6c4ec3793fc53e5ba13ebed
4
+ data.tar.gz: c4dc7de86e9fa855676b2d209937d655b6619f17d30aa304ced29b11be644864
5
5
  SHA512:
6
- metadata.gz: 0bbe8d72c6582df4257859c890ecf354821f37603090a6bbcaf863ba77a3aaaac9bd7a5b95a1504804fa7c6887b99cbcfc2c5954e38bad573a33bf464f9dc6b2
7
- data.tar.gz: 105e1e02dec4b660b8365939c752b0bb9373c553bcc363a987f7b19f25d689f31619814544f885c8a3df0afa20c361e76634033bee26b4e1d60c36877d85d022
6
+ metadata.gz: 90e6187a6674c64c7f31061c875a18de72b44f050e47abb07abc5669ea55802e989ee5b811b20755d7dcab700f3395ad25a542f846778bc4ad82660898bfe035
7
+ data.tar.gz: cc399660148e1d6f6e608b5f562a222d28616b8b615de6c65999800f09b0893accf795b39c201aaa3c9373c05e20049519509037074c5d0a0c20fa2260bece54
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Recurrence UI** is a plug-and-play UI component library for Ruby on Rails that makes it easy to create, edit, and display human-readable recurrence rules for recurring events.
4
4
 
5
- Built on top of [ice_cube](https://github.com/ice-cube-ruby/ice_cube), it provides reusable UI components powered by [ViewComponent](https://viewcomponent.org/) and styled with Tailwind CSS.
5
+ Built on top of [ice_cube](https://github.com/ice-cube-ruby/ice_cube), it provides reusable UI components powered by [ViewComponent](https://viewcomponent.org/).
6
6
 
7
7
  [![Gem Version](https://img.shields.io/gem/v/recurrence_ui.svg)](https://rubygems.org/gems/recurrence_ui)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -25,9 +25,7 @@ Recurrence UI depends on the following components:
25
25
  - **Ruby on Rails** >= 8.0
26
26
  - **[ice_cube](https://github.com/ice-cube-ruby/ice_cube)** ~> 0.16
27
27
  - **[ViewComponent](https://viewcomponent.org/)** >= 2.0
28
- - **Tailwind CSS** >= 4.0
29
28
 
30
- Tailwind CSS can be integrated through `tailwindcss-rails` or your host application's existing Tailwind CSS setup.
31
29
 
32
30
  ## Installation and Configuration
33
31
 
@@ -85,7 +83,6 @@ RecurrenceUi.configure do |config|
85
83
 
86
84
  # UI options
87
85
  config.enabled_rule_types = %w[
88
- never
89
86
  daily
90
87
  weekly
91
88
  monthly_by_day_of_month
@@ -122,13 +119,6 @@ Use the controller's actual import path and identifier provided by the gem.
122
119
 
123
120
  **Step 3. Import the stylesheet**
124
121
 
125
- For Tailwind CSS v4, add the following imports to your application's stylesheet, for example `app/assets/stylesheets/application.tailwind.css`:
126
-
127
- ```css
128
- @import "tailwindcss";
129
- @import "recurrence_ui/application.css";
130
- ```
131
-
132
122
  Make sure the stylesheet is included in your application's asset pipeline.
133
123
 
134
124
  **Note:** Importmap paths, JavaScript assets, and locale files are provided by the gem's Engine. You do not need to configure them manually.
@@ -280,8 +270,12 @@ You can override these properties in your application's stylesheet:
280
270
  --rui-text-main: #f9fafb;
281
271
  }
282
272
  ```
283
-
284
273
  Use the CSS variables supported by the gem to customize its appearance.
274
+ Also you can find more variables in file of gem:
275
+
276
+ ```bash
277
+ recurrence_ui/app/assets/stylesheets/recurrence_ui/application.css
278
+ ```
285
279
 
286
280
  ## Example Application
287
281