storybook 10.1.0-alpha.9 → 10.1.0-beta.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.
Files changed (198) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-SM3UWERX.js → builder-manager-BDAQHXFI.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3C7DZZPX.js +37 -0
  41. package/dist/_node-chunks/chunk-2IIQTGNE.js +6024 -0
  42. package/dist/_node-chunks/chunk-56U5LEMP.js +3043 -0
  43. package/dist/_node-chunks/chunk-7LIRCAQE.js +20 -0
  44. package/dist/_node-chunks/chunk-7RN6TXKP.js +603 -0
  45. package/dist/_node-chunks/chunk-7SJ7PZNL.js +4523 -0
  46. package/dist/_node-chunks/{chunk-HHSTA6QS.js → chunk-BG4RDXG7.js} +8 -10
  47. package/dist/_node-chunks/chunk-CBQKMXLQ.js +18 -0
  48. package/dist/_node-chunks/chunk-CN2IW2KQ.js +1564 -0
  49. package/dist/_node-chunks/chunk-CQMAU6UQ.js +943 -0
  50. package/dist/_node-chunks/{chunk-EBUEXRH5.js → chunk-D6ND3TVY.js} +116 -276
  51. package/dist/_node-chunks/chunk-DC355CYB.js +61 -0
  52. package/dist/_node-chunks/{chunk-SGM3ZCCT.js → chunk-EVK2SBW5.js} +292 -688
  53. package/dist/_node-chunks/chunk-IXWEUXJ2.js +119 -0
  54. package/dist/_node-chunks/{chunk-F6EFOEC7.js → chunk-KVRF22SH.js} +469 -983
  55. package/dist/_node-chunks/chunk-LEDP4QQW.js +919 -0
  56. package/dist/_node-chunks/{chunk-GHIBZRKD.js → chunk-MMVV6DGG.js} +8133 -8887
  57. package/dist/_node-chunks/chunk-O5CGEVRI.js +29 -0
  58. package/dist/_node-chunks/chunk-OZZO56XN.js +299 -0
  59. package/dist/_node-chunks/chunk-POT2EVGD.js +78 -0
  60. package/dist/_node-chunks/chunk-R5YGFSTV.js +3781 -0
  61. package/dist/_node-chunks/chunk-SQCTM2OS.js +23 -0
  62. package/dist/_node-chunks/chunk-UFOFO5H7.js +54 -0
  63. package/dist/_node-chunks/chunk-VBF7ALJF.js +72 -0
  64. package/dist/_node-chunks/chunk-W6MAMTUF.js +70 -0
  65. package/dist/_node-chunks/chunk-WURL4XOT.js +46662 -0
  66. package/dist/_node-chunks/chunk-XGK6MVKR.js +61 -0
  67. package/dist/_node-chunks/chunk-YV3GDSDT.js +765 -0
  68. package/dist/_node-chunks/{chunk-ATDHMMIZ.js → chunk-YWV55YW3.js} +15 -24
  69. package/dist/_node-chunks/dist-KEP4IFRN.js +121 -0
  70. package/dist/_node-chunks/globby-4WUBTDCN.js +3452 -0
  71. package/dist/_node-chunks/lib-JVOEKTYM.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-C5WFYYXR.js +14329 -0
  73. package/dist/_node-chunks/p-limit-LDY632RS.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +601 -1548
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2908 -8518
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11511 -10953
  106. package/dist/manager-api/index.d.ts +1811 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +68 -69
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-H5QSGQLK.js +0 -18
  161. package/dist/_node-chunks/chunk-3THWHQOC.js +0 -61
  162. package/dist/_node-chunks/chunk-45YUOLTU.js +0 -69
  163. package/dist/_node-chunks/chunk-4QSNCPAU.js +0 -64656
  164. package/dist/_node-chunks/chunk-744PQSOU.js +0 -79
  165. package/dist/_node-chunks/chunk-74Z2U7QG.js +0 -1544
  166. package/dist/_node-chunks/chunk-7MB7TFPO.js +0 -1198
  167. package/dist/_node-chunks/chunk-A7GS4RFT.js +0 -697
  168. package/dist/_node-chunks/chunk-BIA3A5UM.js +0 -61
  169. package/dist/_node-chunks/chunk-C5G7CLWX.js +0 -1657
  170. package/dist/_node-chunks/chunk-DLFUKMYJ.js +0 -1531
  171. package/dist/_node-chunks/chunk-EMRGRXKT.js +0 -111
  172. package/dist/_node-chunks/chunk-EX46EHHY.js +0 -420
  173. package/dist/_node-chunks/chunk-F76QKNOJ.js +0 -304
  174. package/dist/_node-chunks/chunk-HDCRUTEF.js +0 -220
  175. package/dist/_node-chunks/chunk-HUYAOIPH.js +0 -90
  176. package/dist/_node-chunks/chunk-IBJZQZJC.js +0 -101
  177. package/dist/_node-chunks/chunk-KZN2RDDT.js +0 -6712
  178. package/dist/_node-chunks/chunk-LYUNFU3F.js +0 -4741
  179. package/dist/_node-chunks/chunk-N44SIS6K.js +0 -28
  180. package/dist/_node-chunks/chunk-NILZM6KR.js +0 -18
  181. package/dist/_node-chunks/chunk-PC4ZRP6W.js +0 -34
  182. package/dist/_node-chunks/chunk-TJNGOQUH.js +0 -4272
  183. package/dist/_node-chunks/chunk-UBSYLHIL.js +0 -1250
  184. package/dist/_node-chunks/chunk-UTCLXPOC.js +0 -1518
  185. package/dist/_node-chunks/chunk-WOXXODXP.js +0 -5029
  186. package/dist/_node-chunks/chunk-XC4MEUA6.js +0 -1586
  187. package/dist/_node-chunks/chunk-YRXXMKRR.js +0 -2256
  188. package/dist/_node-chunks/dist-SL73W244.js +0 -175
  189. package/dist/_node-chunks/globby-ZSHAUQZ5.js +0 -5222
  190. package/dist/_node-chunks/lib-U2VIPUTI.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-ZLHD33JK.js +0 -22017
  192. package/dist/_node-chunks/p-limit-K5BS5MSV.js +0 -168
  193. package/dist/_node-chunks/plugin-5PD4YIUH.js +0 -129
  194. package/dist/_node-chunks/plugin-MONDT2WL.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-EUZJRG3W.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-T4LDXEHE.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -1,7 +1,9 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent, ReactNode, ReactElement, ButtonHTMLAttributes, SyntheticEvent, Component, RefObject, FC, PropsWithChildren, DetailedHTMLProps, RefAttributes, ElementType } from 'react';
2
+ import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent as MouseEvent$1, ReactNode, ReactElement, SyntheticEvent, HTMLAttributes, Component, RefObject, DOMAttributes, FC, PropsWithChildren, ForwardRefExoticComponent, ButtonHTMLAttributes, RefAttributes, ElementType } from 'react';
3
+ import { color, CSSObject, FunctionInterpolation } from 'storybook/theming';
4
+ import { API_KeyCollection } from 'storybook/manager-api';
5
+ import { DecoratorFunction } from 'storybook/internal/csf';
3
6
  import { Addon_RenderOptions } from 'storybook/internal/types';
4
- import { FunctionInterpolation } from 'storybook/theming';
5
7
 
