storybook 10.1.0-beta.4 → 10.1.0-beta.5

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 (63) hide show
  1. package/dist/_browser-chunks/{Color-FTG7SQDA.js → Color-TNPFN3FC.js} +2 -2
  2. package/dist/_browser-chunks/{WithTooltip-LMROHDUP.js → WithTooltip-IO6J4KBT.js} +2 -2
  3. package/dist/_node-chunks/{builder-manager-T3A7QLUO.js → builder-manager-DKZOFL36.js} +13 -13
  4. package/dist/_node-chunks/{camelcase-WMMYRUH4.js → camelcase-OYLEV2Q6.js} +7 -7
  5. package/dist/_node-chunks/{chunk-HT32VUX7.js → chunk-3R7S7OBR.js} +7 -7
  6. package/dist/_node-chunks/chunk-3SEQ2GLE.js +20 -0
  7. package/dist/_node-chunks/{chunk-RSJK2D7X.js → chunk-3VCEM4KX.js} +6 -6
  8. package/dist/_node-chunks/{chunk-PMZEJJNX.js → chunk-5ZLC6NEA.js} +7 -7
  9. package/dist/_node-chunks/{chunk-TC7X5DN2.js → chunk-AWAJ6MNP.js} +10 -10
  10. package/dist/_node-chunks/chunk-BQ4MHK5P.js +23 -0
  11. package/dist/_node-chunks/{chunk-JYAXWHGH.js → chunk-DKJWN7NS.js} +9 -9
  12. package/dist/_node-chunks/{chunk-WGBDDI6W.js → chunk-FPWWB56H.js} +8 -8
  13. package/dist/_node-chunks/{chunk-KAVR7KJP.js → chunk-IKGF3NTB.js} +20 -20
  14. package/dist/_node-chunks/{chunk-67VVNDJJ.js → chunk-ITQ5LAB5.js} +6 -6
  15. package/dist/_node-chunks/{chunk-3MVB5IZX.js → chunk-LE77BUC7.js} +12 -12
  16. package/dist/_node-chunks/{chunk-EJPOXNSG.js → chunk-LGS44CQ3.js} +14 -14
  17. package/dist/_node-chunks/chunk-LJNPOMKR.js +61 -0
  18. package/dist/_node-chunks/{chunk-VN7SAKM4.js → chunk-O4VEAB4L.js} +6 -6
  19. package/dist/_node-chunks/{chunk-KI6KY2ZN.js → chunk-O6MAIGNQ.js} +13 -13
  20. package/dist/_node-chunks/chunk-P5K26BIZ.js +18 -0
  21. package/dist/_node-chunks/{chunk-CM44JL5Z.js → chunk-Q6Q7GGYG.js} +6 -6
  22. package/dist/_node-chunks/{chunk-HDMHX5QM.js → chunk-RV4TIB2A.js} +7 -7
  23. package/dist/_node-chunks/{chunk-VW25O2YM.js → chunk-S3FEVISB.js} +6 -6
  24. package/dist/_node-chunks/{chunk-CSFSQ2I4.js → chunk-U55VVTKI.js} +7 -7
  25. package/dist/_node-chunks/{chunk-YTTOTUWC.js → chunk-UAAE3CFN.js} +6 -6
  26. package/dist/_node-chunks/{chunk-EFN4RLWH.js → chunk-ULRPJDQG.js} +7 -7
  27. package/dist/_node-chunks/{chunk-TBYOSPAV.js → chunk-VEUCEGV5.js} +6 -6
  28. package/dist/_node-chunks/{chunk-C6RLDV2P.js → chunk-VVQNCKWG.js} +8 -8
  29. package/dist/_node-chunks/{chunk-EFTR6VSG.js → chunk-WP2HYYIX.js} +9 -9
  30. package/dist/_node-chunks/{chunk-5DEFF2GB.js → chunk-WP55QOFC.js} +7 -7
  31. package/dist/_node-chunks/{chunk-TCLOOFNE.js → chunk-WXJLEHGP.js} +7 -7
  32. package/dist/_node-chunks/{chunk-NORFPLB6.js → chunk-XEZ4YPF3.js} +7 -7
  33. package/dist/_node-chunks/{dist-L6XLFQOU.js → dist-CYJGIQZ4.js} +9 -9
  34. package/dist/_node-chunks/{globby-7IXLXFEA.js → globby-QGM6GHYQ.js} +9 -9
  35. package/dist/_node-chunks/{lib-T5L2ZSAG.js → lib-R7D5AM5W.js} +7 -7
  36. package/dist/_node-chunks/{mdx-N42X6CFJ-GOOKUTSA.js → mdx-N42X6CFJ-WSYY7WM6.js} +8 -8
  37. package/dist/_node-chunks/{p-limit-7GKATDEW.js → p-limit-S3E66PR5.js} +7 -7
  38. package/dist/babel/index.js +10 -10
  39. package/dist/bin/core.js +12 -12
  40. package/dist/bin/dispatcher.js +11 -11
  41. package/dist/bin/loader.js +9 -9
  42. package/dist/cli/index.js +18 -18
  43. package/dist/common/index.js +19 -19
  44. package/dist/components/index.d.ts +131 -117
  45. package/dist/components/index.js +514 -449
  46. package/dist/core-server/index.js +33 -33
  47. package/dist/core-server/presets/common-manager.js +2 -2
  48. package/dist/core-server/presets/common-override-preset.js +9 -9
  49. package/dist/core-server/presets/common-preset.js +25 -25
  50. package/dist/csf-tools/index.js +9 -9
  51. package/dist/manager/globals-runtime.js +7207 -7142
  52. package/dist/manager/runtime.js +156 -232
  53. package/dist/manager-api/index.d.ts +178 -178
  54. package/dist/manager-api/index.js +1 -1
  55. package/dist/mocking-utils/index.js +8 -8
  56. package/dist/node-logger/index.js +9 -9
  57. package/dist/server-errors.js +11 -11
  58. package/dist/telemetry/index.js +23 -23
  59. package/package.json +1 -1
  60. package/dist/_node-chunks/chunk-IQFN7VY4.js +0 -23
  61. package/dist/_node-chunks/chunk-K7U3BSTR.js +0 -61
  62. package/dist/_node-chunks/chunk-YN3C74EA.js +0 -18
  63. package/dist/_node-chunks/chunk-YZ3XRP4N.js +0 -20
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env node
2
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
2
+ import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
9
9
 
