baseui 0.0.0-next-00fa6f1 → 0.0.0-next-1f0b4e7
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/package.json +1 -1
- package/popover/popover.js.flow +2 -2
- package/popover/types.d.ts +4 -4
- package/popover/types.js.flow +4 -4
package/package.json
CHANGED
package/popover/popover.js.flow
CHANGED
|
@@ -115,7 +115,7 @@ class PopoverInner extends React.Component<PopoverPropsT, PopoverPrivateStateT>
|
|
|
115
115
|
isAnimating: false,
|
|
116
116
|
arrowOffset: { left: 0, top: 0 },
|
|
117
117
|
popoverOffset: { left: 0, top: 0 },
|
|
118
|
-
placement: props.placement
|
|
118
|
+
placement: props.placement,
|
|
119
119
|
isMounted: false,
|
|
120
120
|
isLayerMounted: false,
|
|
121
121
|
autoFocusAfterPositioning: false,
|
|
@@ -328,7 +328,7 @@ class PopoverInner extends React.Component<PopoverPropsT, PopoverPrivateStateT>
|
|
|
328
328
|
|
|
329
329
|
getSharedProps(): $Diff<SharedStylePropsArgT, { children?: React.Node }> {
|
|
330
330
|
const { isOpen, showArrow, popoverMargin = POPOVER_MARGIN } = this.props;
|
|
331
|
-
const { isAnimating, arrowOffset, popoverOffset, placement
|
|
331
|
+
const { isAnimating, arrowOffset, popoverOffset, placement } = this.state;
|
|
332
332
|
return {
|
|
333
333
|
$showArrow: !!showArrow,
|
|
334
334
|
$arrowOffset: arrowOffset,
|
package/popover/types.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare type BasePopoverProps = {
|
|
|
61
61
|
onMouseLeaveDelay?: number;
|
|
62
62
|
overrides?: PopoverOverrides;
|
|
63
63
|
/** How to position the popover relative to the target. */
|
|
64
|
-
placement
|
|
64
|
+
placement: TetherPlacement;
|
|
65
65
|
/** Popper options override
|
|
66
66
|
* https://github.com/popperjs/popper.js/blob/v1.x/docs/_includes/popper-documentation.md
|
|
67
67
|
*/
|
|
@@ -75,7 +75,7 @@ export declare type BasePopoverProps = {
|
|
|
75
75
|
/** Whether or not to show the arrow pointing from the popover to the trigger. */
|
|
76
76
|
showArrow?: boolean;
|
|
77
77
|
/** Whether to toggle the popover when trigger is clicked or hovered. */
|
|
78
|
-
triggerType
|
|
78
|
+
triggerType: TriggerType;
|
|
79
79
|
/** Margin of the popover */
|
|
80
80
|
popoverMargin?: number;
|
|
81
81
|
};
|
|
@@ -101,9 +101,9 @@ export declare type StatefulPopoverProps = BasePopoverProps & {
|
|
|
101
101
|
/** Content to render within the popover when it's shown. */
|
|
102
102
|
content: React.ReactNode | StatefulContentRenderProp;
|
|
103
103
|
/** Whether to hide the popover when the user clicks anywhere outside the trigger/popover. */
|
|
104
|
-
dismissOnClickOutside
|
|
104
|
+
dismissOnClickOutside: boolean;
|
|
105
105
|
/** Whether to hide the popover when the user presses the escape key. */
|
|
106
|
-
dismissOnEsc
|
|
106
|
+
dismissOnEsc: boolean;
|
|
107
107
|
/** Initial state populated into the component */
|
|
108
108
|
initialState?: State;
|
|
109
109
|
/** Event handler when popover is hidden. */
|
package/popover/types.js.flow
CHANGED
|
@@ -86,7 +86,7 @@ export type BasePopoverPropsT = {
|
|
|
86
86
|
onMouseLeaveDelay?: number,
|
|
87
87
|
overrides?: OverridesT,
|
|
88
88
|
/** How to position the popover relative to the target. */
|
|
89
|
-
placement
|
|
89
|
+
placement: TetherPlacementT,
|
|
90
90
|
/** Popper options override
|
|
91
91
|
* https://github.com/popperjs/popper.js/blob/v1.x/docs/_includes/popper-documentation.md
|
|
92
92
|
*/
|
|
@@ -101,7 +101,7 @@ export type BasePopoverPropsT = {
|
|
|
101
101
|
/** Whether or not to show the arrow pointing from the popover to the trigger. */
|
|
102
102
|
showArrow?: boolean,
|
|
103
103
|
/** Whether to toggle the popover when trigger is clicked or hovered. */
|
|
104
|
-
triggerType
|
|
104
|
+
triggerType: TriggerTypeT,
|
|
105
105
|
/** Margin of the popover */
|
|
106
106
|
popoverMargin?: number,
|
|
107
107
|
};
|
|
@@ -131,9 +131,9 @@ export type StatefulPopoverPropsT = BasePopoverPropsT & {
|
|
|
131
131
|
/** Content to render within the popover when it's shown. */
|
|
132
132
|
content: React.Node | StatefulContentRenderPropT,
|
|
133
133
|
/** Whether to hide the popover when the user clicks anywhere outside the trigger/popover. */
|
|
134
|
-
dismissOnClickOutside
|
|
134
|
+
dismissOnClickOutside: boolean,
|
|
135
135
|
/** Whether to hide the popover when the user presses the escape key. */
|
|
136
|
-
dismissOnEsc
|
|
136
|
+
dismissOnEsc: boolean,
|
|
137
137
|
/** Initial state populated into the component */
|
|
138
138
|
initialState?: StateT,
|
|
139
139
|
/** Event handler when popover is hidden. */
|