@bridge-ds/core 0.5.1 → 0.6.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.
- package/dist/{component-spec-cvrSvIZj.js → component-spec-GFVEE6Fc.js} +288 -190
- package/dist/component-spec-GFVEE6Fc.js.map +1 -0
- package/dist/component-spec.d.ts +124 -7
- package/dist/explorations.d.ts +2 -0
- package/dist/fidelity-references.d.ts +78 -0
- package/dist/fidelity.d.ts +138 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +557 -283
- package/dist/index.js.map +1 -1
- package/dist/node/component-specs.d.ts +57 -4
- package/dist/node/index.js +1724 -117
- package/dist/node/index.js.map +1 -1
- package/dist/node/spec-css.d.ts +11 -0
- package/dist/rights.d.ts +2 -2
- package/package.json +1 -1
- package/dist/component-spec-cvrSvIZj.js.map +0 -1
package/dist/node/spec-css.d.ts
CHANGED
|
@@ -52,11 +52,22 @@ export interface CssElement {
|
|
|
52
52
|
isRoot: boolean;
|
|
53
53
|
/** A text field: matches input, :disabled, [data-disabled] in the disabled state, ::placeholder. */
|
|
54
54
|
inputLike: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* A Base UI part (`<BaseCheckbox.Root>`, `<BaseSwitch.Thumb>`): carries the data attributes Base UI sets from the
|
|
57
|
+
* component's state (data-checked, data-unchecked, data-indeterminate, data-disabled).
|
|
58
|
+
*/
|
|
59
|
+
baseUi?: boolean | undefined;
|
|
60
|
+
/** Base UI parts: their checked state, the drawn one ("state") or their own (a checked option in a group). */
|
|
61
|
+
checked?: 'state' | 'true' | 'false' | 'mixed' | undefined;
|
|
62
|
+
/** data-* and aria-* attributes the JSX sets for the props drawn (`data-invalid={invalid || undefined}`), as strings. */
|
|
63
|
+
attrs?: Map<string, string> | undefined;
|
|
55
64
|
}
|
|
56
65
|
export interface CssState {
|
|
57
66
|
hover: boolean;
|
|
58
67
|
active: boolean;
|
|
59
68
|
disabled: boolean;
|
|
69
|
+
/** Checked state Base UI parts and native checkboxes carry: undefined when the component has none. */
|
|
70
|
+
checked?: 'true' | 'false' | 'mixed' | undefined;
|
|
60
71
|
}
|
|
61
72
|
export declare const DEFAULT_STATE: CssState;
|
|
62
73
|
/** Splits on `sep` at depth 0 (outside parentheses, brackets and quotes). */
|
package/dist/rights.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ export declare function unreadableShipTeams(policy: ShipPolicy | null | undefine
|
|
|
49
49
|
export declare function canShip(login: string | null | undefined, policy: ShipPolicy | null | undefined): boolean;
|
|
50
50
|
/** "the tech owner", "the design owner", "a design or tech owner". */
|
|
51
51
|
export declare function groupsPhrase(groups: readonly OwnerGroup[]): string;
|
|
52
|
-
/** The sentence a blocked viewer reads: "Only the tech owner can
|
|
53
|
-
/** Teams are named as teams, with their size when known: "Only the tech owner can
|
|
52
|
+
/** The sentence a blocked viewer reads: "Only the tech owner can merge this." */
|
|
53
|
+
/** Teams are named as teams, with their size when known: "Only the tech owner can merge this (@acme/web (4 people))." */
|
|
54
54
|
export declare function whoCanShipSentence(policy: ShipPolicy): string;
|
|
55
55
|
/** Visual before and after: on every pull request that touches tokens or components, or only when asked. */
|
|
56
56
|
export type VisualImpactMode = 'auto' | 'on-demand';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge core: bridge.config.json, DTCG token loading (tiers and layered modes), alias resolution, WCAG contrast, diffs, minimal-diff edits, PR body, the shared risk tier classifier, changesets and a fetch-based GitHub client. No Figma API, no DOM; Node-only helpers (git, reading a product folder) under @bridge-ds/core/node; the adoption audit under @bridge-ds/core/audit.",
|
|
6
6
|
"license": "MIT",
|