@storybook/components 6.4.0-beta.3 → 6.4.0-beta.33

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 (120) hide show
  1. package/dist/cjs/ActionBar/ActionBar.stories.js +7 -7
  2. package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  3. package/dist/cjs/ScrollArea/ScrollArea.stories.js +13 -13
  4. package/dist/cjs/Zoom/Zoom.stories.js +22 -22
  5. package/dist/cjs/bar/bar.js +5 -3
  6. package/dist/cjs/bar/button.js +64 -26
  7. package/dist/cjs/bar/button.stories.js +90 -0
  8. package/dist/cjs/bar/separator.js +4 -2
  9. package/dist/cjs/blocks/ArgsTable/ArgRow.js +18 -6
  10. package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +6 -1
  11. package/dist/cjs/blocks/ArgsTable/ArgsTable.js +125 -32
  12. package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -1
  13. package/dist/cjs/blocks/ColorPalette.stories.js +4 -4
  14. package/dist/cjs/blocks/DocsPage.stories.js +9 -2
  15. package/dist/cjs/blocks/EmptyBlock.stories.js +4 -4
  16. package/dist/cjs/blocks/IconGallery.stories.js +4 -4
  17. package/dist/cjs/blocks/Preview.js +13 -2
  18. package/dist/cjs/blocks/Preview.stories.js +8 -1
  19. package/dist/cjs/blocks/Source.js +57 -8
  20. package/dist/cjs/blocks/Source.stories.js +11 -1
  21. package/dist/cjs/blocks/Story.js +11 -2
  22. package/dist/cjs/blocks/Story.stories.js +11 -1
  23. package/dist/cjs/blocks/Typeset.stories.js +13 -13
  24. package/dist/cjs/brand/StorybookLogo.stories.js +4 -4
  25. package/dist/cjs/icon/icons.js +2 -0
  26. package/dist/cjs/placeholder/placeholder.stories.js +7 -7
  27. package/dist/cjs/tabs/tabs.js +1 -1
  28. package/dist/cjs/tooltip/TooltipNote.js +1 -1
  29. package/dist/cjs/typography/DocumentFormatting.js +15 -4
  30. package/dist/cjs/typography/DocumentWrapper.stories.js +7 -7
  31. package/dist/cjs/typography/link/link.js +2 -2
  32. package/dist/cjs/typography/typography.stories.mdx +75 -0
  33. package/dist/esm/ActionBar/ActionBar.stories.js +4 -4
  34. package/dist/esm/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  35. package/dist/esm/ScrollArea/ScrollArea.stories.js +8 -8
  36. package/dist/esm/Zoom/Zoom.stories.js +15 -15
  37. package/dist/esm/bar/bar.js +5 -3
  38. package/dist/esm/bar/button.js +56 -25
  39. package/dist/esm/bar/button.stories.js +56 -0
  40. package/dist/esm/bar/separator.js +4 -2
  41. package/dist/esm/blocks/ArgsTable/ArgRow.js +15 -5
  42. package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +4 -0
  43. package/dist/esm/blocks/ArgsTable/ArgsTable.js +123 -32
  44. package/dist/esm/blocks/ArgsTable/ArgsTable.stories.js +4 -0
  45. package/dist/esm/blocks/ColorPalette.stories.js +2 -2
  46. package/dist/esm/blocks/DocsPage.stories.js +5 -1
  47. package/dist/esm/blocks/EmptyBlock.stories.js +2 -2
  48. package/dist/esm/blocks/IconGallery.stories.js +2 -2
  49. package/dist/esm/blocks/Preview.js +8 -3
  50. package/dist/esm/blocks/Preview.stories.js +5 -1
  51. package/dist/esm/blocks/Source.js +56 -8
  52. package/dist/esm/blocks/Source.stories.js +7 -0
  53. package/dist/esm/blocks/Story.js +7 -1
  54. package/dist/esm/blocks/Story.stories.js +8 -1
  55. package/dist/esm/blocks/Typeset.stories.js +8 -8
  56. package/dist/esm/brand/StorybookLogo.stories.js +2 -2
  57. package/dist/esm/icon/icons.js +2 -0
  58. package/dist/esm/placeholder/placeholder.stories.js +4 -4
  59. package/dist/esm/tabs/tabs.js +1 -1
  60. package/dist/esm/tooltip/TooltipNote.js +1 -1
  61. package/dist/esm/typography/DocumentFormatting.js +12 -3
  62. package/dist/esm/typography/DocumentWrapper.stories.js +4 -4
  63. package/dist/esm/typography/link/link.js +2 -2
  64. package/dist/esm/typography/typography.stories.mdx +75 -0
  65. package/dist/modern/ActionBar/ActionBar.stories.js +4 -4
  66. package/dist/modern/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  67. package/dist/modern/ScrollArea/ScrollArea.stories.js +8 -8
  68. package/dist/modern/Zoom/Zoom.stories.js +15 -15
  69. package/dist/modern/bar/bar.js +5 -3
  70. package/dist/modern/bar/button.js +48 -24
  71. package/dist/modern/bar/button.stories.js +42 -0
  72. package/dist/modern/bar/separator.js +4 -2
  73. package/dist/modern/blocks/ArgsTable/ArgRow.js +9 -1
  74. package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +4 -0
  75. package/dist/modern/blocks/ArgsTable/ArgsTable.js +99 -12
  76. package/dist/modern/blocks/ArgsTable/ArgsTable.stories.js +4 -0
  77. package/dist/modern/blocks/ColorPalette.stories.js +2 -2
  78. package/dist/modern/blocks/DocsPage.stories.js +3 -1
  79. package/dist/modern/blocks/EmptyBlock.stories.js +2 -2
  80. package/dist/modern/blocks/IconGallery.stories.js +2 -2
  81. package/dist/modern/blocks/Preview.js +6 -3
  82. package/dist/modern/blocks/Preview.stories.js +3 -1
  83. package/dist/modern/blocks/Source.js +44 -0
  84. package/dist/modern/blocks/Source.stories.js +5 -0
  85. package/dist/modern/blocks/Story.js +5 -1
  86. package/dist/modern/blocks/Story.stories.js +6 -1
  87. package/dist/modern/blocks/Typeset.stories.js +8 -8
  88. package/dist/modern/brand/StorybookLogo.stories.js +2 -2
  89. package/dist/modern/icon/icons.js +2 -0
  90. package/dist/modern/placeholder/placeholder.stories.js +4 -4
  91. package/dist/modern/tabs/tabs.js +1 -1
  92. package/dist/modern/tooltip/TooltipNote.js +1 -1
  93. package/dist/modern/typography/DocumentFormatting.js +7 -2
  94. package/dist/modern/typography/DocumentWrapper.stories.js +4 -4
  95. package/dist/modern/typography/link/link.js +2 -2
  96. package/dist/modern/typography/typography.stories.mdx +75 -0
  97. package/dist/ts3.4/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
  98. package/dist/ts3.4/bar/button.d.ts +2 -0
  99. package/dist/ts3.4/blocks/ArgsTable/ArgRow.d.ts +7 -1
  100. package/dist/ts3.4/blocks/ArgsTable/ArgsTable.d.ts +8 -2
  101. package/dist/ts3.4/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
  102. package/dist/ts3.4/blocks/EmptyBlock.d.ts +1 -0
  103. package/dist/ts3.4/blocks/Preview.d.ts +2 -2
  104. package/dist/ts3.4/blocks/Source.d.ts +1 -0
  105. package/dist/ts3.4/blocks/Story.d.ts +4 -3
  106. package/dist/ts3.4/icon/icons.d.ts +2 -0
  107. package/dist/ts3.9/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
  108. package/dist/ts3.9/bar/button.d.ts +2 -0
  109. package/dist/ts3.9/blocks/ArgsTable/ArgRow.d.ts +7 -1
  110. package/dist/ts3.9/blocks/ArgsTable/ArgsTable.d.ts +8 -2
  111. package/dist/ts3.9/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
  112. package/dist/ts3.9/blocks/EmptyBlock.d.ts +1 -0
  113. package/dist/ts3.9/blocks/Preview.d.ts +2 -2
  114. package/dist/ts3.9/blocks/Source.d.ts +1 -0
  115. package/dist/ts3.9/blocks/Story.d.ts +4 -3
  116. package/dist/ts3.9/icon/icons.d.ts +2 -0
  117. package/package.json +5 -5
  118. package/dist/cjs/typography/typography.stories.js +0 -130
  119. package/dist/esm/typography/typography.stories.js +0 -106
  120. package/dist/modern/typography/typography.stories.js +0 -91
