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.
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.18.0",
3
+ "version": "2.18.2",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [
@@ -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.";