storybook 10.2.0-beta.2 → 10.2.0-beta.4

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 (68) hide show
  1. package/assets/server/base-preview-head.html +66 -44
  2. package/dist/_browser-chunks/{chunk-QOXZ7W26.js → chunk-2N4WE3KZ.js} +4 -6
  3. package/dist/_node-chunks/{builder-manager-N2LWOX5D.js → builder-manager-QV5RDRX3.js} +12 -12
  4. package/dist/_node-chunks/{camelcase-5FSYVCZS.js → camelcase-BMCEZEHU.js} +7 -7
  5. package/dist/_node-chunks/{chunk-HODKH6S2.js → chunk-2MIIBCWO.js} +6 -6
  6. package/dist/_node-chunks/chunk-3G6JTYYU.js +18 -0
  7. package/dist/_node-chunks/{chunk-P2XLDRN4.js → chunk-3WAOMPEV.js} +20 -20
  8. package/dist/_node-chunks/{chunk-ZYMMEEUR.js → chunk-5BZY2EBX.js} +6 -6
  9. package/dist/_node-chunks/{chunk-J6PIL7K6.js → chunk-7C3OCMOV.js} +7 -7
  10. package/dist/_node-chunks/chunk-7CC7KOAY.js +61 -0
  11. package/dist/_node-chunks/{chunk-EABA3I6M.js → chunk-A635UKUK.js} +36 -15
  12. package/dist/_node-chunks/{chunk-6BGWV535.js → chunk-B6PRKQBU.js} +43 -25
  13. package/dist/_node-chunks/{chunk-CQFU5LUX.js → chunk-C2PW44X2.js} +20 -11
  14. package/dist/_node-chunks/{chunk-OJV6TVDO.js → chunk-DX2OTMAX.js} +7 -7
  15. package/dist/_node-chunks/{chunk-5J2THD7E.js → chunk-HNJNGHJI.js} +7 -7
  16. package/dist/_node-chunks/{chunk-GHY5BYFV.js → chunk-HSLEWKPT.js} +7 -7
  17. package/dist/_node-chunks/{chunk-HBFPHSFB.js → chunk-JGB6IJ7A.js} +6 -6
  18. package/dist/_node-chunks/{chunk-WXDEINTE.js → chunk-JZDQQ34S.js} +10 -10
  19. package/dist/_node-chunks/{chunk-XEBN3C26.js → chunk-LDPGDFBN.js} +8 -8
  20. package/dist/_node-chunks/{chunk-4VD35T6X.js → chunk-LQF2YX4Z.js} +6 -6
  21. package/dist/_node-chunks/{chunk-M4QILBFD.js → chunk-LY42XGJX.js} +7 -7
  22. package/dist/_node-chunks/{chunk-5PCZPYCJ.js → chunk-M3NUJKHF.js} +9 -9
  23. package/dist/_node-chunks/{chunk-ZQQYNNTB.js → chunk-NM76NNBF.js} +9 -9
  24. package/dist/_node-chunks/{chunk-SBB2XM7N.js → chunk-PFCD6HBP.js} +7 -7
  25. package/dist/_node-chunks/{chunk-FWIMIUHV.js → chunk-QLZIG3XC.js} +7 -7
  26. package/dist/_node-chunks/chunk-TJGUM3J6.js +23 -0
  27. package/dist/_node-chunks/{chunk-2LRLWFCA.js → chunk-TOAOZCOV.js} +16 -16
  28. package/dist/_node-chunks/{chunk-7UVJF2ZL.js → chunk-UJMJ7W5H.js} +7 -7
  29. package/dist/_node-chunks/{chunk-BTTNDYQ6.js → chunk-V2LVNLAT.js} +6 -6
  30. package/dist/_node-chunks/{chunk-PGC5F6XL.js → chunk-WC6YF7PX.js} +6 -6
  31. package/dist/_node-chunks/{chunk-2LLPTUG2.js → chunk-XOGYJBNU.js} +6 -6
  32. package/dist/_node-chunks/{chunk-M62QO44I.js → chunk-Z4WARWVA.js} +6 -6
  33. package/dist/_node-chunks/{globby-SSZCWWA6.js → globby-OVGPC72V.js} +9 -9
  34. package/dist/_node-chunks/{lib-L2HJYQNA.js → lib-GNBN4EH6.js} +7 -7
  35. package/dist/_node-chunks/{mdx-N42X6CFJ-H4SZRJXB.js → mdx-N42X6CFJ-I3J2JFL4.js} +8 -8
  36. package/dist/_node-chunks/{p-limit-EA5PER7Y.js → p-limit-2LNUZG3W.js} +7 -7
  37. package/dist/babel/index.js +10 -10
  38. package/dist/bin/core.js +12 -12
  39. package/dist/bin/dispatcher.js +11 -11
  40. package/dist/bin/loader.js +9 -9
  41. package/dist/cli/index.js +18 -18
  42. package/dist/common/index.js +19 -19
  43. package/dist/components/index.d.ts +2 -0
  44. package/dist/components/index.js +49 -16
  45. package/dist/core-server/index.js +35 -35
  46. package/dist/core-server/presets/common-manager.js +15 -21
  47. package/dist/core-server/presets/common-override-preset.js +9 -9
  48. package/dist/core-server/presets/common-preset.js +25 -25
  49. package/dist/csf/index.d.ts +333 -8
  50. package/dist/csf/index.js +1 -1
  51. package/dist/csf-tools/index.js +9 -9
  52. package/dist/manager/globals-runtime.js +58 -25
  53. package/dist/manager/runtime.js +167 -148
  54. package/dist/manager-api/index.d.ts +13 -13
  55. package/dist/manager-api/index.js +1 -1
  56. package/dist/mocking-utils/index.js +8 -8
  57. package/dist/node-logger/index.js +9 -9
  58. package/dist/preview/runtime.js +4 -6
  59. package/dist/preview-api/index.d.ts +69 -68
  60. package/dist/preview-api/index.js +1 -1
  61. package/dist/server-errors.js +11 -11
  62. package/dist/telemetry/index.d.ts +5 -0
  63. package/dist/telemetry/index.js +23 -23
  64. package/dist/types/index.d.ts +2 -3
  65. package/package.json +1 -1
  66. package/dist/_node-chunks/chunk-2WBHN5ZN.js +0 -23
  67. package/dist/_node-chunks/chunk-ADG4FYMH.js +0 -61
  68. package/dist/_node-chunks/chunk-J4YBZOS2.js +0 -18