10
10
  // ------------------------------------------------------------
11
11
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
12
12
  // ------------------------------------------------------------
13
13
  import {
14
14
  versions_default
15
- } from "../_node-chunks/chunk-K7U3BSTR.js";
15
+ } from "../_node-chunks/chunk-LJNPOMKR.js";
16
16
  import {
17
17
  resolvePackageDir
18
- } from "../_node-chunks/chunk-NORFPLB6.js";
18
+ } from "../_node-chunks/chunk-XEZ4YPF3.js";
19
19
  import {
20
20
  join
21
- } from "../_node-chunks/chunk-TBYOSPAV.js";
21
+ } from "../_node-chunks/chunk-VEUCEGV5.js";
22
22
  import {
23
23
  require_dist
24
- } from "../_node-chunks/chunk-HDMHX5QM.js";
24
+ } from "../_node-chunks/chunk-RV4TIB2A.js";
25
25
  import {
26
26
  __toESM
27
- } from "../_node-chunks/chunk-VW25O2YM.js";
27
+ } from "../_node-chunks/chunk-S3FEVISB.js";
28
28
 
29
29
  // src/bin/dispatcher.ts
30
30
  import { pathToFileURL } from "node:url";
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  NODE_TARGET
14
- } from "../_node-chunks/chunk-CM44JL5Z.js";
14
+ } from "../_node-chunks/chunk-Q6Q7GGYG.js";
15
15
  import {
16
16
  require_dist
17
- } from "../_node-chunks/chunk-HDMHX5QM.js";
17
+ } from "../_node-chunks/chunk-RV4TIB2A.js";
18
18
  import {
19
19
  __toESM
20
- } from "../_node-chunks/chunk-VW25O2YM.js";
20
+ } from "../_node-chunks/chunk-S3FEVISB.js";
21
21
 
22
22
  // src/bin/loader.ts
23
23
  var import_ts_dedent = __toESM(require_dist(), 1);
