stimeo-ui 0.6.0 → 0.7.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 (199) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/controllers/alert_dialog_controller.d.ts +2 -0
  3. package/dist/controllers/alert_dialog_controller.js +75 -4
  4. package/dist/controllers/alert_dialog_controller.js.map +1 -1
  5. package/dist/controllers/auto_submit_controller.d.ts +2 -0
  6. package/dist/controllers/auto_submit_controller.js.map +1 -1
  7. package/dist/controllers/avatar_controller.js +47 -5
  8. package/dist/controllers/avatar_controller.js.map +1 -1
  9. package/dist/controllers/breadcrumb_controller.d.ts +2 -0
  10. package/dist/controllers/breadcrumb_controller.js.map +1 -1
  11. package/dist/controllers/bulk_select_controller.d.ts +2 -0
  12. package/dist/controllers/bulk_select_controller.js.map +1 -1
  13. package/dist/controllers/calendar_controller.d.ts +2 -0
  14. package/dist/controllers/calendar_controller.js.map +1 -1
  15. package/dist/controllers/character_counter_controller.d.ts +52 -20
  16. package/dist/controllers/character_counter_controller.js +338 -63
  17. package/dist/controllers/character_counter_controller.js.map +1 -1
  18. package/dist/controllers/checkbox_controller.d.ts +3 -0
  19. package/dist/controllers/checkbox_controller.js.map +1 -1
  20. package/dist/controllers/color_picker_controller.d.ts +3 -0
  21. package/dist/controllers/color_picker_controller.js.map +1 -1
  22. package/dist/controllers/combobox_controller.d.ts +2 -0
  23. package/dist/controllers/combobox_controller.js.map +1 -1
  24. package/dist/controllers/command_palette_controller.d.ts +2 -0
  25. package/dist/controllers/command_palette_controller.js +75 -4
  26. package/dist/controllers/command_palette_controller.js.map +1 -1
  27. package/dist/controllers/conditional_fields_controller.d.ts +42 -14
  28. package/dist/controllers/conditional_fields_controller.js +345 -51
  29. package/dist/controllers/conditional_fields_controller.js.map +1 -1
  30. package/dist/controllers/confirm_controller.d.ts +2 -0
  31. package/dist/controllers/confirm_controller.js +75 -4
  32. package/dist/controllers/confirm_controller.js.map +1 -1
  33. package/dist/controllers/count_up_controller.d.ts +2 -0
  34. package/dist/controllers/count_up_controller.js.map +1 -1
  35. package/dist/controllers/countdown_controller.d.ts +4 -0
  36. package/dist/controllers/countdown_controller.js.map +1 -1
  37. package/dist/controllers/currency_input_controller.d.ts +2 -0
  38. package/dist/controllers/currency_input_controller.js.map +1 -1
  39. package/dist/controllers/data_grid_controller.d.ts +3 -0
  40. package/dist/controllers/data_grid_controller.js.map +1 -1
  41. package/dist/controllers/dialog_controller.js +75 -4
  42. package/dist/controllers/dialog_controller.js.map +1 -1
  43. package/dist/controllers/direct_upload_controller.d.ts +56 -24
  44. package/dist/controllers/direct_upload_controller.js +201 -45
  45. package/dist/controllers/direct_upload_controller.js.map +1 -1
  46. package/dist/controllers/dirty_form_controller.d.ts +14 -6
  47. package/dist/controllers/dirty_form_controller.js +192 -29
  48. package/dist/controllers/dirty_form_controller.js.map +1 -1
  49. package/dist/controllers/dismissible_controller.d.ts +2 -0
  50. package/dist/controllers/dismissible_controller.js +83 -18
  51. package/dist/controllers/dismissible_controller.js.map +1 -1
  52. package/dist/controllers/drawer_controller.js +75 -4
  53. package/dist/controllers/drawer_controller.js.map +1 -1
  54. package/dist/controllers/empty_state_controller.d.ts +2 -0
  55. package/dist/controllers/empty_state_controller.js.map +1 -1
  56. package/dist/controllers/file_dropzone_controller.d.ts +2 -0
  57. package/dist/controllers/file_dropzone_controller.js.map +1 -1
  58. package/dist/controllers/filter_controller.d.ts +2 -0
  59. package/dist/controllers/filter_controller.js.map +1 -1
  60. package/dist/controllers/flash_controller.d.ts +4 -0
  61. package/dist/controllers/flash_controller.js.map +1 -1
  62. package/dist/controllers/focus_controller.d.ts +2 -0
  63. package/dist/controllers/focus_controller.js +75 -4
  64. package/dist/controllers/focus_controller.js.map +1 -1
  65. package/dist/controllers/form_field_controller.d.ts +50 -10
  66. package/dist/controllers/form_field_controller.js +280 -62
  67. package/dist/controllers/form_field_controller.js.map +1 -1
  68. package/dist/controllers/form_validation_controller.d.ts +10 -8
  69. package/dist/controllers/form_validation_controller.js +208 -83
  70. package/dist/controllers/form_validation_controller.js.map +1 -1
  71. package/dist/controllers/frame_loading_controller.d.ts +2 -0
  72. package/dist/controllers/frame_loading_controller.js.map +1 -1
  73. package/dist/controllers/highlight_controller.d.ts +2 -0
  74. package/dist/controllers/highlight_controller.js.map +1 -1
  75. package/dist/controllers/idle_controller.d.ts +2 -0
  76. package/dist/controllers/idle_controller.js.map +1 -1
  77. package/dist/controllers/input_mask_controller.d.ts +2 -0
  78. package/dist/controllers/input_mask_controller.js.map +1 -1
  79. package/dist/controllers/lazy_frame_controller.d.ts +2 -0
  80. package/dist/controllers/lazy_frame_controller.js.map +1 -1
  81. package/dist/controllers/listbox_controller.d.ts +2 -0
  82. package/dist/controllers/listbox_controller.js.map +1 -1
  83. package/dist/controllers/local_time_controller.d.ts +2 -0
  84. package/dist/controllers/local_time_controller.js.map +1 -1
  85. package/dist/controllers/masonry_controller.d.ts +2 -0
  86. package/dist/controllers/masonry_controller.js.map +1 -1
  87. package/dist/controllers/meter_controller.d.ts +2 -0
  88. package/dist/controllers/meter_controller.js.map +1 -1
  89. package/dist/controllers/multi_select_controller.d.ts +2 -0
  90. package/dist/controllers/multi_select_controller.js.map +1 -1
  91. package/dist/controllers/nested_form_controller.d.ts +2 -0
  92. package/dist/controllers/nested_form_controller.js.map +1 -1
  93. package/dist/controllers/network_status_controller.d.ts +2 -0
  94. package/dist/controllers/network_status_controller.js.map +1 -1
  95. package/dist/controllers/number_input_controller.d.ts +2 -0
  96. package/dist/controllers/number_input_controller.js +47 -5
  97. package/dist/controllers/number_input_controller.js.map +1 -1
  98. package/dist/controllers/otp_controller.d.ts +3 -0
  99. package/dist/controllers/otp_controller.js.map +1 -1
  100. package/dist/controllers/overflow_indicator_controller.d.ts +2 -0
  101. package/dist/controllers/overflow_indicator_controller.js.map +1 -1
  102. package/dist/controllers/overflow_menu_controller.d.ts +2 -0
  103. package/dist/controllers/overflow_menu_controller.js +2 -1
  104. package/dist/controllers/overflow_menu_controller.js.map +1 -1
  105. package/dist/controllers/pagination_controller.d.ts +2 -0
  106. package/dist/controllers/pagination_controller.js +2 -1
  107. package/dist/controllers/pagination_controller.js.map +1 -1
  108. package/dist/controllers/password_reveal_controller.d.ts +2 -0
  109. package/dist/controllers/password_reveal_controller.js.map +1 -1
  110. package/dist/controllers/password_strength_controller.d.ts +2 -0
  111. package/dist/controllers/password_strength_controller.js.map +1 -1
  112. package/dist/controllers/persist_controller.d.ts +30 -16
  113. package/dist/controllers/persist_controller.js +432 -122
  114. package/dist/controllers/persist_controller.js.map +1 -1
  115. package/dist/controllers/pointer_drag_controller.d.ts +3 -0
  116. package/dist/controllers/pointer_drag_controller.js.map +1 -1
  117. package/dist/controllers/popover_controller.js +77 -4
  118. package/dist/controllers/popover_controller.js.map +1 -1
  119. package/dist/controllers/portal_controller.d.ts +2 -0
  120. package/dist/controllers/portal_controller.js.map +1 -1
  121. package/dist/controllers/preview_guard_controller.d.ts +2 -0
  122. package/dist/controllers/preview_guard_controller.js.map +1 -1
  123. package/dist/controllers/progress_controller.d.ts +3 -0
  124. package/dist/controllers/progress_controller.js.map +1 -1
  125. package/dist/controllers/radio_group_controller.d.ts +3 -0
  126. package/dist/controllers/radio_group_controller.js.map +1 -1
  127. package/dist/controllers/rating_controller.d.ts +2 -0
  128. package/dist/controllers/rating_controller.js +9 -5
  129. package/dist/controllers/rating_controller.js.map +1 -1
  130. package/dist/controllers/reading_progress_controller.d.ts +2 -0
  131. package/dist/controllers/reading_progress_controller.js.map +1 -1
  132. package/dist/controllers/resizable_controller.d.ts +2 -0
  133. package/dist/controllers/resizable_controller.js.map +1 -1
  134. package/dist/controllers/roving_controller.d.ts +2 -0
  135. package/dist/controllers/roving_controller.js.map +1 -1
  136. package/dist/controllers/scroll_area_controller.d.ts +23 -15
  137. package/dist/controllers/scroll_area_controller.js +462 -162
  138. package/dist/controllers/scroll_area_controller.js.map +1 -1
  139. package/dist/controllers/scroll_visibility_controller.d.ts +2 -0
  140. package/dist/controllers/scroll_visibility_controller.js.map +1 -1
  141. package/dist/controllers/scrollspy_controller.d.ts +2 -0
  142. package/dist/controllers/scrollspy_controller.js.map +1 -1
  143. package/dist/controllers/separator_controller.d.ts +54 -11
  144. package/dist/controllers/separator_controller.js +354 -38
  145. package/dist/controllers/separator_controller.js.map +1 -1
  146. package/dist/controllers/sidebar_controller.js +83 -10
  147. package/dist/controllers/sidebar_controller.js.map +1 -1
  148. package/dist/controllers/skeleton_controller.d.ts +2 -0
  149. package/dist/controllers/skeleton_controller.js.map +1 -1
  150. package/dist/controllers/slider_controller.d.ts +2 -0
  151. package/dist/controllers/slider_controller.js.map +1 -1
  152. package/dist/controllers/smart_sticky_header_controller.d.ts +2 -0
  153. package/dist/controllers/smart_sticky_header_controller.js.map +1 -1
  154. package/dist/controllers/spinner_controller.d.ts +2 -0
  155. package/dist/controllers/spinner_controller.js.map +1 -1
  156. package/dist/controllers/step_indicator_controller.d.ts +2 -0
  157. package/dist/controllers/step_indicator_controller.js.map +1 -1
  158. package/dist/controllers/stepper_controller.d.ts +2 -0
  159. package/dist/controllers/stepper_controller.js.map +1 -1
  160. package/dist/controllers/stick_to_bottom_controller.d.ts +2 -0
  161. package/dist/controllers/stick_to_bottom_controller.js.map +1 -1
  162. package/dist/controllers/sticky_observer_controller.d.ts +2 -0
  163. package/dist/controllers/sticky_observer_controller.js.map +1 -1
  164. package/dist/controllers/submit_once_controller.d.ts +94 -38
  165. package/dist/controllers/submit_once_controller.js +399 -121
  166. package/dist/controllers/submit_once_controller.js.map +1 -1
  167. package/dist/controllers/switch_controller.d.ts +2 -0
  168. package/dist/controllers/switch_controller.js.map +1 -1
  169. package/dist/controllers/tags_input_controller.d.ts +2 -0
  170. package/dist/controllers/tags_input_controller.js.map +1 -1
  171. package/dist/controllers/textarea_autosize_controller.d.ts +2 -0
  172. package/dist/controllers/textarea_autosize_controller.js.map +1 -1
  173. package/dist/controllers/theme_controller.d.ts +2 -0
  174. package/dist/controllers/theme_controller.js +8 -6
  175. package/dist/controllers/theme_controller.js.map +1 -1
  176. package/dist/controllers/time_picker_controller.d.ts +2 -0
  177. package/dist/controllers/time_picker_controller.js.map +1 -1
  178. package/dist/controllers/toast_controller.d.ts +4 -0
  179. package/dist/controllers/toast_controller.js.map +1 -1
  180. package/dist/controllers/toggle_group_controller.d.ts +2 -0
  181. package/dist/controllers/toggle_group_controller.js.map +1 -1
  182. package/dist/controllers/toolbar_controller.js.map +1 -1
  183. package/dist/controllers/transition_controller.d.ts +2 -0
  184. package/dist/controllers/transition_controller.js.map +1 -1
  185. package/dist/controllers/tree_view_controller.d.ts +2 -0
  186. package/dist/controllers/tree_view_controller.js +2 -1
  187. package/dist/controllers/tree_view_controller.js.map +1 -1
  188. package/dist/index.js +2387 -861
  189. package/dist/index.js.map +1 -1
  190. package/dist/inspector/cli.d.ts +107 -3
  191. package/dist/inspector/cli.js +192 -14
  192. package/dist/inspector/cli.js.map +1 -1
  193. package/dist/inspector/cli_bin.js +254 -46
  194. package/dist/inspector/cli_bin.js.map +1 -1
  195. package/dist/inspector/examples.json +7 -7
  196. package/dist/inspector/manifest.json +434 -44
  197. package/dist/positioning/index.d.ts +2 -0
  198. package/dist/positioning/index.js.map +1 -1
  199. package/package.json +1 -1
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "stimeo--character-counter": {
49
49
  "file": "examples/character_counter/_demo.html.erb",
50
- "source": "<%# Character counter demo: a textarea whose remaining count is shown beneath it.\n The controller writes the count into the output (an aria-live=\"polite\" region),\n toggles data-near-limit / data-over-limit on the root, and sets aria-invalid on the\n field past the max. This demo styles those state hooks; the library only updates the\n count text and the hooks — no consumer JS is needed (it reacts to input on its own). %>\n<div class=\"character-counter-demo\">\n <label class=\"character-counter-demo__label\" for=\"cc-message\">\n <%= t(\"components.character_counter.demo.label\") %>\n </label>\n <div\n class=\"character-counter\"\n data-controller=\"stimeo--character-counter\"\n data-stimeo--character-counter-max-value=\"140\"\n data-stimeo--character-counter-warn-at-value=\"20\">\n <textarea\n id=\"cc-message\"\n class=\"character-counter__input\"\n rows=\"3\"\n data-stimeo--character-counter-target=\"input\"\n aria-describedby=\"cc-message-count\"\n placeholder=\"<%= t('components.character_counter.demo.placeholder') %>\"></textarea>\n <span\n id=\"cc-message-count\"\n class=\"character-counter__output\"\n data-stimeo--character-counter-target=\"output\"\n aria-live=\"polite\"></span>\n </div>\n</div>\n"
50
+ "source": "<%# Markup for the character-counter demo. The visible output updates on every\n keystroke, while the settled remaining count is debounced into the shared\n stimeo--announcer seated below. This demo's CSS styles the root's near/over\n hooks and the over-limit aria-invalid; watching the field needs no consumer\n JavaScript. %>\n<% announcement = t(\"components.character_counter.demo.announcement\") %>\n<div class=\"character-counter-demo\">\n <label class=\"character-counter-demo__label\" for=\"cc-message\">\n <%= t(\"components.character_counter.demo.label\") %>\n </label>\n <div\n class=\"character-counter\"\n data-controller=\"stimeo--character-counter\"\n data-stimeo--character-counter-max-value=\"140\"\n data-stimeo--character-counter-warn-at-value=\"20\"\n data-stimeo--character-counter-announce-text-value=\"<%= announcement %>\">\n <textarea\n id=\"cc-message\"\n class=\"character-counter__input\"\n rows=\"3\"\n data-stimeo--character-counter-target=\"input\"\n aria-describedby=\"cc-message-count\"\n placeholder=\"<%= t('components.character_counter.demo.placeholder') %>\"></textarea>\n <span\n id=\"cc-message-count\"\n class=\"character-counter__output\"\n data-stimeo--character-counter-target=\"output\"></span>\n <div data-controller=\"stimeo--announcer\">\n <div class=\"visually-hidden\"\n data-stimeo--announcer-target=\"polite\"\n aria-live=\"polite\"\n aria-atomic=\"true\"></div>\n </div>\n </div>\n</div>\n"
51
51
  },