6
8
  interface ComponentSelector {
7
9
  __emotion_styles: any;
@@ -197,10 +199,10 @@ interface LinkProps extends LinkInnerProps, LinkStylesProps, AProps {
197
199
  cancel?: boolean;
198
200
  className?: string;
199
201
  style?: object;
200
- onClick?: (e: MouseEvent) => void;
202
+ onClick?: (e: MouseEvent$1) => void;
201
203
  href?: string;
202
204
  }
203
- declare const Link$1: ({ cancel, children, onClick, withArrow, containsIcon, className, style, ...rest }: LinkProps) => React__default.JSX.Element;
205
+ declare const Link$1: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
204
206
 
205
207
  declare const DocumentWrapper: StyledComponent<{
206
208
  theme?: Theme;
@@ -274,7 +276,7 @@ declare function createCopyToClipboardFunction(): typeof copyUsingClipboardAPI;
274
276
  interface ActionItem {
275
277
  title: string | ReactElement;
276
278
  className?: string;
277
- onClick: (e: MouseEvent<HTMLButtonElement>) => void;
279
+ onClick: (e: MouseEvent$1<HTMLButtonElement>) => void;
278
280
  disabled?: boolean;
279
281
  }
280
282
  interface ActionBarProps {
@@ -282,253 +284,273 @@ interface ActionBarProps {
282
284
  }
283
285
  declare const ActionBar: ({ actionItems, ...props }: ActionBarProps) => React__default.JSX.Element;
284
286
 
285
- type Scope<C = any> = {
286
- [scopeName: string]: React$1.Context<C>[];
287
- } | undefined;
288
- type ScopeHook = (scope: Scope) => {
289
- [__scopeProp: string]: Scope;
287
+ declare const CollapsibleContent: StyledComponent<{
288
+ theme?: Theme;
289
+ as?: React__default.ElementType;
290
+ } & {
291
+ collapsed?: boolean;
292
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
293
+ declare const Collapsible: (({ children, summary, collapsed, disabled, state: providedState, ...props }: {
294
+ children: ReactNode | ((state: ReturnType<typeof useCollapsible>) => ReactNode);
295
+ summary?: ReactNode | ((state: ReturnType<typeof useCollapsible>) => ReactNode);
296
+ collapsed?: boolean;
297
+ disabled?: boolean;
298
+ state?: ReturnType<typeof useCollapsible>;
299
+ } & ComponentProps<typeof CollapsibleContent>) => React__default.JSX.Element) & {
300
+ Content: StyledComponent<{
301
+ theme?: Theme;
302
+ as?: React__default.ElementType;
303
+ } & {
304
+ collapsed?: boolean;
305
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
306
+ };
307
+ declare const useCollapsible: (collapsed?: boolean, disabled?: boolean) => {
308
+ contentId: string;
309
+ isCollapsed: boolean;
310
+ isDisabled: boolean;
311
+ setCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
312
+ toggleCollapsed: (event?: SyntheticEvent<Element, Event>) => void;
313
+ toggleProps: {
314
+ readonly disabled: boolean | undefined;
315
+ readonly onClick: (event?: SyntheticEvent<Element, Event>) => void;
316
+ readonly 'aria-controls': string;
317
+ readonly 'aria-expanded': boolean;
318
+ };
290
319
  };
291
- interface CreateScope {
292
- scopeName: string;
293
- (): ScopeHook;
294
- }
295
320
 
296
- declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "select", "span", "svg", "ul"];
297
- type Primitives = {
298
- [E in (typeof NODES)[number]]: PrimitiveForwardRefComponent<E>;
321
+ declare const CardContent: StyledComponent<{
322
+ theme?: Theme;
323
+ as?: React__default.ElementType;
324
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
325
+ interface CardProps extends ComponentProps<typeof CardContent> {
326
+ outlineAnimation?: 'none' | 'rainbow' | 'spin';
327
+ outlineColor?: keyof typeof color;
328
+ }
329
+ declare const Card: React__default.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React__default.RefAttributes<HTMLDivElement>> & {
330
+ Content: StyledComponent<{
331
+ theme?: Theme;
332
+ as?: React__default.ElementType;
333
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
334
+ Outline: StyledComponent<{
335
+ theme?: Theme;
336
+ as?: React__default.ElementType;
337
+ } & {
338
+ animation?: "none" | "rainbow" | "spin";
339
+ color?: keyof typeof color;
340
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
299
341
  };
300
- type PrimitivePropsWithRef<E extends React$1.ElementType> = React$1.ComponentPropsWithRef<E> & {
301
- asChild?: boolean;
342
+
343
+ type TransitionStatus =
344
+ | 'preEnter'
345
+ | 'entering'
346
+ | 'entered'
347
+ | 'preExit'
348
+ | 'exiting'
349
+ | 'exited'
350
+ | 'unmounted';
351
+
352
+ declare const Listbox: StyledComponent<{
353
+ theme?: Theme;
354
+ as?: React__default.ElementType;
355
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> & {
356
+ Item: StyledComponent<{
357
+ theme?: Theme;
358
+ as?: React__default.ElementType;
359
+ } & {
360
+ active?: boolean;
361
+ transitionStatus?: TransitionStatus;
362
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
363
+ HoverItem: StyledComponent<{
364
+ theme?: Theme;
365
+ as?: React__default.ElementType;
366
+ } & {
367
+ active?: boolean;
368
+ transitionStatus?: TransitionStatus;
369
+ } & React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
370
+ theme?: Theme;
371
+ } & {
372
+ targetId: string;
373
+ }, {}, {}>;
374
+ Button: React__default.ForwardRefExoticComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
375
+ Action: StyledComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
376
+ theme?: Theme;
377
+ }, {}, {}>;
378
+ Text: StyledComponent<{
379
+ theme?: Theme;
380
+ as?: React__default.ElementType;
381
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
382
+ Icon: StyledComponent<{
383
+ theme?: Theme;
384
+ as?: React__default.ElementType;
385
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
302
386
  };
303
- interface PrimitiveForwardRefComponent<E extends React$1.ElementType> extends React$1.ForwardRefExoticComponent<PrimitivePropsWithRef<E>> {
304
- }
305
- declare const Primitive: Primitives;
306
387
 
307
- type PrimitiveDivProps$3 = React$1.ComponentPropsWithoutRef<typeof Primitive.div>;
308
- interface DismissableLayerProps$1 extends PrimitiveDivProps$3 {
309
- /**
310
- * When `true`, hover/focus/click interactions will be disabled on elements outside
311
- * the `DismissableLayer`. Users will need to click twice on outside elements to
312
- * interact with them: once to close the `DismissableLayer`, and again to trigger the element.
313
- */
314
- disableOutsidePointerEvents?: boolean;
315
- /**
316
- * Event handler called when the escape key is down.
317
- * Can be prevented.
318
- */
319
- onEscapeKeyDown?: (event: KeyboardEvent) => void;
320
- /**
321
- * Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
322
- * Can be prevented.
323
- */
324
- onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
325
- /**
326
- * Event handler called when the focus moves outside of the `DismissableLayer`.
327
- * Can be prevented.
328
- */
329
- onFocusOutside?: (event: FocusOutsideEvent) => void;
330
- /**
331
- * Event handler called when an interaction happens outside the `DismissableLayer`.
332
- * Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
333
- * Can be prevented.
334
- */
335
- onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
336
- /**
337
- * Handler called when the `DismissableLayer` should be dismissed
338
- */
339
- onDismiss?: () => void;
340
- }
341
- declare const DismissableLayer: React$1.ForwardRefExoticComponent<DismissableLayerProps$1 & React$1.RefAttributes<HTMLDivElement>>;
342
- type PointerDownOutsideEvent = CustomEvent<{
343
- originalEvent: PointerEvent;
344
- }>;
345
- type FocusOutsideEvent = CustomEvent<{
346
- originalEvent: FocusEvent;
347
- }>;
348
-
349
- type PrimitiveDivProps$2 = React$1.ComponentPropsWithoutRef<typeof Primitive.div>;
350
- interface FocusScopeProps$1 extends PrimitiveDivProps$2 {
351
- /**
352
- * When `true`, tabbing from last item will focus first tabbable
353
- * and shift+tab from first item will focus last tababble.
354
- * @defaultValue false
355
- */
356
- loop?: boolean;
357
- /**
358
- * When `true`, focus cannot escape the focus scope via keyboard,
359
- * pointer, or a programmatic focus.
360
- * @defaultValue false
361
- */
362
- trapped?: boolean;
363
- /**
364
- * Event handler called when auto-focusing on mount.
365
- * Can be prevented.
366
- */
367
- onMountAutoFocus?: (event: Event) => void;
368
- /**
369
- * Event handler called when auto-focusing on unmount.
370
- * Can be prevented.
371
- */
372
- onUnmountAutoFocus?: (event: Event) => void;
373
- }
374
- declare const FocusScope: React$1.ForwardRefExoticComponent<FocusScopeProps$1 & React$1.RefAttributes<HTMLDivElement>>;
388
+ /*
389
+ * Copyright 2020 Adobe. All rights reserved.
390
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
391
+ * you may not use this file except in compliance with the License. You may obtain a copy
392
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
393
+ *
394
+ * Unless required by applicable law or agreed to in writing, software distributed under
395
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
396
+ * OF ANY KIND, either express or implied. See the License for the specific language
397
+ * governing permissions and limitations under the License.
398
+ */
375
399
 
376
- type PrimitiveDivProps$1 = React$1.ComponentPropsWithoutRef<typeof Primitive.div>;
377
- interface PortalProps$1 extends PrimitiveDivProps$1 {
378
- /**
379
- * An optional container where the portaled content should be appended.
380
- */
381
- container?: Element | DocumentFragment | null;
400
+
401
+
402
+ type Placement$1 = 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' |
403
+ 'top' | 'top left' | 'top right' | 'top start' | 'top end' |
404
+ 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' |
405
+ 'right' | 'right top' | 'right bottom' | 'end' | 'end top' | 'end bottom';
406
+
407
+ interface PositionProps {
408
+ /**
409
+ * The placement of the element with respect to its anchor element.
410
+ * @default 'bottom'
411
+ */
412
+ placement?: Placement$1,
413
+ /**
414
+ * The placement padding that should be applied between the element and its
415
+ * surrounding container.
416
+ * @default 12
417
+ */
418
+ containerPadding?: number,
419
+ /**
420
+ * The additional offset applied along the main axis between the element and its
421
+ * anchor element.
422
+ * @default 0
423
+ */
424
+ offset?: number,
425
+ /**
426
+ * The additional offset applied along the cross axis between the element and its
427
+ * anchor element.
428
+ * @default 0
429
+ */
430
+ crossOffset?: number,
431
+ /**
432
+ * Whether the element should flip its orientation (e.g. top to bottom or left to right) when
433
+ * there is insufficient room for it to render completely.
434
+ * @default true
435
+ */
436
+ shouldFlip?: boolean,
437
+ // /**
438
+ // * The element that should be used as the bounding container when calculating container offset
439
+ // * or whether it should flip.
440
+ // */
441
+ // boundaryElement?: Element,
442
+ /** Whether the element is rendered. */
443
+ isOpen?: boolean
444
+ }
445
+
446
+ declare global {
447
+ namespace FormatjsIntl {
448
+ interface Message {
449
+ }
450
+ interface IntlConfig {
451
+ }
452
+ interface Formats {
453
+ }
454
+ }
382
455
  }
383
- declare const Portal$1: React$1.ForwardRefExoticComponent<PortalProps$1 & React$1.RefAttributes<HTMLDivElement>>;
384
456
 
385
- declare const createDialogScope: CreateScope;
386
- interface DialogProps {
387
- children?: React$1.ReactNode;
388
- open?: boolean;
389
- defaultOpen?: boolean;
390
- onOpenChange?(open: boolean): void;
391
- modal?: boolean;
457
+ interface TextProps extends HTMLAttributes<HTMLElement> {
458
+ elementType?: string;
392
459
  }
393
- declare const Dialog: React$1.FC<DialogProps>;
394
- type PrimitiveButtonProps = React$1.ComponentPropsWithoutRef<typeof Primitive.button>;
395
- interface DialogTriggerProps extends PrimitiveButtonProps {
460
+ interface HeadingProps extends HTMLAttributes<HTMLElement> {
461
+ level?: number;
396
462
  }
397
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
398
- type PortalProps = React$1.ComponentPropsWithoutRef<typeof Portal$1>;
399
- interface DialogPortalProps {
463
+
464
+ declare module 'react' {
465
+ interface ReactElement {
466
+ $$typeof?: symbol | string;
467
+ }
468
+ }
469
+ interface SlotProps extends React$1.HTMLAttributes<HTMLElement> {
400
470
  children?: React$1.ReactNode;
401
- /**
402
- * Specify a container element to portal the content into.
403
- */
404
- container?: PortalProps['container'];
405
- /**
406
- * Used to force mounting when more control is needed. Useful when
407
- * controlling animation with React animation libraries.
408
- */
409
- forceMount?: true;
410
471
  }
411
- declare const DialogPortal: React$1.FC<DialogPortalProps>;
412
- interface DialogOverlayProps extends DialogOverlayImplProps {
472
+ declare const Slot: React$1.ForwardRefExoticComponent<SlotProps & React$1.RefAttributes<HTMLElement>>;
473
+
474
+ interface ButtonProps extends Omit<ComponentProps<typeof StyledButton>, 'as'> {
475
+ as?: ComponentProps<typeof StyledButton>['as'] | typeof Slot;
476
+ asChild?: boolean;
413
477
  /**
414
- * Used to force mounting when more control is needed. Useful when
415
- * controlling animation with React animation libraries.
478
+ * A concise action label for the button announced by screen readers. Needed for buttons without
479
+ * text or with text that relies on visual cues to be understood. Pass false to indicate that the
480
+ * Button's content is already accessible to all. When a string is passed, it is also used as the
481
+ * default tooltip text.
416
482
  */
417
- forceMount?: true;
418
- }
419
- declare const DialogOverlay: React$1.ForwardRefExoticComponent<DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>>;
420
- type PrimitiveDivProps = React$1.ComponentPropsWithoutRef<typeof Primitive.div>;
421
- interface DialogOverlayImplProps extends PrimitiveDivProps {
422
- }
423
- interface DialogContentProps extends DialogContentTypeProps {
483
+ ariaLabel?: string | false;
424
484
  /**
425
- * Used to force mounting when more control is needed. Useful when
426
- * controlling animation with React animation libraries.
485
+ * An optional tooltip to display when the Button is hovered. If the Button has no text content,
486
+ * consider making this the same as the aria-label.
427
487
  */
428
- forceMount?: true;
429
- }
430
- declare const DialogContent: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
431
- interface DialogContentTypeProps extends Omit<DialogContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
432
- }
433
- type DismissableLayerProps = React$1.ComponentPropsWithoutRef<typeof DismissableLayer>;
434
- type FocusScopeProps = React$1.ComponentPropsWithoutRef<typeof FocusScope>;
435
- interface DialogContentImplProps extends Omit<DismissableLayerProps, 'onDismiss'> {
488
+ tooltip?: string;
436
489
  /**
437
- * When `true`, focus cannot escape the `Content` via keyboard,
438
- * pointer, or a programmatic focus.
439
- * @defaultValue false
490
+ * Only use this flag when tooltips on button interfere with other keyboard interactions, like
491
+ * when building a custom select or menu button. Disables tooltips from the `tooltip`, `shortcut`
492
+ * and `ariaLabel` props.
440
493
  */
441
- trapFocus?: FocusScopeProps['trapped'];
494
+ disableAllTooltips?: boolean;
442
495
  /**
443
- * Event handler called when auto-focusing on open.
444
- * Can be prevented.
496
+ * A more thorough description of what the Button does, provided to non-sighted users through an
497
+ * aria-describedby attribute. Use sparingly for buttons that trigger complex actions.
445
498
  */
446
- onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
499
+ ariaDescription?: string;
447
500
  /**
448
- * Event handler called when auto-focusing on close.
449
- * Can be prevented.
501
+ * An optional keyboard shortcut to enable the button. Will be displayed in the tooltip and passed
502
+ * to aria-keyshortcuts for assistive technologies. The binding of the shortcut and action is
503
+ * managed globally in the manager's shortcuts module.
450
504
  */
451
- onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
452
- }
453
- type PrimitiveHeading2Props = React$1.ComponentPropsWithoutRef<typeof Primitive.h2>;
454
- interface DialogTitleProps extends PrimitiveHeading2Props {
455
- }
456
- declare const DialogTitle: React$1.ForwardRefExoticComponent<DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
457
- type PrimitiveParagraphProps = React$1.ComponentPropsWithoutRef<typeof Primitive.p>;
458
- interface DialogDescriptionProps extends PrimitiveParagraphProps {
459
- }
460
- declare const DialogDescription: React$1.ForwardRefExoticComponent<DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
461
- interface DialogCloseProps extends PrimitiveButtonProps {
505
+ shortcut?: API_KeyCollection;
462
506
  }
463
- declare const DialogClose: React$1.ForwardRefExoticComponent<DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
464
- declare const WarningProvider: React$1.FC<{
465
- contentName: string;
466
- titleName: string;
467
- docsSlug: string;
507
+ declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
508
+ declare const StyledButton: StyledComponent<{
509
+ theme?: Theme;
510
+ as?: React__default.ElementType;
468
511
  } & {
469
- children: React$1.ReactNode;
470
- }>;
471
- declare const Root: React$1.FC<DialogProps>;
472
- declare const Trigger: React$1.ForwardRefExoticComponent<DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
473
- declare const Portal: React$1.FC<DialogPortalProps>;
474
- declare const Overlay$1: React$1.ForwardRefExoticComponent<DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>>;
475
- declare const Content$1: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
476
- declare const Title$1: React$1.ForwardRefExoticComponent<DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
477
- declare const Description$1: React$1.ForwardRefExoticComponent<DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
478
- declare const Close: React$1.ForwardRefExoticComponent<DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
479
-
480
- declare const Dialog$1_Close: typeof Close;
481
- declare const Dialog$1_Dialog: typeof Dialog;
482
- declare const Dialog$1_DialogClose: typeof DialogClose;
483
- type Dialog$1_DialogCloseProps = DialogCloseProps;
484
- declare const Dialog$1_DialogContent: typeof DialogContent;
485
- type Dialog$1_DialogContentProps = DialogContentProps;
486
- declare const Dialog$1_DialogDescription: typeof DialogDescription;
487
- type Dialog$1_DialogDescriptionProps = DialogDescriptionProps;
488
- declare const Dialog$1_DialogOverlay: typeof DialogOverlay;
489
- type Dialog$1_DialogOverlayProps = DialogOverlayProps;
490
- declare const Dialog$1_DialogPortal: typeof DialogPortal;
491
- type Dialog$1_DialogPortalProps = DialogPortalProps;
492
- type Dialog$1_DialogProps = DialogProps;
493
- declare const Dialog$1_DialogTitle: typeof DialogTitle;
494
- type Dialog$1_DialogTitleProps = DialogTitleProps;
495
- declare const Dialog$1_DialogTrigger: typeof DialogTrigger;
496
- type Dialog$1_DialogTriggerProps = DialogTriggerProps;
497
- declare const Dialog$1_Portal: typeof Portal;
498
- declare const Dialog$1_Root: typeof Root;
499
- declare const Dialog$1_Trigger: typeof Trigger;
500
- declare const Dialog$1_WarningProvider: typeof WarningProvider;
501
- declare const Dialog$1_createDialogScope: typeof createDialogScope;
502
- declare namespace Dialog$1 {
503
- export { Dialog$1_Close as Close, Content$1 as Content, Description$1 as Description, Dialog$1_Dialog as Dialog, Dialog$1_DialogClose as DialogClose, type Dialog$1_DialogCloseProps as DialogCloseProps, Dialog$1_DialogContent as DialogContent, type Dialog$1_DialogContentProps as DialogContentProps, Dialog$1_DialogDescription as DialogDescription, type Dialog$1_DialogDescriptionProps as DialogDescriptionProps, Dialog$1_DialogOverlay as DialogOverlay, type Dialog$1_DialogOverlayProps as DialogOverlayProps, Dialog$1_DialogPortal as DialogPortal, type Dialog$1_DialogPortalProps as DialogPortalProps, type Dialog$1_DialogProps as DialogProps, Dialog$1_DialogTitle as DialogTitle, type Dialog$1_DialogTitleProps as DialogTitleProps, Dialog$1_DialogTrigger as DialogTrigger, type Dialog$1_DialogTriggerProps as DialogTriggerProps, Overlay$1 as Overlay, Dialog$1_Portal as Portal, Dialog$1_Root as Root, Title$1 as Title, Dialog$1_Trigger as Trigger, Dialog$1_WarningProvider as WarningProvider, Dialog$1_createDialogScope as createDialogScope };
504
- }
505
-
506
- interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement> {
507
- asChild?: boolean;
508
- size?: 'small' | 'medium';
509
- padding?: 'small' | 'medium' | 'none';
510
- variant?: 'outline' | 'solid' | 'ghost';
511
- onClick?: (event: SyntheticEvent) => void;
512
- disabled?: boolean;
512
+ size?: "small" | "medium";
513
+ padding?: "small" | "medium" | "none";
514
+ variant?: "outline" | "solid" | "ghost";
513
515
  active?: boolean;
514
- animation?: 'none' | 'rotate360' | 'glow' | 'jiggle';
515
- }
516
- declare const Button: React__default.ForwardRefExoticComponent<ButtonProps$1 & React__default.RefAttributes<HTMLButtonElement>>;
517
-
518
- declare const IconButton: React__default.ForwardRefExoticComponent<ButtonProps$1 & React__default.RefAttributes<HTMLButtonElement>>;
516
+ disabled?: boolean;
517
+ readOnly?: boolean;
518
+ animating?: boolean;
519
+ animation?: "none" | "rotate360" | "glow" | "jiggle";
520
+ }, React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
521
+ declare const IconButton: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
519
522
 
520
523
  declare const Overlay: StyledComponent<{
521
524
  theme?: Theme;
522
525
  as?: React__default.ElementType;
526
+ } & {
527
+ $status?: TransitionStatus;
528
+ $transitionDuration?: number;
523
529
  }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
524
530
  declare const Container: StyledComponent<{
525
531
  theme?: Theme;
526
532
  as?: React__default.ElementType;
527
533
  } & {
528
- width?: number;
529
- height?: number;
534
+ $variant: "dialog" | "bottom-drawer";
535
+ $status?: TransitionStatus;
536
+ $transitionDuration?: number;
537
+ width?: number | string;
538
+ height?: number | string;
530
539
  }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
531
- declare const CloseButton: (props: React__default.ComponentProps<typeof IconButton>) => React__default.JSX.Element;
540
+ interface CloseProps {
541
+ asChild?: boolean;
542
+ children?: React__default.ReactElement<{
543
+ onClick?: (event: React__default.MouseEvent) => void;
544
+ }, string | React__default.JSXElementConstructor<{
545
+ onClick?: (event: React__default.MouseEvent) => void;
546
+ }>>;
547
+ onClick?: (event: React__default.MouseEvent) => void;
548
+ }
549
+ declare const Close: ({ asChild, children, onClick, ...props }: CloseProps) => React__default.JSX.Element;
550
+ declare const Dialog: {
551
+ Close: () => React__default.JSX.Element;
552
+ };
553
+ declare const CloseButton: ({ ariaLabel, ...props }: React__default.ComponentProps<typeof Button>) => React__default.JSX.Element;
532
554
  declare const Content: StyledComponent<{
533
555
  theme?: Theme;
534
556
  as?: React__default.ElementType;
@@ -541,11 +563,14 @@ declare const Col: StyledComponent<{
541
563
  theme?: Theme;
542
564
  as?: React__default.ElementType;
543
565
  }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
544
- declare const Header: (props: React__default.ComponentProps<typeof Col>) => React__default.JSX.Element;
545
- declare const Title: StyledComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement> & {
566
+ declare const Header: ({ hasClose, onClose, ...props }: React__default.ComponentProps<typeof Col> & {
567
+ hasClose?: boolean;
568
+ onClose?: () => void;
569
+ }) => React__default.JSX.Element;
570
+ declare const Title: StyledComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement> & {
546
571
  theme?: Theme;
547
572
  }, {}, {}>;
548
- declare const Description: StyledComponent<DialogDescriptionProps & React__default.RefAttributes<HTMLParagraphElement> & {
573
+ declare const Description: StyledComponent<TextProps & React__default.RefAttributes<HTMLElement> & {
549
574
  theme?: Theme;
550
575
  }, {}, {}>;
551
576
  declare const Actions: StyledComponent<{
@@ -561,35 +586,61 @@ declare const Error$1: ({ children, ...props }: {
561
586
  } & ComponentProps<typeof ErrorWrapper>) => React__default.JSX.Element;
562
587
 
563
588
  declare const Components_Actions: typeof Actions;
589
+ declare const Components_Close: typeof Close;
564
590
  declare const Components_CloseButton: typeof CloseButton;
565
591
  declare const Components_Col: typeof Col;
566
592
  declare const Components_Container: typeof Container;
567
593
  declare const Components_Content: typeof Content;
568
594
  declare const Components_Description: typeof Description;
595
+ declare const Components_Dialog: typeof Dialog;
569
596
  declare const Components_ErrorWrapper: typeof ErrorWrapper;
570
597
  declare const Components_Header: typeof Header;
571
598
  declare const Components_Overlay: typeof Overlay;
572
599
  declare const Components_Row: typeof Row;
573
600
  declare const Components_Title: typeof Title;
574
601
  declare namespace Components {
575
- export { Components_Actions as Actions, Components_CloseButton as CloseButton, Components_Col as Col, Components_Container as Container, Components_Content as Content, Components_Description as Description, Error$1 as Error, Components_ErrorWrapper as ErrorWrapper, Components_Header as Header, Components_Overlay as Overlay, Components_Row as Row, Components_Title as Title };
602
+ export { Components_Actions as Actions, Components_Close as Close, Components_CloseButton as CloseButton, Components_Col as Col, Components_Container as Container, Components_Content as Content, Components_Description as Description, Components_Dialog as Dialog, Error$1 as Error, Components_ErrorWrapper as ErrorWrapper, Components_Header as Header, Components_Overlay as Overlay, Components_Row as Row, Components_Title as Title };
576
603
  }
577
604
 
578
- type ContentProps = React__default.ComponentProps<typeof Content$1>;
579
- interface ModalProps extends Omit<React__default.ComponentProps<typeof Root>, 'children'> {
580
- width?: number;
581
- height?: number;
582
- children: React__default.ReactNode;
583
- onEscapeKeyDown?: ContentProps['onEscapeKeyDown'];
584
- onInteractOutside?: ContentProps['onInteractOutside'];
585
- className?: string;
605
+ interface ModalProps extends HTMLAttributes<HTMLDivElement> {
586
606
  container?: HTMLElement;
587
607
  portalSelector?: string;
588
- }
589
- declare function BaseModal({ children, width, height, onEscapeKeyDown, onInteractOutside, className, container, portalSelector, ...rootProps }: ModalProps): React__default.JSX.Element;
590
- declare const Modal: typeof BaseModal & typeof Components & {
591
- Dialog: typeof Dialog$1;
592
- };
608
+ /** Width of the Modal. Defaults to `740`. */
609
+ width?: number | string;
610
+ /** Height of the Modal. Defaults to `auto`. */
611
+ height?: number | string;
612
+ /** Modal content. */
613
+ children: React__default.ReactNode;
614
+ /** Additional class names for the Modal. */
615
+ className?: string;
616
+ /** Controlled state: whether the Modal is currently open. */
617
+ open?: boolean;
618
+ /** Uncontrolled state: whether the Modal is initially open on the first. */
619
+ defaultOpen?: boolean;
620
+ /** @deprecated Use `dismissOnEscape` instead. */
621
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
622
+ /** @deprecated Use `dismissOnInteractOutside` instead. */
623
+ onInteractOutside?: (event: FocusEvent | MouseEvent | TouchEvent) => void;
624
+ /** Handler called when visibility of the Modal changes. */
625
+ onOpenChange?: (isOpen: boolean) => void;
626
+ /** The accessible name for the modal. */
627
+ ariaLabel?: string;
628
+ /** Whether the modal can be dismissed by clicking outside. Defaults to `true`. */
629
+ dismissOnClickOutside?: boolean;
630
+ /** Whether the modal can be dismissed by pressing Escape. Defaults to `true`. */
631
+ dismissOnEscape?: boolean;
632
+ /** Transition duration, so we can slow down transitions on mobile. */
633
+ transitionDuration?: number;
634
+ /** The max dimensions, initial position and animations of the Modal. Defaults to 'dialog'. */
635
+ variant?: 'dialog' | 'bottom-drawer';
636
+ }
637
+ declare function BaseModal({ container, portalSelector, children, width, height, ariaLabel, dismissOnClickOutside, dismissOnEscape, className, open, onEscapeKeyDown, onInteractOutside, onOpenChange, defaultOpen, transitionDuration, variant, ...props }: ModalProps): React__default.JSX.Element | null;
638
+ declare const Modal: typeof BaseModal & typeof Components;
639
+ /**
640
+ * Storybook decorator to help render Modals in stories with multiple theme layouts. Internal to
641
+ * Storybook. Use at your own risk.
642
+ */
643
+ declare const ModalDecorator: DecoratorFunction;
593
644
 
594
645
  interface SpacedProps {
595
646
  children?: React__default.ReactNode;
@@ -611,6 +662,7 @@ interface ScrollAreaProps {
611
662
  className?: string;
612
663
  offset?: number;
613
664
  scrollbarSize?: number;
665
+ scrollPadding?: number | string;
614
666
  }
615
667
  declare const ScrollArea: React__default.ForwardRefExoticComponent<ScrollAreaProps & React__default.RefAttributes<HTMLDivElement>>;
616
668
 
@@ -646,6 +698,63 @@ interface ErrorFormatterProps {
646
698
  }
647
699
  declare const ErrorFormatter: ({ error }: ErrorFormatterProps) => React__default.JSX.Element;
648
700
 
701
+ interface ToggleButtonProps extends ButtonProps {
702
+ /** Whether the ToggleButton is currently pressed or not. */
703
+ pressed: boolean;
704
+ }
705
+ declare const ToggleButton: React__default.ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
706
+
707
+ interface Option {
708
+ /** Optional rendering of the option. */
709
+ children?: React__default.ReactNode;
710
+ title: string;
711
+ description?: string;
712
+ icon?: React__default.ReactNode;
713
+ value: string;
714
+ }
715
+
716
+ interface SelectProps extends Omit<ButtonProps, 'onClick' | 'onChange' | 'onSelect' | 'variant'> {
717
+ size?: 'small' | 'medium';
718
+ padding?: 'small' | 'medium' | 'none';
719
+ /**
720
+ * Whether multiple options can be selected. In single select mode, this component acts like a
721
+ * HTML select element where the selected option follows focus. In multi select mode, it acts like
722
+ * a combobox and does not autoclose on select or autoselect the focused option.
723
+ */
724
+ multiSelect?: boolean;
725
+ /**
726
+ * Mandatory label that explains what is being selected. Do not include "change", "toggle" or
727
+ * "select" verbs in the label. Instead, only describe the type of content with a noun.
728
+ */
729
+ ariaLabel: string;
730
+ /**
731
+ * Label for the Select component. In single-select mode, is replaced by the currently selected
732
+ * option's title.
733
+ */
734
+ children?: React__default.ReactNode;
735
+ /**
736
+ * Icon shown next to the Select's children, still displayed when a value is selected and Select
737
+ * shows that value instead of children.
738
+ */
739
+ icon?: React__default.ReactNode;
740
+ /** Whether the Select is currently disabled. */
741
+ disabled?: boolean;
742
+ /** Options available in the select. */
743
+ options: Option[];
744
+ /** IDs of the preselected options. */
745
+ defaultOptions?: string | string[];
746
+ /** Whether the Select should render open. */
747
+ defaultOpen?: boolean;
748
+ /** When set, a reset option is rendered in the Select listbox. */
749
+ onReset?: () => void;
750
+ /** Custom text label for the reset option when it exists. */
751
+ resetLabel?: string;
752
+ onSelect?: (option: string) => void;
753
+ onDeselect?: (option: string) => void;
754
+ onChange?: (selected: string[]) => void;
755
+ }
756
+ declare const Select: React__default.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
757
+
649
758
  type Sizes = '100%' | 'flex' | 'auto';
650
759
  type Alignments = 'end' | 'center' | 'start';
651
760
  type ValidationStates = 'valid' | 'error' | 'warn';
@@ -716,11 +825,106 @@ declare const Form: StyledComponent<{
716
825
  } & React$1.RefAttributes<HTMLTextAreaElement>, {}, {}> & {
717
826
  displayName: string;
718
827
  };
719
- Button: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
828
+ Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
720
829
  Checkbox: (props: React.InputHTMLAttributes<HTMLInputElement>) => React$1.JSX.Element;
721
830
  Radio: (props: React.InputHTMLAttributes<HTMLInputElement>) => React$1.JSX.Element;
722
831
  };
723
832
 
833
+ type BasicPlacement = 'top' | 'bottom' | 'left' | 'right';
834
+ type PlacementWithModifier = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
835
+ type PopperPlacement = BasicPlacement | PlacementWithModifier;
836
+ declare const convertToReactAriaPlacement: (p: PopperPlacement) => NonNullable<PositionProps["placement"]>;
837
+
838
+ interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
839
+ /** Content of the popover. */
840
+ children: React__default.ReactNode;
841
+ /** Preset popover color taken from the theme, affecting both bathground and foreground. */
842
+ color?: 'default' | 'inverse' | 'positive' | 'negative' | 'warning' | 'none';
843
+ /** Whether the popover is rendered with a decorative window-like appearance. */
844
+ hasChrome: boolean;
845
+ /** Optional callback connected to a close button. Then button is shown only when passed. */
846
+ onHide?: () => void;
847
+ /** Optional custom label for the close button, if there is one. */
848
+ hideLabel?: string;
849
+ /** Padding between the content and popover edge. */
850
+ padding?: number | string;
851
+ }
852
+ declare const Popover: React__default.ForwardRefExoticComponent<PopoverProps & React__default.RefAttributes<HTMLDivElement>>;
853
+
854
+ interface PopoverProviderProps {
855
+ /** Whether to display the Popover in a prestyled container. True by default. */
856
+ hasChrome?: boolean;
857
+ /**
858
+ * Whether to display a close button in the top right corner of the popover overlay. Can overlap
859
+ * with overlay content, make sure to test your use case. False by default.
860
+ */
861
+ hasCloseButton?: boolean;
862
+ /** Optional custom label for the close button, if there is one. */
863
+ closeLabel?: string;
864
+ /** Optional custom padding for the popover overlay. */
865
+ padding?: number | string;
866
+ /** Distance between the trigger and Popover. Customize only if you have a good reason to. */
867
+ offset?: number;
868
+ /**
869
+ * Placement of the Popover. Start and End variants involve additional JS dimension calculations
870
+ * and should be used sparingly. Left and Right get inverted in RTL.
871
+ */
872
+ placement?: PopperPlacement;
873
+ /**
874
+ * Popover content. Pass a function to receive a onHide callback to collect to your close button,
875
+ * or if you want to wait for the popover to be opened to call your content component.
876
+ */
877
+ popover: ReactNode | ((props: {
878
+ onHide: () => void;
879
+ }) => ReactNode);
880
+ /** Popover trigger, must be a single child with click/press events. Must forward refs. */
881
+ children: ReactElement<DOMAttributes<Element>, string>;
882
+ /** Uncontrolled state: whether the Popover is initially visible. */
883
+ defaultVisible?: boolean;
884
+ /** Controlled state: whether the Popover is visible. */
885
+ visible?: boolean;
886
+ /** Controlled state: fires when user interaction causes the Popover to change visibility. */
887
+ onVisibleChange?: (isVisible: boolean) => void;
888
+ }
889
+ declare const PopoverProvider: ({ placement: placementProp, hasChrome, hasCloseButton, closeLabel, offset, padding, popover, children, defaultVisible, visible, onVisibleChange, ...props }: PopoverProviderProps) => React__default.JSX.Element;
890
+
891
+ type TooltipProps = Omit<PopoverProps, 'onHide' | 'hideLabel'>;
892
+ declare const Tooltip: React__default.ForwardRefExoticComponent<TooltipProps & React__default.RefAttributes<HTMLDivElement>>;
893
+
894
+ interface TooltipNoteProps {
895
+ note: string;
896
+ }
897
+ declare const TooltipNote: ({ note, ...props }: TooltipNoteProps) => React__default.JSX.Element;
898
+
899
+ interface TooltipProviderProps {
900
+ /** Tooltips trigger on hover and focus by default. To trigger on focus only, set this to `true`. */
901
+ triggerOnFocusOnly?: boolean;
902
+ /** Distance between the trigger and tooltip. Customize only if you have a good reason to. */
903
+ offset?: number;
904
+ /**
905
+ * Placement of the tooltip. Start and End variants involve additional JS dimension calculations
906
+ * and should be used sparingly. Left and Right get inverted in RTL.
907
+ */
908
+ placement?: PopperPlacement;
909
+ /** Tooltip content */
910
+ tooltip: ReactNode;
911
+ /** Tooltip trigger, must be a single child that can receive focus and click/key events. */
912
+ children: ReactElement<DOMAttributes<Element>, string>;
913
+ /** Delay before showing the tooltip, defaults to 200ms. Always instant on focus. */
914
+ delayShow?: number;
915
+ /** Delay before hiding the tooltip, defaults to 400ms. */
916
+ delayHide?: number;
917
+ /** Uncontrolled state: whether the tooltip is visible by default. */
918
+ defaultVisible?: boolean;
919
+ /** Deprecated property - use defaultVisible instead. */
920
+ startOpen?: boolean;
921
+ /** Controlled state: whether the tooltip is visible. */
922
+ visible?: boolean;
923
+ /** Controlled state: fires when user interaction causes the tooltip to change visibility. */
924
+ onVisibleChange?: (isVisible: boolean) => void;
925
+ }
926
+ declare const TooltipProvider: ({ triggerOnFocusOnly, placement: placementProp, offset, tooltip, children, defaultVisible, startOpen, delayShow, delayHide, visible, onVisibleChange, ...props }: TooltipProviderProps) => React__default.JSX.Element;
927
+
724
928
  declare const top: "top";
725
929
  declare const bottom: "bottom";
726
930
  declare const right: "right";
@@ -984,7 +1188,7 @@ interface WithTooltipStateProps extends Omit<WithTooltipPureProps, 'onVisibleCha
984
1188
 
985
1189
  declare const LazyWithTooltip: React__default.LazyExoticComponent<({ startOpen, onVisibleChange: onChange, ...rest }: WithTooltipStateProps) => React__default.JSX.Element>;
986
1190
  declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => React__default.JSX.Element;
987
- declare const LazyWithTooltipPure: React__default.LazyExoticComponent<({ svg, trigger, closeOnOutsideClick, placement, modifiers, hasChrome, defaultVisible, withArrows, offset, tooltip, children, closeOnTriggerHidden, mutationObserverOptions, delayHide, visible, interactive, delayShow, strategy, followCursor, onVisibleChange, portalContainer, ...props }: WithTooltipPureProps) => React__default.JSX.Element>;
1191
+ declare const LazyWithTooltipPure: React__default.LazyExoticComponent<React__default.FC<WithTooltipPureProps>>;
988
1192
  declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => React__default.JSX.Element;
989
1193
 
990
1194
  interface TooltipMessageProps {
@@ -998,11 +1202,6 @@ interface TooltipMessageProps {
998
1202
  }
999
1203
  declare const TooltipMessage: ({ title, desc, links }: TooltipMessageProps) => React__default.JSX.Element;
1000
1204
 
1001
- interface TooltipNoteProps {
1002
- note: string;
1003
- }
1004
- declare const TooltipNote: ({ note, ...props }: TooltipNoteProps) => React__default.JSX.Element;
1005
-
1006
1205
  interface ItemProps {
1007
1206
  disabled?: boolean;
1008
1207
  href?: string;
@@ -1011,7 +1210,7 @@ interface ItemProps {
1011
1210
  declare const Item: StyledComponent<{
1012
1211
  theme?: Theme;
1013
1212
  as?: React__default.ElementType;
1014
- } & ItemProps, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1213
+ } & ItemProps, React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
1015
1214
  type LinkWrapperType = (props: any) => ReactNode;
1016
1215
  interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'title'> {
1017
1216
  loading?: boolean;
@@ -1026,7 +1225,7 @@ interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'title'> {
1026
1225
  LinkWrapper?: LinkWrapperType;
1027
1226
  isIndented?: boolean;
1028
1227
  }
1029
- declare const ListItem: (props: ListItemProps) => React__default.JSX.Element;
1228
+ declare const ListItem: React__default.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React__default.RefAttributes<unknown>>;
1030
1229
 
1031
1230
  declare const List: StyledComponent<{
1032
1231
  theme?: Theme;
@@ -1051,16 +1250,13 @@ interface TooltipLinkListProps extends ComponentProps<typeof List> {
1051
1250
  }
1052
1251
  declare const TooltipLinkList: ({ links, LinkWrapper, ...props }: TooltipLinkListProps) => React__default.JSX.Element;
1053
1252
 
1054
- declare const TabBar: StyledComponent<{
1055
- theme?: Theme;
1056
- as?: React__default.ElementType;
1057
- }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1253
+ declare const TabBar: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
1058
1254
  interface TabWrapperProps {
1059
1255
  active: boolean;
1060
1256
  render?: () => ReactElement;
1061
1257
  children?: ReactNode;
1062
1258
  }
1063
- declare const TabWrapper: FC<TabWrapperProps>;
1259
+ declare const TabWrapper: React__default.ForwardRefExoticComponent<TabWrapperProps & React__default.RefAttributes<HTMLDivElement>>;
1064
1260
  interface TabsProps {
1065
1261
  children?: ReactElement<{
1066
1262
  children: FC<Addon_RenderOptions & PropsWithChildren>;
@@ -1100,24 +1296,13 @@ declare class TabsState extends Component<TabsStateProps, TabsStateState> {
1100
1296
  render(): React__default.JSX.Element;
1101
1297
  }
1102
1298
 
1103
- interface Props {
1104
- title: React__default.ReactNode;
1105
- description?: React__default.ReactNode;
1106
- footer?: React__default.ReactNode;
1107
- }
1108
- declare const EmptyTabContent: ({ title, description, footer }: Props) => React__default.JSX.Element;
1109
-
1110
- interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
1111
- href?: never;
1112
- target?: never;
1113
- }
1114
- interface TabButtonProps {
1299
+ interface TabButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1115
1300
  active?: boolean;
1301
+ children: ReactNode;
1302
+ id?: string;
1116
1303
  textColor?: string;
1117
1304
  }
1118
- declare const TabButton: StyledComponent<Omit<ButtonProps, "ref"> & RefAttributes<HTMLButtonElement> & {
1119
- theme?: Theme;
1120
- } & TabButtonProps, {}, {}>;
1305
+ declare const TabButton: ForwardRefExoticComponent<TabButtonProps & RefAttributes<HTMLButtonElement>>;
1121
1306
 
1122
1307
  interface SeparatorProps {
1123
1308
  force?: boolean;
@@ -1128,17 +1313,16 @@ declare const Separator: StyledComponent<{
1128
1313
  } & SeparatorProps, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
1129
1314
  declare const interleaveSeparators: (list: any[]) => any;
1130
1315
 
1131
- interface UnstyledBarProps extends ScrollAreaProps {
1132
- scrollable?: boolean;
1133
- }
1134
- interface BarProps extends UnstyledBarProps {
1316
+ interface BarProps {
1135
1317
  backgroundColor?: string;
1136
1318
  border?: boolean;
1319
+ className?: string;
1320
+ children?: React__default.ReactNode;
1321
+ scrollable?: boolean;
1322
+ innerStyle?: CSSObject;
1137
1323
  }
1138
- declare const Bar: StyledComponent<UnstyledBarProps & {
1139
- theme?: Theme;
1140
- } & BarProps, {}, {}>;
1141
- interface FlexBarProps extends ComponentProps<typeof Bar> {
1324
+ declare const Bar: React__default.ForwardRefExoticComponent<BarProps & React__default.RefAttributes<HTMLDivElement>>;
1325
+ interface FlexBarProps extends BarProps {
1142
1326
  border?: boolean;
1143
1327
  backgroundColor?: string;
1144
1328
  }
@@ -1147,11 +1331,129 @@ declare const FlexBar: {
1147
1331
  displayName: string;
1148
1332
  };
1149
1333
 
1334
+ interface Props {
1335
+ title: React__default.ReactNode;
1336
+ description?: React__default.ReactNode;
1337
+ footer?: React__default.ReactNode;
1338
+ }
1339
+ declare const EmptyTabContent: ({ title, description, footer }: Props) => React__default.JSX.Element;
1340
+
1150
1341
  interface AddonPanelProps {
1151
1342
  active: boolean;
1152
1343
  children: ReactElement;
1344
+ hasScrollbar?: boolean;
1345
+ }
1346
+ declare const AddonPanel: ({ active, children, hasScrollbar }: AddonPanelProps) => React__default.JSX.Element;
1347
+
1348
+ interface AbstractToolbarProps {
1349
+ className?: string;
1350
+ children?: React__default.ReactNode;
1351
+ 'aria-label'?: string;
1352
+ 'aria-labelledby'?: string;
1353
+ }
1354
+ declare const AbstractToolbar: FC<AbstractToolbarProps>;
1355
+ interface ToolbarProps extends AbstractToolbarProps, BarProps {
1356
+ }
1357
+ declare const Toolbar: FC<ToolbarProps>;
1358
+
1359
+ interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1360
+ /** The state of the tab list. Primary mechanism for using the tabpanel. */
1361
+ state: ReturnType<typeof useTabsState>;
1362
+ /**
1363
+ * Whether the panel adds a vertical scrollbar. Disable if you want to use fixed or sticky
1364
+ * positioning on part of the tab's content. True by default.
1365
+ */
1366
+ hasScrollbar?: boolean;
1367
+ /**
1368
+ * Whether to render only the active tab's content, or all tabs. When true, non-selected tabs are
1369
+ * rendered with the hidden attribute and do not affect the accessibility object model.
1370
+ */
1371
+ renderAllChildren?: boolean;
1372
+ }
1373
+ declare const TabPanel: FC<TabPanelProps>;
1374
+
1375
+ interface TabProps {
1376
+ id: string;
1377
+ 'aria-label'?: string;
1378
+ title: FC | ReactNode | string;
1379
+ children?: FC | ReactNode;
1380
+ isDisabled?: boolean;
1381
+ }
1382
+ interface useTabsStateProps {
1383
+ defaultSelected?: string;
1384
+ selected?: string;
1385
+ onSelectionChange?: (key: string) => void;
1386
+ tabs: TabProps[];
1387
+ }
1388
+ declare const useTabsState: ({ defaultSelected, onSelectionChange, selected, tabs, }: useTabsStateProps) => unknown;
1389
+ interface TabsViewProps extends HTMLAttributes<HTMLDivElement> {
1390
+ /** List of tabs and their associated panel. */
1391
+ tabs: TabProps[];
1392
+ /** ID of the tab that should be selected on first render. */
1393
+ defaultSelected?: string;
1394
+ /** ID of the current tab if in controlled rendering mode. */
1395
+ selected?: string;
1396
+ /** Called when the selected tab changes, use if you want to control the component state. */
1397
+ onSelectionChange?: (key: string) => void;
1398
+ /**
1399
+ * Optional tools to avoid rendering two toolbars in a layout.
1400
+ *
1401
+ * @warning Only use this if the tools act upon the entire layout,
1402
+ * not upon a single tab panel. If you want to edit which tools are
1403
+ * visible based on the current tab, then you musn't use `tools` and
1404
+ * should handle your own toolbar inside the tabpanel instead.
1405
+ */
1406
+ tools?: ReactElement;
1407
+ /** Background color for the bar containing the tabs and tools. */
1408
+ backgroundColor?: string;
1409
+ /** Style properties for the inner layout container in the bar containing the tabs and tools. */
1410
+ barInnerStyle?: React__default.CSSProperties;
1411
+ /** Show tools instead of the empty state if there are no tabs. */
1412
+ showToolsWhenEmpty?: boolean;
1413
+ /** Custom UI for the empty state shown when there are no tabs. */
1414
+ emptyState?: ReactNode;
1415
+ /** Optional ID. */
1416
+ id?: string;
1417
+ /** Props to pass to the TabPanel component. */
1418
+ panelProps?: Omit<ComponentProps<typeof TabPanel>, 'state'>;
1419
+ }
1420
+ declare const TabsView: FC<TabsViewProps>;
1421
+
1422
+ interface TabListProps extends HTMLAttributes<HTMLDivElement> {
1423
+ state: ReturnType<typeof useTabsState>;
1424
+ }
1425
+ declare const TabList: FC<TabListProps>;
1426
+
1427
+ interface StatelessTabListProps {
1428
+ children?: ReactNode;
1429
+ }
1430
+ declare const StatelessTabList: FC<StatelessTabListProps>;
1431
+
1432
+ interface StatelessTabPanelProps {
1433
+ /** Content of the tab panel. */
1434
+ children: ReactNode;
1435
+ /** Unique id of the TabPanel, must match that of its corresponding Tab. */
1436
+ name: string;
1437
+ /**
1438
+ * Whether the panel adds a vertical scrollbar. Disable if you want to use fixed or sticky
1439
+ * positioning on part of the tab's content. True by default.
1440
+ */
1441
+ hasScrollbar?: boolean;
1442
+ }
1443
+ declare const StatelessTabPanel: FC<StatelessTabPanelProps>;
1444
+
1445
+ interface StatelessTabsViewProps extends Omit<TabsViewProps, 'tabs'> {
1446
+ children: ReactNode;
1447
+ }
1448
+ declare const StatelessTabsView: FC<StatelessTabsViewProps>;
1449
+
1450
+ interface StatelessTabProps {
1451
+ /** Unique id of the Tab, must match that of its corresponding TabPanel. */
1452
+ name: string;
1453
+ /** Tab button content */
1454
+ children: React__default.ReactNode;
1153
1455
  }
1154
- declare const AddonPanel: ({ active, children }: AddonPanelProps) => React__default.JSX.Element;
1456
+ declare const StatelessTab: FC<StatelessTabProps>;
1155
1457
 
1156
1458
  type StorybookLogoProps = {
1157
1459
  alt: string;
@@ -1243,4 +1545,4 @@ declare const components: {
1243
1545
  };
1244
1546
  declare const resetComponents: Record<string, ElementType>;
1245
1547
 
1246
- export { A, ActionBar, type ActionItem, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, Code, DL, Div, DocumentWrapper, EmptyTabContent, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, Img, LI, Link$1 as Link, ListItem, Loader, Modal, OL, P, Placeholder, Pre, ProgressSpinner, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, type SupportedLanguage, SyntaxHighlighter, type SyntaxHighlighterFormatTypes, type SyntaxHighlighterProps, type SyntaxHighlighterRendererProps, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, type Link as TooltipLinkListLink, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset };
1548
+ export { A, AbstractToolbar, ActionBar, type ActionItem, AddonPanel, Badge, Bar, type BarProps, Blockquote, Button, type ButtonProps, Card, ClipboardCode, Code, Collapsible, DL, Div, DocumentWrapper, EmptyTabContent, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, Img, LI, Link$1 as Link, ListItem, Listbox, Loader, Modal, ModalDecorator, OL, P, Placeholder, Popover, type PopoverProps, PopoverProvider, type PopoverProviderProps, type PopperPlacement, Pre, ProgressSpinner, ResetWrapper, ScrollArea, Select, Separator, Spaced, Span, StatelessTab, StatelessTabList, type StatelessTabListProps, StatelessTabPanel, type StatelessTabPanelProps, type StatelessTabProps, StatelessTabsView, type StatelessTabsViewProps, StorybookIcon, StorybookLogo, type SupportedLanguage, SyntaxHighlighter, type SyntaxHighlighterFormatTypes, type SyntaxHighlighterProps, type SyntaxHighlighterRendererProps, TT, TabBar, TabButton, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabWrapper, Table, Tabs, TabsState, TabsView, type TabsViewProps, ToggleButton, Toolbar, Tooltip, TooltipLinkList, type Link as TooltipLinkListLink, TooltipMessage, TooltipNote, type TooltipNoteProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, convertToReactAriaPlacement, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, useTabsState, withReset };