origam 2.18.0 → 2.18.1

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.
@@ -1,32 +0,0 @@
1
- /*********************************************************
2
- * ADJACENT_EMIT_REPLACEMENT
3
- *
4
- * @description
5
- * Guidance shown when a consumer attaches `click:prepend` / `click:append`
6
- * to `<OrigamBtn>` — both deprecated (#443), removed in v3.0.0.
7
- *
8
- * @description
9
- * They were a documented, story-demonstrated API that NO keyboard user
10
- * could ever reach. The emits fire from a `@click` bound to the
11
- * `origam-btn__prepend` / `origam-btn__append` `<span>`; a keyboard
12
- * activation synthesises its click on the component ROOT, so the event
13
- * never reaches a listener bound to a descendant.
14
- *
15
- * @description
16
- * ⛔ The remedy `useAdjacent` applies on the other ten consumers — turn the
17
- * zone into a real `role="button"` tab stop when a listener is attached —
18
- * is ILLEGAL here, and that is why Btn is the one component that has to
19
- * drop the emit instead of fixing it. Btn's root renders as `<button>` or
20
- * `<a>`, and the HTML content model for both forbids any interactive
21
- * content descendant AND any descendant carrying a `tabindex` attribute.
22
- * A nested `<button type="button">` is invalid at that position for the
23
- * same reason.
24
- *
25
- * @description
26
- * The shape was wrong, not merely the markup: a control that already owns
27
- * one action cannot host a second. Two actions are two buttons — compose
28
- * them with `<origam-btn-group>`. The `prepend` / `append` SLOTS are
29
- * untouched and stay entirely legitimate for decorative or informational
30
- * content.
31
- ********************************************************/
32
- export declare const ADJACENT_EMIT_REPLACEMENT = "It was never reachable by keyboard (the emit fires from a descendant span, and keyboard activation targets the button root), and Btn cannot be given a focusable sub-control because <button>/<a> forbid interactive descendants. Use two buttons in an <origam-btn-group> instead. The prepend/append slots themselves are unaffected.";
@@ -1 +0,0 @@
1
- export const ADJACENT_EMIT_REPLACEMENT = "It was never reachable by keyboard (the emit fires from a descendant span, and keyboard activation targets the button root), and Btn cannot be given a focusable sub-control because <button>/<a> forbid interactive descendants. Use two buttons in an <origam-btn-group> instead. The prepend/append slots themselves are unaffected.";