@storybook/components 5.3.13 → 5.3.18

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 (64) hide show
  1. package/dist/blocks/PropsTable/PropRow.js +6 -0
  2. package/dist/form/index.d.ts +2 -2
  3. package/dist/form/input/input.d.ts +2 -2
  4. package/dist/html.d.ts +2 -1
  5. package/dist/html.js +10 -79
  6. package/dist/syntaxhighlighter/syntaxhighlighter.js +6 -6
  7. package/dist/typography/DocumentFormatting.d.ts +24 -0
  8. package/dist/typography/DocumentFormatting.js +88 -2
  9. package/package.json +16 -8
  10. package/ts3.5/dist/ActionBar/ActionBar.d.ts +13 -0
  11. package/ts3.5/dist/Badge/Badge.d.ts +5 -0
  12. package/ts3.5/dist/Button/Button.d.ts +17 -0
  13. package/ts3.5/dist/ScrollArea/ScrollArea.d.ts +12 -0
  14. package/ts3.5/dist/ScrollArea/ScrollAreaStyles.d.ts +2 -0
  15. package/ts3.5/dist/addon-panel/addon-panel.d.ts +6 -0
  16. package/ts3.5/dist/bar/bar.d.ts +12 -0
  17. package/ts3.5/dist/bar/button.d.ts +10 -0
  18. package/ts3.5/dist/bar/separator.d.ts +6 -0
  19. package/ts3.5/dist/blocks/BlockBackgroundStyles.d.ts +2 -0
  20. package/ts3.5/dist/blocks/ColorPalette.d.ts +17 -0
  21. package/ts3.5/dist/blocks/Description.d.ts +9 -0
  22. package/ts3.5/dist/blocks/DocsPage.d.ts +11 -0
  23. package/ts3.5/dist/blocks/EmptyBlock.d.ts +1 -0
  24. package/ts3.5/dist/blocks/IFrame.d.ts +24 -0
  25. package/ts3.5/dist/blocks/IconGallery.d.ts +13 -0
  26. package/ts3.5/dist/blocks/Preview.d.ts +17 -0
  27. package/ts3.5/dist/blocks/PropsTable/PropDef.d.ts +25 -0
  28. package/ts3.5/dist/blocks/PropsTable/PropJsDoc.d.ts +8 -0
  29. package/ts3.5/dist/blocks/PropsTable/PropRow.d.ts +6 -0
  30. package/ts3.5/dist/blocks/PropsTable/PropValue.d.ts +7 -0
  31. package/ts3.5/dist/blocks/PropsTable/PropsTable.d.ts +23 -0
  32. package/ts3.5/dist/blocks/PropsTable/SectionRow.d.ts +5 -0
  33. package/ts3.5/dist/blocks/Source.d.ts +20 -0
  34. package/ts3.5/dist/blocks/Story.d.ts +25 -0
  35. package/ts3.5/dist/blocks/Toolbar.d.ts +15 -0
  36. package/ts3.5/dist/blocks/Typeset.d.ts +12 -0
  37. package/ts3.5/dist/blocks/ZoomContext.d.ts +4 -0
  38. package/ts3.5/dist/blocks/index.d.ts +10 -0
  39. package/ts3.5/dist/brand/StorybookIcon.d.ts +2 -0
  40. package/ts3.5/dist/brand/StorybookLogo.d.ts +5 -0
  41. package/ts3.5/dist/form/field/field.d.ts +5 -0
  42. package/ts3.5/dist/form/index.d.ts +16 -0
  43. package/ts3.5/dist/form/input/input.d.ts +25 -0
  44. package/ts3.5/dist/html.d.ts +3 -0
  45. package/ts3.5/dist/icon/icon.d.ts +6 -0
  46. package/ts3.5/dist/icon/icons.d.ts +155 -0
  47. package/ts3.5/dist/icon/svg.d.ts +6 -0
  48. package/ts3.5/dist/index.d.ts +23 -0
  49. package/ts3.5/dist/placeholder/placeholder.d.ts +2 -0
  50. package/ts3.5/dist/spaced/Spaced.d.ts +12 -0
  51. package/ts3.5/dist/syntaxhighlighter/formatter.d.ts +1 -0
  52. package/ts3.5/dist/syntaxhighlighter/syntaxhighlighter.d.ts +24 -0
  53. package/ts3.5/dist/tabs/tabs.d.ts +51 -0
  54. package/ts3.5/dist/tooltip/ListItem.d.ts +34 -0
  55. package/ts3.5/dist/tooltip/Tooltip.d.ts +21 -0
  56. package/ts3.5/dist/tooltip/TooltipLinkList.d.ts +11 -0
  57. package/ts3.5/dist/tooltip/TooltipMessage.d.ts +11 -0
  58. package/ts3.5/dist/tooltip/TooltipNote.d.ts +5 -0
  59. package/ts3.5/dist/tooltip/WithTooltip.d.ts +23 -0
  60. package/ts3.5/dist/typography/DocumentFormatting.d.ts +54 -0
  61. package/ts3.5/dist/typography/DocumentWrapper.d.ts +2 -0
  62. package/ts3.5/dist/typography/link/link.d.ts +22 -0
  63. package/ts3.5/dist/typography/link/link.test.d.ts +1 -0
  64. package/ts3.5/dist/typography/shared.d.ts +11 -0
