storybook 10.1.0-beta.3 → 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 (66) 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-OAF6SRKJ.js → builder-manager-DKZOFL36.js} +25 -27
  4. package/dist/_node-chunks/{camelcase-UG5ZJHCD.js → camelcase-OYLEV2Q6.js} +7 -7
  5. package/dist/_node-chunks/{chunk-U24W5IIW.js → chunk-3R7S7OBR.js} +7 -7
  6. package/dist/_node-chunks/chunk-3SEQ2GLE.js +20 -0
  7. package/dist/_node-chunks/{chunk-NOTIBODG.js → chunk-3VCEM4KX.js} +6 -6
  8. package/dist/_node-chunks/{chunk-LZ2HPFRB.js → chunk-5ZLC6NEA.js} +7 -7
  9. package/dist/_node-chunks/{chunk-STYUJSG3.js → chunk-AWAJ6MNP.js} +10 -10
  10. package/dist/_node-chunks/chunk-BQ4MHK5P.js +23 -0
  11. package/dist/_node-chunks/{chunk-RABBUYPA.js → chunk-DKJWN7NS.js} +9 -9
  12. package/dist/_node-chunks/{chunk-A5VW7257.js → chunk-FPWWB56H.js} +642 -639
  13. package/dist/_node-chunks/{chunk-CRJ7M6EO.js → chunk-IKGF3NTB.js} +285 -280
  14. package/dist/_node-chunks/{chunk-JOOO54RB.js → chunk-ITQ5LAB5.js} +6 -6
  15. package/dist/_node-chunks/{chunk-WBULWRM7.js → chunk-LE77BUC7.js} +28 -24
  16. package/dist/_node-chunks/{chunk-SKFAHEPX.js → chunk-LGS44CQ3.js} +15 -15
  17. package/dist/_node-chunks/chunk-LJNPOMKR.js +61 -0
  18. package/dist/_node-chunks/{chunk-WSIZMTN2.js → chunk-O4VEAB4L.js} +6 -6
  19. package/dist/_node-chunks/{chunk-6YYH64IJ.js → chunk-O6MAIGNQ.js} +13 -13
  20. package/dist/_node-chunks/chunk-P5K26BIZ.js +18 -0
  21. package/dist/_node-chunks/{chunk-473LXK7O.js → chunk-Q6Q7GGYG.js} +6 -6
  22. package/dist/_node-chunks/{chunk-7WOMK33B.js → chunk-RV4TIB2A.js} +7 -7
  23. package/dist/_node-chunks/{chunk-745GFLCZ.js → chunk-S3FEVISB.js} +6 -6
  24. package/dist/_node-chunks/{chunk-XS5QCZP7.js → chunk-U55VVTKI.js} +7 -7
  25. package/dist/_node-chunks/{chunk-NKT3R6IH.js → chunk-UAAE3CFN.js} +6 -6
  26. package/dist/_node-chunks/{chunk-H6HVK5J2.js → chunk-ULRPJDQG.js} +7 -7
  27. package/dist/_node-chunks/{chunk-UWK6Z4VL.js → chunk-VEUCEGV5.js} +6 -6
  28. package/dist/_node-chunks/{chunk-SUILKNPA.js → chunk-VVQNCKWG.js} +8 -8
  29. package/dist/_node-chunks/{chunk-WYLXFNIP.js → chunk-WP2HYYIX.js} +9 -9
  30. package/dist/_node-chunks/{chunk-N5IE6WWR.js → chunk-WP55QOFC.js} +7 -7
  31. package/dist/_node-chunks/{chunk-TUQOGYET.js → chunk-WXJLEHGP.js} +7 -7
  32. package/dist/_node-chunks/{chunk-Y7VDA7NY.js → chunk-XEZ4YPF3.js} +7 -7
  33. package/dist/_node-chunks/{dist-N33YQ3NH.js → dist-CYJGIQZ4.js} +9 -9
  34. package/dist/_node-chunks/{globby-5IBS67N3.js → globby-QGM6GHYQ.js} +9 -9
  35. package/dist/_node-chunks/{lib-2XH6KQ2B.js → lib-R7D5AM5W.js} +7 -7
  36. package/dist/_node-chunks/{mdx-N42X6CFJ-3GGSRLVV.js → mdx-N42X6CFJ-WSYY7WM6.js} +8 -8
  37. package/dist/_node-chunks/{p-limit-Z3A7N5MY.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.d.ts +1 -2
  43. package/dist/cli/index.js +18 -18
  44. package/dist/common/index.d.ts +553 -560
  45. package/dist/common/index.js +19 -21
  46. package/dist/components/index.d.ts +131 -117
  47. package/dist/components/index.js +514 -449
  48. package/dist/core-server/index.js +33 -33
  49. package/dist/core-server/presets/common-manager.js +2 -2
  50. package/dist/core-server/presets/common-override-preset.js +9 -9
  51. package/dist/core-server/presets/common-preset.js +25 -25
  52. package/dist/csf-tools/index.js +9 -9
  53. package/dist/manager/globals-runtime.js +7207 -7142
  54. package/dist/manager/runtime.js +226 -328
  55. package/dist/manager-api/index.js +1 -1
  56. package/dist/mocking-utils/index.js +8 -8
  57. package/dist/node-logger/index.d.ts +3 -1
  58. package/dist/node-logger/index.js +9 -9
  59. package/dist/server-errors.js +11 -11
  60. package/dist/telemetry/index.js +23 -23
  61. package/dist/types/index.d.ts +1 -1
  62. package/package.json +2 -2
  63. package/dist/_node-chunks/chunk-5N3H43LE.js +0 -23
  64. package/dist/_node-chunks/chunk-DRN5YXX5.js +0 -18
  65. package/dist/_node-chunks/chunk-LJRIVT23.js +0 -61
  66. package/dist/_node-chunks/chunk-Q65ED3UK.js +0 -20
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm 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_d4nrjz93tmm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.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
@@ -41,7 +41,6 @@ import {
41
41
  getAddonNames,
42
42
  getAutoRefs,
43
43
  getBuilderOptions,
44
- getCoercedStorybookVersion,
45
44
  getConfigInfo,
46
45
  getDirectoryFromWorkingDir,
47
46
  getEnvConfig,
@@ -103,29 +102,29 @@ import {
103
102
  validateConfigurationFiles,
104
103
  validateFrameworkName,
105
104
  wrapValueWithGetAbsolutePathWrapper
106
- } from "../_node-chunks/chunk-CRJ7M6EO.js";
105
+ } from "../_node-chunks/chunk-IKGF3NTB.js";
107
106
  import {
108
107
  versions_default
109
- } from "../_node-chunks/chunk-LJRIVT23.js";
110
- import "../_node-chunks/chunk-U24W5IIW.js";
111
- import "../_node-chunks/chunk-A5VW7257.js";
112
- import "../_node-chunks/chunk-NKT3R6IH.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";
113
112
  import {
114
113
  importMetaResolve,
115
114
  importModule,
116
115
  resolvePackageDir,
117
116
  safeResolveModule
118
- } from "../_node-chunks/chunk-Y7VDA7NY.js";
117
+ } from "../_node-chunks/chunk-XEZ4YPF3.js";
119
118
  import {
120
119
  groupBy,
121
120
  invariant
122
- } from "../_node-chunks/chunk-WSIZMTN2.js";
123
- import "../_node-chunks/chunk-UWK6Z4VL.js";
124
- import "../_node-chunks/chunk-XS5QCZP7.js";
125
- import "../_node-chunks/chunk-Q65ED3UK.js";
126
- import "../_node-chunks/chunk-7WOMK33B.js";
127
- import "../_node-chunks/chunk-TUQOGYET.js";
128
- import "../_node-chunks/chunk-745GFLCZ.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";
129
128
  export {
130
129
  DEFAULT_FILES_PATTERN,
131
130
  FileSystemCache,
@@ -158,7 +157,6 @@ export {
158
157
  getAddonNames,
159
158
  getAutoRefs,
160
159
  getBuilderOptions,
161
- getCoercedStorybookVersion,
162
160
  getConfigInfo,
163
161
  getDirectoryFromWorkingDir,
164
162
  getEnvConfig,
@@ -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 };