package/dist/cli/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -33,24 +33,24 @@ import {
33
33
  readFileAsJson,
34
34
  suggestESLintPlugin,
35
35
  writeFileAsJson
36
- } from "../_node-chunks/chunk-3MVB5IZX.js";
36
+ } from "../_node-chunks/chunk-LE77BUC7.js";
37
37
  import {
38
38
  detectPnp
39
- } from "../_node-chunks/chunk-IQFN7VY4.js";
39
+ } from "../_node-chunks/chunk-BQ4MHK5P.js";
40
40
  import {
41
41
  Settings,
42
42
  _clearGlobalSettings,
43
43
  globalSettings
44
- } from "../_node-chunks/chunk-JYAXWHGH.js";
45
- import "../_node-chunks/chunk-YTTOTUWC.js";
46
- import "../_node-chunks/chunk-NORFPLB6.js";
47
- import "../_node-chunks/chunk-VN7SAKM4.js";
48
- import "../_node-chunks/chunk-TBYOSPAV.js";
49
- import "../_node-chunks/chunk-HDMHX5QM.js";
50
- import "../_node-chunks/chunk-EFTR6VSG.js";
51
- import "../_node-chunks/chunk-PMZEJJNX.js";
52
- import "../_node-chunks/chunk-TCLOOFNE.js";
53
- import "../_node-chunks/chunk-VW25O2YM.js";
44
+ } from "../_node-chunks/chunk-DKJWN7NS.js";
45
+ import "../_node-chunks/chunk-UAAE3CFN.js";
46
+ import "../_node-chunks/chunk-XEZ4YPF3.js";
47
+ import "../_node-chunks/chunk-O4VEAB4L.js";
48
+ import "../_node-chunks/chunk-VEUCEGV5.js";
49
+ import "../_node-chunks/chunk-RV4TIB2A.js";
50
+ import "../_node-chunks/chunk-WP2HYYIX.js";
51
+ import "../_node-chunks/chunk-5ZLC6NEA.js";
52
+ import "../_node-chunks/chunk-WXJLEHGP.js";
53
+ import "../_node-chunks/chunk-S3FEVISB.js";
54
54
  export {
55
55
  ANGULAR_JSON_PATH,
56
56
  AddonVitestService,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -102,29 +102,29 @@ import {
102
102
  validateConfigurationFiles,
103
103
  validateFrameworkName,
104
104
  wrapValueWithGetAbsolutePathWrapper
105
- } from "../_node-chunks/chunk-KAVR7KJP.js";
105
+ } from "../_node-chunks/chunk-IKGF3NTB.js";
106
106
  import {
107
107
  versions_default
108
- } from "../_node-chunks/chunk-K7U3BSTR.js";
109
- import "../_node-chunks/chunk-HT32VUX7.js";
110
- import "../_node-chunks/chunk-WGBDDI6W.js";
111
- import "../_node-chunks/chunk-YTTOTUWC.js";
108
+ } from "../_node-chunks/chunk-LJNPOMKR.js";
109
+ import "../_node-chunks/chunk-3R7S7OBR.js";
110
+ import "../_node-chunks/chunk-FPWWB56H.js";
111
+ import "../_node-chunks/chunk-UAAE3CFN.js";
112
112
  import {
113
113
  importMetaResolve,
114
114
  importModule,
115
115
  resolvePackageDir,
116
116
  safeResolveModule
117
- } from "../_node-chunks/chunk-NORFPLB6.js";
117
+ } from "../_node-chunks/chunk-XEZ4YPF3.js";
118
118
  import {
119
119
  groupBy,
120
120
  invariant
121
- } from "../_node-chunks/chunk-VN7SAKM4.js";
122
- import "../_node-chunks/chunk-TBYOSPAV.js";
123
- import "../_node-chunks/chunk-CSFSQ2I4.js";
124
- import "../_node-chunks/chunk-YZ3XRP4N.js";
125
- import "../_node-chunks/chunk-HDMHX5QM.js";
126
- import "../_node-chunks/chunk-TCLOOFNE.js";
127
- import "../_node-chunks/chunk-VW25O2YM.js";
121
+ } from "../_node-chunks/chunk-O4VEAB4L.js";
122
+ import "../_node-chunks/chunk-VEUCEGV5.js";
123
+ import "../_node-chunks/chunk-U55VVTKI.js";
124
+ import "../_node-chunks/chunk-3SEQ2GLE.js";
125
+ import "../_node-chunks/chunk-RV4TIB2A.js";
126
+ import "../_node-chunks/chunk-WXJLEHGP.js";
127
+ import "../_node-chunks/chunk-S3FEVISB.js";
128
128
  export {
129
129
  DEFAULT_FILES_PATTERN,
130
130
  FileSystemCache,
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
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
3
  import { API_KeyCollection } from 'storybook/manager-api';
4
+ import { color, CSSObject, FunctionInterpolation } from 'storybook/theming';
5
5
  import { DecoratorFunction } from 'storybook/internal/csf';
6
6
  import { Addon_RenderOptions } from 'storybook/internal/types';
7
7
 
@@ -284,6 +284,129 @@ interface ActionBarProps {
284
284
  }
285
285
  declare const ActionBar: ({ actionItems, ...props }: ActionBarProps) => React__default.JSX.Element;
286
286
 
287
+ declare module 'react' {
288
+ interface ReactElement {
289
+ $$typeof?: symbol | string;
290
+ }
291
+ }
292
+ interface SlotProps extends React$1.HTMLAttributes<HTMLElement> {
293
+ children?: React$1.ReactNode;
294
+ }
295
+ declare const Slot: React$1.ForwardRefExoticComponent<SlotProps & React$1.RefAttributes<HTMLElement>>;
296
+
297
+ interface ButtonProps extends Omit<ComponentProps<typeof StyledButton>, 'as'> {
298
+ as?: ComponentProps<typeof StyledButton>['as'] | typeof Slot;
299
+ asChild?: boolean;
300
+ /**
301
+ * A concise action label for the button announced by screen readers. Needed for buttons without
302
+ * text or with text that relies on visual cues to be understood. Pass false to indicate that the
303
+ * Button's content is already accessible to all. When a string is passed, it is also used as the
304
+ * default tooltip text.
305
+ */
306
+ ariaLabel?: string | false;
307
+ /**
308
+ * An optional tooltip to display when the Button is hovered. If the Button has no text content,
309
+ * consider making this the same as the aria-label.
310
+ */
311
+ tooltip?: string;
312
+ /**
313
+ * Only use this flag when tooltips on button interfere with other keyboard interactions, like
314
+ * when building a custom select or menu button. Disables tooltips from the `tooltip`, `shortcut`
315
+ * and `ariaLabel` props.
316
+ */
317
+ disableAllTooltips?: boolean;
318
+ /**
319
+ * A more thorough description of what the Button does, provided to non-sighted users through an
320
+ * aria-describedby attribute. Use sparingly for buttons that trigger complex actions.
321
+ */
322
+ ariaDescription?: string;
323
+ /**
324
+ * An optional keyboard shortcut to enable the button. Will be displayed in the tooltip and passed
325
+ * to aria-keyshortcuts for assistive technologies. The binding of the shortcut and action is
326
+ * managed globally in the manager's shortcuts module.
327
+ */
328
+ shortcut?: API_KeyCollection;
329
+ }
330
+ declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
331
+ declare const StyledButton: StyledComponent<{
332
+ theme?: Theme;
333
+ as?: React__default.ElementType;
334
+ } & {
335
+ size?: "small" | "medium";
336
+ padding?: "small" | "medium" | "none";
337
+ variant?: "outline" | "solid" | "ghost";
338
+ active?: boolean;
339
+ disabled?: boolean;
340
+ readOnly?: boolean;
341
+ animating?: boolean;
342
+ animation?: "none" | "rotate360" | "glow" | "jiggle";
343
+ }, React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
344
+ declare const IconButton: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
345
+
346
+ interface ToggleButtonProps extends ButtonProps {
347
+ /** Whether the ToggleButton is currently pressed or not. */
348
+ pressed: boolean;
349
+ }
350
+ declare const ToggleButton: React__default.ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
351
+
352
+ type TransitionStatus =
353
+ | 'preEnter'
354
+ | 'entering'
355
+ | 'entered'
356
+ | 'preExit'
357
+ | 'exiting'
358
+ | 'exited'
359
+ | 'unmounted';
360
+
361
+ declare const ActionListAction: StyledComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
362
+ theme?: Theme;
363
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
364
+ theme?: Theme;
365
+ }, {}, {}>;
366
+ declare const ActionList: StyledComponent<{
367
+ theme?: Theme;
368
+ as?: React__default.ElementType;
369
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}> & {
370
+ Item: StyledComponent<{
371
+ theme?: Theme;
372
+ as?: React__default.ElementType;
373
+ } & {
374
+ active?: boolean;
375
+ transitionStatus?: TransitionStatus;
376
+ }, React__default.DetailedHTMLProps<React__default.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
377
+ HoverItem: StyledComponent<{
378
+ theme?: Theme;
379
+ as?: React__default.ElementType;
380
+ } & {
381
+ active?: boolean;
382
+ transitionStatus?: TransitionStatus;
383
+ } & React__default.ClassAttributes<HTMLLIElement> & React__default.LiHTMLAttributes<HTMLLIElement> & {
384
+ theme?: Theme;
385
+ } & {
386
+ targetId: string;
387
+ }, {}, {}>;
388
+ Button: React__default.ForwardRefExoticComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
389
+ theme?: Theme;
390
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
391
+ Toggle: React__default.ForwardRefExoticComponent<Omit<Omit<ToggleButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
392
+ theme?: Theme;
393
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
394
+ Action: StyledComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
395
+ theme?: Theme;
396
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
397
+ theme?: Theme;
398
+ }, {}, {}>;
399
+ Link: (props: ComponentProps<typeof ActionListAction> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>) => React__default.JSX.Element;
400
+ Text: StyledComponent<{
401
+ theme?: Theme;
402
+ as?: React__default.ElementType;
403
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
404
+ Icon: StyledComponent<{
405
+ theme?: Theme;
406
+ as?: React__default.ElementType;
407
+ }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
408
+ };
409
+
287
410
  declare const CollapsibleContent: StyledComponent<{
288
411
  theme?: Theme;
289
412
  as?: React__default.ElementType;
@@ -340,51 +463,6 @@ declare const Card: React__default.ForwardRefExoticComponent<Omit<CardProps, "re
340
463
  }, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
