@unpunnyfuns/swatchbook-blocks 0.65.0 → 0.66.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/dist/index.d.mts +25 -13
- package/dist/index.mjs +309 -245
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +124 -126
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -80,6 +80,13 @@ interface ProjectSnapshot {
|
|
|
80
80
|
activeTheme: string;
|
|
81
81
|
activeAxes: Readonly<Record<string, string>>;
|
|
82
82
|
cssVarPrefix: string;
|
|
83
|
+
/**
|
|
84
|
+
* Project-wide baseline for the row-indicator strip from
|
|
85
|
+
* `config.indicators`. Sits between the hard-coded indicator defaults
|
|
86
|
+
* and a block's `indicators` prop. Optional — hand-built snapshots
|
|
87
|
+
* (tests, MDX) omit it and blocks fall back to the bare defaults.
|
|
88
|
+
*/
|
|
89
|
+
indicators?: Readonly<Record<string, boolean>>;
|
|
83
90
|
diagnostics: readonly VirtualDiagnosticShape[];
|
|
84
91
|
css: string;
|
|
85
92
|
/**
|
|
@@ -229,6 +236,18 @@ declare function ColorPalette({
|
|
|
229
236
|
sortDir
|
|
230
237
|
}: ColorPaletteProps): ReactElement;
|
|
231
238
|
//#endregion
|
|
239
|
+
//#region src/indicators/resolve.d.ts
|
|
240
|
+
/** The individually-toggleable indicators in the row strip. `alias` covers the whole alias unit (forward chain + reverse count). */
|
|
241
|
+
type IndicatorName = 'alias' | 'variance' | 'gamut' | 'deprecation' | 'description' | 'composes';
|
|
242
|
+
/**
|
|
243
|
+
* Consumer-facing indicator config for the strip-hosting blocks:
|
|
244
|
+
* - `true` — every indicator on (including the opt-in `description`)
|
|
245
|
+
* - `false` — every indicator off
|
|
246
|
+
* - object — per-key override layered over the defaults
|
|
247
|
+
* - omitted — the defaults
|
|
248
|
+
*/
|
|
249
|
+
type IndicatorsProp = boolean | Partial<Record<IndicatorName, boolean>>;
|
|
250
|
+
//#endregion
|
|
232
251
|
//#region src/ColorTable.d.ts
|
|
233
252
|
interface ColorTableProps {
|
|
234
253
|
/**
|
|
@@ -282,6 +301,8 @@ interface ColorTableProps {
|
|
|
282
301
|
variants?: Record<string, string>;
|
|
283
302
|
/** Disambiguates persisted UI state for two identical-prop tables on a page. */
|
|
284
303
|
id?: string;
|
|
304
|
+
/** Configure the per-row indicator strip. See `IndicatorsProp`. Gamut stays in the Value cell, so it is not part of this strip. */
|
|
305
|
+
indicators?: IndicatorsProp;
|
|
285
306
|
}
|
|
286
307
|
declare function ColorTable({
|
|
287
308
|
filter,
|
|
@@ -291,7 +312,8 @@ declare function ColorTable({
|
|
|
291
312
|
searchable,
|
|
292
313
|
onSelect,
|
|
293
314
|
variants,
|
|
294
|
-
id
|
|
315
|
+
id,
|
|
316
|
+
indicators
|
|
295
317
|
}: ColorTableProps): ReactElement;
|
|
296
318
|
//#endregion
|
|
297
319
|
//#region src/Diagnostics.d.ts
|
|
@@ -606,6 +628,8 @@ interface TokenSnapshot {
|
|
|
606
628
|
readonly diagnostics: readonly VirtualDiagnosticShape[];
|
|
607
629
|
readonly css: string;
|
|
608
630
|
readonly cssVarPrefix: string;
|
|
631
|
+
/** Project-wide baseline for the row-indicator strip from `config.indicators`. */
|
|
632
|
+
readonly indicators: Readonly<Record<string, boolean>>;
|
|
609
633
|
readonly listing: Readonly<Record<string, VirtualTokenListingShape>>;
|
|
610
634
|
readonly tokenGraph: VirtualTokenGraph;
|
|
611
635
|
readonly defaultTuple: Record<string, string>;
|
|
@@ -768,18 +792,6 @@ declare function TokenUsageSnippet({
|
|
|
768
792
|
path
|
|
769
793
|
}: TokenUsageSnippetProps): ReactElement | null;
|
|
770
794
|
//#endregion
|
|
771
|
-
//#region src/indicators/resolve.d.ts
|
|
772
|
-
/** The individually-toggleable indicators in the row strip. `alias` covers the whole alias unit (forward chain + reverse count). */
|
|
773
|
-
type IndicatorName = 'alias' | 'variance' | 'gamut' | 'deprecation' | 'description';
|
|
774
|
-
/**
|
|
775
|
-
* Consumer-facing indicator config for the strip-hosting blocks:
|
|
776
|
-
* - `true` — every indicator on (including the opt-in `description`)
|
|
777
|
-
* - `false` — every indicator off
|
|
778
|
-
* - object — per-key override layered over the defaults
|
|
779
|
-
* - omitted — the defaults
|
|
780
|
-
*/
|
|
781
|
-
type IndicatorsProp = boolean | Partial<Record<IndicatorName, boolean>>;
|
|
782
|
-
//#endregion
|
|
783
795
|
//#region src/TokenNavigator.d.ts
|
|
784
796
|
interface TokenNavigatorProps {
|
|
785
797
|
/** If provided, mount at this dot-path subtree and hide everything outside it. */
|