storybook 10.0.0-beta.0 → 10.0.0-beta.2
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/{WithTooltip-2E62HIBN.js → WithTooltip-ERFLZL6W.js} +1 -1
- package/dist/_browser-chunks/{chunk-FWKO3E35.js → chunk-EOILZP2R.js} +3 -1
- package/dist/_node-chunks/{builder-manager-OW6YGKXV.js → builder-manager-KCNW2J74.js} +13 -13
- package/dist/_node-chunks/{camelcase-2K3EMR6G.js → camelcase-FH5EGUIB.js} +7 -7
- package/dist/_node-chunks/{chunk-6JSVPEAU.js → chunk-2E5IZBC2.js} +7 -7
- package/dist/_node-chunks/{chunk-JDKH3XYB.js → chunk-2VH25RMB.js} +7 -7
- package/dist/_node-chunks/{chunk-FWUE7SRE.js → chunk-2VOEBWNF.js} +7 -7
- package/dist/_node-chunks/{chunk-IQAUGVYR.js → chunk-63VGATS4.js} +7 -7
- package/dist/_node-chunks/{chunk-5HLANIBM.js → chunk-6A2WP6N7.js} +7 -7
- package/dist/_node-chunks/{chunk-YWGNEBRO.js → chunk-6B3CXS7K.js} +7 -7
- package/dist/_node-chunks/{chunk-G46DWX7Z.js → chunk-6FPFMFFH.js} +8 -8
- package/dist/_node-chunks/{chunk-UHHZPSP7.js → chunk-7DWWXKIE.js} +6 -6
- package/dist/_node-chunks/{chunk-MUD3GH3L.js → chunk-B7L5A4BQ.js} +9 -9
- package/dist/_node-chunks/{chunk-GZZDIJIB.js → chunk-CGY2ITTD.js} +8 -8
- package/dist/_node-chunks/{chunk-GZUNYRFU.js → chunk-CIIY3F53.js} +7 -7
- package/dist/_node-chunks/{chunk-CD3IP6HA.js → chunk-CMFB2H3U.js} +12 -12
- package/dist/_node-chunks/{chunk-3QB3ZG6H.js → chunk-DPF2NDLD.js} +7 -7
- package/dist/_node-chunks/{chunk-2H7LZ2SD.js → chunk-FXPYWCQE.js} +7 -7
- package/dist/_node-chunks/{chunk-ANEKBWDX.js → chunk-HSI4BG2J.js} +16 -25
- package/dist/_node-chunks/{chunk-UIREEOC7.js → chunk-HSS67Y6T.js} +7 -7
- package/dist/_node-chunks/chunk-IAAPNJG4.js +62 -0
- package/dist/_node-chunks/{chunk-W6GKFQ7F.js → chunk-IBC4BVDB.js} +7 -7
- package/dist/_node-chunks/{chunk-NOQITS3C.js → chunk-JWFNAC5N.js} +7 -7
- package/dist/_node-chunks/{chunk-I3YCPGZJ.js → chunk-JZ7ZEAK6.js} +7 -7
- package/dist/_node-chunks/{chunk-IBXERYDG.js → chunk-KDKM7KMS.js} +7 -7
- package/dist/_node-chunks/{chunk-H5LTFJHQ.js → chunk-MX77OTGN.js} +46 -45
- package/dist/_node-chunks/chunk-NNJMYLJM.js +18 -0
- package/dist/_node-chunks/{chunk-FBMMEEO4.js → chunk-NTXIDMDM.js} +7 -7
- package/dist/_node-chunks/{chunk-7TISOZS6.js → chunk-NUODGCJN.js} +7 -7
- package/dist/_node-chunks/{chunk-X5GAZ3EW.js → chunk-NWTLWMJN.js} +8 -8
- package/dist/_node-chunks/{chunk-LH3BEEIR.js → chunk-PTT3CRNJ.js} +6 -6
- package/dist/_node-chunks/{chunk-NZGJJABJ.js → chunk-RSG3AEWL.js} +16 -16
- package/dist/_node-chunks/{chunk-VKKLKNFC.js → chunk-TLM4ECJN.js} +9 -9
- package/dist/_node-chunks/{chunk-R7RKO2DC.js → chunk-WBRWBEAS.js} +47029 -18559
- package/dist/_node-chunks/{chunk-LKB7KRSV.js → chunk-XWJNZVOR.js} +8 -8
- package/dist/_node-chunks/{chunk-BFXER3XW.js → chunk-ZF6AXYHM.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-Z6WQ7DZA.js → default-browser-id-YRAH7IMC.js} +7 -7
- package/dist/_node-chunks/{dist-465RSKRC.js → dist-G5THJIW5.js} +9 -9
- package/dist/_node-chunks/{globby-LJ3MVB6M.js → globby-FGF2JG5Z.js} +9 -9
- package/dist/_node-chunks/{lib-OW3DENXB.js → lib-OPOVJQIO.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-PYX2IFUO.js → mdx-N42X6CFJ-N5MJA4NM.js} +8 -8
- package/dist/_node-chunks/{p-limit-X4OG45RB.js → p-limit-JNDYEQZX.js} +8 -8
- package/dist/_node-chunks/{plugin-GE36R32R.js → plugin-6GW4GYGS.js} +10 -12
- package/dist/_node-chunks/{plugin-ALTIQMDE.js → plugin-ZL4ZLDWE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-NLCAF7S6.js → webpack-inject-mocker-runtime-plugin-F6BXWV4R.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-BRYODMCC.js → webpack-mock-plugin-5QNP4V3B.js} +9 -11
- package/dist/babel/index.js +11 -12
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.js +20 -21
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +234 -2
- package/dist/components/index.js +3 -6
- package/dist/core-server/index.d.ts +540 -39
- package/dist/core-server/index.js +36 -36
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -31
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -11
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -12
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +4 -5
- package/dist/manager/runtime.js +90 -48
- package/dist/manager-api/index.d.ts +527 -26
- package/dist/manager-api/index.js +1 -1
- package/dist/manager-errors.d.ts +527 -0
- package/dist/node-logger/index.js +14 -14
- package/dist/preview-errors.d.ts +527 -0
- package/dist/router/index.d.ts +668 -10
- package/dist/server-errors.d.ts +527 -0
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +25 -25
- package/dist/types/index.d.ts +523 -9
- package/package.json +1 -3
- package/dist/_node-chunks/chunk-27W2Z6VL.js +0 -28502
- package/dist/_node-chunks/chunk-T23YQHYB.js +0 -62
- package/dist/_node-chunks/chunk-YUYBO6S7.js +0 -18
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,12 +83,12 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
88
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-MX77OTGN.js";
|
|
87
|
+
import "../_node-chunks/chunk-2VOEBWNF.js";
|
|
88
|
+
import "../_node-chunks/chunk-2VH25RMB.js";
|
|
89
89
|
import {
|
|
90
90
|
versions_default
|
|
91
|
-
} from "../_node-chunks/chunk-
|
|
91
|
+
} from "../_node-chunks/chunk-IAAPNJG4.js";
|
|
92
92
|
import {
|
|
93
93
|
getProjectRoot,
|
|
94
94
|
invalidateProjectRootCache,
|
|
@@ -99,23 +99,23 @@ import {
|
|
|
99
99
|
optionalEnvToBoolean,
|
|
100
100
|
stringifyEnvs,
|
|
101
101
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
105
|
-
import "../_node-chunks/chunk-
|
|
102
|
+
} from "../_node-chunks/chunk-TLM4ECJN.js";
|
|
103
|
+
import "../_node-chunks/chunk-6FPFMFFH.js";
|
|
104
|
+
import "../_node-chunks/chunk-IBC4BVDB.js";
|
|
105
|
+
import "../_node-chunks/chunk-HSS67Y6T.js";
|
|
106
106
|
import {
|
|
107
107
|
importMetaResolve,
|
|
108
108
|
importModule,
|
|
109
109
|
resolvePackageDir,
|
|
110
110
|
safeResolveModule
|
|
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-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
118
|
-
import "../_node-chunks/chunk-
|
|
111
|
+
} from "../_node-chunks/chunk-CGY2ITTD.js";
|
|
112
|
+
import "../_node-chunks/chunk-6A2WP6N7.js";
|
|
113
|
+
import "../_node-chunks/chunk-NTXIDMDM.js";
|
|
114
|
+
import "../_node-chunks/chunk-63VGATS4.js";
|
|
115
|
+
import "../_node-chunks/chunk-DPF2NDLD.js";
|
|
116
|
+
import "../_node-chunks/chunk-JZ7ZEAK6.js";
|
|
117
|
+
import "../_node-chunks/chunk-KDKM7KMS.js";
|
|
118
|
+
import "../_node-chunks/chunk-PTT3CRNJ.js";
|
|
119
119
|
export {
|
|
120
120
|
COMMON_ENV_VARS,
|
|
121
121
|
DEFAULT_FILES_PATTERN,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent, ReactNode, ReactElement, ButtonHTMLAttributes, SyntheticEvent, Component, RefObject, FC, PropsWithChildren, DetailedHTMLProps, RefAttributes, ElementType } from 'react';
|
|
3
|
-
import { Config, PopperOptions } from 'react-popper-tooltip';
|
|
4
3
|
import { Addon_RenderOptions } from 'storybook/internal/types';
|
|
5
4
|
import { FunctionInterpolation } from 'storybook/theming';
|
|
6
5
|
|
|
@@ -720,6 +719,234 @@ declare const Form: StyledComponent<{
|
|
|
720
719
|
Radio: (props: React.InputHTMLAttributes<HTMLInputElement>) => React$1.JSX.Element;
|
|
721
720
|
};
|
|
722
721
|
|
|
722
|
+
declare const top: "top";
|
|
723
|
+
declare const bottom: "bottom";
|
|
724
|
+
declare const right: "right";
|
|
725
|
+
declare const left: "left";
|
|
726
|
+
declare type BasePlacement = typeof top | typeof bottom | typeof right | typeof left;
|
|
727
|
+
declare type VariationPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
728
|
+
declare type AutoPlacement = "auto" | "auto-start" | "auto-end";
|
|
729
|
+
declare type Placement = AutoPlacement | BasePlacement | VariationPlacement;
|
|
730
|
+
declare const beforeRead: "beforeRead";
|
|
731
|
+
declare const read: "read";
|
|
732
|
+
declare const afterRead: "afterRead";
|
|
733
|
+
declare const beforeMain: "beforeMain";
|
|
734
|
+
declare const main: "main";
|
|
735
|
+
declare const afterMain: "afterMain";
|
|
736
|
+
declare const beforeWrite: "beforeWrite";
|
|
737
|
+
declare const write: "write";
|
|
738
|
+
declare const afterWrite: "afterWrite";
|
|
739
|
+
declare type ModifierPhases = typeof beforeRead | typeof read | typeof afterRead | typeof beforeMain | typeof main | typeof afterMain | typeof beforeWrite | typeof write | typeof afterWrite;
|
|
740
|
+
|
|
741
|
+
declare type Obj = {
|
|
742
|
+
[key: string]: any;
|
|
743
|
+
};
|
|
744
|
+
declare type VisualViewport = EventTarget & {
|
|
745
|
+
width: number;
|
|
746
|
+
height: number;
|
|
747
|
+
offsetLeft: number;
|
|
748
|
+
offsetTop: number;
|
|
749
|
+
scale: number;
|
|
750
|
+
};
|
|
751
|
+
declare type Window = {
|
|
752
|
+
innerHeight: number;
|
|
753
|
+
offsetHeight: number;
|
|
754
|
+
innerWidth: number;
|
|
755
|
+
offsetWidth: number;
|
|
756
|
+
pageXOffset: number;
|
|
757
|
+
pageYOffset: number;
|
|
758
|
+
getComputedStyle: typeof getComputedStyle;
|
|
759
|
+
addEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
|
|
760
|
+
removeEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
|
|
761
|
+
Element: Element;
|
|
762
|
+
HTMLElement: HTMLElement;
|
|
763
|
+
Node: Node;
|
|
764
|
+
toString(): "[object Window]";
|
|
765
|
+
devicePixelRatio: number;
|
|
766
|
+
visualViewport?: VisualViewport;
|
|
767
|
+
ShadowRoot: ShadowRoot;
|
|
768
|
+
};
|
|
769
|
+
declare type Rect = {
|
|
770
|
+
width: number;
|
|
771
|
+
height: number;
|
|
772
|
+
x: number;
|
|
773
|
+
y: number;
|
|
774
|
+
};
|
|
775
|
+
declare type Offsets = {
|
|
776
|
+
y: number;
|
|
777
|
+
x: number;
|
|
778
|
+
};
|
|
779
|
+
declare type PositioningStrategy = "absolute" | "fixed";
|
|
780
|
+
declare type StateRects = {
|
|
781
|
+
reference: Rect;
|
|
782
|
+
popper: Rect;
|
|
783
|
+
};
|
|
784
|
+
declare type OffsetData = {
|
|
785
|
+
[key in Placement]?: Offsets;
|
|
786
|
+
};
|
|
787
|
+
declare type State = {
|
|
788
|
+
elements: {
|
|
789
|
+
reference: Element | VirtualElement;
|
|
790
|
+
popper: HTMLElement;
|
|
791
|
+
arrow?: HTMLElement;
|
|
792
|
+
};
|
|
793
|
+
options: OptionsGeneric<any>;
|
|
794
|
+
placement: Placement;
|
|
795
|
+
strategy: PositioningStrategy;
|
|
796
|
+
orderedModifiers: Array<Modifier<any, any>>;
|
|
797
|
+
rects: StateRects;
|
|
798
|
+
scrollParents: {
|
|
799
|
+
reference: Array<Element | Window | VisualViewport>;
|
|
800
|
+
popper: Array<Element | Window | VisualViewport>;
|
|
801
|
+
};
|
|
802
|
+
styles: {
|
|
803
|
+
[key: string]: Partial<CSSStyleDeclaration>;
|
|
804
|
+
};
|
|
805
|
+
attributes: {
|
|
806
|
+
[key: string]: {
|
|
807
|
+
[key: string]: string | boolean;
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
modifiersData: {
|
|
811
|
+
arrow?: {
|
|
812
|
+
x?: number;
|
|
813
|
+
y?: number;
|
|
814
|
+
centerOffset: number;
|
|
815
|
+
};
|
|
816
|
+
hide?: {
|
|
817
|
+
isReferenceHidden: boolean;
|
|
818
|
+
hasPopperEscaped: boolean;
|
|
819
|
+
referenceClippingOffsets: SideObject;
|
|
820
|
+
popperEscapeOffsets: SideObject;
|
|
821
|
+
};
|
|
822
|
+
offset?: OffsetData;
|
|
823
|
+
preventOverflow?: Offsets;
|
|
824
|
+
popperOffsets?: Offsets;
|
|
825
|
+
[key: string]: any;
|
|
826
|
+
};
|
|
827
|
+
reset: boolean;
|
|
828
|
+
};
|
|
829
|
+
declare type SetAction<S> = S | ((prev: S) => S);
|
|
830
|
+
declare type Instance = {
|
|
831
|
+
state: State;
|
|
832
|
+
destroy: () => void;
|
|
833
|
+
forceUpdate: () => void;
|
|
834
|
+
update: () => Promise<Partial<State>>;
|
|
835
|
+
setOptions: (setOptionsAction: SetAction<Partial<OptionsGeneric<any>>>) => Promise<Partial<State>>;
|
|
836
|
+
};
|
|
837
|
+
declare type ModifierArguments<Options extends Obj> = {
|
|
838
|
+
state: State;
|
|
839
|
+
instance: Instance;
|
|
840
|
+
options: Partial<Options>;
|
|
841
|
+
name: string;
|
|
842
|
+
};
|
|
843
|
+
declare type Modifier<Name, Options extends Obj> = {
|
|
844
|
+
name: Name;
|
|
845
|
+
enabled: boolean;
|
|
846
|
+
phase: ModifierPhases;
|
|
847
|
+
requires?: Array<string>;
|
|
848
|
+
requiresIfExists?: Array<string>;
|
|
849
|
+
fn: (arg0: ModifierArguments<Options>) => State | void;
|
|
850
|
+
effect?: (arg0: ModifierArguments<Options>) => (() => void) | void;
|
|
851
|
+
options?: Partial<Options>;
|
|
852
|
+
data?: Obj;
|
|
853
|
+
};
|
|
854
|
+
declare type Options = {
|
|
855
|
+
placement: Placement;
|
|
856
|
+
modifiers: Array<Partial<Modifier<any, any>>>;
|
|
857
|
+
strategy: PositioningStrategy;
|
|
858
|
+
onFirstUpdate?: (arg0: Partial<State>) => void;
|
|
859
|
+
};
|
|
860
|
+
declare type OptionsGeneric<TModifier> = {
|
|
861
|
+
placement: Placement;
|
|
862
|
+
modifiers: Array<TModifier>;
|
|
863
|
+
strategy: PositioningStrategy;
|
|
864
|
+
onFirstUpdate?: (arg0: Partial<State>) => void;
|
|
865
|
+
};
|
|
866
|
+
declare type SideObject = {
|
|
867
|
+
top: number;
|
|
868
|
+
left: number;
|
|
869
|
+
right: number;
|
|
870
|
+
bottom: number;
|
|
871
|
+
};
|
|
872
|
+
declare type VirtualElement = {
|
|
873
|
+
getBoundingClientRect: () => ClientRect | DOMRect;
|
|
874
|
+
contextElement?: Element;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
declare const createPopper: <TModifier extends Partial<Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<OptionsGeneric<TModifier>>) => Instance;
|
|
878
|
+
|
|
879
|
+
declare type TriggerType = 'click' | 'double-click' | 'right-click' | 'hover' | 'focus';
|
|
880
|
+
declare type Config = {
|
|
881
|
+
/**
|
|
882
|
+
* Whether to close the tooltip when its trigger is out of boundary
|
|
883
|
+
* @default false
|
|
884
|
+
*/
|
|
885
|
+
closeOnTriggerHidden?: boolean;
|
|
886
|
+
/**
|
|
887
|
+
* Event or events that trigger the tooltip
|
|
888
|
+
* @default hover
|
|
889
|
+
*/
|
|
890
|
+
trigger?: TriggerType | TriggerType[] | null;
|
|
891
|
+
/**
|
|
892
|
+
* Delay in hiding the tooltip (ms)
|
|
893
|
+
* @default 0
|
|
894
|
+
*/
|
|
895
|
+
delayHide?: number;
|
|
896
|
+
/**
|
|
897
|
+
* Delay in showing the tooltip (ms)
|
|
898
|
+
* @default 0
|
|
899
|
+
*/
|
|
900
|
+
delayShow?: number;
|
|
901
|
+
/**
|
|
902
|
+
* Whether to make the tooltip spawn at cursor position
|
|
903
|
+
* @default false
|
|
904
|
+
*/
|
|
905
|
+
followCursor?: boolean;
|
|
906
|
+
/**
|
|
907
|
+
* Options to MutationObserver, used internally for updating
|
|
908
|
+
* tooltip position based on its DOM changes
|
|
909
|
+
* @default { attributes: true, childList: true, subtree: true }
|
|
910
|
+
*/
|
|
911
|
+
mutationObserverOptions?: MutationObserverInit | null;
|
|
912
|
+
/**
|
|
913
|
+
* Whether tooltip is shown by default
|
|
914
|
+
* @default false
|
|
915
|
+
*/
|
|
916
|
+
defaultVisible?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Used to create controlled tooltip
|
|
919
|
+
*/
|
|
920
|
+
visible?: boolean;
|
|
921
|
+
/**
|
|
922
|
+
* Called when the visibility of the tooltip changes
|
|
923
|
+
*/
|
|
924
|
+
onVisibleChange?: (state: boolean) => void;
|
|
925
|
+
/**
|
|
926
|
+
* If `true`, a click outside the trigger element closes the tooltip
|
|
927
|
+
* @default true
|
|
928
|
+
*/
|
|
929
|
+
closeOnOutsideClick?: boolean;
|
|
930
|
+
/**
|
|
931
|
+
* If `true`, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
|
|
932
|
+
* the trigger element. If it moves to the tooltip element, the tooltip stays open.
|
|
933
|
+
* @default false
|
|
934
|
+
*/
|
|
935
|
+
interactive?: boolean;
|
|
936
|
+
/**
|
|
937
|
+
* Alias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
|
|
938
|
+
*/
|
|
939
|
+
placement?: Placement;
|
|
940
|
+
/**
|
|
941
|
+
* Shorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
|
|
942
|
+
* @default [0, 6]
|
|
943
|
+
*/
|
|
944
|
+
offset?: [number, number];
|
|
945
|
+
};
|
|
946
|
+
declare type PopperOptions = Partial<Options> & {
|
|
947
|
+
createPopper?: typeof createPopper;
|
|
948
|
+
};
|
|
949
|
+
|
|
723
950
|
declare const TargetContainer: StyledComponent<{
|
|
724
951
|
theme?: Theme;
|
|
725
952
|
as?: React__default.ElementType;
|
|
@@ -742,6 +969,11 @@ interface WithTooltipPureProps extends Omit<Config, 'closeOnOutsideClick'>, Omit
|
|
|
742
969
|
* @default false
|
|
743
970
|
*/
|
|
744
971
|
closeOnOutsideClick?: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* Optional container to portal the tooltip into. Can be a CSS selector string or a DOM Element.
|
|
974
|
+
* Falls back to document.body.
|
|
975
|
+
*/
|
|
976
|
+
portalContainer?: Element | string | null;
|
|
745
977
|
}
|
|
746
978
|
interface WithTooltipStateProps extends Omit<WithTooltipPureProps, 'onVisibleChange'> {
|
|
747
979
|
startOpen?: boolean;
|
|
@@ -750,7 +982,7 @@ interface WithTooltipStateProps extends Omit<WithTooltipPureProps, 'onVisibleCha
|
|
|
750
982
|
|
|
751
983
|
declare const LazyWithTooltip: React__default.LazyExoticComponent<({ startOpen, onVisibleChange: onChange, ...rest }: WithTooltipStateProps) => React__default.JSX.Element>;
|
|
752
984
|
declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => React__default.JSX.Element;
|
|
753
|
-
declare const LazyWithTooltipPure: React__default.LazyExoticComponent<({ svg, trigger, closeOnOutsideClick, placement, modifiers, hasChrome, defaultVisible, withArrows, offset, tooltip, children, closeOnTriggerHidden, mutationObserverOptions, delayHide, visible, interactive, delayShow, strategy, followCursor, onVisibleChange, ...props }: WithTooltipPureProps) => React__default.JSX.Element>;
|
|
985
|
+
declare const LazyWithTooltipPure: React__default.LazyExoticComponent<({ svg, trigger, closeOnOutsideClick, placement, modifiers, hasChrome, defaultVisible, withArrows, offset, tooltip, children, closeOnTriggerHidden, mutationObserverOptions, delayHide, visible, interactive, delayShow, strategy, followCursor, onVisibleChange, portalContainer, ...props }: WithTooltipPureProps) => React__default.JSX.Element>;
|
|
754
986
|
declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => React__default.JSX.Element;
|
|
755
987
|
|
|
756
988
|
interface TooltipMessageProps {
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithToolTipState
|
|
3
|
-
} from "../_browser-chunks/chunk-
|
|
3
|
+
} from "../_browser-chunks/chunk-EOILZP2R.js";
|
|
4
4
|
import {
|
|
5
5
|
ActionBar,
|
|
6
6
|
ScrollArea,
|
|
@@ -5101,11 +5101,11 @@ var Form = Object.assign(
|
|
|
5101
5101
|
// src/components/components/tooltip/lazy-WithTooltip.tsx
|
|
5102
5102
|
import React52, { Suspense as Suspense2, lazy as lazy2 } from "react";
|
|
5103
5103
|
var LazyWithTooltip = lazy2(
|
|
5104
|
-
() => import("../_browser-chunks/WithTooltip-
|
|
5104
|
+
() => import("../_browser-chunks/WithTooltip-ERFLZL6W.js").then((mod) => ({ default: mod.WithTooltip }))
|
|
5105
5105
|
);
|
|
5106
5106
|
var WithTooltip = /* @__PURE__ */ __name((props) => React52.createElement(Suspense2, { fallback: React52.createElement("div", null) }, React52.createElement(LazyWithTooltip, { ...props })), "WithTooltip");
|
|
5107
5107
|
var LazyWithTooltipPure = lazy2(
|
|
5108
|
-
() => import("../_browser-chunks/WithTooltip-
|
|
5108
|
+
() => import("../_browser-chunks/WithTooltip-ERFLZL6W.js").then((mod) => ({ default: mod.WithTooltipPure }))
|
|
5109
5109
|
);
|
|
5110
5110
|
var WithTooltipPure = /* @__PURE__ */ __name((props) => React52.createElement(Suspense2, { fallback: React52.createElement("div", null) }, React52.createElement(LazyWithTooltipPure, { ...props })), "WithTooltipPure");
|
|
5111
5111
|
|
|
@@ -5192,9 +5192,6 @@ var Right = styled41.span({
|
|
|
5192
5192
|
width: 12,
|
|
5193
5193
|
margin: "3px 0",
|
|
5194
5194
|
verticalAlign: "top"
|
|
5195
|
-
},
|
|
5196
|
-
"& path": {
|
|
5197
|
-
fill: "inherit"
|
|
5198
5195
|
}
|
|
5199
5196
|
});
|
|
5200
5197
|
var Center = styled41.span(
|