52
52
  "stimeo--checkbox": {
53
53
  "file": "examples/checkbox/_demo.html.erb",
@@ -111,11 +111,11 @@
111
111
  },
112
112
  "stimeo--direct-upload": {
113
113
  "file": "examples/direct_upload/_demo.html.erb",
114
- "source": "<%# Direct upload demo: there is no server, so demo.js fires the ActiveStorage\n direct-upload:* events to drive the rows. The library clones the row template per\n file, updates aria-valuenow / data-upload-state / the --stimeo--upload-progress\n var, and announces completion into the status live region. This demo styles the\n bars; the sr-only status carries the announcement. %>\n<div class=\"direct-upload-demo\">\n <button type=\"button\" class=\"demo-trigger\" data-direct-upload-start>\n <%= t(\"components.direct_upload.demo.start\") %>\n </button>\n <div\n class=\"direct-upload\"\n data-controller=\"stimeo--direct-upload\"\n data-stimeo--direct-upload-done-label-value=\"<%= t('components.direct_upload.demo.done') %>\"\n data-stimeo--direct-upload-error-label-value=\"<%= t('components.direct_upload.demo.error') %>\">\n <div class=\"direct-upload__list\" data-stimeo--direct-upload-target=\"list\"></div>\n <template data-stimeo--direct-upload-target=\"row\">\n <div class=\"direct-upload__row\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n <span class=\"direct-upload__name\" data-field=\"name\"></span>\n <span class=\"direct-upload__track\"><span class=\"direct-upload__bar\"></span></span>\n <span class=\"direct-upload__percent\" data-field=\"percent\"></span>\n </div>\n </template>\n <span class=\"visually-hidden\" data-stimeo--direct-upload-target=\"status\"\n aria-live=\"polite\"></span>\n </div>\n</div>\n"
114
+ "source": "<%# Direct upload demo: there is no server, so demo.js fires the ActiveStorage\n direct-upload:* events to drive the rows — including one upload that fails\n (error followed by end, the order ActiveStorage really uses). The library\n clones the row template per file, updates aria-valuenow / aria-valuetext /\n data-upload-state / the --stimeo--upload-progress var, and hands completion\n and failure announcements to the shared announcer below. This demo styles\n the bars. %>\n<% done_text = t(\"components.direct_upload.demo.done\") %>\n<% error_text = t(\"components.direct_upload.demo.error\") %>\n<div class=\"direct-upload-demo\">\n <button type=\"button\" class=\"demo-trigger\" data-direct-upload-start>\n <%= t(\"components.direct_upload.demo.start\") %>\n </button>\n <div\n class=\"direct-upload\"\n data-controller=\"stimeo--direct-upload\"\n data-stimeo--direct-upload-announce-done-text-value=\"<%= done_text %>\"\n data-stimeo--direct-upload-announce-error-text-value=\"<%= error_text %>\">\n <div class=\"direct-upload__list\" data-stimeo--direct-upload-target=\"list\"></div>\n <template data-stimeo--direct-upload-target=\"row\">\n <div class=\"direct-upload__row\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n <span class=\"direct-upload__name\" data-field=\"name\"></span>\n <span class=\"direct-upload__track\"><span class=\"direct-upload__bar\"></span></span>\n <span class=\"direct-upload__percent\" data-field=\"percent\"></span>\n </div>\n </template>\n </div>\n <%# Shared announcer: completion and failure are the transitions worth reading;\n per-tick progress stays on each row's aria-valuenow. %>\n <div data-controller=\"stimeo--announcer\">\n <div class=\"visually-hidden\"\n data-stimeo--announcer-target=\"polite\" aria-live=\"polite\" aria-atomic=\"true\"></div>\n </div>\n</div>\n"
115
115
  },
