@patternfly/react-core 5.0.0-alpha.4 → 5.0.0-alpha.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-alpha.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.0.0-alpha.4...@patternfly/react-core@5.0.0-alpha.5) (2023-02-02)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-core
9
+
6
10
  # 5.0.0-alpha.4 (2023-01-18)
7
11
 
8
12
  **Note:** Version bump only for package @patternfly/react-core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "5.0.0-alpha.4",
3
+ "version": "5.0.0-alpha.5",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,7 +50,6 @@
50
50
  "@patternfly/react-tokens": "^5.0.0-alpha.1",
51
51
  "focus-trap": "6.9.2",
52
52
  "react-dropzone": "^14.2.3",
53
- "tippy.js": "5.1.2",
54
53
  "tslib": "^2.0.0"
55
54
  },
56
55
  "devDependencies": {
@@ -71,5 +70,5 @@
71
70
  "react": "^16.8 || ^17 || ^18",
72
71
  "react-dom": "^16.8 || ^17 || ^18"
73
72
  },
74
- "gitHead": "e10574726614bbe29582d3212d04f2d3d28be6ca"
73
+ "gitHead": "d557fbdbe7ddf6f899d53e79f1c6cd192e28f83d"
75
74
  }
@@ -1,137 +0,0 @@
1
- /**
2
- * Added types from tippy.js and popper.js to preserve backwards compatibility
3
- * Can remove in next breaking change release
4
- */
5
- /**
6
- * This kind of namespace declaration is not necessary, but is kept here for backwards-compatibility with
7
- * popper.js 1.x. It can be removed in 2.x so that the default export is simply the Popper class
8
- * and all the types / interfaces are top-level named exports.
9
- */
10
- declare namespace Popper {
11
- type Position = 'top' | 'right' | 'bottom' | 'left';
12
- type Placement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
13
- type Boundary = 'scrollParent' | 'viewport' | 'window';
14
- type Behavior = 'flip' | 'clockwise' | 'counterclockwise';
15
- type ModifierFn = (data: Data, options: Object) => Data;
16
- interface Attributes {
17
- 'x-out-of-boundaries': '' | false;
18
- 'x-placement': Placement;
19
- }
20
- interface Padding {
21
- top?: number;
22
- bottom?: number;
23
- left?: number;
24
- right?: number;
25
- }
26
- interface BaseModifier {
27
- order?: number;
28
- enabled?: boolean;
29
- fn?: ModifierFn;
30
- }
31
- interface Modifiers {
32
- shift?: BaseModifier;
33
- offset?: BaseModifier & {
34
- offset?: number | string;
35
- };
36
- preventOverflow?: BaseModifier & {
37
- priority?: Position[];
38
- padding?: number | Padding;
39
- boundariesElement?: Boundary | Element;
40
- escapeWithReference?: boolean;
41
- };
42
- keepTogether?: BaseModifier;
43
- arrow?: BaseModifier & {
44
- element?: string | Element;
45
- };
46
- flip?: BaseModifier & {
47
- behavior?: Behavior | Position[];
48
- padding?: number | Padding;
49
- boundariesElement?: Boundary | Element;
50
- flipVariations?: boolean;
51
- flipVariationsByContent?: boolean;
52
- };
53
- inner?: BaseModifier;
54
- hide?: BaseModifier;
55
- applyStyle?: BaseModifier & {
56
- onLoad?: Function;
57
- gpuAcceleration?: boolean;
58
- };
59
- computeStyle?: BaseModifier & {
60
- gpuAcceleration?: boolean;
61
- x?: 'bottom' | 'top';
62
- y?: 'left' | 'right';
63
- };
64
- [name: string]: (BaseModifier & Record<string, any>) | undefined;
65
- }
66
- interface Offset {
67
- top: number;
68
- left: number;
69
- width: number;
70
- height: number;
71
- }
72
- interface Data {
73
- instance: Popper;
74
- placement: Placement;
75
- originalPlacement: Placement;
76
- flipped: boolean;
77
- hide: boolean;
78
- arrowElement: Element;
79
- styles: CSSStyleDeclaration;
80
- arrowStyles: CSSStyleDeclaration;
81
- attributes: Attributes;
82
- boundaries: Object;
83
- offsets: {
84
- popper: Offset;
85
- reference: Offset;
86
- arrow: {
87
- top: number;
88
- left: number;
89
- };
90
- };
91
- }
92
- interface PopperOptions {
93
- placement?: Placement;
94
- positionFixed?: boolean;
95
- eventsEnabled?: boolean;
96
- modifiers?: Modifiers;
97
- removeOnDestroy?: boolean;
98
- onCreate?(data: Data): void;
99
- onUpdate?(data: Data): void;
100
- }
101
- interface ReferenceObject {
102
- clientHeight: number;
103
- clientWidth: number;
104
- referenceNode?: Node;
105
- getBoundingClientRect(): ClientRect;
106
- }
107
- }
108
- export declare type Padding = Popper.Padding;
109
- export declare type Position = Popper.Position;
110
- export declare type Placement = Popper.Placement;
111
- export declare type Boundary = Popper.Boundary;
112
- export declare type Behavior = Popper.Behavior;
113
- export declare type ModifierFn = Popper.ModifierFn;
114
- export declare type BaseModifier = Popper.BaseModifier;
115
- export declare type Modifiers = Popper.Modifiers;
116
- export declare type Offset = Popper.Offset;
117
- export declare type Data = Popper.Data;
118
- export declare type PopperOptions = Popper.PopperOptions;
119
- export declare type ReferenceObject = Popper.ReferenceObject;
120
- declare class Popper {
121
- static modifiers: (BaseModifier & {
122
- name: string;
123
- })[];
124
- static placements: Placement[];
125
- static Defaults: PopperOptions;
126
- options: PopperOptions;
127
- popper: Element;
128
- reference: Element | ReferenceObject;
129
- constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions);
130
- destroy(): void;
131
- update(): void;
132
- scheduleUpdate(): void;
133
- enableEventListeners(): void;
134
- disableEventListeners(): void;
135
- }
136
- export default Popper;
137
- //# sourceMappingURL=DeprecatedPopperTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedPopperTypes.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedPopperTypes.ts"],"names":[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;AAC3C,oBAAY,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AAC/C,oBAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AACzC,oBAAY,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACnC,oBAAY,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAC/B,oBAAY,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACjD,oBAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AAErD,OAAO,OAAO,MAAM;IAClB,MAAM,CAAC,SAAS,EAAE,CAAC,YAAY,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACtD,MAAM,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC;IAE/B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,GAAG,eAAe,CAAC;gBAEzB,SAAS,EAAE,OAAO,GAAG,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa;IAE1F,OAAO,IAAI,IAAI;IAEf,MAAM,IAAI,IAAI;IAEd,cAAc,IAAI,IAAI;IAEtB,oBAAoB,IAAI,IAAI;IAE5B,qBAAqB,IAAI,IAAI;CAC9B;AAED,eAAe,MAAM,CAAC"}
@@ -1,8 +0,0 @@
1
- /* eslint-disable @typescript-eslint/ban-types */
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
- /**
4
- * Added types from tippy.js and popper.js to preserve backwards compatibility
5
- * Can remove in next breaking change release
6
- */
7
- export default Popper;
8
- //# sourceMappingURL=DeprecatedPopperTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedPopperTypes.js","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedPopperTypes.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,oDAAoD;AACpD;;;GAGG;AA8KH,eAAe,MAAM,CAAC"}
@@ -1,211 +0,0 @@
1
- /**
2
- * Added types from tippy.js and popper.js to preserve backwards compatibility
3
- * Can remove in next breaking change release
4
- */
5
- import Popper from './DeprecatedPopperTypes';
6
- export declare type BasePlacement = 'top' | 'bottom' | 'left' | 'right';
7
- export declare type Placement = Popper.Placement;
8
- export declare type Boundary = Popper.Boundary | HTMLElement;
9
- export declare type Content = string | Element | ((ref: Element) => Element | string);
10
- export declare type SingleTarget = Element;
11
- export declare type MultipleTargets = string | Element[] | NodeList;
12
- export declare type Targets = SingleTarget | MultipleTargets;
13
- export interface ReferenceElement<TProps = Props> extends Element {
14
- _tippy?: Instance<TProps>;
15
- }
16
- export interface PopperElement<TProps = Props> extends HTMLDivElement {
17
- _tippy?: Instance<TProps>;
18
- }
19
- export interface PopperInstance extends Popper {
20
- modifiers: Popper.BaseModifier[];
21
- }
22
- export interface LifecycleHooks<TProps = Props> {
23
- onAfterUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
24
- onBeforeUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
25
- onCreate(instance: Instance<TProps>): void;
26
- onDestroy(instance: Instance<TProps>): void;
27
- onHidden(instance: Instance<TProps>): void;
28
- onHide(instance: Instance<TProps>): void | false;
29
- onMount(instance: Instance<TProps>): void;
30
- onShow(instance: Instance<TProps>): void | false;
31
- onShown(instance: Instance<TProps>): void;
32
- onTrigger(instance: Instance<TProps>, event: Event): void;
33
- onUntrigger(instance: Instance<TProps>, event: Event): void;
34
- }
35
- export interface Props extends LifecycleHooks {
36
- allowHTML: boolean;
37
- animateFill: boolean;
38
- animation: string;
39
- appendTo: 'parent' | Element | ((ref: Element) => Element);
40
- aria: 'describedby' | 'labelledby' | null;
41
- arrow: boolean | string | SVGElement;
42
- boundary: Boundary;
43
- content: Content;
44
- delay: number | [number | null, number | null];
45
- distance: number | string;
46
- duration: number | [number | null, number | null];
47
- flip: boolean;
48
- flipBehavior: 'flip' | Placement[];
49
- flipOnUpdate: boolean;
50
- followCursor: boolean | 'horizontal' | 'vertical' | 'initial';
51
- hideOnClick: boolean | 'toggle';
52
- ignoreAttributes: boolean;
53
- inertia: boolean;
54
- inlinePositioning: boolean;
55
- interactive: boolean;
56
- interactiveBorder: number;
57
- interactiveDebounce: number;
58
- lazy: boolean;
59
- maxWidth: number | string;
60
- multiple: boolean;
61
- offset: number | string;
62
- placement: Placement;
63
- plugins: Plugin[];
64
- popperOptions: Popper.PopperOptions;
65
- role: string;
66
- showOnCreate: boolean;
67
- sticky: boolean | 'reference' | 'popper';
68
- theme: string;
69
- touch: boolean | 'hold' | ['hold', number];
70
- trigger: string;
71
- triggerTarget: Element | Element[] | null;
72
- updateDuration: number;
73
- zIndex: number;
74
- }
75
- export interface DefaultProps extends Props {
76
- delay: number | [number, number];
77
- duration: number | [number, number];
78
- }
79
- export interface Instance<TProps = Props> {
80
- clearDelayTimeouts(): void;
81
- destroy(): void;
82
- disable(): void;
83
- enable(): void;
84
- hide(duration?: number): void;
85
- id: number;
86
- plugins: Plugin<TProps>[];
87
- popper: PopperElement<TProps>;
88
- popperChildren: PopperChildren;
89
- popperInstance: PopperInstance | null;
90
- props: TProps;
91
- reference: ReferenceElement<TProps>;
92
- setContent(content: Content): void;
93
- setProps(partialProps: Partial<TProps>): void;
94
- show(duration?: number): void;
95
- state: {
96
- currentPlacement: Placement | null;
97
- isEnabled: boolean;
98
- isVisible: boolean;
99
- isDestroyed: boolean;
100
- isMounted: boolean;
101
- isShown: boolean;
102
- };
103
- }
104
- export interface PopperChildren {
105
- tooltip: HTMLDivElement;
106
- content: HTMLDivElement;
107
- arrow: HTMLDivElement | null;
108
- }
109
- export interface TippyStatics {
110
- readonly currentInput: {
111
- isTouch: boolean;
112
- };
113
- readonly defaultProps: DefaultProps;
114
- readonly version: string;
115
- setDefaultProps(partialProps: Partial<DefaultProps>): void;
116
- }
117
- export interface Tippy<TProps = Props> extends TippyStatics {
118
- (targets: SingleTarget, optionalProps?: Partial<TProps>,
119
- /** @deprecated use Props.plugins */
120
- plugins?: Plugin<TProps>[]): Instance<TProps>;
121
- }
122
- export interface Tippy<TProps = Props> extends TippyStatics {
123
- (targets: MultipleTargets, optionalProps?: Partial<TProps>,
124
- /** @deprecated use Props.plugins */
125
- plugins?: Plugin<TProps>[]): Instance<TProps>[];
126
- }
127
- declare const tippy: Tippy;
128
- export interface DelegateInstance<TProps = Props> extends Instance<TProps> {
129
- destroy(shouldDestroyTargetInstances?: boolean): void;
130
- }
131
- export interface Delegate<TProps = Props> {
132
- (targets: SingleTarget, props: Partial<TProps> & {
133
- target: string;
134
- },
135
- /** @deprecated use Props.plugins */
136
- plugins?: Plugin<TProps>[]): DelegateInstance<TProps>;
137
- }
138
- export interface Delegate<TProps = Props> {
139
- (targets: MultipleTargets, props: Partial<TProps> & {
140
- target: string;
141
- },
142
- /** @deprecated use Props.plugins */
143
- plugins?: Plugin<TProps>[]): DelegateInstance<TProps>[];
144
- }
145
- export declare type CreateSingleton<TProps = Props> = (tippyInstances: Instance<TProps | Props>[], optionalProps?: Partial<TProps>,
146
- /** @deprecated use Props.plugins */
147
- plugins?: Plugin<TProps>[]) => Instance<TProps>;
148
- declare const delegate: Delegate;
149
- declare const createSingleton: CreateSingleton;
150
- export interface Plugin<TProps = Props> {
151
- name?: string;
152
- defaultValue?: any;
153
- fn(instance: Instance<TProps>): Partial<LifecycleHooks<TProps>>;
154
- }
155
- export interface AnimateFillInstance extends Instance {
156
- popperChildren: PopperChildren & {
157
- backdrop: HTMLDivElement | null;
158
- };
159
- }
160
- export interface AnimateFill extends Plugin {
161
- name: 'animateFill';
162
- defaultValue: false;
163
- fn(instance: AnimateFillInstance): Partial<LifecycleHooks>;
164
- }
165
- export interface FollowCursor extends Plugin {
166
- name: 'followCursor';
167
- defaultValue: false;
168
- }
169
- export interface InlinePositioning extends Plugin {
170
- name: 'inlinePositioning';
171
- defaultValue: false;
172
- }
173
- export interface Sticky extends Plugin {
174
- name: 'sticky';
175
- defaultValue: false;
176
- }
177
- declare const animateFill: AnimateFill;
178
- declare const followCursor: FollowCursor;
179
- declare const inlinePositioning: InlinePositioning;
180
- declare const sticky: Sticky;
181
- export interface HideAllOptions {
182
- duration?: number;
183
- exclude?: Instance | ReferenceElement;
184
- }
185
- export declare type HideAll = (options?: HideAllOptions) => void;
186
- declare const hideAll: HideAll;
187
- declare const roundArrow: string;
188
- /**
189
- * @deprecated use tippy.setDefaultProps({plugins: [...]});
190
- */
191
- export declare type CreateTippyWithPlugins = (outerPlugins: Plugin[]) => Tippy;
192
- declare const createTippyWithPlugins: CreateTippyWithPlugins;
193
- /** @deprecated */
194
- export interface AnimateFillProps {
195
- animateFill: Props['animateFill'];
196
- }
197
- /** @deprecated */
198
- export interface FollowCursorProps {
199
- followCursor: Props['followCursor'];
200
- }
201
- /** @deprecated */
202
- export interface InlinePositioningProps {
203
- inlinePositioning: Props['inlinePositioning'];
204
- }
205
- /** @deprecated */
206
- export interface StickyProps {
207
- sticky: Props['sticky'];
208
- }
209
- export default tippy;
210
- export { hideAll, createTippyWithPlugins, delegate, createSingleton, animateFill, followCursor, inlinePositioning, sticky, roundArrow };
211
- //# sourceMappingURL=DeprecatedTippyTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedTippyTypes.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedTippyTypes.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,oBAAY,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE,oBAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAEzC,oBAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC;AAErD,oBAAY,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC,CAA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,iBAAiB,CAAC;AACnD,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC;AAK7B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;CACvC;AAED,oBAAY,OAAO,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;AAEzD,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,CAAC;AAC/B,OAAO,CAAC,MAAM,UAAU,EAAE,MAAM,CAAC;AAKjC;;GAEG;AACH,oBAAY,sBAAsB,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,KAAK,CAAC;AACvE,OAAO,CAAC,MAAM,sBAAsB,EAAE,sBAAsB,CAAC;AAE7D,kBAAkB;AAClB,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACnC;AAED,kBAAkB;AAClB,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACrC;AAED,kBAAkB;AAClB,MAAM,WAAW,sBAAsB;IACrC,iBAAiB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,kBAAkB;AAClB,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EACL,OAAO,EACP,sBAAsB,EACtB,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,UAAU,EACX,CAAC"}
@@ -1,8 +0,0 @@
1
- /* eslint-disable @typescript-eslint/prefer-function-type */
2
- /**
3
- * Added types from tippy.js and popper.js to preserve backwards compatibility
4
- * Can remove in next breaking change release
5
- */
6
- export default tippy;
7
- export { hideAll, createTippyWithPlugins, delegate, createSingleton, animateFill, followCursor, inlinePositioning, sticky, roundArrow };
8
- //# sourceMappingURL=DeprecatedTippyTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedTippyTypes.js","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedTippyTypes.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D;;;GAGG;AA4QH,eAAe,KAAK,CAAC;AACrB,OAAO,EACL,OAAO,EACP,sBAAsB,EACtB,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,UAAU,EACX,CAAC"}
@@ -1,137 +0,0 @@
1
- /**
2
- * Added types from tippy.js and popper.js to preserve backwards compatibility
3
- * Can remove in next breaking change release
4
- */
5
- /**
6
- * This kind of namespace declaration is not necessary, but is kept here for backwards-compatibility with
7
- * popper.js 1.x. It can be removed in 2.x so that the default export is simply the Popper class
8
- * and all the types / interfaces are top-level named exports.
9
- */
10
- declare namespace Popper {
11
- type Position = 'top' | 'right' | 'bottom' | 'left';
12
- type Placement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
13
- type Boundary = 'scrollParent' | 'viewport' | 'window';
14
- type Behavior = 'flip' | 'clockwise' | 'counterclockwise';
15
- type ModifierFn = (data: Data, options: Object) => Data;
16
- interface Attributes {
17
- 'x-out-of-boundaries': '' | false;
18
- 'x-placement': Placement;
19
- }
20
- interface Padding {
21
- top?: number;
22
- bottom?: number;
23
- left?: number;
24
- right?: number;
25
- }
26
- interface BaseModifier {
27
- order?: number;
28
- enabled?: boolean;
29
- fn?: ModifierFn;
30
- }
31
- interface Modifiers {
32
- shift?: BaseModifier;
33
- offset?: BaseModifier & {
34
- offset?: number | string;
35
- };
36
- preventOverflow?: BaseModifier & {
37
- priority?: Position[];
38
- padding?: number | Padding;
39
- boundariesElement?: Boundary | Element;
40
- escapeWithReference?: boolean;
41
- };
42
- keepTogether?: BaseModifier;
43
- arrow?: BaseModifier & {
44
- element?: string | Element;
45
- };
46
- flip?: BaseModifier & {
47
- behavior?: Behavior | Position[];
48
- padding?: number | Padding;
49
- boundariesElement?: Boundary | Element;
50
- flipVariations?: boolean;
51
- flipVariationsByContent?: boolean;
52
- };
53
- inner?: BaseModifier;
54
- hide?: BaseModifier;
55
- applyStyle?: BaseModifier & {
56
- onLoad?: Function;
57
- gpuAcceleration?: boolean;
58
- };
59
- computeStyle?: BaseModifier & {
60
- gpuAcceleration?: boolean;
61
- x?: 'bottom' | 'top';
62
- y?: 'left' | 'right';
63
- };
64
- [name: string]: (BaseModifier & Record<string, any>) | undefined;
65
- }
66
- interface Offset {
67
- top: number;
68
- left: number;
69
- width: number;
70
- height: number;
71
- }
72
- interface Data {
73
- instance: Popper;
74
- placement: Placement;
75
- originalPlacement: Placement;
76
- flipped: boolean;
77
- hide: boolean;
78
- arrowElement: Element;
79
- styles: CSSStyleDeclaration;
80
- arrowStyles: CSSStyleDeclaration;
81
- attributes: Attributes;
82
- boundaries: Object;
83
- offsets: {
84
- popper: Offset;
85
- reference: Offset;
86
- arrow: {
87
- top: number;
88
- left: number;
89
- };
90
- };
91
- }
92
- interface PopperOptions {
93
- placement?: Placement;
94
- positionFixed?: boolean;
95
- eventsEnabled?: boolean;
96
- modifiers?: Modifiers;
97
- removeOnDestroy?: boolean;
98
- onCreate?(data: Data): void;
99
- onUpdate?(data: Data): void;
100
- }
101
- interface ReferenceObject {
102
- clientHeight: number;
103
- clientWidth: number;
104
- referenceNode?: Node;
105
- getBoundingClientRect(): ClientRect;
106
- }
107
- }
108
- export declare type Padding = Popper.Padding;
109
- export declare type Position = Popper.Position;
110
- export declare type Placement = Popper.Placement;
111
- export declare type Boundary = Popper.Boundary;
112
- export declare type Behavior = Popper.Behavior;
113
- export declare type ModifierFn = Popper.ModifierFn;
114
- export declare type BaseModifier = Popper.BaseModifier;
115
- export declare type Modifiers = Popper.Modifiers;
116
- export declare type Offset = Popper.Offset;
117
- export declare type Data = Popper.Data;
118
- export declare type PopperOptions = Popper.PopperOptions;
119
- export declare type ReferenceObject = Popper.ReferenceObject;
120
- declare class Popper {
121
- static modifiers: (BaseModifier & {
122
- name: string;
123
- })[];
124
- static placements: Placement[];
125
- static Defaults: PopperOptions;
126
- options: PopperOptions;
127
- popper: Element;
128
- reference: Element | ReferenceObject;
129
- constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions);
130
- destroy(): void;
131
- update(): void;
132
- scheduleUpdate(): void;
133
- enableEventListeners(): void;
134
- disableEventListeners(): void;
135
- }
136
- export default Popper;
137
- //# sourceMappingURL=DeprecatedPopperTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedPopperTypes.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedPopperTypes.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;GAIG;AACH,OAAO,WAAW,MAAM,CAAC;IACvB,KAAY,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAE3D,KAAY,SAAS,GACjB,YAAY,GACZ,MAAM,GACN,UAAU,GACV,WAAW,GACX,KAAK,GACL,SAAS,GACT,aAAa,GACb,OAAO,GACP,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,UAAU,GACV,MAAM,GACN,YAAY,CAAC;IAEjB,KAAY,QAAQ,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE9D,KAAY,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,kBAAkB,CAAC;IAEjE,KAAY,UAAU,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/D,UAAiB,UAAU;QACzB,qBAAqB,EAAE,EAAE,GAAG,KAAK,CAAC;QAClC,aAAa,EAAE,SAAS,CAAC;KAC1B;IAED,UAAiB,OAAO;QACtB,GAAG,CAAC,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AAO,CAAC,EAAE,aAAa;IAE1F,OAAO,IAAI,IAAI;IAEf,MAAM,IAAI,IAAI;IAEd,cAAc,IAAI,IAAI;IAEtB,oBAAoB,IAAI,IAAI;IAE5B,qBAAqB,IAAI,IAAI;CAC9B;AAED,eAAe,MAAM,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/ban-types */
3
- /* eslint-disable @typescript-eslint/no-namespace */
4
- /**
5
- * Added types from tippy.js and popper.js to preserve backwards compatibility
6
- * Can remove in next breaking change release
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.default = Popper;
10
- //# sourceMappingURL=DeprecatedPopperTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedPopperTypes.js","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedPopperTypes.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oDAAoD;AACpD;;;GAGG;;AA8KH,kBAAe,MAAM,CAAC"}
@@ -1,211 +0,0 @@
1
- /**
2
- * Added types from tippy.js and popper.js to preserve backwards compatibility
3
- * Can remove in next breaking change release
4
- */
5
- import Popper from './DeprecatedPopperTypes';
6
- export declare type BasePlacement = 'top' | 'bottom' | 'left' | 'right';
7
- export declare type Placement = Popper.Placement;
8
- export declare type Boundary = Popper.Boundary | HTMLElement;
9
- export declare type Content = string | Element | ((ref: Element) => Element | string);
10
- export declare type SingleTarget = Element;
11
- export declare type MultipleTargets = string | Element[] | NodeList;
12
- export declare type Targets = SingleTarget | MultipleTargets;
13
- export interface ReferenceElement<TProps = Props> extends Element {
14
- _tippy?: Instance<TProps>;
15
- }
16
- export interface PopperElement<TProps = Props> extends HTMLDivElement {
17
- _tippy?: Instance<TProps>;
18
- }
19
- export interface PopperInstance extends Popper {
20
- modifiers: Popper.BaseModifier[];
21
- }
22
- export interface LifecycleHooks<TProps = Props> {
23
- onAfterUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
24
- onBeforeUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
25
- onCreate(instance: Instance<TProps>): void;
26
- onDestroy(instance: Instance<TProps>): void;
27
- onHidden(instance: Instance<TProps>): void;
28
- onHide(instance: Instance<TProps>): void | false;
29
- onMount(instance: Instance<TProps>): void;
30
- onShow(instance: Instance<TProps>): void | false;
31
- onShown(instance: Instance<TProps>): void;
32
- onTrigger(instance: Instance<TProps>, event: Event): void;
33
- onUntrigger(instance: Instance<TProps>, event: Event): void;
34
- }
35
- export interface Props extends LifecycleHooks {
36
- allowHTML: boolean;
37
- animateFill: boolean;
38
- animation: string;
39
- appendTo: 'parent' | Element | ((ref: Element) => Element);
40
- aria: 'describedby' | 'labelledby' | null;
41
- arrow: boolean | string | SVGElement;
42
- boundary: Boundary;
43
- content: Content;
44
- delay: number | [number | null, number | null];
45
- distance: number | string;
46
- duration: number | [number | null, number | null];
47
- flip: boolean;
48
- flipBehavior: 'flip' | Placement[];
49
- flipOnUpdate: boolean;
50
- followCursor: boolean | 'horizontal' | 'vertical' | 'initial';
51
- hideOnClick: boolean | 'toggle';
52
- ignoreAttributes: boolean;
53
- inertia: boolean;
54
- inlinePositioning: boolean;
55
- interactive: boolean;
56
- interactiveBorder: number;
57
- interactiveDebounce: number;
58
- lazy: boolean;
59
- maxWidth: number | string;
60
- multiple: boolean;
61
- offset: number | string;
62
- placement: Placement;
63
- plugins: Plugin[];
64
- popperOptions: Popper.PopperOptions;
65
- role: string;
66
- showOnCreate: boolean;
67
- sticky: boolean | 'reference' | 'popper';
68
- theme: string;
69
- touch: boolean | 'hold' | ['hold', number];
70
- trigger: string;
71
- triggerTarget: Element | Element[] | null;
72
- updateDuration: number;
73
- zIndex: number;
74
- }
75
- export interface DefaultProps extends Props {
76
- delay: number | [number, number];
77
- duration: number | [number, number];
78
- }
79
- export interface Instance<TProps = Props> {
80
- clearDelayTimeouts(): void;
81
- destroy(): void;
82
- disable(): void;
83
- enable(): void;
84
- hide(duration?: number): void;
85
- id: number;
86
- plugins: Plugin<TProps>[];
87
- popper: PopperElement<TProps>;
88
- popperChildren: PopperChildren;
89
- popperInstance: PopperInstance | null;
90
- props: TProps;
91
- reference: ReferenceElement<TProps>;
92
- setContent(content: Content): void;
93
- setProps(partialProps: Partial<TProps>): void;
94
- show(duration?: number): void;
95
- state: {
96
- currentPlacement: Placement | null;
97
- isEnabled: boolean;
98
- isVisible: boolean;
99
- isDestroyed: boolean;
100
- isMounted: boolean;
101
- isShown: boolean;
102
- };
103
- }
104
- export interface PopperChildren {
105
- tooltip: HTMLDivElement;
106
- content: HTMLDivElement;
107
- arrow: HTMLDivElement | null;
108
- }
109
- export interface TippyStatics {
110
- readonly currentInput: {
111
- isTouch: boolean;
112
- };
113
- readonly defaultProps: DefaultProps;
114
- readonly version: string;
115
- setDefaultProps(partialProps: Partial<DefaultProps>): void;
116
- }
117
- export interface Tippy<TProps = Props> extends TippyStatics {
118
- (targets: SingleTarget, optionalProps?: Partial<TProps>,
119
- /** @deprecated use Props.plugins */
120
- plugins?: Plugin<TProps>[]): Instance<TProps>;
121
- }
122
- export interface Tippy<TProps = Props> extends TippyStatics {
123
- (targets: MultipleTargets, optionalProps?: Partial<TProps>,
124
- /** @deprecated use Props.plugins */
125
- plugins?: Plugin<TProps>[]): Instance<TProps>[];
126
- }
127
- declare const tippy: Tippy;
128
- export interface DelegateInstance<TProps = Props> extends Instance<TProps> {
129
- destroy(shouldDestroyTargetInstances?: boolean): void;
130
- }
131
- export interface Delegate<TProps = Props> {
132
- (targets: SingleTarget, props: Partial<TProps> & {
133
- target: string;
134
- },
135
- /** @deprecated use Props.plugins */
136
- plugins?: Plugin<TProps>[]): DelegateInstance<TProps>;
137
- }
138
- export interface Delegate<TProps = Props> {
139
- (targets: MultipleTargets, props: Partial<TProps> & {
140
- target: string;
141
- },
142
- /** @deprecated use Props.plugins */
143
- plugins?: Plugin<TProps>[]): DelegateInstance<TProps>[];
144
- }
145
- export declare type CreateSingleton<TProps = Props> = (tippyInstances: Instance<TProps | Props>[], optionalProps?: Partial<TProps>,
146
- /** @deprecated use Props.plugins */
147
- plugins?: Plugin<TProps>[]) => Instance<TProps>;
148
- declare const delegate: Delegate;
149
- declare const createSingleton: CreateSingleton;
150
- export interface Plugin<TProps = Props> {
151
- name?: string;
152
- defaultValue?: any;
153
- fn(instance: Instance<TProps>): Partial<LifecycleHooks<TProps>>;
154
- }
155
- export interface AnimateFillInstance extends Instance {
156
- popperChildren: PopperChildren & {
157
- backdrop: HTMLDivElement | null;
158
- };
159
- }
160
- export interface AnimateFill extends Plugin {
161
- name: 'animateFill';
162
- defaultValue: false;
163
- fn(instance: AnimateFillInstance): Partial<LifecycleHooks>;
164
- }
165
- export interface FollowCursor extends Plugin {
166
- name: 'followCursor';
167
- defaultValue: false;
168
- }
169
- export interface InlinePositioning extends Plugin {
170
- name: 'inlinePositioning';
171
- defaultValue: false;
172
- }
173
- export interface Sticky extends Plugin {
174
- name: 'sticky';
175
- defaultValue: false;
176
- }
177
- declare const animateFill: AnimateFill;
178
- declare const followCursor: FollowCursor;
179
- declare const inlinePositioning: InlinePositioning;
180
- declare const sticky: Sticky;
181
- export interface HideAllOptions {
182
- duration?: number;
183
- exclude?: Instance | ReferenceElement;
184
- }
185
- export declare type HideAll = (options?: HideAllOptions) => void;
186
- declare const hideAll: HideAll;
187
- declare const roundArrow: string;
188
- /**
189
- * @deprecated use tippy.setDefaultProps({plugins: [...]});
190
- */
191
- export declare type CreateTippyWithPlugins = (outerPlugins: Plugin[]) => Tippy;
192
- declare const createTippyWithPlugins: CreateTippyWithPlugins;
193
- /** @deprecated */
194
- export interface AnimateFillProps {
195
- animateFill: Props['animateFill'];
196
- }
197
- /** @deprecated */
198
- export interface FollowCursorProps {
199
- followCursor: Props['followCursor'];
200
- }
201
- /** @deprecated */
202
- export interface InlinePositioningProps {
203
- inlinePositioning: Props['inlinePositioning'];
204
- }
205
- /** @deprecated */
206
- export interface StickyProps {
207
- sticky: Props['sticky'];
208
- }
209
- export default tippy;
210
- export { hideAll, createTippyWithPlugins, delegate, createSingleton, animateFill, followCursor, inlinePositioning, sticky, roundArrow };
211
- //# sourceMappingURL=DeprecatedTippyTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedTippyTypes.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedTippyTypes.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,oBAAY,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE,oBAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAEzC,oBAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC;AAErD,oBAAY,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC,CAAC;AAE9E,oBAAY,YAAY,GAAG,OAAO,CAAC;AAEnC,oBAAY,eAAe,GAAG,MAAM,GAAG,OAAO,EAAE,GAAG,QAAQ,CAAC;AAE5D,oBAAY,OAAO,GAAG,YAAY,GAAG,eAAe,CAAC;AAErD,MAAM,WAAW,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAE,SAAQ,OAAO;IAC/D,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa,CAAC,MAAM,GAAG,KAAK,CAAE,SAAQ,cAAc;IACnE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,cAAe,SAAQ,MAAM;IAE5C,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,cAAc,CAAC,MAAM,GAAG,KAAK;IAC5C,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,OAAO,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AY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACrC;AAED,kBAAkB;AAClB,MAAM,WAAW,sBAAsB;IACrC,iBAAiB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,kBAAkB;AAClB,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EACL,OAAO,EACP,sBAAsB,EACtB,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,UAAU,EACX,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/prefer-function-type */
3
- /**
4
- * Added types from tippy.js and popper.js to preserve backwards compatibility
5
- * Can remove in next breaking change release
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.roundArrow = exports.sticky = exports.inlinePositioning = exports.followCursor = exports.animateFill = exports.createSingleton = exports.delegate = exports.createTippyWithPlugins = exports.hideAll = void 0;
9
- exports.default = tippy;
10
- //# sourceMappingURL=DeprecatedTippyTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedTippyTypes.js","sourceRoot":"","sources":["../../../../src/helpers/Popper/DeprecatedTippyTypes.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D;;;GAGG;;;AA4QH,kBAAe,KAAK,CAAC"}
@@ -1,180 +0,0 @@
1
- /* eslint-disable @typescript-eslint/ban-types */
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
- /**
4
- * Added types from tippy.js and popper.js to preserve backwards compatibility
5
- * Can remove in next breaking change release
6
- */
7
-
8
- /**
9
- * This kind of namespace declaration is not necessary, but is kept here for backwards-compatibility with
10
- * popper.js 1.x. It can be removed in 2.x so that the default export is simply the Popper class
11
- * and all the types / interfaces are top-level named exports.
12
- */
13
- declare namespace Popper {
14
- export type Position = 'top' | 'right' | 'bottom' | 'left';
15
-
16
- export type Placement =
17
- | 'auto-start'
18
- | 'auto'
19
- | 'auto-end'
20
- | 'top-start'
21
- | 'top'
22
- | 'top-end'
23
- | 'right-start'
24
- | 'right'
25
- | 'right-end'
26
- | 'bottom-end'
27
- | 'bottom'
28
- | 'bottom-start'
29
- | 'left-end'
30
- | 'left'
31
- | 'left-start';
32
-
33
- export type Boundary = 'scrollParent' | 'viewport' | 'window';
34
-
35
- export type Behavior = 'flip' | 'clockwise' | 'counterclockwise';
36
-
37
- export type ModifierFn = (data: Data, options: Object) => Data;
38
-
39
- export interface Attributes {
40
- 'x-out-of-boundaries': '' | false;
41
- 'x-placement': Placement;
42
- }
43
-
44
- export interface Padding {
45
- top?: number;
46
- bottom?: number;
47
- left?: number;
48
- right?: number;
49
- }
50
-
51
- export interface BaseModifier {
52
- order?: number;
53
- enabled?: boolean;
54
- fn?: ModifierFn;
55
- }
56
-
57
- export interface Modifiers {
58
- shift?: BaseModifier;
59
- offset?: BaseModifier & {
60
- offset?: number | string;
61
- };
62
- preventOverflow?: BaseModifier & {
63
- priority?: Position[];
64
- padding?: number | Padding;
65
- boundariesElement?: Boundary | Element;
66
- escapeWithReference?: boolean;
67
- };
68
- keepTogether?: BaseModifier;
69
- arrow?: BaseModifier & {
70
- element?: string | Element;
71
- };
72
- flip?: BaseModifier & {
73
- behavior?: Behavior | Position[];
74
- padding?: number | Padding;
75
- boundariesElement?: Boundary | Element;
76
- flipVariations?: boolean;
77
- flipVariationsByContent?: boolean;
78
- };
79
- inner?: BaseModifier;
80
- hide?: BaseModifier;
81
- applyStyle?: BaseModifier & {
82
- onLoad?: Function;
83
- gpuAcceleration?: boolean;
84
- };
85
- computeStyle?: BaseModifier & {
86
- gpuAcceleration?: boolean;
87
- x?: 'bottom' | 'top';
88
- y?: 'left' | 'right';
89
- };
90
-
91
- [name: string]: (BaseModifier & Record<string, any>) | undefined;
92
- }
93
-
94
- export interface Offset {
95
- top: number;
96
- left: number;
97
- width: number;
98
- height: number;
99
- }
100
-
101
- export interface Data {
102
- instance: Popper;
103
- placement: Placement;
104
- originalPlacement: Placement;
105
- flipped: boolean;
106
- hide: boolean;
107
- arrowElement: Element;
108
- styles: CSSStyleDeclaration;
109
- arrowStyles: CSSStyleDeclaration;
110
- attributes: Attributes;
111
- boundaries: Object;
112
- offsets: {
113
- popper: Offset;
114
- reference: Offset;
115
- arrow: {
116
- top: number;
117
- left: number;
118
- };
119
- };
120
- }
121
-
122
- export interface PopperOptions {
123
- placement?: Placement;
124
- positionFixed?: boolean;
125
- eventsEnabled?: boolean;
126
- modifiers?: Modifiers;
127
- removeOnDestroy?: boolean;
128
-
129
- onCreate?(data: Data): void;
130
-
131
- onUpdate?(data: Data): void;
132
- }
133
-
134
- export interface ReferenceObject {
135
- clientHeight: number;
136
- clientWidth: number;
137
- referenceNode?: Node;
138
-
139
- getBoundingClientRect(): ClientRect;
140
- }
141
- }
142
-
143
- // Re-export types in the Popper namespace so that they can be accessed as top-level named exports.
144
- // These re-exports should be removed in 2.x when the "declare namespace Popper" syntax is removed.
145
- export type Padding = Popper.Padding;
146
- export type Position = Popper.Position;
147
- export type Placement = Popper.Placement;
148
- export type Boundary = Popper.Boundary;
149
- export type Behavior = Popper.Behavior;
150
- export type ModifierFn = Popper.ModifierFn;
151
- export type BaseModifier = Popper.BaseModifier;
152
- export type Modifiers = Popper.Modifiers;
153
- export type Offset = Popper.Offset;
154
- export type Data = Popper.Data;
155
- export type PopperOptions = Popper.PopperOptions;
156
- export type ReferenceObject = Popper.ReferenceObject;
157
-
158
- declare class Popper {
159
- static modifiers: (BaseModifier & { name: string })[];
160
- static placements: Placement[];
161
- static Defaults: PopperOptions;
162
-
163
- options: PopperOptions;
164
- popper: Element;
165
- reference: Element | ReferenceObject;
166
-
167
- constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions);
168
-
169
- destroy(): void;
170
-
171
- update(): void;
172
-
173
- scheduleUpdate(): void;
174
-
175
- enableEventListeners(): void;
176
-
177
- disableEventListeners(): void;
178
- }
179
-
180
- export default Popper;
@@ -1,284 +0,0 @@
1
- /* eslint-disable @typescript-eslint/prefer-function-type */
2
- /**
3
- * Added types from tippy.js and popper.js to preserve backwards compatibility
4
- * Can remove in next breaking change release
5
- */
6
-
7
- import Popper from './DeprecatedPopperTypes';
8
-
9
- export type BasePlacement = 'top' | 'bottom' | 'left' | 'right';
10
-
11
- export type Placement = Popper.Placement;
12
-
13
- export type Boundary = Popper.Boundary | HTMLElement;
14
-
15
- export type Content = string | Element | ((ref: Element) => Element | string);
16
-
17
- export type SingleTarget = Element;
18
-
19
- export type MultipleTargets = string | Element[] | NodeList;
20
-
21
- export type Targets = SingleTarget | MultipleTargets;
22
-
23
- export interface ReferenceElement<TProps = Props> extends Element {
24
- _tippy?: Instance<TProps>;
25
- }
26
-
27
- export interface PopperElement<TProps = Props> extends HTMLDivElement {
28
- _tippy?: Instance<TProps>;
29
- }
30
-
31
- export interface PopperInstance extends Popper {
32
- // Undo the static so we can mutate values inside for `tippyDistance`
33
- modifiers: Popper.BaseModifier[];
34
- }
35
-
36
- export interface LifecycleHooks<TProps = Props> {
37
- onAfterUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
38
- onBeforeUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
39
- onCreate(instance: Instance<TProps>): void;
40
- onDestroy(instance: Instance<TProps>): void;
41
- onHidden(instance: Instance<TProps>): void;
42
- onHide(instance: Instance<TProps>): void | false;
43
- onMount(instance: Instance<TProps>): void;
44
- onShow(instance: Instance<TProps>): void | false;
45
- onShown(instance: Instance<TProps>): void;
46
- onTrigger(instance: Instance<TProps>, event: Event): void;
47
- onUntrigger(instance: Instance<TProps>, event: Event): void;
48
- }
49
-
50
- export interface Props extends LifecycleHooks {
51
- allowHTML: boolean;
52
- animateFill: boolean;
53
- animation: string;
54
- appendTo: 'parent' | Element | ((ref: Element) => Element);
55
- aria: 'describedby' | 'labelledby' | null;
56
- arrow: boolean | string | SVGElement;
57
- boundary: Boundary;
58
- content: Content;
59
- delay: number | [number | null, number | null];
60
- distance: number | string;
61
- duration: number | [number | null, number | null];
62
- flip: boolean;
63
- flipBehavior: 'flip' | Placement[];
64
- flipOnUpdate: boolean;
65
- followCursor: boolean | 'horizontal' | 'vertical' | 'initial';
66
- hideOnClick: boolean | 'toggle';
67
- ignoreAttributes: boolean;
68
- inertia: boolean;
69
- inlinePositioning: boolean;
70
- interactive: boolean;
71
- interactiveBorder: number;
72
- interactiveDebounce: number;
73
- lazy: boolean;
74
- maxWidth: number | string;
75
- multiple: boolean;
76
- offset: number | string;
77
- placement: Placement;
78
- plugins: Plugin[];
79
- popperOptions: Popper.PopperOptions;
80
- role: string;
81
- showOnCreate: boolean;
82
- sticky: boolean | 'reference' | 'popper';
83
- theme: string;
84
- touch: boolean | 'hold' | ['hold', number];
85
- trigger: string;
86
- triggerTarget: Element | Element[] | null;
87
- updateDuration: number;
88
- zIndex: number;
89
- }
90
-
91
- export interface DefaultProps extends Props {
92
- delay: number | [number, number];
93
- duration: number | [number, number];
94
- }
95
-
96
- export interface Instance<TProps = Props> {
97
- clearDelayTimeouts(): void;
98
- destroy(): void;
99
- disable(): void;
100
- enable(): void;
101
- hide(duration?: number): void;
102
- id: number;
103
- plugins: Plugin<TProps>[];
104
- popper: PopperElement<TProps>;
105
- popperChildren: PopperChildren;
106
- popperInstance: PopperInstance | null;
107
- props: TProps;
108
- reference: ReferenceElement<TProps>;
109
- setContent(content: Content): void;
110
- setProps(partialProps: Partial<TProps>): void;
111
- show(duration?: number): void;
112
- state: {
113
- currentPlacement: Placement | null;
114
- isEnabled: boolean;
115
- isVisible: boolean;
116
- isDestroyed: boolean;
117
- isMounted: boolean;
118
- isShown: boolean;
119
- };
120
- }
121
-
122
- export interface PopperChildren {
123
- tooltip: HTMLDivElement;
124
- content: HTMLDivElement;
125
- arrow: HTMLDivElement | null;
126
- }
127
-
128
- export interface TippyStatics {
129
- readonly currentInput: { isTouch: boolean };
130
- readonly defaultProps: DefaultProps;
131
- readonly version: string;
132
- setDefaultProps(partialProps: Partial<DefaultProps>): void;
133
- }
134
-
135
- export interface Tippy<TProps = Props> extends TippyStatics {
136
- (
137
- targets: SingleTarget,
138
- optionalProps?: Partial<TProps>,
139
- /** @deprecated use Props.plugins */
140
- plugins?: Plugin<TProps>[]
141
- ): Instance<TProps>;
142
- }
143
-
144
- export interface Tippy<TProps = Props> extends TippyStatics {
145
- (
146
- targets: MultipleTargets,
147
- optionalProps?: Partial<TProps>,
148
- /** @deprecated use Props.plugins */
149
- plugins?: Plugin<TProps>[]
150
- ): Instance<TProps>[];
151
- }
152
-
153
- declare const tippy: Tippy;
154
-
155
- // =============================================================================
156
- // Addon types
157
- // =============================================================================
158
- export interface DelegateInstance<TProps = Props> extends Instance<TProps> {
159
- destroy(shouldDestroyTargetInstances?: boolean): void;
160
- }
161
-
162
- export interface Delegate<TProps = Props> {
163
- (
164
- targets: SingleTarget,
165
- props: Partial<TProps> & { target: string },
166
- /** @deprecated use Props.plugins */
167
- plugins?: Plugin<TProps>[]
168
- ): DelegateInstance<TProps>;
169
- }
170
-
171
- export interface Delegate<TProps = Props> {
172
- (
173
- targets: MultipleTargets,
174
- props: Partial<TProps> & { target: string },
175
- /** @deprecated use Props.plugins */
176
- plugins?: Plugin<TProps>[]
177
- ): DelegateInstance<TProps>[];
178
- }
179
-
180
- export type CreateSingleton<TProps = Props> = (
181
- tippyInstances: Instance<TProps | Props>[],
182
- optionalProps?: Partial<TProps>,
183
- /** @deprecated use Props.plugins */
184
- plugins?: Plugin<TProps>[]
185
- ) => Instance<TProps>;
186
-
187
- declare const delegate: Delegate;
188
- declare const createSingleton: CreateSingleton;
189
-
190
- // =============================================================================
191
- // Plugin types
192
- // =============================================================================
193
- export interface Plugin<TProps = Props> {
194
- name?: string;
195
- defaultValue?: any;
196
- fn(instance: Instance<TProps>): Partial<LifecycleHooks<TProps>>;
197
- }
198
-
199
- export interface AnimateFillInstance extends Instance {
200
- popperChildren: PopperChildren & {
201
- backdrop: HTMLDivElement | null;
202
- };
203
- }
204
-
205
- export interface AnimateFill extends Plugin {
206
- name: 'animateFill';
207
- defaultValue: false;
208
- fn(instance: AnimateFillInstance): Partial<LifecycleHooks>;
209
- }
210
-
211
- export interface FollowCursor extends Plugin {
212
- name: 'followCursor';
213
- defaultValue: false;
214
- }
215
-
216
- export interface InlinePositioning extends Plugin {
217
- name: 'inlinePositioning';
218
- defaultValue: false;
219
- }
220
-
221
- export interface Sticky extends Plugin {
222
- name: 'sticky';
223
- defaultValue: false;
224
- }
225
-
226
- declare const animateFill: AnimateFill;
227
- declare const followCursor: FollowCursor;
228
- declare const inlinePositioning: InlinePositioning;
229
- declare const sticky: Sticky;
230
-
231
- // =============================================================================
232
- // Misc types
233
- // =============================================================================
234
- export interface HideAllOptions {
235
- duration?: number;
236
- exclude?: Instance | ReferenceElement;
237
- }
238
-
239
- export type HideAll = (options?: HideAllOptions) => void;
240
-
241
- declare const hideAll: HideAll;
242
- declare const roundArrow: string;
243
-
244
- // =============================================================================
245
- // Deprecated types - these will be removed in the next major
246
- // =============================================================================
247
- /**
248
- * @deprecated use tippy.setDefaultProps({plugins: [...]});
249
- */
250
- export type CreateTippyWithPlugins = (outerPlugins: Plugin[]) => Tippy;
251
- declare const createTippyWithPlugins: CreateTippyWithPlugins;
252
-
253
- /** @deprecated */
254
- export interface AnimateFillProps {
255
- animateFill: Props['animateFill'];
256
- }
257
-
258
- /** @deprecated */
259
- export interface FollowCursorProps {
260
- followCursor: Props['followCursor'];
261
- }
262
-
263
- /** @deprecated */
264
- export interface InlinePositioningProps {
265
- inlinePositioning: Props['inlinePositioning'];
266
- }
267
-
268
- /** @deprecated */
269
- export interface StickyProps {
270
- sticky: Props['sticky'];
271
- }
272
-
273
- export default tippy;
274
- export {
275
- hideAll,
276
- createTippyWithPlugins,
277
- delegate,
278
- createSingleton,
279
- animateFill,
280
- followCursor,
281
- inlinePositioning,
282
- sticky,
283
- roundArrow
284
- };