@unpunnyfuns/swatchbook-blocks 0.20.5 → 0.51.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/index.d.mts +8 -8
- package/dist/index.mjs +115 -169
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +10 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -63,7 +63,7 @@ interface VirtualAxisShape {
|
|
|
63
63
|
description?: string;
|
|
64
64
|
source: 'resolver' | 'layered' | 'synthetic';
|
|
65
65
|
}
|
|
66
|
-
interface
|
|
66
|
+
interface VirtualPermutationShape {
|
|
67
67
|
name: string;
|
|
68
68
|
input: Record<string, string>;
|
|
69
69
|
sources: string[];
|
|
@@ -127,9 +127,9 @@ interface ProjectSnapshot {
|
|
|
127
127
|
/** Axis names suppressed via `config.disabledAxes` — pinned to their defaults, hidden from the toolbar. */
|
|
128
128
|
disabledAxes: readonly string[];
|
|
129
129
|
presets: readonly VirtualPresetShape[];
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
permutations: readonly VirtualPermutationShape[];
|
|
131
|
+
permutationsResolved: Record<string, Record<string, VirtualTokenShape>>;
|
|
132
|
+
activePermutation: string;
|
|
133
133
|
activeAxes: Readonly<Record<string, string>>;
|
|
134
134
|
cssVarPrefix: string;
|
|
135
135
|
diagnostics: readonly VirtualDiagnosticShape[];
|
|
@@ -159,11 +159,11 @@ declare function useOptionalSwatchbookData(): ProjectSnapshot | null;
|
|
|
159
159
|
* `useGlobals` so the same hook works in autodocs / MDX renders where the
|
|
160
160
|
* preview-hooks context isn't available.
|
|
161
161
|
*/
|
|
162
|
-
declare const
|
|
163
|
-
declare function
|
|
162
|
+
declare const PermutationContext: _$react.Context<string>;
|
|
163
|
+
declare function useActivePermutation(): string;
|
|
164
164
|
/**
|
|
165
165
|
* Active axis tuple for the current story/docs render — `Record<axisName,
|
|
166
|
-
* contextName>`. Derived from the same input as {@link
|
|
166
|
+
* contextName>`. Derived from the same input as {@link PermutationContext}; split
|
|
167
167
|
* out so consumers needing per-axis info (toolbar, panel, tuple-aware
|
|
168
168
|
* blocks) don't have to reparse the composed permutation ID.
|
|
169
169
|
*/
|
|
@@ -855,5 +855,5 @@ declare function TypographyScale({
|
|
|
855
855
|
sortDir
|
|
856
856
|
}: TypographyScaleProps): ReactElement;
|
|
857
857
|
//#endregion
|
|
858
|
-
export { AliasChain, type AliasChainProps, AliasedBy, type AliasedByProps, AxesContext, AxisVariance, type AxisVarianceProps, BorderPreview, type BorderPreviewProps, BorderSample, type BorderSampleProps, COLOR_FORMATS, type ColorFormat, ColorFormatContext, ColorPalette, type ColorPaletteProps, ColorTable, type ColorTableProps, CompositeBreakdown, type CompositeBreakdownProps, CompositePreview, type CompositePreviewProps, ConsumerOutput, type ConsumerOutputProps, Diagnostics, type DiagnosticsProps, DimensionBar, type DimensionBarProps, type DimensionKind, DimensionScale, type DimensionScaleProps, FontFamilySample, type FontFamilySampleProps, FontWeightScale, type FontWeightScaleProps, type FormatColorResult, GradientPalette, type GradientPaletteProps, MotionPreview, type MotionPreviewProps, MotionSample, type MotionSampleProps, type MotionSpeed, type NormalizedColor, OpacityScale, type OpacityScaleProps, type ProjectSnapshot, ShadowPreview, type ShadowPreviewProps, ShadowSample, type ShadowSampleProps, StrokeStyleSample, type StrokeStyleSampleProps, SwatchbookContext, SwatchbookProvider, type SwatchbookProviderProps,
|
|
858
|
+
export { AliasChain, type AliasChainProps, AliasedBy, type AliasedByProps, AxesContext, AxisVariance, type AxisVarianceProps, BorderPreview, type BorderPreviewProps, BorderSample, type BorderSampleProps, COLOR_FORMATS, type ColorFormat, ColorFormatContext, ColorPalette, type ColorPaletteProps, ColorTable, type ColorTableProps, CompositeBreakdown, type CompositeBreakdownProps, CompositePreview, type CompositePreviewProps, ConsumerOutput, type ConsumerOutputProps, Diagnostics, type DiagnosticsProps, DimensionBar, type DimensionBarProps, type DimensionKind, DimensionScale, type DimensionScaleProps, FontFamilySample, type FontFamilySampleProps, FontWeightScale, type FontWeightScaleProps, type FormatColorResult, GradientPalette, type GradientPaletteProps, MotionPreview, type MotionPreviewProps, MotionSample, type MotionSampleProps, type MotionSpeed, type NormalizedColor, OpacityScale, type OpacityScaleProps, PermutationContext, type ProjectSnapshot, ShadowPreview, type ShadowPreviewProps, ShadowSample, type ShadowSampleProps, StrokeStyleSample, type StrokeStyleSampleProps, SwatchbookContext, SwatchbookProvider, type SwatchbookProviderProps, TokenDetail, type TokenDetailProps, TokenHeader, type TokenHeaderProps, TokenNavigator, type TokenNavigatorProps, TokenTable, type TokenTableProps, TokenUsageSnippet, type TokenUsageSnippetProps, TypographyScale, type TypographyScaleProps, type VirtualAxisShape as VirtualAxis, type VirtualAxisShape, type VirtualDiagnosticShape as VirtualDiagnostic, type VirtualDiagnosticShape, type VirtualPermutationShape as VirtualPermutation, type VirtualPermutationShape, type VirtualPresetShape as VirtualPreset, type VirtualPresetShape, type VirtualTokenShape as VirtualToken, type VirtualTokenShape, type VirtualTokenListingShape, formatColor, useActiveAxes, useActivePermutation, useColorFormat, useOptionalSwatchbookData, useSwatchbookData };
|
|
859
859
|
//# sourceMappingURL=index.d.mts.map
|