116
116
  "stimeo--dirty-form": {
117
117
  "file": "examples/dirty_form/_demo.html.erb",
118
- "source": "<%# Dirty-form demo: edit the field and the form gets data-dirty (shown as a badge).\n While dirty, leaving is guarded (beforeunload + Turbo turbo:before-visit → a native\n confirm). \"Save\" calls the markClean action to clear the dirty state (this catalog\n has no server, so it stands in for a successful save). The library owns the\n data-dirty hook and the guards; this demo only styles the badge. %>\n<div class=\"dirty-form-demo\">\n <form class=\"dirty-form\" data-controller=\"stimeo--dirty-form\">\n <label class=\"dirty-form__field\">\n <span><%= t(\"components.dirty_form.demo.label\") %></span>\n <input type=\"text\" name=\"title\" value=\"<%= t('components.dirty_form.demo.value') %>\">\n </label>\n <div class=\"dirty-form__bar\">\n <span class=\"dirty-form__badge\"><%= t(\"components.dirty_form.demo.unsaved\") %></span>\n <button type=\"button\" class=\"demo-trigger\" data-action=\"stimeo--dirty-form#markClean\">\n <%= t(\"components.dirty_form.demo.save\") %>\n </button>\n </div>\n </form>\n</div>\n"
118
+ "source": "<%# Dirty-form demo: edit either field and its form gets data-dirty (shown as a badge).\n When both forms are dirty, one Turbo visit dispatches both guard events and opens\n one native confirm using the first eligible form in live DOM order. \"Save\" calls\n markClean for that form; this catalog has no server, so it stands in for a successful\n save. The library owns data-dirty and navigation coordination; the demo only styles\n the visible state. %>\n<div class=\"dirty-form-demo\">\n <form\n class=\"dirty-form\"\n data-controller=\"stimeo--dirty-form\"\n data-stimeo--dirty-form-message-value=\"<%= t('components.dirty_form.demo.first_message') %>\"\n aria-labelledby=\"dirty-form-first-title\"\n >\n <h3 id=\"dirty-form-first-title\" class=\"dirty-form__title\">\n <%= t(\"components.dirty_form.demo.first_title\") %>\n </h3>\n <label class=\"dirty-form__field\">\n <span><%= t(\"components.dirty_form.demo.first_label\") %></span>\n <input type=\"text\" name=\"title\" value=\"<%= t('components.dirty_form.demo.first_value') %>\">\n </label>\n <div class=\"dirty-form__bar\">\n <span class=\"dirty-form__badge\"><%= t(\"components.dirty_form.demo.unsaved\") %></span>\n <button type=\"button\" class=\"demo-trigger\" data-action=\"stimeo--dirty-form#markClean\">\n <%= t(\"components.dirty_form.demo.save\") %>\n </button>\n </div>\n </form>\n\n <form\n class=\"dirty-form\"\n data-controller=\"stimeo--dirty-form\"\n data-stimeo--dirty-form-message-value=\"<%= t('components.dirty_form.demo.second_message') %>\"\n aria-labelledby=\"dirty-form-second-title\"\n >\n <h3 id=\"dirty-form-second-title\" class=\"dirty-form__title\">\n <%= t(\"components.dirty_form.demo.second_title\") %>\n </h3>\n <label class=\"dirty-form__field\">\n <span><%= t(\"components.dirty_form.demo.second_label\") %></span>\n <input type=\"text\" name=\"summary\" value=\"<%= t('components.dirty_form.demo.second_value') %>\">\n </label>\n <div class=\"dirty-form__bar\">\n <span class=\"dirty-form__badge\"><%= t(\"components.dirty_form.demo.unsaved\") %></span>\n <button type=\"button\" class=\"demo-trigger\" data-action=\"stimeo--dirty-form#markClean\">\n <%= t(\"components.dirty_form.demo.save\") %>\n </button>\n </div>\n </form>\n</div>\n"
119
119
  },