@@ -0,0 +1,11 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { LinkWrapperType, ListItemProps } from './ListItem';
3
+ export interface Link extends ListItemProps {
4
+ id: string;
5
+ isGatsby?: boolean;
6
+ }
7
+ export interface TooltipLinkListProps {
8
+ links: Link[];
9
+ LinkWrapper?: LinkWrapperType;
10
+ }
11
+ export declare const TooltipLinkList: FunctionComponent<TooltipLinkListProps>;
@@ -0,0 +1,11 @@
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ export interface TooltipMessageProps {
3
+ title?: ReactNode;
4
+ desc?: ReactNode;
5
+ links?: {
6
+ title: string;
7
+ href?: string;
8
+ onClick?: () => void;
9
+ }[];
10
+ }
11
+ export declare const TooltipMessage: FunctionComponent<TooltipMessageProps>;
@@ -0,0 +1,5 @@
1
+ import { FunctionComponent } from 'react';
2
+ export interface TooltipNoteProps {
3
+ note: string;
4
+ }
5
+ export declare const TooltipNote: FunctionComponent<TooltipNoteProps>;
@@ -0,0 +1,23 @@
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ import { Modifiers, Placement } from 'popper.js';
3
+ interface WithHideFn {
4
+ onHide: () => void;
5
+ }
6
+ export interface WithTooltipPureProps {
7
+ svg?: boolean;
8
+ trigger?: 'none' | 'hover' | 'click' | 'right-click';
9
+ closeOnClick?: boolean;
10
+ placement?: Placement;
11
+ modifiers?: Modifiers;
12
+ hasChrome?: boolean;
13
+ tooltip: ReactNode | ((p: WithHideFn) => ReactNode);
14
+ children: ReactNode;
15
+ tooltipShown?: boolean;
16
+ onVisibilityChange?: (visibility: boolean) => void;
17
+ onDoubleClick?: () => void;
18
+ }
19
+ declare const WithTooltipPure: FunctionComponent<WithTooltipPureProps>;
20
+ declare const WithToolTipState: FunctionComponent<WithTooltipPureProps & {
21
+ startOpen?: boolean;
22
+ }>;
23
+ export { WithTooltipPure, WithToolTipState, WithToolTipState as WithTooltip };
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ export declare const H1: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
3
+ export declare const H2: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
4
+ export declare const H3: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
5
+ export declare const H4: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
6
+ export declare const H5: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
7
+ export declare const H6: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
8
+ export declare const Pre: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}, import("@storybook/theming").Theme>;
9
+ export declare const A: import("@emotion/styled-base").StyledComponent<any, {}, import("@storybook/theming").Theme>;
10
+ export declare const HR: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}, import("@storybook/theming").Theme>;
11
+ export declare const DL: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}, import("@storybook/theming").Theme>;
12
+ export declare const Blockquote: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
13
+ export declare const Table: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}, import("@storybook/theming").Theme>;
14
+ export declare const Img: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}, import("@storybook/theming").Theme>;
15
+ export declare const Div: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
16
+ export declare const Span: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}, import("@storybook/theming").Theme>;
17
+ export declare const LI: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}, import("@storybook/theming").Theme>;
18
+ export declare const UL: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}, import("@storybook/theming").Theme>;
19
+ export declare const OL: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}, import("@storybook/theming").Theme>;
20
+ export declare const P: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}, import("@storybook/theming").Theme>;
21
+ export declare const Code: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
22
+ export declare const TT: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {}, import("@storybook/theming").Theme>;
23
+ /**
24
+ * This is a "local" reset to style subtrees with Storybook styles
25
+ *
26
+ * We can't style individual elements (e.g. h1, h2, etc.) in here
27
+ * because the CSS specificity is too high, so those styles can too
28
+ * easily override child elements that are not expecting it.
29
+ */
30
+ export declare const ResetWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
31
+ export declare const components: {
32
+ h1: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
33
+ h2: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
34
+ h3: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
35
+ h4: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
36
+ h5: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
37
+ h6: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
38
+ pre: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}, import("@storybook/theming").Theme>;
39
+ a: import("@emotion/styled-base").StyledComponent<any, {}, import("@storybook/theming").Theme>;
40
+ hr: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}, import("@storybook/theming").Theme>;
41
+ dl: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}, import("@storybook/theming").Theme>;
42
+ blockquote: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
43
+ table: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}, import("@storybook/theming").Theme>;
44
+ img: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}, import("@storybook/theming").Theme>;
45
+ div: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
46
+ span: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}, import("@storybook/theming").Theme>;
47
+ li: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}, import("@storybook/theming").Theme>;
48
+ ul: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}, import("@storybook/theming").Theme>;
49
+ ol: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}, import("@storybook/theming").Theme>;
50
+ p: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}, import("@storybook/theming").Theme>;
51
+ code: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
52
+ tt: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {}, import("@storybook/theming").Theme>;
53
+ resetwrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
54
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="@emotion/core" />
2
+ export declare const DocumentWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
@@ -0,0 +1,22 @@
1
+ import { AnchorHTMLAttributes, FunctionComponent, MouseEvent } from 'react';
2
+ export interface LinkStylesProps {
3
+ secondary?: boolean;
4
+ tertiary?: boolean;
5
+ nochrome?: boolean;
6
+ inverse?: boolean;
7
+ isButton?: boolean;
8
+ }
9
+ export interface LinkInnerProps {
10
+ withArrow?: boolean;
11
+ containsIcon?: boolean;
12
+ }
13
+ declare type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
14
+ export interface LinkProps extends LinkInnerProps, LinkStylesProps {
15
+ cancel?: boolean;
16
+ className?: string;
17
+ style?: object;
18
+ onClick?: (e: MouseEvent) => void;
19
+ href?: string;
20
+ }
21
+ export declare const Link: FunctionComponent<LinkProps & AProps>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { CSSObject, Theme } from '@storybook/theming';
2
+ export declare const headerCommon: ({ theme }: {
3
+ theme: Theme;
4
+ }) => CSSObject;
5
+ export declare const codeCommon: ({ theme }: {
6
+ theme: Theme;
7
+ }) => CSSObject;
8
+ export declare const withReset: ({ theme }: {
9
+ theme: Theme;
10
+ }) => CSSObject;
11
+ export declare const withMargin: CSSObject;