341
464
  };
342
465
 
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>, {}>;
386
- };
387
-
388
466
  /*
389
467
  * Copyright 2020 Adobe. All rights reserved.
390
468
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -461,65 +539,6 @@ interface HeadingProps extends HTMLAttributes<HTMLElement> {
461
539
  level?: number;
462
540
  }
463
541
 
464
- declare module 'react' {
465
- interface ReactElement {
466
- $$typeof?: symbol | string;
467
- }
468
- }
469
- interface SlotProps extends React$1.HTMLAttributes<HTMLElement> {
470
- children?: React$1.ReactNode;
471
- }
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;
477
- /**
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.
482
- */
483
- ariaLabel?: string | false;
484
- /**
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.
487
- */
488
- tooltip?: string;
489
- /**
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.
493
- */
494
- disableAllTooltips?: boolean;
495
- /**
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.
498
- */
499
- ariaDescription?: string;
500
- /**
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.
504
- */
505
- shortcut?: API_KeyCollection;
506
- }
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;
511
- } & {
512
- size?: "small" | "medium";
513
- padding?: "small" | "medium" | "none";
514
- variant?: "outline" | "solid" | "ghost";
515
- active?: boolean;
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>>;
522
-
523
542
  declare const Overlay: StyledComponent<{
524
543
  theme?: Theme;
525
544
  as?: React__default.ElementType;
@@ -698,19 +717,14 @@ interface ErrorFormatterProps {
698
717
  }
699
718
  declare const ErrorFormatter: ({ error }: ErrorFormatterProps) => React__default.JSX.Element;
700
719
 
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
-
720
+ type Value = string | number | null | boolean | undefined;
707
721
  interface Option {
708
722
  /** Optional rendering of the option. */
709
723
  children?: React__default.ReactNode;
710
724
  title: string;
711
725
  description?: string;
712
726
  icon?: React__default.ReactNode;
713
- value: string;
727
+ value: Value;
714
728
  }
715
729
 
716
730
  interface SelectProps extends Omit<ButtonProps, 'onClick' | 'onChange' | 'onSelect' | 'variant'> {
@@ -742,16 +756,16 @@ interface SelectProps extends Omit<ButtonProps, 'onClick' | 'onChange' | 'onSele
742
756
  /** Options available in the select. */
743
757
  options: Option[];
744
758
  /** IDs of the preselected options. */
745
- defaultOptions?: string | string[];
759
+ defaultOptions?: Value | Value[];
746
760
  /** Whether the Select should render open. */
747
761
  defaultOpen?: boolean;
748
762
  /** When set, a reset option is rendered in the Select listbox. */
749
763
  onReset?: () => void;
750
764
  /** Custom text label for the reset option when it exists. */
751
765
  resetLabel?: string;
752
- onSelect?: (option: string) => void;
753
- onDeselect?: (option: string) => void;
754
- onChange?: (selected: string[]) => void;
766
+ onSelect?: (option: Value) => void;
767
+ onDeselect?: (option: Value) => void;
768
+ onChange?: (selected: Value[]) => void;
755
769
  }
756
770
  declare const Select: React__default.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
757
771
 
@@ -1545,4 +1559,4 @@ declare const components: {
1545
1559
  };
1546
1560
  declare const resetComponents: Record<string, ElementType>;
1547
1561
 
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 };
1562
+ export { A, AbstractToolbar, ActionBar, type ActionItem, ActionList, 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, 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 };