120
120
  "stimeo--dismissible": {
121
121
  "file": "examples/dismissible/_demo.html.erb",
@@ -155,11 +155,11 @@
155
155
  },
156
156
  "stimeo--form-field": {
157
157
  "file": "examples/form_field/_demo.html.erb",
158
- "source": "<%# Markup for the form-field demo.\n Associates label / description / error with the control via aria-describedby /\n aria-invalid / aria-errormessage. Showing/clearing the error uses the action\n parameter (message) and #clearError. The look (e.g. the invalid border) switches\n on data-stimeo--form-field-invalid and aria-invalid. %>\n<div class=\"form-field-demo\" data-controller=\"stimeo--form-field\"\n data-stimeo--form-field-focus-on-error-value=\"true\">\n <label class=\"form-field-demo__label\" for=\"ff-email\">\n <%= t(\"components.form_field.demo.label\") %>\n </label>\n\n <input class=\"form-field-demo__control\" id=\"ff-email\" type=\"email\" aria-invalid=\"false\"\n placeholder=\"<%= t('components.form_field.demo.placeholder') %>\"\n data-stimeo--form-field-target=\"control\" />\n\n <%# Helper description. On connect it's assigned an id and linked into the\n control's aria-describedby. %>\n <p class=\"form-field-demo__description\" data-stimeo--form-field-target=\"description\">\n <%= t(\"components.form_field.demo.hint\") %>\n </p>\n\n <%# Note clarifying the demo's intent (this part only wires up the error state;\n it doesn't validate or clear the value). %>\n <p class=\"form-field-demo__note\"><%= t(\"components.form_field.demo.note\") %></p>\n\n <%# Error region. role=\"alert\" so it's announced without moving focus. Starts hidden. %>\n <p class=\"form-field-demo__error\" role=\"alert\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n\n <div class=\"form-field-demo__actions\">\n <%# setError reads the message from the action parameter (no consumer JS needed). %>\n <button type=\"button\" class=\"demo-trigger\"\n data-stimeo--form-field-message-param=\"<%= t('components.form_field.demo.error') %>\"\n data-action=\"click->stimeo--form-field#setError\">\n <%= t(\"components.form_field.demo.validate\") %>\n </button>\n <button type=\"button\" class=\"demo-trigger\"\n data-action=\"click->stimeo--form-field#clearError\">\n <%= t(\"components.form_field.demo.clear\") %>\n </button>\n </div>\n\n <%# Helper region that subscribes to the validate event to show status (updated by demo.js). %>\n <p class=\"form-field-demo__status\" id=\"ff-status\" aria-live=\"polite\"\n data-valid-text=\"<%= t('components.form_field.demo.valid') %>\"></p>\n</div>\n"
158
+ "source": "<%# Markup for the form-field demo.\n Associates label / description / error with the control via aria-describedby /\n aria-invalid / aria-errormessage. Showing/clearing the error uses the action\n parameter (message) and #clearError. The look switches on\n data-stimeo--form-field-invalid and aria-invalid. %>\n<div class=\"form-field-demo\" data-controller=\"stimeo--form-field\"\n data-stimeo--form-field-focus-on-error-value=\"true\">\n <label class=\"form-field-demo__label\" for=\"ff-email\">\n <%= t(\"components.form_field.demo.label\") %>\n </label>\n\n <input class=\"form-field-demo__control\" id=\"ff-email\" type=\"email\" aria-invalid=\"false\"\n placeholder=\"<%= t('components.form_field.demo.placeholder') %>\"\n data-stimeo--form-field-target=\"control\" />\n\n <%# Helper description. It is assigned an id and linked into the control's\n aria-describedby. %>\n <p class=\"form-field-demo__description\" data-stimeo--form-field-target=\"description\">\n <%= t(\"components.form_field.demo.hint\") %>\n </p>\n\n <%# Note clarifying the demo's intent (this part only wires up the error state;\n it doesn't validate or clear the value). %>\n <p class=\"form-field-demo__note\"><%= t(\"components.form_field.demo.note\") %></p>\n\n <%# Visual error region. Starts hidden; speech is delegated to the shared\n announcer seated below. %>\n <p class=\"form-field-demo__error\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n\n <div class=\"form-field-demo__actions\">\n <%# setError reads the message from the action parameter (no consumer JS needed). %>\n <button type=\"button\" class=\"demo-trigger\"\n data-stimeo--form-field-message-param=\"<%= t('components.form_field.demo.error') %>\"\n data-action=\"click->stimeo--form-field#setError\">\n <%= t(\"components.form_field.demo.validate\") %>\n </button>\n <button type=\"button\" class=\"demo-trigger\"\n data-action=\"click->stimeo--form-field#clearError\">\n <%= t(\"components.form_field.demo.clear\") %>\n </button>\n </div>\n\n <%# Helper region that subscribes to the validate event and shows the valid\n state only (updated by demo.js). %>\n <p class=\"form-field-demo__status\" id=\"ff-status\" aria-live=\"polite\"\n data-valid-text=\"<%= t('components.form_field.demo.valid') %>\"></p>\n\n <%# Assertive announcement target. It is seated in the accessibility tree ahead\n of the first error, which is what makes the message observable. %>\n <div data-controller=\"stimeo--announcer\">\n <div class=\"visually-hidden\" data-stimeo--announcer-target=\"assertive\"\n aria-live=\"assertive\" aria-atomic=\"true\"></div>\n </div>\n</div>\n"
159
159
  },
