odt-ui-rails 2.2.4 → 2.2.5
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 +21 -2
- data/app/assets/stylesheets/odt_ui/styles.css +489 -109
- data/app/assets/stylesheets/odt_ui.css +489 -109
- data/lib/generators/odt/install_generator.rb +2 -3
- data/lib/generators/odt/templates/odt_dropdown_controller.js +137 -0
- data/lib/generators/odt/templates/odt_modal_controller.js +24 -0
- data/lib/generators/odt/templates/odt_toast_controller.js +12 -0
- data/lib/generators/odt/templates/odt_toaster_controller.js +114 -0
- data/lib/generators/odt/templates/odt_ui.rbs +119 -61
- data/lib/odt_ui/engine.rb +0 -1
- data/lib/odt_ui/helper.rb +324 -282
- data/lib/odt_ui/version.rb +1 -1
- data/lib/odt_ui.rb +6 -1
- data/sig/odt_ui.rbs +119 -61
- metadata +3 -4
- data/app/assets/stylesheets/odt_ui/theme.css +0 -126
- data/app/javascript/controllers/odt_modal_controller.js +0 -61
- data/app/javascript/controllers/odt_toast_controller.js +0 -40
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fcba58b390c748340a5bfd2d50e9f54c90684e481c5973801d6747a5dd5aa646
|
|
4
|
+
data.tar.gz: f87d24815c3a9748d1afc89bb11687f655d2022890d9ca53f0589575e25ab20e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89b0db215f2b52c3e046d0b16ea1bd9098ff4f896f4e19f31d4d1c078173444e9143da6497d491baba8ce6761fc0c419e3d4d2251eb76bad0dfc157427595c17
|
|
7
|
+
data.tar.gz: 607db973d0fea09189079c15e88c1810e45bed02f20c3b9bb6577521cc0c09776e5fac940a3f3c866de85f6d16f401553b07826ea12c486f91bedf3368787789
|
data/README.md
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
Add the gem to your application's `Gemfile`:
|
|
59
59
|
|
|
60
60
|
```ruby
|
|
61
|
-
gem "odt-ui-rails", "~> 2.2.
|
|
61
|
+
gem "odt-ui-rails", "~> 2.2.5"
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
Install dependencies:
|
|
@@ -205,6 +205,25 @@ Accessible dialog containers with backdrop overlay, ESC key handling, scroll loc
|
|
|
205
205
|
|
|
206
206
|
---
|
|
207
207
|
|
|
208
|
+
#### Dropdown Menu
|
|
209
|
+
|
|
210
|
+
Interactive floating dropdown menus with keyboard navigation, click-outside dismissal, shortcuts, and destructive styles.
|
|
211
|
+
|
|
212
|
+
```erb
|
|
213
|
+
<%= odt_dropdown_menu do %>
|
|
214
|
+
<%= odt_dropdown_trigger "Actions", size: :md, variant: :outlined %>
|
|
215
|
+
<%= odt_dropdown_content align: :end, radius: :xl do %>
|
|
216
|
+
<%= odt_dropdown_label "Manage" %>
|
|
217
|
+
<%= odt_dropdown_item "Edit Details", left_icon: "fa-solid fa-pen", shortcut: "⌘E" %>
|
|
218
|
+
<%= odt_dropdown_item "Duplicate", left_icon: "fa-solid fa-copy" %>
|
|
219
|
+
<%= odt_dropdown_separator %>
|
|
220
|
+
<%= odt_dropdown_item "Delete", destructive: true, left_icon: "fa-solid fa-trash" %>
|
|
221
|
+
<% end %>
|
|
222
|
+
<% end %>
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
208
227
|
#### Alerts
|
|
209
228
|
|
|
210
229
|
Inline banners for status notices, warning messages, and form callouts.
|
|
@@ -292,7 +311,7 @@ Accessible form components complete with labels, helper text, error validations,
|
|
|
292
311
|
helper: "Brief summary for your profile"
|
|
293
312
|
) %>
|
|
294
313
|
|
|
295
|
-
<%#
|
|
314
|
+
<%# Custom Dropdown Select %>
|
|
296
315
|
<%= odt_select(
|
|
297
316
|
label: "Country",
|
|
298
317
|
name: "user[country]",
|