storybook-addon-pseudo-states 10.0.0-rc.1 → 10.0.0-rc.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +31 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,7 +1,36 @@
1
1
  import * as storybook_internal_csf from 'storybook/internal/csf';
2
2
 
3
3
  declare const PARAM_KEY = "pseudo";
4
+ declare const PSEUDO_STATES: {
5
+ readonly hover: "hover";
6
+ readonly active: "active";
7
+ readonly focusVisible: "focus-visible";
8
+ readonly focusWithin: "focus-within";
9
+ readonly focus: "focus";
10
+ readonly visited: "visited";
11
+ readonly link: "link";
12
+ readonly target: "target";
13
+ };
4
14
 
5
- declare const _default: () => storybook_internal_csf.PreviewAddon<storybook_internal_csf.AddonTypes>;
15
+ type PseudoState = keyof typeof PSEUDO_STATES;
16
+ type PseudoStateConfig = {
17
+ [P in PseudoState]?: boolean | string | string[];
18
+ };
19
+ interface PseudoParameter extends PseudoStateConfig {
20
+ rootSelector?: string;
21
+ }
22
+ interface PseudoParameters {
23
+ /**
24
+ * Pseudo state configuration
25
+ *
26
+ * @see https://storybook.js.org/addons/storybook-addon-pseudo-states
27
+ */
28
+ pseudo?: PseudoParameter;
29
+ }
30
+ interface PseudoTypes {
31
+ parameters: PseudoParameters;
32
+ }
6
33
 
7
- export { PARAM_KEY, _default as default };
34
+ declare const _default: () => storybook_internal_csf.PreviewAddon<PseudoTypes>;
35
+
36
+ export { PARAM_KEY, type PseudoTypes, _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-pseudo-states",
3
- "version": "10.0.0-rc.1",
3
+ "version": "10.0.0-rc.2",
4
4
  "description": "Storybook Pseudo-states addon: Manipulate CSS pseudo states",
5
5
  "keywords": [
6
6
  "storybook",
@@ -61,7 +61,7 @@
61
61
  "typescript": "^5.8.3"
62
62
  },
63
63
  "peerDependencies": {
64
- "storybook": "^10.0.0-rc.1"
64
+ "storybook": "^10.0.0-rc.2"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"