@storybook/components 7.0.0-alpha.11 → 7.0.0-alpha.12

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 +21 -11
  2. package/package.json +9 -5
package/dist/index.d.ts CHANGED
@@ -158,15 +158,16 @@ interface SyntaxHighlighterCustomProps {
158
158
  declare type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
159
159
  declare type lineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
160
160
  interface SyntaxHighlighterBaseProps {
161
- language?: string;
162
- style?: any;
161
+ children?: React.ReactNode;
162
+ codeTagProps?: React.HTMLProps<HTMLElement>;
163
163
  customStyle?: any;
164
+ language?: string;
165
+ lineNumberStyle?: any;
164
166
  lineProps?: lineTagPropsFunction | React.HTMLProps<HTMLElement>;
165
- codeTagProps?: React.HTMLProps<HTMLElement>;
166
- useInlineStyles?: boolean;
167
167
  showLineNumbers?: boolean;
168
168
  startingLineNumber?: number;
169
- lineNumberStyle?: any;
169
+ style?: any;
170
+ useInlineStyles?: boolean;
170
171
  }
171
172
  declare type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
172
173
 
@@ -187,15 +188,20 @@ interface ActionBarProps {
187
188
  declare const ActionBar: FunctionComponent<ActionBarProps>;
188
189
 
189
190
  interface SpacedProps {
191
+ children?: react__default.ReactNode;
190
192
  col?: number;
191
193
  row?: number;
192
194
  outer?: number | boolean;
193
195
  }
194
196
  declare const Spaced: FunctionComponent<SpacedProps>;
195
197
 
196
- declare const Placeholder: FunctionComponent;
198
+ interface PlaceholderProps {
199
+ children?: react__default.ReactNode;
200
+ }
201
+ declare const Placeholder: FunctionComponent<PlaceholderProps>;
197
202
 
198
203
  interface ScrollAreaProps {
204
+ children?: react__default.ReactNode;
199
205
  horizontal?: boolean;
200
206
  vertical?: boolean;
201
207
  className?: string;
@@ -245,6 +251,7 @@ declare const ButtonWrapper: _storybook_theming.StyledComponent<react__default.D
245
251
  declare const Button: FunctionComponent<ComponentProps<typeof ButtonWrapper>>;
246
252
 
247
253
  interface FieldProps {
254
+ children?: ReactNode;
248
255
  label?: ReactNode;
249
256
  }
250
257
 
@@ -252,7 +259,7 @@ declare const Form: _storybook_theming.StyledComponent<react.DetailedHTMLProps<r
252
259
  Field: react.FunctionComponent<FieldProps>;
253
260
  Input: _storybook_theming.StyledComponent<any, {
254
261
  size?: "flex" | "auto" | "100%";
255
- align?: "start" | "center" | "end";
262
+ align?: "center" | "end" | "start";
256
263
  valid?: "valid" | "error" | "warn";
257
264
  height?: number;
258
265
  }, _storybook_theming.Theme> & {
@@ -260,7 +267,7 @@ declare const Form: _storybook_theming.StyledComponent<react.DetailedHTMLProps<r
260
267
  };
261
268
  Select: _storybook_theming.StyledComponent<any, Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "height" | "size" | "valid" | "align"> & {
262
269
  size?: "flex" | "auto" | "100%";
263
- align?: "start" | "center" | "end";
270
+ align?: "center" | "end" | "start";
264
271
  valid?: "valid" | "error" | "warn";
265
272
  height?: number;
266
273
  }, _storybook_theming.Theme> & {
@@ -268,7 +275,7 @@ declare const Form: _storybook_theming.StyledComponent<react.DetailedHTMLProps<r
268
275
  };
269
276
  Textarea: _storybook_theming.StyledComponent<any, Omit<react_textarea_autosize.TextareaAutosizeProps, "height" | "size" | "valid" | "align"> & {
270
277
  size?: "flex" | "auto" | "100%";
271
- align?: "start" | "center" | "end";
278
+ align?: "center" | "end" | "start";
272
279
  valid?: "valid" | "error" | "warn";
273
280
  height?: number;
274
281
  }, _storybook_theming.Theme> & {
@@ -502,6 +509,7 @@ interface TabWrapperProps {
502
509
  }
503
510
  declare const TabWrapper: FunctionComponent<TabWrapperProps>;
504
511
  interface TabsProps {
512
+ children?: FuncChildren[] | ReactNode;
505
513
  id?: string;
506
514
  tools?: ReactNode;
507
515
  selected?: string;
@@ -513,9 +521,11 @@ interface TabsProps {
513
521
  bordered?: boolean;
514
522
  }
515
523
  declare const Tabs: FunctionComponent<TabsProps>;
516
- declare type FuncChildren = () => void;
524
+ declare type FuncChildren = ({ active }: {
525
+ active: boolean;
526
+ }) => JSX.Element;
517
527
  interface TabsStateProps {
518
- children: (ReactNode | FuncChildren)[];
528
+ children: FuncChildren[] | ReactNode;
519
529
  initial: string;
520
530
  absolute: boolean;
521
531
  bordered: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/components",
3
- "version": "7.0.0-alpha.11",
3
+ "version": "7.0.0-alpha.12",
4
4
  "description": "Core Storybook Components",
5
5
  "keywords": [
6
6
  "storybook"
@@ -51,9 +51,9 @@
51
51
  "prepare": "esrun ../../scripts/prepare/bundle.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@storybook/client-logger": "7.0.0-alpha.11",
54
+ "@storybook/client-logger": "7.0.0-alpha.12",
55
55
  "@storybook/csf": "0.0.2--canary.4566f4d.1",
56
- "@storybook/theming": "7.0.0-alpha.11",
56
+ "@storybook/theming": "7.0.0-alpha.12",
57
57
  "core-js": "^3.8.2",
58
58
  "memoizerific": "^1.11.3",
59
59
  "qs": "^6.10.0",
@@ -62,12 +62,16 @@
62
62
  "devDependencies": {
63
63
  "@digitak/esrun": "^3.2.2",
64
64
  "@popperjs/core": "^2.6.0",
65
+ "@testing-library/jest-dom": "^5.16.4",
65
66
  "@types/color-convert": "^2.0.0",
67
+ "@types/lodash": "^4.14.182",
66
68
  "@types/overlayscrollbars": "^1.12.0",
69
+ "@types/qs": "^6.9.7",
67
70
  "@types/react-syntax-highlighter": "11.0.5",
71
+ "@types/util-deprecate": "^1.0.0",
68
72
  "color-convert": "^2.0.1",
69
73
  "css": "^3.0.0",
70
- "fast-deep-equal": "^3.1.3",
74
+ "dequal": "^2.0.2",
71
75
  "global": "^4.4.0",
72
76
  "jest": "^26.6.3",
73
77
  "lodash": "^4.17.21",
@@ -97,5 +101,5 @@
97
101
  ],
98
102
  "platform": "neutral"
99
103
  },
100
- "gitHead": "688d338903e84a7e83cb104472e868e734399f65"
104
+ "gitHead": "5070efff271ecb5c26b3eb94c128c4896171cffe"
101
105
  }