@unpunnyfuns/swatchbook-blocks 0.56.0 → 0.57.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/README.md CHANGED
@@ -19,8 +19,8 @@ Inside Storybook the addon mounts a `SwatchbookProvider` for you:
19
19
  ```mdx
20
20
  import { ColorPalette, TokenTable, TokenDetail } from '@unpunnyfuns/swatchbook-addon';
21
21
 
22
- <ColorPalette filter="color.*" />
23
- <TokenTable filter="color.*" type="color" />
22
+ <ColorPalette filter="color.**" />
23
+ <TokenTable filter="color.**" type="color" />
24
24
  <TokenDetail path="color.accent.bg" />
25
25
  ```
26
26
 
package/dist/index.d.mts CHANGED
@@ -125,7 +125,7 @@ interface ProjectSnapshot {
125
125
  /** Axis names suppressed via `config.disabledAxes` — pinned to their defaults, hidden from the toolbar. */
126
126
  disabledAxes: readonly string[];
127
127
  presets: readonly VirtualPresetShape[];
128
- activePermutation: string;
128
+ activeTheme: string;
129
129
  activeAxes: Readonly<Record<string, string>>;
130
130
  cssVarPrefix: string;
131
131
  diagnostics: readonly VirtualDiagnosticShape[];
@@ -187,11 +187,11 @@ declare function useOptionalSwatchbookData(): ProjectSnapshot | null;
187
187
  * `useGlobals` so the same hook works in autodocs / MDX renders where the
188
188
  * preview-hooks context isn't available.
189
189
  */
190
- declare const PermutationContext: _$react.Context<string>;
191
- declare function useActivePermutation(): string;
190
+ declare const ThemeContext: _$react.Context<string>;
191
+ declare function useActiveTheme(): string;
192
192
  /**
193
193
  * Active axis tuple for the current story/docs render — `Record<axisName,
194
- * contextName>`. Derived from the same input as {@link PermutationContext}; split
194
+ * contextName>`. Derived from the same input as {@link ThemeContext}; split
195
195
  * out so consumers needing per-axis info (toolbar, panel, tuple-aware
196
196
  * blocks) don't have to reparse the composed permutation ID.
197
197
  */
@@ -883,5 +883,5 @@ declare function TypographyScale({
883
883
  sortDir
884
884
  }: TypographyScaleProps): ReactElement;
885
885
  //#endregion
886
- 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 VirtualPresetShape as VirtualPreset, type VirtualPresetShape, type VirtualTokenShape as VirtualToken, type VirtualTokenShape, type VirtualTokenListingShape, formatColor, useActiveAxes, useActivePermutation, useColorFormat, useOptionalSwatchbookData, useSwatchbookData };
886
+ 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, ThemeContext, 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 VirtualPresetShape as VirtualPreset, type VirtualPresetShape, type VirtualTokenShape as VirtualToken, type VirtualTokenShape, type VirtualTokenListingShape, formatColor, useActiveAxes, useActiveTheme, useColorFormat, useOptionalSwatchbookData, useSwatchbookData };
887
887
  //# sourceMappingURL=index.d.mts.map