storybook 10.1.0-alpha.13 → 10.1.0-alpha.14
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.
- package/dist/_browser-chunks/{chunk-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
- package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
- package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
- package/dist/_node-chunks/{builder-manager-DWDUVXZM.js → builder-manager-FQ5J6V3U.js} +17 -12
- package/dist/_node-chunks/{camelcase-EETCRTJX.js → camelcase-VGUYV77Z.js} +7 -7
- package/dist/_node-chunks/{chunk-FCVNHU2F.js → chunk-2JR3QBT2.js} +7 -7
- package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
- package/dist/_node-chunks/{chunk-447655DM.js → chunk-4ZFHN3ZY.js} +6 -6
- package/dist/_node-chunks/{chunk-RUUNVQ6W.js → chunk-63PL4NNE.js} +9 -9
- package/dist/_node-chunks/{chunk-OVVZIUHS.js → chunk-A4KENTXT.js} +7 -7
- package/dist/_node-chunks/{chunk-XKRVQL2G.js → chunk-ALIA3J6S.js} +44 -10
- package/dist/_node-chunks/{chunk-4EJUC2SD.js → chunk-C2HKH2XQ.js} +31 -48
- package/dist/_node-chunks/{chunk-LPKSBF62.js → chunk-DQNBAQYT.js} +6 -6
- package/dist/_node-chunks/{chunk-MIA5324I.js → chunk-F74UHHR6.js} +7 -7
- package/dist/_node-chunks/{chunk-B76FDKVB.js → chunk-H5XWXVWR.js} +6 -6
- package/dist/_node-chunks/{chunk-WC2YEQHJ.js → chunk-JMP7YFX2.js} +6 -6
- package/dist/_node-chunks/{chunk-DPFYWXEA.js → chunk-JZR4DHG2.js} +19 -7
- package/dist/_node-chunks/{chunk-DIPKXLEP.js → chunk-KEA7CVMZ.js} +80 -13
- package/dist/_node-chunks/{chunk-CMYD2JNN.js → chunk-KF3WTAEP.js} +7 -7
- package/dist/_node-chunks/{chunk-URLNGLC2.js → chunk-LPPM7L5D.js} +10 -10
- package/dist/_node-chunks/{chunk-7IAVT2FU.js → chunk-MJUDR7HQ.js} +7 -7
- package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
- package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
- package/dist/_node-chunks/{chunk-7KFHRNOT.js → chunk-Q2QUNQK6.js} +7 -7
- package/dist/_node-chunks/{chunk-CLUBH2LP.js → chunk-TMCKISJR.js} +65 -101
- package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
- package/dist/_node-chunks/{chunk-2W4GZCLE.js → chunk-V7CXWJXC.js} +7 -7
- package/dist/_node-chunks/{chunk-B7PGKETD.js → chunk-W4F3T6CY.js} +8 -8
- package/dist/_node-chunks/{chunk-Z2OWEMX3.js → chunk-WACDSFMO.js} +9 -9
- package/dist/_node-chunks/{chunk-MJM4TEMP.js → chunk-WVXZFQQU.js} +7 -7
- package/dist/_node-chunks/{chunk-LYEZOJ43.js → chunk-XBPE4PT7.js} +6 -6
- package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
- package/dist/_node-chunks/{chunk-AZIPBEBK.js → chunk-ZGZKNZ5S.js} +6 -6
- package/dist/_node-chunks/{dist-22CLJ4BC.js → dist-DR3AP3RJ.js} +9 -9
- package/dist/_node-chunks/{globby-GR24TGSK.js → globby-D4FPSHY2.js} +9 -9
- package/dist/_node-chunks/{lib-G2LGVRPC.js → lib-ZEFOVNTK.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-W6P6IDDW.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
- package/dist/_node-chunks/{p-limit-K4FZHG2F.js → p-limit-CYQOFYPV.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +788 -1
- package/dist/cli/index.js +42 -5999
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +22 -21
- package/dist/components/index.d.ts +136 -26
- package/dist/components/index.js +3163 -2859
- package/dist/core-server/index.js +51 -108
- package/dist/core-server/presets/common-manager.js +5 -5
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +266 -35
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +21553 -21158
- package/dist/manager/manager-stores.d.ts +1 -0
- package/dist/manager/manager-stores.js +23 -0
- package/dist/manager/runtime.js +6694 -719
- package/dist/manager-api/index.d.ts +1803 -2
- package/dist/manager-api/index.js +102 -8
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4 -1
- package/dist/preview-api/index.js +2 -2
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +23 -23
- package/package.json +5 -1
- package/dist/_node-chunks/chunk-4ZJOH2UN.js +0 -61
- package/dist/_node-chunks/chunk-654SJIMS.js +0 -23
- package/dist/_node-chunks/chunk-JQ7RQS5Q.js +0 -26
- package/dist/_node-chunks/chunk-LEL5OSY3.js +0 -18
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -61,10 +61,8 @@ import {
|
|
|
61
61
|
getStorybookConfiguration,
|
|
62
62
|
getStorybookInfo,
|
|
63
63
|
globToRegexp,
|
|
64
|
-
groupBy,
|
|
65
64
|
interpolate,
|
|
66
65
|
invalidateProjectRootCache,
|
|
67
|
-
invariant,
|
|
68
66
|
isCI,
|
|
69
67
|
isCorePackage,
|
|
70
68
|
isGetAbsolutePathWrapperNecessary,
|
|
@@ -105,26 +103,29 @@ import {
|
|
|
105
103
|
validateConfigurationFiles,
|
|
106
104
|
validateFrameworkName,
|
|
107
105
|
wrapValueWithGetAbsolutePathWrapper
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
106
|
+
} from "../_node-chunks/chunk-C2HKH2XQ.js";
|
|
109
107
|
import {
|
|
110
108
|
versions_default
|
|
111
|
-
} from "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-JQ7RQS5Q.js";
|
|
109
|
+
} from "../_node-chunks/chunk-YMM6BYF2.js";
|
|
110
|
+
import "../_node-chunks/chunk-MJUDR7HQ.js";
|
|
111
|
+
import "../_node-chunks/chunk-W4F3T6CY.js";
|
|
112
|
+
import "../_node-chunks/chunk-JZR4DHG2.js";
|
|
116
113
|
import {
|
|
117
114
|
importMetaResolve,
|
|
118
115
|
importModule,
|
|
119
116
|
resolvePackageDir,
|
|
120
117
|
safeResolveModule
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
118
|
+
} from "../_node-chunks/chunk-WVXZFQQU.js";
|
|
119
|
+
import {
|
|
120
|
+
groupBy,
|
|
121
|
+
invariant
|
|
122
|
+
} from "../_node-chunks/chunk-NZBK3DSJ.js";
|
|
123
|
+
import "../_node-chunks/chunk-DQNBAQYT.js";
|
|
124
|
+
import "../_node-chunks/chunk-F74UHHR6.js";
|
|
125
|
+
import "../_node-chunks/chunk-4ZFHN3ZY.js";
|
|
126
|
+
import "../_node-chunks/chunk-KF3WTAEP.js";
|
|
127
|
+
import "../_node-chunks/chunk-A4KENTXT.js";
|
|
128
|
+
import "../_node-chunks/chunk-JMP7YFX2.js";
|
|
128
129
|
export {
|
|
129
130
|
DEFAULT_FILES_PATTERN,
|
|
130
131
|
FileSystemCache,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent as MouseEvent$1, ReactNode, ReactElement,
|
|
3
|
-
import {
|
|
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
4
|
import { API_KeyCollection } from 'storybook/manager-api';
|
|
5
|
+
import { DecoratorFunction } from 'storybook/internal/csf';
|
|
5
6
|
import { Addon_RenderOptions } from 'storybook/internal/types';
|
|
6
|
-
import { CSSObject, FunctionInterpolation } from 'storybook/theming';
|
|
7
7
|
|
|
8
8
|
interface ComponentSelector {
|
|
9
9
|
__emotion_styles: any;
|
|
@@ -284,6 +284,107 @@ interface ActionBarProps {
|
|
|
284
284
|
}
|
|
285
285
|
declare const ActionBar: ({ actionItems, ...props }: ActionBarProps) => React__default.JSX.Element;
|
|
286
286
|
|
|
287
|
+
declare const CollapsibleContent: StyledComponent<{
|
|
288
|
+
theme?: Theme;
|
|
289
|
+
as?: React__default.ElementType;
|
|
290
|
+
} & {
|
|
291
|
+
collapsed?: boolean;
|
|
292
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
293
|
+
declare const Collapsible: (({ children, summary, collapsed, disabled, state: providedState, ...props }: {
|
|
294
|
+
children: ReactNode | ((state: ReturnType<typeof useCollapsible>) => ReactNode);
|
|
295
|
+
summary?: ReactNode | ((state: ReturnType<typeof useCollapsible>) => ReactNode);
|
|
296
|
+
collapsed?: boolean;
|
|
297
|
+
disabled?: boolean;
|
|
298
|
+
state?: ReturnType<typeof useCollapsible>;
|
|
299
|
+
} & ComponentProps<typeof CollapsibleContent>) => React__default.JSX.Element) & {
|
|
300
|
+
Content: StyledComponent<{
|
|
301
|
+
theme?: Theme;
|
|
302
|
+
as?: React__default.ElementType;
|
|
303
|
+
} & {
|
|
304
|
+
collapsed?: boolean;
|
|
305
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
306
|
+
};
|
|
307
|
+
declare const useCollapsible: (collapsed?: boolean, disabled?: boolean) => {
|
|
308
|
+
contentId: string;
|
|
309
|
+
isCollapsed: boolean;
|
|
310
|
+
isDisabled: boolean;
|
|
311
|
+
setCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
312
|
+
toggleCollapsed: (event?: SyntheticEvent<Element, Event>) => void;
|
|
313
|
+
toggleProps: {
|
|
314
|
+
readonly disabled: boolean | undefined;
|
|
315
|
+
readonly onClick: (event?: SyntheticEvent<Element, Event>) => void;
|
|
316
|
+
readonly 'aria-controls': string;
|
|
317
|
+
readonly 'aria-expanded': boolean;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
declare const CardContent: StyledComponent<{
|
|
322
|
+
theme?: Theme;
|
|
323
|
+
as?: React__default.ElementType;
|
|
324
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
325
|
+
interface CardProps extends ComponentProps<typeof CardContent> {
|
|
326
|
+
outlineAnimation?: 'none' | 'rainbow' | 'spin';
|
|
327
|
+
outlineColor?: keyof typeof color;
|
|
328
|
+
}
|
|
329
|
+
declare const Card: React__default.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React__default.RefAttributes<HTMLDivElement>> & {
|
|
330
|
+
Content: StyledComponent<{
|
|
331
|
+
theme?: Theme;
|
|
332
|
+
as?: React__default.ElementType;
|
|
333
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
334
|
+
Outline: StyledComponent<{
|
|
335
|
+
theme?: Theme;
|
|
336
|
+
as?: React__default.ElementType;
|
|
337
|
+
} & {
|
|
338
|
+
animation?: "none" | "rainbow" | "spin";
|
|
339
|
+
color?: keyof typeof color;
|
|
340
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
type TransitionStatus =
|
|
344
|
+
| 'preEnter'
|
|
345
|
+
| 'entering'
|
|
346
|
+
| 'entered'
|
|
347
|
+
| 'preExit'
|
|
348
|
+
| 'exiting'
|
|
349
|
+
| 'exited'
|
|
350
|
+
| 'unmounted';
|
|
351
|
+
|
|
352
|
+
declare const Listbox: StyledComponent<{
|
|
353
|
+
theme?: Theme;
|
|
354
|
+
as?: React__default.ElementType;
|
|
355
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> & {
|
|
356
|
+
Item: StyledComponent<{
|
|
357
|
+
theme?: Theme;
|
|
358
|
+
as?: React__default.ElementType;
|
|
359
|
+
} & {
|
|
360
|
+
active?: boolean;
|
|
361
|
+
transitionStatus?: TransitionStatus;
|
|
362
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
363
|
+
HoverItem: StyledComponent<{
|
|
364
|
+
theme?: Theme;
|
|
365
|
+
as?: React__default.ElementType;
|
|
366
|
+
} & {
|
|
367
|
+
active?: boolean;
|
|
368
|
+
transitionStatus?: TransitionStatus;
|
|
369
|
+
} & React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
370
|
+
theme?: Theme;
|
|
371
|
+
} & {
|
|
372
|
+
targetId: string;
|
|
373
|
+
}, {}, {}>;
|
|
374
|
+
Button: React__default.ForwardRefExoticComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
375
|
+
Action: StyledComponent<Omit<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement> & {
|
|
376
|
+
theme?: Theme;
|
|
377
|
+
}, {}, {}>;
|
|
378
|
+
Text: StyledComponent<{
|
|
379
|
+
theme?: Theme;
|
|
380
|
+
as?: React__default.ElementType;
|
|
381
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
382
|
+
Icon: StyledComponent<{
|
|
383
|
+
theme?: Theme;
|
|
384
|
+
as?: React__default.ElementType;
|
|
385
|
+
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
386
|
+
};
|
|
387
|
+
|
|
287
388
|
/*
|
|
288
389
|
* Copyright 2020 Adobe. All rights reserved.
|
|
289
390
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -360,24 +461,19 @@ interface HeadingProps extends HTMLAttributes<HTMLElement> {
|
|
|
360
461
|
level?: number;
|
|
361
462
|
}
|
|
362
463
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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>>;
|
|
371
473
|
|
|
372
|
-
interface ButtonProps extends
|
|
474
|
+
interface ButtonProps extends Omit<ComponentProps<typeof StyledButton>, 'as'> {
|
|
475
|
+
as?: ComponentProps<typeof StyledButton>['as'] | typeof Slot;
|
|
373
476
|
asChild?: boolean;
|
|
374
|
-
size?: 'small' | 'medium';
|
|
375
|
-
padding?: 'small' | 'medium' | 'none';
|
|
376
|
-
variant?: 'outline' | 'solid' | 'ghost';
|
|
377
|
-
onClick?: (event: SyntheticEvent) => void;
|
|
378
|
-
active?: boolean;
|
|
379
|
-
disabled?: boolean;
|
|
380
|
-
animation?: 'none' | 'rotate360' | 'glow' | 'jiggle';
|
|
381
477
|
/**
|
|
382
478
|
* A concise action label for the button announced by screen readers. Needed for buttons without
|
|
383
479
|
* text or with text that relies on visual cues to be understood. Pass false to indicate that the
|
|
@@ -408,8 +504,21 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
408
504
|
*/
|
|
409
505
|
shortcut?: API_KeyCollection;
|
|
410
506
|
}
|
|
411
|
-
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
412
|
-
declare const
|
|
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>>;
|
|
413
522
|
|
|
414
523
|
declare const Overlay: StyledComponent<{
|
|
415
524
|
theme?: Theme;
|
|
@@ -454,8 +563,9 @@ declare const Col: StyledComponent<{
|
|
|
454
563
|
theme?: Theme;
|
|
455
564
|
as?: React__default.ElementType;
|
|
456
565
|
}, React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
457
|
-
declare const Header: ({ hasClose, ...props }: React__default.ComponentProps<typeof Col> & {
|
|
566
|
+
declare const Header: ({ hasClose, onClose, ...props }: React__default.ComponentProps<typeof Col> & {
|
|
458
567
|
hasClose?: boolean;
|
|
568
|
+
onClose?: () => void;
|
|
459
569
|
}) => React__default.JSX.Element;
|
|
460
570
|
declare const Title: StyledComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement> & {
|
|
461
571
|
theme?: Theme;
|
|
@@ -592,7 +702,7 @@ interface ToggleButtonProps extends ButtonProps {
|
|
|
592
702
|
/** Whether the ToggleButton is currently pressed or not. */
|
|
593
703
|
pressed: boolean;
|
|
594
704
|
}
|
|
595
|
-
declare const ToggleButton: React__default.ForwardRefExoticComponent<ToggleButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
705
|
+
declare const ToggleButton: React__default.ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
596
706
|
|
|
597
707
|
interface Option {
|
|
598
708
|
/** Optional rendering of the option. */
|
|
@@ -643,7 +753,7 @@ interface SelectProps extends Omit<ButtonProps, 'onClick' | 'onChange' | 'onSele
|
|
|
643
753
|
onDeselect?: (option: string) => void;
|
|
644
754
|
onChange?: (selected: string[]) => void;
|
|
645
755
|
}
|
|
646
|
-
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
756
|
+
declare const Select: React__default.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
647
757
|
|
|
648
758
|
type Sizes = '100%' | 'flex' | 'auto';
|
|
649
759
|
type Alignments = 'end' | 'center' | 'start';
|
|
@@ -715,7 +825,7 @@ declare const Form: StyledComponent<{
|
|
|
715
825
|
} & React$1.RefAttributes<HTMLTextAreaElement>, {}, {}> & {
|
|
716
826
|
displayName: string;
|
|
717
827
|
};
|
|
718
|
-
Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
828
|
+
Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
719
829
|
Checkbox: (props: React.InputHTMLAttributes<HTMLInputElement>) => React$1.JSX.Element;
|
|
720
830
|
Radio: (props: React.InputHTMLAttributes<HTMLInputElement>) => React$1.JSX.Element;
|
|
721
831
|
};
|
|
@@ -1435,4 +1545,4 @@ declare const components: {
|
|
|
1435
1545
|
};
|
|
1436
1546
|
declare const resetComponents: Record<string, ElementType>;
|
|
1437
1547
|
|
|
1438
|
-
export { A, AbstractToolbar, ActionBar, type ActionItem, AddonPanel, Badge, Bar, type BarProps, Blockquote, Button, type ButtonProps, ClipboardCode, Code, DL, Div, DocumentWrapper, EmptyTabContent, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, Img, LI, Link$1 as Link, ListItem, Loader, Modal, 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 };
|
|
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 };
|