160
160
  "stimeo--form-validation": {
161
161
  "file": "examples/form_validation/_demo.html.erb",
162
- "source": "<%# Markup for the form-validation demo.\n stimeo--form-validation orchestrates WHEN native constraint validation runs\n (submit / blur / change / input) and routes each control's validationMessage\n into its stimeo--form-field error region — the ARIA wiring stays in form-field.\n Rules are plain markup attributes (required, type=\"email\"); message text comes\n from the browser. The plan listbox joins through a validatable mirror:\n <input type=\"text\" hidden required> — the hidden ATTRIBUTE, not type=\"hidden\",\n which is barred from constraint validation. The authored novalidate keeps the\n no-JS fallback graceful (the controller preserves it). Valid submissions are\n kept on the page by demo.js so the catalog can show a success status. %>\n<form class=\"form-validation-demo\" action=\"#\" method=\"get\" novalidate\n data-controller=\"stimeo--form-validation\"\n data-stimeo--form-validation-stimeo--form-field-outlet=\".form-validation-demo__field\">\n\n <div class=\"form-validation-demo__field\" data-controller=\"stimeo--form-field\">\n <label class=\"form-validation-demo__label\" for=\"fv-email\">\n <%= t(\"components.form_validation.demo.email_label\") %>\n </label>\n <input class=\"form-validation-demo__control\" id=\"fv-email\" name=\"email\" type=\"email\"\n required placeholder=\"<%= t('components.form_validation.demo.email_placeholder') %>\"\n data-stimeo--form-field-target=\"control\" />\n <p class=\"form-validation-demo__error\" role=\"alert\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n </div>\n\n <%# The listbox keeps its committed value in the mirror below. The form-field\n control is the visible trigger, so aria-invalid and invalid focus land there. %>\n <div class=\"form-validation-demo__field listbox\"\n data-controller=\"stimeo--form-field stimeo--listbox\">\n <span id=\"fv-plan-label\" class=\"form-validation-demo__label\">\n <%= t(\"components.form_validation.demo.plan_label\") %>\n </span>\n <button\n type=\"button\"\n class=\"demo-trigger listbox__trigger\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n aria-expanded=\"false\"\n aria-controls=\"fv-plan-options\"\n aria-labelledby=\"fv-plan-label fv-plan-value\"\n data-stimeo--listbox-target=\"trigger\"\n data-stimeo--form-field-target=\"control\"\n data-action=\"click->stimeo--listbox#toggle keydown->stimeo--listbox#onTriggerKeydown\">\n <span id=\"fv-plan-value\" data-stimeo--listbox-target=\"value\">\n <%= t(\"components.form_validation.demo.plan_placeholder\") %>\n </span>\n <span class=\"listbox__chevron\" aria-hidden=\"true\">▾</span>\n </button>\n <ul id=\"fv-plan-options\" class=\"listbox__list\" role=\"listbox\"\n aria-labelledby=\"fv-plan-label\" hidden data-stimeo--listbox-target=\"list\">\n <% %w[free pro team].each_with_index do |plan, index| %>\n <li id=\"fv-plan-opt-<%= index %>\" class=\"listbox__option\" role=\"option\"\n aria-selected=\"false\" data-value=\"<%= plan %>\"\n data-stimeo--listbox-target=\"option\"\n data-action=\"click->stimeo--listbox#select\">\n <%= t(\"components.form_validation.demo.plans.#{plan}\") %>\n </li>\n <% end %>\n </ul>\n <%# Validatable mirror: the hidden attribute participates in constraint\n validation and submits with the form — type=\"hidden\" would do neither. %>\n <input type=\"text\" hidden required name=\"plan\" data-stimeo--listbox-target=\"field\" />\n <p class=\"form-validation-demo__error\" role=\"alert\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n </div>\n\n <p class=\"form-validation-demo__note\"><%= t(\"components.form_validation.demo.note\") %></p>\n\n <button type=\"submit\" class=\"demo-trigger\">\n <%= t(\"components.form_validation.demo.submit\") %>\n </button>\n\n <%# Status line updated by demo.js; templates ride data-* so the copy stays bilingual. %>\n <p class=\"form-validation-demo__status\" id=\"fv-status\" aria-live=\"polite\"\n data-valid-text=\"<%= t('components.form_validation.demo.valid_status') %>\"\n data-invalid-template=\"<%= t('components.form_validation.demo.invalid_template') %>\"></p>\n</form>\n"
162
+ "source": "<%# Markup for the form-validation demo.\n stimeo--form-validation orchestrates WHEN native constraint validation runs\n (submit / blur / change / input) and routes each control's message into its\n stimeo--form-field visual error — the ARIA wiring stays in form-field, and\n the speech goes to the shared announcer seated at the end of this form.\n Rules are plain markup attributes (required, type=\"email\", plus the\n declarative disallow=\"whitespace\"); the wording comes from localized\n data-stimeo--form-validation-message-* overrides rather than the browser, so\n the catalog reads the same in both locales. The plan listbox joins through a\n validatable mirror: <input type=\"text\" hidden required> — the hidden\n ATTRIBUTE, not type=\"hidden\", which is barred from constraint validation.\n The authored novalidate keeps the no-JS fallback graceful (the controller\n preserves it). Valid submissions are kept on the page by demo.js so the\n catalog can show a success status. %>\n<form class=\"form-validation-demo\" action=\"#\" method=\"get\" novalidate\n data-controller=\"stimeo--form-validation\"\n data-stimeo--form-validation-stimeo--form-field-outlet=\".form-validation-demo__field\">\n\n <div class=\"form-validation-demo__field\" data-controller=\"stimeo--form-field\">\n <label class=\"form-validation-demo__label\" for=\"fv-email\">\n <%= t(\"components.form_validation.demo.email_label\") %>\n </label>\n <input class=\"form-validation-demo__control\" id=\"fv-email\" name=\"email\" type=\"email\"\n required placeholder=\"<%= t('components.form_validation.demo.email_placeholder') %>\"\n data-stimeo--form-validation-message-value-missing=\n \"<%= t('components.form_validation.demo.messages.email_required') %>\"\n data-stimeo--form-validation-message-type-mismatch=\n \"<%= t('components.form_validation.demo.messages.email_type') %>\"\n data-stimeo--form-field-target=\"control\" />\n <%# Visual error only. Speech goes through the shared announcer seated below. %>\n <p class=\"form-validation-demo__error\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n </div>\n\n <div class=\"form-validation-demo__field\" data-controller=\"stimeo--form-field\">\n <label class=\"form-validation-demo__label\" for=\"fv-name\">\n <%= t(\"components.form_validation.demo.name_label\") %>\n </label>\n <input class=\"form-validation-demo__control\" id=\"fv-name\" name=\"name\" type=\"text\"\n required placeholder=\"<%= t('components.form_validation.demo.name_placeholder') %>\"\n data-stimeo--form-validation-disallow=\"whitespace\"\n data-stimeo--form-validation-message-value-missing=\n \"<%= t('components.form_validation.demo.messages.name_required') %>\"\n data-stimeo--form-validation-message-whitespace=\n \"<%= t('components.form_validation.demo.messages.name_whitespace') %>\"\n data-stimeo--form-field-target=\"control\" />\n <p class=\"form-validation-demo__error\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n </div>\n\n <%# The listbox keeps its committed value in the mirror below. The form-field\n control is the visible trigger, so aria-invalid and invalid focus land there. %>\n <div class=\"form-validation-demo__field listbox\"\n data-controller=\"stimeo--form-field stimeo--listbox\">\n <span id=\"fv-plan-label\" class=\"form-validation-demo__label\">\n <%= t(\"components.form_validation.demo.plan_label\") %>\n </span>\n <button\n type=\"button\"\n class=\"demo-trigger listbox__trigger\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n aria-expanded=\"false\"\n aria-controls=\"fv-plan-options\"\n aria-labelledby=\"fv-plan-label fv-plan-value\"\n data-stimeo--listbox-target=\"trigger\"\n data-stimeo--form-field-target=\"control\"\n data-action=\"click->stimeo--listbox#toggle keydown->stimeo--listbox#onTriggerKeydown\">\n <span id=\"fv-plan-value\" data-stimeo--listbox-target=\"value\">\n <%= t(\"components.form_validation.demo.plan_placeholder\") %>\n </span>\n <span class=\"listbox__chevron\" aria-hidden=\"true\">▾</span>\n </button>\n <ul id=\"fv-plan-options\" class=\"listbox__list\" role=\"listbox\"\n aria-labelledby=\"fv-plan-label\" hidden data-stimeo--listbox-target=\"list\">\n <% %w[free pro team].each_with_index do |plan, index| %>\n <li id=\"fv-plan-opt-<%= index %>\" class=\"listbox__option\" role=\"option\"\n aria-selected=\"false\" data-value=\"<%= plan %>\"\n data-stimeo--listbox-target=\"option\"\n data-action=\"click->stimeo--listbox#select\">\n <%= t(\"components.form_validation.demo.plans.#{plan}\") %>\n </li>\n <% end %>\n </ul>\n <%# Validatable mirror: the hidden attribute participates in constraint\n validation and submits with the form — type=\"hidden\" would do neither. %>\n <input type=\"text\" hidden required name=\"plan\"\n data-stimeo--form-validation-message-value-missing=\n \"<%= t('components.form_validation.demo.messages.plan_required') %>\"\n data-stimeo--listbox-target=\"field\" />\n <p class=\"form-validation-demo__error\" hidden\n data-stimeo--form-field-target=\"error\"></p>\n </div>\n\n <p class=\"form-validation-demo__note\"><%= t(\"components.form_validation.demo.note\") %></p>\n\n <button type=\"submit\" class=\"demo-trigger\">\n <%= t(\"components.form_validation.demo.submit\") %>\n </button>\n\n <%# Status line updated by demo.js; templates ride data-* so the copy stays bilingual. %>\n <p class=\"form-validation-demo__status\" id=\"fv-status\" aria-live=\"polite\"\n data-valid-text=\"<%= t('components.form_validation.demo.valid_status') %>\"\n data-invalid-template=\"<%= t('components.form_validation.demo.invalid_template') %>\"></p>\n\n <%# Assertive announcement target for the field errors form-field sets. One\n receiver serves every field, and it is seated in the accessibility tree\n ahead of the first error, which is what makes the message observable. %>\n <div data-controller=\"stimeo--announcer\">\n <div class=\"visually-hidden\" data-stimeo--announcer-target=\"assertive\"\n aria-live=\"assertive\" aria-atomic=\"true\"></div>\n </div>\n</form>\n"
163
163
  },
