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.
- package/CHANGELOG.md +206 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +79 -11
- package/dist/src/assets/css/tokens/light.css +32 -1
- package/dist/src/assets/scss/tokens/_dark.scss +79 -11
- package/dist/src/assets/scss/tokens/_light.scss +32 -1
- package/dist/src/components/Btn/OrigamBtn.vue +2 -14
- package/dist/src/interfaces/Btn/btn.interface.d.ts +7 -10
- package/dist/src/nuxt/module.cjs +2 -1
- package/dist/src/nuxt/module.js +2 -1
- package/dist/src/origam.cjs +1 -2
- package/dist/src/origam.js +1 -2
- package/dist/src/utils/Commons/a11y.util.d.ts +3 -3
- package/dist/src/utils/Commons/color.util.cjs +0 -10
- package/dist/src/utils/Commons/color.util.d.ts +0 -23
- package/dist/src/utils/Commons/color.util.js +0 -11
- package/package.json +1 -1
- package/dist/src/consts/Btn/btn.const.cjs +0 -7
- package/dist/src/consts/Btn/btn.const.d.ts +0 -32
- package/dist/src/consts/Btn/btn.const.js +0 -1
|
@@ -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.";
|