@@ -0,0 +1,75 @@
1
+ import { typography } from '@storybook/theming';
2
+ import { Meta, Typeset } from '@storybook/addon-docs';
3
+
4
+ export const fontSizes = ['l3', 'l2', 'l1', 'm3', 'm2', 'm1', 's3', 's2', 's1'].map(
5
+ (size) => `${typography.size[size]}px`
6
+ );
7
+
8
+ export const sampleText =
9
+ 'Storybook is an open source tool for building UI components and pages in isolation. It streamlines UI development, testing, and documentation.';
10
+
11
+ <Meta title="Basics/Typography" />
12
+
13
+ ## Sans-serif
14
+
15
+ ```
16
+ font-family:
17
+ "Nunito Sans",
18
+ -apple-system,
19
+ ".SFNSText-Regular",
20
+ "San Francisco",
21
+ BlinkMacSystemFont,
22
+ "Segoe UI",
23
+ "Helvetica Neue",
24
+ Helvetica,
25
+ Arial,
26
+ sans-serif;
27
+ ```
28
+
29
+ <Typeset
30
+ fontFamily={typography.fonts.base}
31
+ fontSizes={fontSizes}
32
+ fontWeight={typography.weight.regular}
33
+ sampleText={sampleText}
34
+ />
35
+ <Typeset
36
+ fontFamily={typography.fonts.base}
37
+ fontSizes={fontSizes}
38
+ fontWeight={typography.weight.bold}
39
+ sampleText={sampleText}
40
+ />
41
+ <Typeset
42
+ fontFamily={typography.fonts.base}
43
+ fontSizes={fontSizes}
44
+ fontWeight={typography.weight.black}
45
+ sampleText={sampleText}
46
+ />
47
+
48
+ ## Monospace
49
+
50
+ ```
51
+ font-family:
52
+ ui-monospace,
53
+ Menlo,
54
+ Monaco,
55
+ "Roboto Mono",
56
+ "Oxygen Mono",
57
+ "Ubuntu Monospace",
58
+ "Source Code Pro",
59
+ "Droid Sans Mono",
60
+ "Courier New",
61
+ monospace;
62
+ ```
63
+
64
+ <Typeset
65
+ fontFamily={typography.fonts.mono}
66
+ fontSizes={fontSizes}
67
+ fontWeight={typography.weight.regular}
68
+ sampleText={sampleText}
69
+ />
70
+ <Typeset
71
+ fontFamily={typography.fonts.mono}
72
+ fontSizes={fontSizes}
73
+ fontWeight={typography.weight.bold}
74
+ sampleText={sampleText}
75
+ />
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Theme, CSSObject } from '@storybook/theming';
2
3
  export declare const getScrollAreaStyles: (theme: Theme) => CSSObject;