164
164
  "stimeo--frame-loading": {
165
165
  "file": "examples/frame_loading/_demo.html.erb",
@@ -347,7 +347,7 @@
347
347
  },
348
348
  "stimeo--separator": {
349
349
  "file": "examples/separator/_demo.html.erb",
350
- "source": "<%# Markup for the separator demo.\n The top is a decorative separator (only role=\"separator\" and aria-orientation).\n The bottom is a valued, focusable separator that increments/decrements aria-valuenow\n with the arrow keys and fires stimeo--separator:change. The actual pane-width change\n (demo.js) and line rendering (demo.css) are the consumer's job. %>\n<div class=\"separator-demo\">\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.intro\") %></p>\n <div\n class=\"separator separator--horizontal\"\n role=\"separator\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-orientation-value=\"horizontal\"></div>\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.after\") %></p>\n\n <div class=\"separator-demo__split\">\n <%# The primary pane: demo.css sizes this one from --separator-split, so the\n value the splitter reports is this pane's size. A vertical splitter can\n only take the left pane as primary, because ArrowRight both moves the\n handle right and increases the value. %>\n <div class=\"separator-demo__pane\" id=\"separator-demo-primary\">\n <%= t(\"components.separator.demo.left\") %>\n </div>\n <div\n class=\"separator separator--vertical\"\n role=\"separator\"\n tabindex=\"0\"\n <%# The pattern names the splitter after the primary pane, and that pane\n carries its own visible text, so it is referenced instead of writing a\n separate label. %>\n aria-labelledby=\"separator-demo-primary\"\n aria-controls=\"separator-demo-primary\"\n aria-orientation=\"vertical\"\n aria-valuemin=\"20\"\n aria-valuemax=\"80\"\n aria-valuenow=\"50\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-focusable-value=\"true\"\n data-stimeo--separator-step-value=\"5\"\n data-action=\"keydown->stimeo--separator#onKeydown\"></div>\n <div class=\"separator-demo__pane\"><%= t(\"components.separator.demo.right\") %></div>\n </div>\n\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.after_horizontal\") %></p>\n\n <%# Horizontal, value-bearing separator (top/bottom split). aria-orientation=\"horizontal\"\n scopes the arrows to ArrowUp/ArrowDown. demo.js reuses the same --separator-split var. %>\n <div class=\"separator-demo__split separator-demo__split--stacked\">\n <div class=\"separator-demo__pane\"><%= t(\"components.separator.demo.top\") %></div>\n <div\n class=\"separator separator--horizontal-handle\"\n role=\"separator\"\n tabindex=\"0\"\n aria-labelledby=\"separator-demo-primary-stacked\"\n aria-controls=\"separator-demo-primary-stacked\"\n aria-orientation=\"horizontal\"\n aria-valuemin=\"20\"\n aria-valuemax=\"80\"\n aria-valuenow=\"50\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-focusable-value=\"true\"\n data-stimeo--separator-step-value=\"5\"\n data-action=\"keydown->stimeo--separator#onKeydown\"></div>\n <%# The primary pane here is the bottom one: demo.css sizes the last child\n from --separator-split, which is what lets ArrowUp both move the handle\n up and increase the value. %>\n <div class=\"separator-demo__pane\" id=\"separator-demo-primary-stacked\">\n <%= t(\"components.separator.demo.bottom\") %>\n </div>\n </div>\n</div>\n"
350
+ "source": "<%# Separator demo markup. The first separator is decorative; the other two are\n focusable and value-bearing, dispatching change as the arrow keys adjust them.\n The consumer-owned demo.js and demo.css turn that value into pane sizes and\n the divider's appearance. %>\n<div class=\"separator-demo\">\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.intro\") %></p>\n <div\n class=\"separator separator--horizontal\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-orientation-value=\"horizontal\"></div>\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.after\") %></p>\n\n <div class=\"separator-demo__split\">\n <%# The primary pane. Its width follows --separator-split, so the separator's\n Value reports this pane's size: ArrowRight raises the value while moving\n the vertical divider right. %>\n <div class=\"separator-demo__pane\" id=\"separator-demo-primary\">\n <%= t(\"components.separator.demo.left\") %>\n </div>\n <div\n class=\"separator separator--vertical\"\n <%# Reuse the primary pane's visible text as the separator's name. %>\n aria-labelledby=\"separator-demo-primary\"\n aria-controls=\"separator-demo-primary\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-orientation-value=\"vertical\"\n data-stimeo--separator-focusable-value=\"true\"\n data-stimeo--separator-min-value=\"20\"\n data-stimeo--separator-max-value=\"80\"\n data-stimeo--separator-step-value=\"5\"\n data-stimeo--separator-value-value=\"50\"\n data-action=\"keydown->stimeo--separator#onKeydown\"></div>\n <div class=\"separator-demo__pane\"><%= t(\"components.separator.demo.right\") %></div>\n </div>\n\n <p class=\"separator-demo__text\"><%= t(\"components.separator.demo.after_horizontal\") %></p>\n\n <%# A horizontal separator takes ArrowUp and ArrowDown. demo.js maps the same\n --separator-split custom property onto the top / bottom pane ratio. %>\n <div class=\"separator-demo__split separator-demo__split--stacked\">\n <div class=\"separator-demo__pane\"><%= t(\"components.separator.demo.top\") %></div>\n <div\n class=\"separator separator--horizontal-handle\"\n aria-labelledby=\"separator-demo-primary-stacked\"\n aria-controls=\"separator-demo-primary-stacked\"\n data-controller=\"stimeo--separator\"\n data-stimeo--separator-orientation-value=\"horizontal\"\n data-stimeo--separator-focusable-value=\"true\"\n data-stimeo--separator-min-value=\"20\"\n data-stimeo--separator-max-value=\"80\"\n data-stimeo--separator-step-value=\"5\"\n data-stimeo--separator-value-value=\"50\"\n data-action=\"keydown->stimeo--separator#onKeydown\"></div>\n <%# Here the lower pane is the primary one. Flexing the last child from\n --separator-split makes ArrowUp raise the primary pane's value while\n moving the divider up. %>\n <div class=\"separator-demo__pane\" id=\"separator-demo-primary-stacked\">\n <%= t(\"components.separator.demo.bottom\") %>\n </div>\n </div>\n</div>\n"
351
351
  },