@@ -1,3 +1,4 @@
1
+ import React$1, { ComponentProps } from 'react';
1
2
  import { StorybookTypes, Renderer as Renderer$1, ProjectAnnotations as ProjectAnnotations$1, NormalizedProjectAnnotations, ComponentAnnotations as ComponentAnnotations$1, StoryAnnotations as StoryAnnotations$1, ComposedStoryFn, TestFunction as TestFunction$1 } from 'storybook/internal/types';
2
3
  import { AddonTypes as AddonTypes$1, StoryContext as StoryContext$1 } from 'storybook/internal/csf';
3
4
 
@@ -358,6 +359,333 @@ type UnionToIntersection<Union> = (
358
359
  ? Intersection
359
360
  : never;
360
361
 
362
+ interface ComponentSelector {
363
+ __emotion_styles: any;
364
+ }
365
+
366
+ /**
367
+ * @desc Utility type for getting props type of React component.
368
+ * It takes `defaultProps` into an account - making props with defaults optional.
369
+ */
370
+ type PropsOf<C extends keyof ReactJSX.IntrinsicElements | React.JSXElementConstructor<any>> = ReactJSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
371
+
372
+ interface Theme {
373
+ }
374
+
375
+ type IsPreReact19$1 = 2 extends Parameters<React.FunctionComponent<any>>['length'] ? true : false;
376
+ /** @ts-ignore */
377
+ type ReactJSXElement = true extends IsPreReact19$1 ? JSX.Element : React.JSX.Element;
378
+ /** @ts-ignore */
379
+ type ReactJSXElementClass = true extends IsPreReact19$1 ? JSX.ElementClass : React.JSX.ElementClass;
380
+ /** @ts-ignore */
381
+ type ReactJSXElementAttributesProperty = true extends IsPreReact19$1 ? JSX.ElementAttributesProperty : React.JSX.ElementAttributesProperty;
382
+ /** @ts-ignore */
383
+ type ReactJSXElementChildrenAttribute = true extends IsPreReact19$1 ? JSX.ElementChildrenAttribute : React.JSX.ElementChildrenAttribute;
384
+ /** @ts-ignore */
385
+ type ReactJSXLibraryManagedAttributes<C, P> = true extends IsPreReact19$1 ? JSX.LibraryManagedAttributes<C, P> : React.JSX.LibraryManagedAttributes<C, P>;
386
+ /** @ts-ignore */
387
+ type ReactJSXIntrinsicAttributes = true extends IsPreReact19$1 ? JSX.IntrinsicAttributes : React.JSX.IntrinsicAttributes;
388
+ /** @ts-ignore */
389
+ type ReactJSXIntrinsicClassAttributes<T> = true extends IsPreReact19$1 ? JSX.IntrinsicClassAttributes<T> : React.JSX.IntrinsicClassAttributes<T>;
390
+ /** @ts-ignore */
391
+ type ReactJSXIntrinsicElements$1 = true extends IsPreReact19$1 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements;
392
+ /** @ts-ignore */
393
+ type ReactJSXElementType = true extends IsPreReact19$1 ? string | React.JSXElementConstructor<any> : React.JSX.ElementType;
394
+ declare namespace ReactJSX {
395
+ type ElementType = ReactJSXElementType;
396
+ interface Element extends ReactJSXElement {
397
+ }
398
+ interface ElementClass extends ReactJSXElementClass {
399
+ }
400
+ interface ElementAttributesProperty extends ReactJSXElementAttributesProperty {
401
+ }
402
+ interface ElementChildrenAttribute extends ReactJSXElementChildrenAttribute {
403
+ }
404
+ type LibraryManagedAttributes<C, P> = ReactJSXLibraryManagedAttributes<C, P>;
405
+ interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {
406
+ }
407
+ interface IntrinsicClassAttributes<T> extends ReactJSXIntrinsicClassAttributes<T> {
408
+ }
409
+ type IntrinsicElements = ReactJSXIntrinsicElements$1;
410
+ }
411
+
412
+ type IsPreReact19 = 2 extends Parameters<React.FunctionComponent<any>>['length'] ? true : false;
413
+ /** @ts-ignore */
414
+ type ReactJSXIntrinsicElements = true extends IsPreReact19 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements;
415
+
416
+ /**
417
+ * @typeparam ComponentProps Props which will be included when withComponent is called
418
+ * @typeparam SpecificComponentProps Props which will *not* be included when withComponent is called
419
+ */
420
+ interface StyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}> extends React.FC<ComponentProps & SpecificComponentProps & JSXProps>, ComponentSelector {
421
+ withComponent<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C): StyledComponent<ComponentProps & PropsOf<C>, {}, {
422
+ ref?: React.Ref<InstanceType<C>>;
423
+ }>;
424
+ withComponent<C extends React.ComponentType<React.ComponentProps<C>>>(component: C): StyledComponent<ComponentProps & PropsOf<C>>;
425
+ withComponent<Tag extends keyof ReactJSXIntrinsicElements>(tag: Tag): StyledComponent<ComponentProps, ReactJSXIntrinsicElements[Tag]>;
426
+ }
427
+
428
+ type IconType = keyof typeof icons;
429
+ declare const Svg: StyledComponent<{
430
+ theme?: Theme;
431
+ as?: React$1.ElementType;
432
+ }, React$1.SVGProps<SVGSVGElement>, {}>;
433
+ interface IconsProps extends ComponentProps<typeof Svg> {
434
+ icon: IconType;
435
+ useSymbol?: boolean;
436
+ onClick?: () => void;
437
+ __suppressDeprecationWarning?: boolean;
438
+ }
439
+ declare const icons: {
440
+ readonly user: "UserIcon";
441
+ readonly useralt: "UserAltIcon";
442
+ readonly useradd: "UserAddIcon";
443
+ readonly users: "UsersIcon";
444
+ readonly profile: "ProfileIcon";
445
+ readonly facehappy: "FaceHappyIcon";
446
+ readonly faceneutral: "FaceNeutralIcon";
447
+ readonly facesad: "FaceSadIcon";
448
+ readonly accessibility: "AccessibilityIcon";
449
+ readonly accessibilityalt: "AccessibilityAltIcon";
450
+ readonly arrowup: "ChevronUpIcon";
451
+ readonly arrowdown: "ChevronDownIcon";
452
+ readonly arrowleft: "ChevronLeftIcon";
453
+ readonly arrowright: "ChevronRightIcon";
454
+ readonly arrowupalt: "ArrowUpIcon";
455
+ readonly arrowdownalt: "ArrowDownIcon";
456
+ readonly arrowleftalt: "ArrowLeftIcon";
457
+ readonly arrowrightalt: "ArrowRightIcon";
458
+ readonly expandalt: "ExpandAltIcon";
459
+ readonly collapse: "CollapseIcon";
460
+ readonly expand: "ExpandIcon";
461
+ readonly unfold: "UnfoldIcon";
462
+ readonly transfer: "TransferIcon";
463
+ readonly redirect: "RedirectIcon";
464
+ readonly undo: "UndoIcon";
465
+ readonly reply: "ReplyIcon";
466
+ readonly sync: "SyncIcon";
467
+ readonly upload: "UploadIcon";
468
+ readonly download: "DownloadIcon";
469
+ readonly back: "BackIcon";
470
+ readonly proceed: "ProceedIcon";
471
+ readonly refresh: "RefreshIcon";
472
+ readonly globe: "GlobeIcon";
473
+ readonly compass: "CompassIcon";
474
+ readonly location: "LocationIcon";
475
+ readonly pin: "PinIcon";
476
+ readonly time: "TimeIcon";
477
+ readonly dashboard: "DashboardIcon";
478
+ readonly timer: "TimerIcon";
479
+ readonly home: "HomeIcon";
480
+ readonly admin: "AdminIcon";
481
+ readonly info: "InfoIcon";
482
+ readonly question: "QuestionIcon";
483
+ readonly support: "SupportIcon";
484
+ readonly alert: "AlertIcon";
485
+ readonly email: "EmailIcon";
486
+ readonly phone: "PhoneIcon";
487
+ readonly link: "LinkIcon";
488
+ readonly unlink: "LinkBrokenIcon";
489
+ readonly bell: "BellIcon";
490
+ readonly rss: "RSSIcon";
491
+ readonly sharealt: "ShareAltIcon";
492
+ readonly share: "ShareIcon";
493
+ readonly circle: "CircleIcon";
494
+ readonly circlehollow: "CircleHollowIcon";
495
+ readonly bookmarkhollow: "BookmarkHollowIcon";
496
+ readonly bookmark: "BookmarkIcon";
497
+ readonly hearthollow: "HeartHollowIcon";
498
+ readonly heart: "HeartIcon";
499
+ readonly starhollow: "StarHollowIcon";
500
+ readonly star: "StarIcon";
501
+ readonly certificate: "CertificateIcon";
502
+ readonly verified: "VerifiedIcon";
503
+ readonly thumbsup: "ThumbsUpIcon";
504
+ readonly shield: "ShieldIcon";
505
+ readonly basket: "BasketIcon";
506
+ readonly beaker: "BeakerIcon";
507
+ readonly hourglass: "HourglassIcon";
508
+ readonly flag: "FlagIcon";
509
+ readonly cloudhollow: "CloudHollowIcon";
510
+ readonly edit: "EditIcon";
511
+ readonly cog: "CogIcon";
512
+ readonly nut: "NutIcon";
513
+ readonly wrench: "WrenchIcon";
514
+ readonly ellipsis: "EllipsisIcon";
515
+ readonly check: "CheckIcon";
516
+ readonly form: "FormIcon";
517
+ readonly batchdeny: "BatchDenyIcon";
518
+ readonly batchaccept: "BatchAcceptIcon";
519
+ readonly controls: "ControlsIcon";
520
+ readonly plus: "PlusIcon";
521
+ readonly closeAlt: "CloseAltIcon";
522
+ readonly cross: "CrossIcon";
523
+ readonly trash: "TrashIcon";
524
+ readonly pinalt: "PinAltIcon";
525
+ readonly unpin: "UnpinIcon";
526
+ readonly add: "AddIcon";
527
+ readonly subtract: "SubtractIcon";
528
+ readonly close: "CloseIcon";
529
+ readonly delete: "DeleteIcon";
530
+ readonly passed: "PassedIcon";
531
+ readonly changed: "ChangedIcon";
532
+ readonly failed: "FailedIcon";
533
+ readonly clear: "ClearIcon";
534
+ readonly comment: "CommentIcon";
535
+ readonly commentadd: "CommentAddIcon";
536
+ readonly requestchange: "RequestChangeIcon";
537
+ readonly comments: "CommentsIcon";
538
+ readonly lock: "LockIcon";
539
+ readonly unlock: "UnlockIcon";
540
+ readonly key: "KeyIcon";
541
+ readonly outbox: "OutboxIcon";
542
+ readonly credit: "CreditIcon";
543
+ readonly button: "ButtonIcon";
544
+ readonly type: "TypeIcon";
545
+ readonly pointerdefault: "PointerDefaultIcon";
546
+ readonly pointerhand: "PointerHandIcon";
547
+ readonly browser: "BrowserIcon";
548
+ readonly tablet: "TabletIcon";
549
+ readonly mobile: "MobileIcon";
550
+ readonly watch: "WatchIcon";
551
+ readonly sidebar: "SidebarIcon";
552
+ readonly sidebaralt: "SidebarAltIcon";
553
+ readonly sidebaralttoggle: "SidebarAltToggleIcon";
554
+ readonly sidebartoggle: "SidebarToggleIcon";
555
+ readonly bottombar: "BottomBarIcon";
556
+ readonly bottombartoggle: "BottomBarToggleIcon";
557
+ readonly cpu: "CPUIcon";
558
+ readonly database: "DatabaseIcon";
559
+ readonly memory: "MemoryIcon";
560
+ readonly structure: "StructureIcon";
561
+ readonly box: "BoxIcon";
562
+ readonly power: "PowerIcon";
563
+ readonly photo: "PhotoIcon";
564
+ readonly component: "ComponentIcon";
565
+ readonly grid: "GridIcon";
566
+ readonly outline: "OutlineIcon";
567
+ readonly photodrag: "PhotoDragIcon";
568
+ readonly search: "SearchIcon";
569
+ readonly zoom: "ZoomIcon";
570
+ readonly zoomout: "ZoomOutIcon";
571
+ readonly zoomreset: "ZoomResetIcon";
572
+ readonly eye: "EyeIcon";
573
+ readonly eyeclose: "EyeCloseIcon";
574
+ readonly lightning: "LightningIcon";
575
+ readonly lightningoff: "LightningOffIcon";
576
+ readonly contrast: "ContrastIcon";
577
+ readonly switchalt: "SwitchAltIcon";
578
+ readonly mirror: "MirrorIcon";
579
+ readonly grow: "GrowIcon";
580
+ readonly paintbrush: "PaintBrushIcon";
581
+ readonly ruler: "RulerIcon";
582
+ readonly stop: "StopIcon";
583
+ readonly camera: "CameraIcon";
584
+ readonly video: "VideoIcon";
585
+ readonly speaker: "SpeakerIcon";
586
+ readonly play: "PlayIcon";
587
+ readonly playback: "PlayBackIcon";
588
+ readonly playnext: "PlayNextIcon";
589
+ readonly rewind: "RewindIcon";
590
+ readonly fastforward: "FastForwardIcon";
591
+ readonly stopalt: "StopAltIcon";
592
+ readonly sidebyside: "SideBySideIcon";
593
+ readonly stacked: "StackedIcon";
594
+ readonly sun: "SunIcon";
595
+ readonly moon: "MoonIcon";
596
+ readonly book: "BookIcon";
597
+ readonly document: "DocumentIcon";
598
+ readonly copy: "CopyIcon";
599
+ readonly category: "CategoryIcon";
600
+ readonly folder: "FolderIcon";
601
+ readonly print: "PrintIcon";
602
+ readonly graphline: "GraphLineIcon";
603
+ readonly calendar: "CalendarIcon";
604
+ readonly graphbar: "GraphBarIcon";
605
+ readonly menu: "MenuIcon";
606
+ readonly menualt: "MenuIcon";
607
+ readonly filter: "FilterIcon";
608
+ readonly docchart: "DocChartIcon";
609
+ readonly doclist: "DocListIcon";
610
+ readonly markup: "MarkupIcon";
611
+ readonly bold: "BoldIcon";
612
+ readonly paperclip: "PaperClipIcon";
613
+ readonly listordered: "ListOrderedIcon";
614
+ readonly listunordered: "ListUnorderedIcon";
615
+ readonly paragraph: "ParagraphIcon";
616
+ readonly markdown: "MarkdownIcon";
617
+ readonly repository: "RepoIcon";
618
+ readonly commit: "CommitIcon";
619
+ readonly branch: "BranchIcon";
620
+ readonly pullrequest: "PullRequestIcon";
621
+ readonly merge: "MergeIcon";
622
+ readonly apple: "AppleIcon";
623
+ readonly linux: "LinuxIcon";
624
+ readonly ubuntu: "UbuntuIcon";
625
+ readonly windows: "WindowsIcon";
626
+ readonly storybook: "StorybookIcon";
627
+ readonly azuredevops: "AzureDevOpsIcon";
628
+ readonly bitbucket: "BitbucketIcon";
629
+ readonly chrome: "ChromeIcon";
630
+ readonly chromatic: "ChromaticIcon";
631
+ readonly componentdriven: "ComponentDrivenIcon";
632
+ readonly discord: "DiscordIcon";
633
+ readonly facebook: "FacebookIcon";
634
+ readonly figma: "FigmaIcon";
635
+ readonly gdrive: "GDriveIcon";
636
+ readonly github: "GithubIcon";
637
+ readonly gitlab: "GitlabIcon";
638
+ readonly google: "GoogleIcon";
639
+ readonly graphql: "GraphqlIcon";
640
+ readonly medium: "MediumIcon";
641
+ readonly redux: "ReduxIcon";
642
+ readonly twitter: "TwitterIcon";
643
+ readonly youtube: "YoutubeIcon";
644
+ readonly vscode: "VSCodeIcon";
645
+ };
646
+
647
+ type ToolbarShortcutType = 'next' | 'previous' | 'reset';
648
+ type ToolbarItemType = 'item' | 'reset';
649
+ interface ToolbarShortcutConfig {
650
+ label: string;
651
+ keys: string[];
652
+ }
653
+ type ToolbarShortcuts = Record<ToolbarShortcutType, ToolbarShortcutConfig>;
654
+ interface ToolbarItem {
655
+ value?: string;
656
+ icon?: IconsProps['icon'];
657
+ right?: string;
658
+ title?: string;
659
+ hideIcon?: boolean;
660
+ type?: ToolbarItemType;
661
+ }
662
+ interface NormalizedToolbarConfig {
663
+ /** The label to show for this toolbar item */
664
+ title?: string;
665
+ /** Choose an icon to show for this toolbar item */
666
+ icon?: IconsProps['icon'];
667
+ /** Set to true to prevent default update of icon to match any present selected items icon */
668
+ preventDynamicIcon?: boolean;
669
+ items: ToolbarItem[];
670
+ shortcuts?: ToolbarShortcuts;
671
+ /** Change title based on selected value */
672
+ dynamicTitle?: boolean;
673
+ }
674
+ type ToolbarConfig = Omit<NormalizedToolbarConfig, 'items'> & {
675
+ items: (string | ToolbarItem)[];
676
+ };
677
+ type ToolbarArgType = {
678
+ name?: string;
679
+ description?: string;
680
+ defaultValue?: any;
681
+ toolbar?: ToolbarConfig;
682
+ /**
683
+ * @deprecated This loose index signature has been added for compatibility with InputType, and
684
+ * will be removed in Storybook 11
685
+ */
686
+ [key: string]: any;
687
+ };
688
+
361
689
  interface SBBaseType {
362
690
  required?: boolean;
363
691
  raw?: string;
@@ -703,7 +1031,7 @@ interface StoryIdentifier {
703
1031
  story: StoryName;
704
1032
  tags: Tag[];
705
1033
  }
706
- interface Parameters {
1034
+ interface Parameters$1 {
707
1035
  [name: string]: any;
708
1036
  }
709
1037
  interface StrictParameters {
@@ -829,10 +1157,7 @@ interface Globals {
829
1157
  [name: string]: any;
830
1158
  }
831
1159
  interface GlobalTypes {
832
- [name: string]: InputType;
833
- }
834
- interface StrictGlobalTypes {
835
- [name: string]: StrictInputType;
1160
+ [name: string]: ToolbarArgType;
836
1161
  }
837
1162
  /**
838
1163
  * AddonTypes allows addons to extend the type system with additional args, parameters, and globals.
@@ -875,7 +1200,7 @@ interface StoryContextForEnhancers<TRenderer extends Renderer = Renderer, TArgs
875
1200
  subcomponents?: Record<string, (TRenderer & {
876
1201
  T: any;
877
1202
  })['component']>;
878
- parameters: Parameters;
1203
+ parameters: Parameters$1;
879
1204
  initialArgs: TArgs;
880
1205
  argTypes: StrictArgTypes<TArgs>;
881
1206
  }
@@ -943,7 +1268,7 @@ interface BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args> {
943
1268
  *
944
1269
  * @see [Parameters](https://storybook.js.org/docs/writing-stories/parameters)
945
1270
  */
946
- parameters?: Parameters & (TRenderer['csf4'] extends true ? CoreTypes['parameters'] & TRenderer['parameters'] : unknown);
1271
+ parameters?: Parameters$1 & (TRenderer['csf4'] extends true ? CoreTypes['parameters'] & TRenderer['parameters'] : unknown);
947
1272
  /**
948
1273
  * Dynamic data that are provided (and possibly updated by) Storybook and its addons.
949
1274
  *
@@ -1195,4 +1520,4 @@ declare const parseKind: (kind: string, { rootSeparator, groupSeparator }: Separ
1195
1520
  /** Combine a set of project / meta / story tags, removing duplicates and handling negations. */
1196
1521
  declare const combineTags: (...tags: string[]) => string[];
1197
1522
 
1198
- export { type AddonTypes, type AfterEach, type AnnotatedStoryFn, type AnyFramework, type ArgTypes, type ArgTypesEnhancer, type Args, type ArgsEnhancer, type ArgsFromMeta, type ArgsStoryFn, type BaseAnnotations, type BeforeAll, type BeforeEach, type Canvas, type CleanupCallback, type ComponentAnnotations, type ComponentId, type ComponentTitle, type Conditional, type CoreTypes, type DecoratorApplicator, type DecoratorFunction, type GlobalTypes, type Globals, type IncludeExcludeOptions, type InferTypes, type InputType, type LegacyAnnotatedStoryFn, type LegacyStoryAnnotationsOrFn, type LegacyStoryFn, type LoaderFunction, type Meta, type Parameters, type PartialStoryFn, type PlayFunction, type PlayFunctionContext, type Preview, type PreviewAddon, type ProjectAnnotations, type Renderer, type SBArrayType, type SBEnumType, type SBIntersectionType, type SBLiteralType, type SBNodeType, type SBObjectType, type SBOtherType, type SBScalarType, type SBTupleType, type SBType, type SBUnionType, type SeparatorOptions, type StepFunction, type StepLabel, type StepRunner, type Story, type StoryAnnotations, type StoryAnnotationsOrFn, type StoryContext, type StoryContextForEnhancers, type StoryContextForLoaders, type StoryContextUpdate, type StoryFn, type StoryId, type StoryIdentifier, type StoryKind, type StoryName, type StrictArgTypes, type StrictArgs, type StrictGlobalTypes, type StrictInputType, type StrictParameters, type Tag, type TestFunction, type ViewMode, combineTags, definePreview, definePreviewAddon, getCoreAnnotations, getStoryChildren, includeConditionalArg, isExportStory, isMeta, isPreview, isStory, parseKind, sanitize, storyNameFromExport, toId, toTestId };
1523
+ export { type ActionsTypes, type AddonTypes, type AfterEach, type AnnotatedStoryFn, type AnyFramework, type ArgTypes, type ArgTypesEnhancer, type Args, type ArgsEnhancer, type ArgsFromMeta, type ArgsStoryFn, type BackgroundTypes, type BackgroundsGlobals, type BaseAnnotations, type BeforeAll, type BeforeEach, type Canvas, type CleanupCallback, type ComponentAnnotations, type ComponentId, type ComponentTitle, type Conditional, type ControlsTypes, type CoreTypes, type DecoratorApplicator, type DecoratorFunction, type GlobalTypes, type Globals, type HighlightTypes, type IncludeExcludeOptions, type InferTypes, type InputType, type LegacyAnnotatedStoryFn, type LegacyStoryAnnotationsOrFn, type LegacyStoryFn, type LoaderFunction, type MeasureTypes, type Meta, type OutlineTypes, type Parameters$1 as Parameters, type PartialStoryFn, type PlayFunction, type PlayFunctionContext, type Preview, type PreviewAddon, type ProjectAnnotations, type Renderer, type SBArrayType, type SBEnumType, type SBIntersectionType, type SBLiteralType, type SBNodeType, type SBObjectType, type SBOtherType, type SBScalarType, type SBTupleType, type SBType, type SBUnionType, type SeparatorOptions, type StepFunction, type StepLabel, type StepRunner, type Story, type StoryAnnotations, type StoryAnnotationsOrFn, type StoryContext, type StoryContextForEnhancers, type StoryContextForLoaders, type StoryContextUpdate, type StoryFn, type StoryId, type StoryIdentifier, type StoryKind, type StoryName, type StrictArgTypes, type StrictArgs, type StrictInputType, type StrictParameters, type Tag, type TestFunction, type TestTypes, type ViewMode, type ViewportGlobals, type ViewportTypes, combineTags, definePreview, definePreviewAddon, getCoreAnnotations, getStoryChildren, includeConditionalArg, isExportStory, isMeta, isPreview, isStory, parseKind, sanitize, storyNameFromExport, toId, toTestId };
package/dist/csf/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  mountDestructured,
11
11
  normalizeArrays,
12
12
  normalizeProjectAnnotations
13
- } from "../_browser-chunks/chunk-QOXZ7W26.js";
13
+ } from "../_browser-chunks/chunk-2N4WE3KZ.js";
14
14
  import "../_browser-chunks/chunk-MEXTPDJG.js";
15
15
  import {
16
16
  Tag
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_96u9uvlttj6 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_96u9uvlttj6 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_96u9uvlttj6 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_96u9uvlttj6.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_96u9uvlttj6.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_96u9uvlttj6.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -39,9 +39,9 @@ import {
39
39
  vitestTransform,
40
40
  writeConfig,
41
41
  writeCsf
42
- } from "../_node-chunks/chunk-CQFU5LUX.js";
43
- import "../_node-chunks/chunk-7UVJF2ZL.js";
44
- import "../_node-chunks/chunk-ZYMMEEUR.js";
42
+ } from "../_node-chunks/chunk-C2PW44X2.js";
43
+ import "../_node-chunks/chunk-UJMJ7W5H.js";
44
+ import "../_node-chunks/chunk-5BZY2EBX.js";
45
45
  export {
46
46
  BadMetaError,
47
47
  ConfigFile,
@@ -8101,19 +8101,19 @@ function _wrapNativeSuper(t) {
8101
8101
  if (typeof t2 != "function") throw new TypeError("Super expression must either be null or a function");
8102
8102
  if (r2 !== void 0) {
8103
8103
  if (r2.has(t2)) return r2.get(t2);
8104
- r2.set(t2, Wrapper8);
8104
+ r2.set(t2, Wrapper9);
8105
8105
  }
8106
- function Wrapper8() {
8106
+ function Wrapper9() {
8107
8107
  return _construct(t2, arguments, _getPrototypeOf(this).constructor);
8108
8108
  }
8109
- return Wrapper8.prototype = Object.create(t2.prototype, {
8109
+ return Wrapper9.prototype = Object.create(t2.prototype, {
8110
8110
  constructor: {
8111
- value: Wrapper8,
8111
+ value: Wrapper9,
8112
8112
  enumerable: !1,
8113
8113
  writable: !0,
8114
8114
  configurable: !0
8115
8115
  }
8116
- }), _setPrototypeOf(Wrapper8, t2);
8116
+ }), _setPrototypeOf(Wrapper9, t2);
8117
8117
  }, _wrapNativeSuper(t);
8118
8118
  }
8119
8119
  var init_wrapNativeSuper = __esm({
@@ -31239,7 +31239,7 @@ __export(WithTooltip_exports, {
31239
31239
  WithTooltip: () => WithToolTipState,
31240
31240
  WithTooltipPure: () => DeprecatedPure
31241
31241
  });
31242
- var import_react158, import_react_dom7, import_memoizerific10, document12, match2, ArrowSpacing, Arrow, Wrapper4, Tooltip3, TargetContainer, TargetSvgContainer, WithTooltipPure, WithToolTipState, DeprecatedPure, DeprecatedState, init_WithTooltip = __esm({
31242
+ var import_react158, import_react_dom7, import_memoizerific10, document12, match2, ArrowSpacing, Arrow, Wrapper5, Tooltip3, TargetContainer, TargetSvgContainer, WithTooltipPure, WithToolTipState, DeprecatedPure, DeprecatedState, init_WithTooltip = __esm({
31243
31243
  "src/components/components/tooltip/WithTooltip.tsx"() {
31244
31244
  "use strict";
31245
31245
  import_react158 = __toESM(require_react(), 1), import_react_dom7 = __toESM(require_react_dom(), 1);
@@ -31304,7 +31304,7 @@ var import_react158, import_react_dom7, import_memoizerific10, document12, match
31304
31304
  "transparent"
31305
31305
  )
31306
31306
  })
31307
- ), Wrapper4 = styled.div(
31307
+ ), Wrapper5 = styled.div(
31308
31308
  ({ hidden }) => ({
31309
31309
  display: hidden ? "none" : "inline-block",
31310
31310
  zIndex: 2147483647,
@@ -31329,7 +31329,7 @@ var import_react158, import_react_dom7, import_memoizerific10, document12, match
31329
31329
  color: color2,
31330
31330
  withArrows,
31331
31331
  ...props
31332
- }, ref) => import_react158.default.createElement(Wrapper4, { "data-testid": "tooltip", hasChrome, ref, ...props, color: color2 }, hasChrome && withArrows && import_react158.default.createElement(Arrow, { placement, ...arrowProps, color: color2 }), children)
31332
+ }, ref) => import_react158.default.createElement(Wrapper5, { "data-testid": "tooltip", hasChrome, ref, ...props, color: color2 }, hasChrome && withArrows && import_react158.default.createElement(Arrow, { placement, ...arrowProps, color: color2 }), children)
31333
31333
  );
31334
31334
  Tooltip3.displayName = "Tooltip";
31335
31335
  TargetContainer = styled.div`
@@ -62174,7 +62174,7 @@ init_dist();
62174
62174
  var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
62175
62175
 
62176
62176
  // src/manager-api/version.ts
62177
- var version = "10.2.0-beta.2";
62177
+ var version = "10.2.0-beta.4";
62178
62178
 
62179
62179
  // src/manager-api/modules/versions.ts
62180
62180
  var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
@@ -71398,7 +71398,7 @@ var sizes = (({ size }) => {
71398
71398
  appearance: "none",
71399
71399
  border: "0 none",
71400
71400
  boxSizing: "inherit",
71401
- display: " block",
71401
+ display: "block",
71402
71402
  margin: " 0",
71403
71403
  background: "transparent",
71404
71404
  padding: 0,
@@ -71439,13 +71439,46 @@ var sizes = (({ size }) => {
71439
71439
  }));
71440
71440
 
71441
71441
  // src/components/components/Form/Input.tsx
71442
- var Input2 = Object.assign(
71442
+ var Wrapper3 = styled.div({
71443
+ position: "relative",
71444
+ width: "100%"
71445
+ }), Mask = styled.div(
71446
+ ({ theme: theme3 }) => ({
71447
+ position: "absolute",
71448
+ left: 0,
71449
+ right: 0,
71450
+ top: 0,
71451
+ bottom: 0,
71452
+ display: "flex",
71453
+ alignItems: "center",
71454
+ pointerEvents: "none",
71455
+ overflow: "hidden",
71456
+ color: theme3.textMutedColor,
71457
+ "span:first-of-type": {
71458
+ opacity: 0
71459
+ }
71460
+ }),
71461
+ (props) => {
71462
+ let { fontSize, lineHeight, padding } = styles3(props);
71463
+ return { fontSize, lineHeight, padding };
71464
+ }
71465
+ ), Input2 = Object.assign(
71443
71466
  styled(
71444
- (0, import_react115.forwardRef)(function({ size, valid, align: align2, ...props }, ref) {
71445
- return import_react114.default.createElement("input", { ...props, ref });
71467
+ (0, import_react115.forwardRef)(function({ size, valid, align: align2, value, suffix, ...props }, ref) {
71468
+ let suffixId = $bdb11010cef70236$export$f680877a34711e37();
71469
+ return import_react114.default.createElement(Wrapper3, null, import_react114.default.createElement(
71470
+ "input",
71471
+ {
71472
+ ...props,
71473
+ value,
71474
+ ref,
71475
+ "aria-describedby": suffix ? suffixId : void 0
71476
+ }
71477
+ ), suffix && import_react114.default.createElement(Mask, { "aria-hidden": !0 }, import_react114.default.createElement("span", null, value), import_react114.default.createElement("span", { id: suffixId }, suffix)));
71446
71478
  })
71447
71479
  )(styles3, sizes, alignment, validation, {
71448
- minHeight: 32
71480
+ minHeight: 32,
71481
+ width: "100%"
71449
71482
  }),
71450
71483
  {
71451
71484
  displayName: "Input"
@@ -71535,7 +71568,7 @@ var BaseSelect = styled.select(sizes, ({ theme: theme3 }) => ({
71535
71568
  },
71536
71569
  "&::picker(select)": {
71537
71570
  appearance: "base-select",
71538
- border: "1px solid #e4e4e7",
71571
+ border: `1px solid ${theme3.input.border}`,
71539
71572
  padding: 4,
71540
71573
  marginTop: 4,
71541
71574
  background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
@@ -71799,7 +71832,7 @@ var Form2 = Object.assign(
71799
71832
  // src/components/components/Popover/Popover.tsx
71800
71833
  var import_react122 = __toESM(require_react(), 1);
71801
71834
  init_theming();
71802
- var Wrapper3 = styled.div(
71835
+ var Wrapper4 = styled.div(
71803
71836
  ({ hasCloseButton, padding }) => ({
71804
71837
  display: "inline-block",
71805
71838
  position: "relative",
@@ -71842,7 +71875,7 @@ var Wrapper3 = styled.div(
71842
71875
  padding = 8,
71843
71876
  ...props
71844
71877
  }, ref) => import_react122.default.createElement(
71845
- Wrapper3,
71878
+ Wrapper4,
71846
71879
  {
71847
71880
  bgColor: color2,
71848
71881
  hasChrome,
@@ -72620,8 +72653,8 @@ function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
72620
72653
  }, children);
72621
72654
  }
72622
72655
  function $f39a9eba43920ace$export$86427a43e3e48ebb(fn4) {
72623
- let Wrapper8 = (props, ref) => (0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn4(props, ref);
72624
- return Wrapper8.displayName = fn4.displayName || fn4.name, (0, import_react126.forwardRef)(Wrapper8);
72656
+ let Wrapper9 = (props, ref) => (0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn4(props, ref);
72657
+ return Wrapper9.displayName = fn4.displayName || fn4.name, (0, import_react126.forwardRef)(Wrapper9);
72625
72658
  }
72626
72659
  function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
72627
72660
  return (0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
@@ -76118,7 +76151,7 @@ TabButton.displayName = "TabButton";
76118
76151
  // src/components/components/Tabs/EmptyTabContent.tsx
76119
76152
  var import_react165 = __toESM(require_react(), 1);
76120
76153
  init_theming();
76121
- var Wrapper5 = styled.div(({ theme: theme3 }) => ({
76154
+ var Wrapper6 = styled.div(({ theme: theme3 }) => ({
76122
76155
  height: "100%",
76123
76156
  display: "flex",
76124
76157
  padding: 30,
@@ -76144,7 +76177,7 @@ var Wrapper5 = styled.div(({ theme: theme3 }) => ({
76144
76177
  fontSize: theme3.typography.size.s2 - 1,
76145
76178
  textAlign: "center",
76146
76179
  color: theme3.textMutedColor
76147
- })), EmptyTabContent = ({ title, description, footer }) => import_react165.default.createElement(Wrapper5, null, import_react165.default.createElement(Content2, null, import_react165.default.createElement(Title5, null, title), description && import_react165.default.createElement(Description2, null, description)), footer && import_react165.default.createElement(Footer, null, footer));
76180
+ })), EmptyTabContent = ({ title, description, footer }) => import_react165.default.createElement(Wrapper6, null, import_react165.default.createElement(Content2, null, import_react165.default.createElement(Title5, null, title), description && import_react165.default.createElement(Description2, null, description)), footer && import_react165.default.createElement(Footer, null, footer));
76148
76181
 
76149
76182
  // src/components/components/Tabs/Tabs.helpers.tsx
76150
76183
  var import_react166 = __toESM(require_react(), 1);
@@ -76292,7 +76325,7 @@ function useList(list) {
76292
76325
  }
76293
76326
 
76294
76327
  // src/components/components/Tabs/Tabs.tsx
76295
- var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper6 = styled.div(
76328
+ var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper7 = styled.div(
76296
76329
  ({ theme: theme3, bordered }) => bordered ? {
76297
76330
  backgroundClip: "padding-box",
76298
76331
  border: `1px solid ${theme3.appBorderColor}`,
@@ -76398,7 +76431,7 @@ var TabErrorBoundary = class extends import_react168.Component {
76398
76431
  ), { visibleList, tabBarRef, tabRefs, AddonTab } = useList(list), EmptyContent = emptyState ?? import_react168.default.createElement(EmptyTabContent, { title: "Nothing found" });
76399
76432
  return !showToolsWhenEmpty && list.length === 0 ? EmptyContent : (
76400
76433
  // @ts-expect-error (non strict)
76401
- import_react168.default.createElement(Wrapper6, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, import_react168.default.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, import_react168.default.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color2 }, index4) => {
76434
+ import_react168.default.createElement(Wrapper7, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, import_react168.default.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, import_react168.default.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color2 }, index4) => {
76402
76435
  let indexId = `index-${index4}`;
76403
76436
  return import_react168.default.createElement(
76404
76437
  TabButton,
@@ -77729,7 +77762,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes({
77729
77762
  "100%": {
77730
77763
  transform: "rotate(360deg)"
77731
77764
  }
77732
- }), Wrapper7 = styled.div(({ size }) => ({
77765
+ }), Wrapper8 = styled.div(({ size }) => ({
77733
77766
  display: "inline-flex",
77734
77767
  alignItems: "center",
77735
77768
  justifyContent: "center",
@@ -77772,7 +77805,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes({
77772
77805
  width = 1.5,
77773
77806
  children = null,
77774
77807
  ...props
77775
- }) => typeof percentage == "number" ? import_react188.default.createElement(Wrapper7, { size, ...props }, children, import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS }, import_react188.default.createElement("circle", null)), running && import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : import_react188.default.createElement(Wrapper7, { size, ...props }, children);
77808
+ }) => typeof percentage == "number" ? import_react188.default.createElement(Wrapper8, { size, ...props }, children, import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS }, import_react188.default.createElement("circle", null)), running && import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : import_react188.default.createElement(Wrapper8, { size, ...props }, children);
77776
77809
 
77777
77810
  // src/components/components/utils/getStoryHref.ts
77778
77811
  init_client_logger();