origam 2.18.0 → 2.18.2
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 +285 -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/components/DataTable/OrigamDataTableRows.vue +23 -13
- 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
|
@@ -492,26 +492,3 @@ export declare function warnDeprecatedProp(component: string, oldProp: string, n
|
|
|
492
492
|
* bullishColor/bearishColor").
|
|
493
493
|
********************************************************/
|
|
494
494
|
export declare function warnUnsupportedProp(component: string, prop: string, reason: string): void;
|
|
495
|
-
/*********************************************************
|
|
496
|
-
* warnDeprecatedEmit
|
|
497
|
-
*
|
|
498
|
-
* @description
|
|
499
|
-
* Warn (once per component / emit, dev builds only) that the consumer
|
|
500
|
-
* attached a listener to an emit scheduled for removal. The emit KEEPS
|
|
501
|
-
* FIRING until the removal version — this announces the break instead of
|
|
502
|
-
* shipping it. `replacement` should name what to do instead, not merely
|
|
503
|
-
* say the emit is going away. Same once-per-key cache as the three
|
|
504
|
-
* warnings above, but for a public EMIT rather than a prop.
|
|
505
|
-
*
|
|
506
|
-
* @description
|
|
507
|
-
* First use case: `click:prepend` / `click:append` on `<OrigamBtn>` (#443).
|
|
508
|
-
* Those two were reachable by MOUSE ONLY — the emit is bound to a
|
|
509
|
-
* descendant span, while keyboard activation synthesises its click on the
|
|
510
|
-
* button root. The `role="button"` + tab-stop remedy `useAdjacent` applies
|
|
511
|
-
* on the other ten consumers is ILLEGAL here: Btn's root is a
|
|
512
|
-
* `<button>`/`<a>`, whose content model forbids both an interactive
|
|
513
|
-
* descendant and any descendant carrying `tabindex`. A control that already
|
|
514
|
-
* owns one action cannot host a second — two actions are two buttons
|
|
515
|
-
* (`origam-btn-group`).
|
|
516
|
-
********************************************************/
|
|
517
|
-
export declare function warnDeprecatedEmit(component: string, emit: string, replacement: string, removalVersion?: string): void;
|
|
@@ -343,14 +343,3 @@ export function warnUnsupportedProp(component, prop, reason) {
|
|
|
343
343
|
`[origam] <${component}> prop "${prop}" has no effect on this component: ${reason}`
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
|
-
const _warnedDeprecatedEmitKeys = /* @__PURE__ */ new Set();
|
|
347
|
-
export function warnDeprecatedEmit(component, emit, replacement, removalVersion = "v3.0.0") {
|
|
348
|
-
if (typeof console === "undefined") return;
|
|
349
|
-
if (!import.meta.env?.DEV) return;
|
|
350
|
-
const key = `${component}::${emit}`;
|
|
351
|
-
if (_warnedDeprecatedEmitKeys.has(key)) return;
|
|
352
|
-
_warnedDeprecatedEmitKeys.add(key);
|
|
353
|
-
console.warn(
|
|
354
|
-
`[origam] <${component}> emit "${emit}" is deprecated and will be removed in ${removalVersion}. ${replacement}`
|
|
355
|
-
);
|
|
356
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ADJACENT_EMIT_REPLACEMENT = void 0;
|
|
7
|
-
const ADJACENT_EMIT_REPLACEMENT = exports.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,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.";
|