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.
- checksums.yaml +4 -4
- data/README.md +6 -12
- data/app/assets/stylesheets/recurrence_ui/application.css +962 -12
- data/app/components/recurrence_ui/recurrence_picker_component.html.erb +85 -83
- data/app/javascript/recurrence_ui/recurrence_ui_controller.js +53 -42
- data/app/views/recurrence_ui/_daily.html.erb +3 -3
- data/app/views/recurrence_ui/_duration.html.erb +33 -36
- data/app/views/recurrence_ui/_end_at.html.erb +5 -4
- data/app/views/recurrence_ui/_exceptions.html.erb +22 -22
- data/app/views/recurrence_ui/_footer_actions.html.erb +1 -1
- data/app/views/recurrence_ui/_monthly_by_day_of_month.html.erb +5 -5
- data/app/views/recurrence_ui/_monthly_by_weekday.html.erb +12 -12
- data/app/views/recurrence_ui/_rdates.html.erb +22 -22
- data/app/views/recurrence_ui/_rule_card.html.erb +9 -9
- data/app/views/recurrence_ui/_single_rule.html.erb +13 -11
- data/app/views/recurrence_ui/_start_at.html.erb +17 -21
- data/app/views/recurrence_ui/_summary_link.html.erb +4 -4
- data/app/views/recurrence_ui/_termination.html.erb +13 -12
- data/app/views/recurrence_ui/_time_zone.html.erb +11 -9
- data/app/views/recurrence_ui/_weekly.html.erb +19 -24
- data/app/views/recurrence_ui/_yearly_by_day_of_month.html.erb +9 -10
- data/app/views/recurrence_ui/_yearly_by_weekday.html.erb +11 -12
- data/config/locales/recurrence_ui.ru.yml +2 -2
- data/config/routes.rb +0 -3
- data/lib/generators/recurrence_ui/install/install_generator.rb +29 -23
- data/lib/generators/recurrence_ui/install/templates/recurrence_ui.rb +40 -0
- data/lib/recurrence_ui/engine.rb +1 -0
- data/lib/recurrence_ui/version.rb +1 -1
- metadata +3 -4
- data/app/assets/stylesheets/recurrence_ui/components.css +0 -295
- 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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 418a99f8158ee9ec11630d5937cd71f0de12ab3bb6c4ec3793fc53e5ba13ebed
|
|
4
|
+
data.tar.gz: c4dc7de86e9fa855676b2d209937d655b6619f17d30aa304ced29b11be644864
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/)
|
|
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
|
[](https://rubygems.org/gems/recurrence_ui)
|
|
8
8
|
[](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
|
|