3
4
  declare const GlobalScrollAreaStyles: () => JSX.Element;
@@ -16,10 +16,12 @@ export declare const TabButton: import("@emotion/styled-base").StyledComponent<(
16
16
  }), TabButtonProps, import("@storybook/theming").Theme>;
17
17
  export interface IconButtonProps {
18
18
  active?: boolean;
19
+ disabled?: boolean;
19
20
  }
20
21
  export declare const IconButton: import("@emotion/styled-base").StyledComponent<(Pick<ButtonProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "form" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "href"> & {
21
22
  ref?: ((instance: HTMLButtonElement) => void) | React.RefObject<HTMLButtonElement>;
22
23
  }) | (Pick<LinkProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "type" | "href" | "referrerPolicy" | "media" | "target" | "download" | "hrefLang" | "ping" | "rel"> & {
23
24
  ref?: ((instance: HTMLAnchorElement) => void) | React.RefObject<HTMLAnchorElement>;
24
25
  }), IconButtonProps, import("@storybook/theming").Theme>;
26
+ export declare const IconButtonSkeleton: () => JSX.Element;
25
27
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ArgType, Args } from './types';
3
- export interface ArgRowProps {
3
+ interface ArgRowData {
4
4
  row: ArgType;
5
5
  arg: any;
6
6
  updateArgs?: (args: Args) => void;
@@ -8,4 +8,10 @@ export interface ArgRowProps {
8
8
  expandable?: boolean;
9
9
  initialExpandedArgs?: boolean;
10
10
  }
11
+ interface ArgRowLoading {
12
+ isLoading: true;
13
+ }
14
+ export declare const argRowLoadingData: ArgRowData;
15
+ export declare type ArgRowProps = ArgRowData | ArgRowLoading;
11
16
  export declare const ArgRow: FC<ArgRowProps>;
17
+ export {};
@@ -9,7 +9,7 @@ export declare enum ArgsTableError {
9
9
  ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
10
10
  }
11
11
  export declare type SortType = 'alpha' | 'requiredFirst' | 'none';
12
- export interface ArgsTableRowProps {
12
+ export interface ArgsTableData {
13
13
  rows: ArgTypes;
14
14
  args?: Args;
15
15
  updateArgs?: (args: Args) => void;
@@ -17,14 +17,20 @@ export interface ArgsTableRowProps {
17
17
  compact?: boolean;
18
18
  inAddonPanel?: boolean;
19
19
  initialExpandedArgs?: boolean;
20
+ isLoading?: boolean;
20
21
  sort?: SortType;
21
22
  }
22
23
  export interface ArgsTableErrorProps {
23
24
  error: ArgsTableError;
24
25
  }
25
- export declare type ArgsTableProps = ArgsTableRowProps | ArgsTableErrorProps;
26
+ interface ArgTableLoading {
27
+ isLoading: true;
28
+ }
29
+ export declare const argTableLoadingData: ArgsTableData;
30
+ export declare type ArgsTableProps = ArgsTableData | ArgsTableErrorProps | ArgTableLoading;
26
31
  /**
27
32
  * Display the props for a component as a props table. Each row is a collection of
28
33
  * ArgDefs, usually derived from docgen info for the component.
29
34
  */
30
35
  export declare const ArgsTable: FC<ArgsTableProps>;
36
+ export {};
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const NoControlsWarning: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const EmptyBlock: (props: any) => JSX.Element;
@@ -15,5 +15,5 @@ export interface PreviewProps {
15
15
  * items. The preview also shows the source for the component
16
16
  * as a drop-down.
17
17
  */
18
- declare const Preview: FunctionComponent<PreviewProps>;
19
- export { Preview };
18
+ export declare const Preview: FunctionComponent<PreviewProps>;
19
+ export declare const PreviewSkeleton: () => JSX.Element;
@@ -5,6 +5,7 @@ export declare enum SourceError {
5
5
  SOURCE_UNAVAILABLE = "Oh no! The source is not available."
6
6
  }
7
7
  interface SourceErrorProps {
8
+ isLoading?: boolean;
8
9
  error?: SourceError;
9
10
  }
10
11
  interface SourceCodeProps {
@@ -4,7 +4,7 @@ export declare enum StoryError {
4
4
  NO_STORY = "No component or story to display"
5
5
  }
6
6
  interface CommonProps {
7
- title: string;
7
+ title?: string;
8
8
  height?: string;
9
9
  id: string;
10
10
  }
@@ -19,7 +19,8 @@ declare type StoryProps = InlineStoryProps | IFrameStoryProps;
19
19
  * with configurable height.
20
20
  */
21
21
  declare const Story: FunctionComponent<StoryProps & {
22
- inline: boolean;
22
+ inline?: boolean;
23
23
  error?: StoryError;
24
24
  }>;
25
- export { Story };
25
+ declare const StorySkeleton: () => JSX.Element;
26
+ export { Story, StorySkeleton };
@@ -110,6 +110,8 @@ export declare const icons: {
110
110
  playback: string;
111
111
  stop: string;
112
112
  stopalt: string;
113
+ rewind: string;
114
+ fastforward: string;
113
115
  email: string;
114
116
  link: string;
115
117
  paperclip: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Theme, CSSObject } from '@storybook/theming';
2
3
  export declare const getScrollAreaStyles: (theme: Theme) => CSSObject;
3
4
  declare const GlobalScrollAreaStyles: () => JSX.Element;
@@ -16,10 +16,12 @@ export declare const TabButton: import("@emotion/styled-base").StyledComponent<(
16
16
  }), TabButtonProps, import("@storybook/theming").Theme>;
17
17
  export interface IconButtonProps {
18
18
  active?: boolean;
19
+ disabled?: boolean;
19
20
  }
20
21
  export declare const IconButton: import("@emotion/styled-base").StyledComponent<(Pick<ButtonProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "form" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "href"> & {
21
22
  ref?: ((instance: HTMLButtonElement) => void) | React.RefObject<HTMLButtonElement>;
22
23
  }) | (Pick<LinkProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "type" | "href" | "referrerPolicy" | "media" | "target" | "download" | "hrefLang" | "ping" | "rel"> & {
23
24
  ref?: ((instance: HTMLAnchorElement) => void) | React.RefObject<HTMLAnchorElement>;
24
25
  }), IconButtonProps, import("@storybook/theming").Theme>;
26
+ export declare const IconButtonSkeleton: () => JSX.Element;
25
27
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ArgType, Args } from './types';
3
- export interface ArgRowProps {
3
+ interface ArgRowData {
4
4
  row: ArgType;
5
5
  arg: any;
6
6
  updateArgs?: (args: Args) => void;
@@ -8,4 +8,10 @@ export interface ArgRowProps {
8
8
  expandable?: boolean;
9
9
  initialExpandedArgs?: boolean;
10
10
  }
11
+ interface ArgRowLoading {
12
+ isLoading: true;
13
+ }
14
+ export declare const argRowLoadingData: ArgRowData;
15
+ export declare type ArgRowProps = ArgRowData | ArgRowLoading;
11
16
  export declare const ArgRow: FC<ArgRowProps>;
17
+ export {};
@@ -9,7 +9,7 @@ export declare enum ArgsTableError {
9
9
  ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
10
10
  }
11
11
  export declare type SortType = 'alpha' | 'requiredFirst' | 'none';
12
- export interface ArgsTableRowProps {
12
+ export interface ArgsTableData {
13
13
  rows: ArgTypes;
14
14
  args?: Args;
15
15
  updateArgs?: (args: Args) => void;
@@ -17,14 +17,20 @@ export interface ArgsTableRowProps {
17
17
  compact?: boolean;
18
18
  inAddonPanel?: boolean;
19
19
  initialExpandedArgs?: boolean;
20
+ isLoading?: boolean;
20
21
  sort?: SortType;
21
22
  }
22
23
  export interface ArgsTableErrorProps {
23
24
  error: ArgsTableError;
24
25
  }
25
- export declare type ArgsTableProps = ArgsTableRowProps | ArgsTableErrorProps;
26
+ interface ArgTableLoading {
27
+ isLoading: true;
28
+ }
29
+ export declare const argTableLoadingData: ArgsTableData;
30
+ export declare type ArgsTableProps = ArgsTableData | ArgsTableErrorProps | ArgTableLoading;
26
31
  /**
27
32
  * Display the props for a component as a props table. Each row is a collection of
28
33
  * ArgDefs, usually derived from docgen info for the component.
29
34
  */
30
35
  export declare const ArgsTable: FC<ArgsTableProps>;
36
+ export {};
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const NoControlsWarning: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const EmptyBlock: (props: any) => JSX.Element;
@@ -15,5 +15,5 @@ export interface PreviewProps {
15
15
  * items. The preview also shows the source for the component
16
16
  * as a drop-down.
17
17
  */
18
- declare const Preview: FunctionComponent<PreviewProps>;
19
- export { Preview };
18
+ export declare const Preview: FunctionComponent<PreviewProps>;
19
+ export declare const PreviewSkeleton: () => JSX.Element;
@@ -5,6 +5,7 @@ export declare enum SourceError {
5
5
  SOURCE_UNAVAILABLE = "Oh no! The source is not available."
6
6
  }
7
7
  interface SourceErrorProps {
8
+ isLoading?: boolean;
8
9
  error?: SourceError;
9
10
  }
10
11
  interface SourceCodeProps {
@@ -4,7 +4,7 @@ export declare enum StoryError {
4
4
  NO_STORY = "No component or story to display"
5
5
  }
6
6
  interface CommonProps {
7
- title: string;
7
+ title?: string;
8
8
  height?: string;
9
9
  id: string;
10
10
  }
@@ -19,7 +19,8 @@ declare type StoryProps = InlineStoryProps | IFrameStoryProps;
19
19
  * with configurable height.
20
20
  */
21
21
  declare const Story: FunctionComponent<StoryProps & {
22
- inline: boolean;
22
+ inline?: boolean;
23
23
  error?: StoryError;
24
24
  }>;
25
- export { Story };
25
+ declare const StorySkeleton: () => JSX.Element;
26
+ export { Story, StorySkeleton };
@@ -110,6 +110,8 @@ export declare const icons: {
110
110
  playback: string;
111
111
  stop: string;
112
112
  stopalt: string;
113
+ rewind: string;
114
+ fastforward: string;
113
115
  email: string;
114
116
  link: string;
115
117
  paperclip: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/components",
3
- "version": "6.4.0-beta.3",
3
+ "version": "6.4.0-beta.33",
4
4
  "description": "Core Storybook Components",
5
5
  "keywords": [
6
6
  "storybook"
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@popperjs/core": "^2.6.0",
44
- "@storybook/client-logger": "6.4.0-beta.3",
45
- "@storybook/csf": "0.0.2--canary.6aca495.0",
46
- "@storybook/theming": "6.4.0-beta.3",
44
+ "@storybook/client-logger": "6.4.0-beta.33",
45
+ "@storybook/csf": "0.0.2--canary.87bc651.0",
46
+ "@storybook/theming": "6.4.0-beta.33",
47
47
  "@types/color-convert": "^2.0.0",
48
48
  "@types/overlayscrollbars": "^1.12.0",
49
49
  "@types/react-syntax-highlighter": "11.0.5",
@@ -76,6 +76,6 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "0fc9200599c97a5797c5af886792200cd29e2046",
79
+ "gitHead": "c85171dc319d1d3a31eee1b762f01ba84ae45194",
80
80
  "sbmodern": "dist/modern/index.js"
81
81
  }
@@ -1,130 +0,0 @@
1
- "use strict";
2
-
3
- var _react = _interopRequireDefault(require("react"));
4
-
5
- var _theming = require("@storybook/theming");
6
-
7
- var _react2 = require("@storybook/react");
8
-
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
-
11
- var Info = _theming.styled.div({
12
- marginBottom: '3rem'
13
- });
14
-
15
- var Heading1 = _theming.styled.div(function (_ref) {
16
- var theme = _ref.theme;
17
- return {
18
- fontSize: theme.typography.size.l3
19
- };
20
- });
21
-
22
- var Heading2 = _theming.styled.div(function (_ref2) {
23
- var theme = _ref2.theme;
24
- return {
25
- fontSize: theme.typography.size.l2
26
- };
27
- });
28
-
29
- var Heading3 = _theming.styled.div(function (_ref3) {
30
- var theme = _ref3.theme;
31
- return {
32
- fontSize: theme.typography.size.l1
33
- };
34
- });
35
-
36
- var Heading4 = _theming.styled.div(function (_ref4) {
37
- var theme = _ref4.theme;
38
- return {
39
- fontSize: theme.typography.size.m3
40
- };
41
- });
42
-
43
- var Heading5 = _theming.styled.div(function (_ref5) {
44
- var theme = _ref5.theme;
45
- return {
46
- fontSize: theme.typography.size.m3
47
- };
48
- });
49
-
50
- var Heading6 = _theming.styled.div(function (_ref6) {
51
- var theme = _ref6.theme;
52
- return {
53
- fontSize: theme.typography.size.m1
54
- };
55
- });
56
-
57
- var Heading7 = _theming.styled.div(function (_ref7) {
58
- var theme = _ref7.theme;
59
- return {
60
- fontSize: theme.typography.size.s3
61
- };
62
- });
63
-
64
- var Heading8 = _theming.styled.div(function (_ref8) {
65
- var theme = _ref8.theme;
66
- return {
67
- fontSize: theme.typography.size.s2
68
- };
69
- });
70
-
71
- var Heading9 = _theming.styled.div(function (_ref9) {
72
- var theme = _ref9.theme;
73
- return {
74
- fontSize: theme.typography.size.s1
75
- };
76
- });
77
-
78
- var HeadingWrapper = _theming.styled.div(function (_ref10) {
79
- var theme = _ref10.theme;
80
- return {
81
- fontWeight: theme.typography.weight.black,
82
- '> *': {
83
- marginBottom: '1rem'
84
- }
85
- };
86
- });
87
-
88
- var Type1 = _theming.styled.div(function (_ref11) {
89
- var theme = _ref11.theme;
90
- return {
91
- fontSize: theme.typography.size.s3
92
- };
93
- });
94
-
95
- var Type2 = _theming.styled.div(function (_ref12) {
96
- var theme = _ref12.theme;
97
- return {
98
- fontSize: theme.typography.size.s2
99
- };
100
- });
101
-
102
- var Type3 = _theming.styled.div(function (_ref13) {
103
- var theme = _ref13.theme;
104
- return {
105
- fontSize: theme.typography.size.s1
106
- };
107
- });
108
-
109
- var TypeWrapper = _theming.styled.div({
110
- '> *': {
111
- marginBottom: '1rem'
112
- }
113
- });
114
-
115
- var Wrapper = _theming.styled.div({
116
- display: 'flex',
117
- flexDirection: 'row',
118
- '> *': {
119
- flex: 1,
120
- paddingRight: 40
121
- }
122
- });
123
-
124
- var Page = _theming.styled.div({
125
- padding: '3rem'
126
- });
127
-
128
- (0, _react2.storiesOf)('Basics/typography', module).add('all', function () {
129
- return /*#__PURE__*/_react.default.createElement(Page, null, /*#__PURE__*/_react.default.createElement(Info, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Font-family:"), " \"Nunito sans\", Apple system font ... sans-serif"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "UI text size:"), " 13px"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Document/Markdown text size:"), " 14px"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Code font:"), " ", /*#__PURE__*/_react.default.createElement("code", null, "Operator Mono, Fira Code, Consolas ... monospace")), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Weights:"), " 400(normal), 600(bold), 900(black)")), /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(HeadingWrapper, null, /*#__PURE__*/_react.default.createElement(Heading1, null, "48 heading"), /*#__PURE__*/_react.default.createElement(Heading2, null, "40 heading"), /*#__PURE__*/_react.default.createElement(Heading3, null, "32 heading"), /*#__PURE__*/_react.default.createElement(Heading4, null, "28 heading"), /*#__PURE__*/_react.default.createElement(Heading5, null, "24 heading"), /*#__PURE__*/_react.default.createElement(Heading6, null, "20 heading"), /*#__PURE__*/_react.default.createElement(Heading7, null, "16 heading"), /*#__PURE__*/_react.default.createElement(Heading8, null, "14 heading"), /*#__PURE__*/_react.default.createElement(Heading9, null, "12 heading")), /*#__PURE__*/_react.default.createElement(TypeWrapper, null, /*#__PURE__*/_react.default.createElement(Type1, null, "16 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/_react.default.createElement(Type2, null, "14 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/_react.default.createElement(Type3, null, "12 The quick brown fox jumps over the lazy dog"))));
130
- });