352
352
  "stimeo--sidebar": {
353
353
  "file": "examples/sidebar/_demo.html.erb",
@@ -391,7 +391,7 @@
391
391
  },
392
392
  "stimeo--submit-once": {
393
393
  "file": "examples/submit_once/_demo.html.erb",
394
- "source": "<%# Submit-once demo: the submit button disables and swaps its label on submit, then\n restores. This catalog has no server, so demo.js intercepts the submit and simulates\n a round trip by firing turbo:submit-end after a short delay. The library owns the\n disable / aria-busy / data-submitting / label state; this demo only styles it. %>\n<div class=\"submit-once-demo\">\n <form\n data-controller=\"stimeo--submit-once\"\n data-stimeo--submit-once-busy-label-value=\"<%= t('components.submit_once.demo.busy') %>\"\n data-action=\"submit->stimeo--submit-once#start\">\n <label class=\"submit-once-demo__field\">\n <span><%= t(\"components.submit_once.demo.label\") %></span>\n <input type=\"text\" name=\"title\" class=\"submit-once-demo__input\">\n </label>\n <button type=\"submit\" class=\"demo-trigger\" data-stimeo--submit-once-target=\"submit\">\n <%= t(\"components.submit_once.demo.submit\") %>\n </button>\n </form>\n</div>\n"
394
+ "source": "<%# Submit-once demo. A structured idle / busy target pair keeps the DOM the\n consumer authored while the button is disabled. This catalog has no server,\n so demo.js fires Turbo's start / end lifecycle around a short fake round\n trip. %>\n<% announce_start = t(\"components.submit_once.demo.announce_start\") %>\n<% announce_ready = t(\"components.submit_once.demo.announce_ready\") %>\n<% submit_label = t(\"components.submit_once.demo.submit\") %>\n<% busy_label = t(\"components.submit_once.demo.busy\") %>\n<div class=\"submit-once-demo\">\n <form\n data-controller=\"stimeo--submit-once\"\n data-stimeo--submit-once-announce-text-value=\"<%= announce_start %>\"\n data-stimeo--submit-once-announce-ready-text-value=\"<%= announce_ready %>\">\n <label class=\"submit-once-demo__field\">\n <span><%= t(\"components.submit_once.demo.label\") %></span>\n <input type=\"text\" name=\"title\" class=\"submit-once-demo__input\">\n </label>\n <button type=\"submit\" class=\"demo-trigger\" data-stimeo--submit-once-target=\"submit\">\n <span data-stimeo--submit-once-target=\"idle\"><%= submit_label %></span>\n <span data-stimeo--submit-once-target=\"busy\" hidden><%= busy_label %></span>\n </button>\n </form>\n\n <%# aria-busy exposes state that can be queried; this always-present region is\n what announces the transition itself, without moving focus. %>\n <div data-controller=\"stimeo--announcer\">\n <div class=\"visually-hidden\" data-stimeo--announcer-target=\"polite\"\n aria-live=\"polite\" aria-atomic=\"true\"></div>\n </div>\n</div>\n"
395
395
  },
396
396
  "stimeo--switch": {
397
397
  "file": "examples/switch/_demo.html.erb",