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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36b0700ab981a9bbfc6fd75a8e9982b17a8b0c58275789b95ba82d254f653ef0
4
- data.tar.gz: 67a05552d491c92f2efe7f0f3102a347612dea367261ac08f903c55099dc94ab
3
+ metadata.gz: fcba58b390c748340a5bfd2d50e9f54c90684e481c5973801d6747a5dd5aa646
4
+ data.tar.gz: f87d24815c3a9748d1afc89bb11687f655d2022890d9ca53f0589575e25ab20e
5
5
  SHA512:
6
- metadata.gz: 941b198c9f193f2ca19f322a05e693d59915f140465186fafe0c597152427a51a112181bbc06a737821eb208c8ebd085dc2da28ab683a493a9b58061021274db
7
- data.tar.gz: aaaad8b84b9f13aea5a64e86ab7066a6c9eff6c41486af2606da034bc8a70498de654b7c0a28f1fa77594400d86d7d297a3a1a614ae7eab09f9f1e02a1b8a5c9
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.4"
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
- <%# Select Dropdown %>
314
+ <%# Custom Dropdown Select %>
296
315
  <%= odt_select(
297
316
  label: "Country",
298
317
  name: "user[country]",