@rc-component/trigger
Advanced tools
Comparing version 1.14.3 to 1.14.4
import type { ActionType } from '../interface'; | ||
declare type ActionTypes = ActionType | ActionType[]; | ||
type ActionTypes = ActionType | ActionType[]; | ||
export default function useAction(mobile: boolean, action: ActionTypes, showAction?: ActionTypes, hideAction?: ActionTypes): [showAction: Set<ActionType>, hideAction: Set<ActionType>]; | ||
export {}; |
@@ -416,3 +416,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
if (nextPopupY < visibleRegionArea.top) { | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top; | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY; | ||
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) { | ||
@@ -425,3 +425,3 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY; | ||
if (nextPopupBottom > visibleRegionArea.bottom) { | ||
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom; | ||
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom - popupOffsetY; | ||
if (targetRect.y > visibleRegionArea.bottom - numShiftY) { | ||
@@ -428,0 +428,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.bottom + numShiftY; |
/// <reference types="react" /> | ||
import type { CSSMotionProps } from 'rc-motion'; | ||
export declare type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; | ||
export declare type AlignPointTopBottom = 't' | 'b' | 'c'; | ||
export declare type AlignPointLeftRight = 'l' | 'r' | 'c'; | ||
export type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; | ||
export type AlignPointTopBottom = 't' | 'b' | 'c'; | ||
export type AlignPointLeftRight = 'l' | 'r' | 'c'; | ||
/** Two char of 't' 'b' 'c' 'l' 'r'. Example: 'lt' */ | ||
export declare type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`; | ||
export declare type OffsetType = number | `${number}%`; | ||
export type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`; | ||
export type OffsetType = number | `${number}%`; | ||
export interface AlignType { | ||
@@ -78,11 +78,11 @@ /** | ||
} | ||
export declare type ArrowPos = { | ||
export type ArrowPos = { | ||
x?: number; | ||
y?: number; | ||
}; | ||
export declare type BuildInPlacements = Record<string, AlignType>; | ||
export declare type StretchType = string; | ||
export declare type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu'; | ||
export declare type AnimationType = string; | ||
export declare type TransitionNameType = string; | ||
export type BuildInPlacements = Record<string, AlignType>; | ||
export type StretchType = string; | ||
export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu'; | ||
export type AnimationType = string; | ||
export type TransitionNameType = string; | ||
export interface Point { | ||
@@ -89,0 +89,0 @@ pageX: number; |
import type { ActionType } from '../interface'; | ||
declare type ActionTypes = ActionType | ActionType[]; | ||
type ActionTypes = ActionType | ActionType[]; | ||
export default function useAction(mobile: boolean, action: ActionTypes, showAction?: ActionTypes, hideAction?: ActionTypes): [showAction: Set<ActionType>, hideAction: Set<ActionType>]; | ||
export {}; |
@@ -424,3 +424,3 @@ "use strict"; | ||
if (nextPopupY < visibleRegionArea.top) { | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top; | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY; | ||
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) { | ||
@@ -433,3 +433,3 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY; | ||
if (nextPopupBottom > visibleRegionArea.bottom) { | ||
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom; | ||
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom - popupOffsetY; | ||
if (targetRect.y > visibleRegionArea.bottom - numShiftY) { | ||
@@ -436,0 +436,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.bottom + numShiftY; |
/// <reference types="react" /> | ||
import type { CSSMotionProps } from 'rc-motion'; | ||
export declare type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; | ||
export declare type AlignPointTopBottom = 't' | 'b' | 'c'; | ||
export declare type AlignPointLeftRight = 'l' | 'r' | 'c'; | ||
export type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; | ||
export type AlignPointTopBottom = 't' | 'b' | 'c'; | ||
export type AlignPointLeftRight = 'l' | 'r' | 'c'; | ||
/** Two char of 't' 'b' 'c' 'l' 'r'. Example: 'lt' */ | ||
export declare type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`; | ||
export declare type OffsetType = number | `${number}%`; | ||
export type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`; | ||
export type OffsetType = number | `${number}%`; | ||
export interface AlignType { | ||
@@ -78,11 +78,11 @@ /** | ||
} | ||
export declare type ArrowPos = { | ||
export type ArrowPos = { | ||
x?: number; | ||
y?: number; | ||
}; | ||
export declare type BuildInPlacements = Record<string, AlignType>; | ||
export declare type StretchType = string; | ||
export declare type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu'; | ||
export declare type AnimationType = string; | ||
export declare type TransitionNameType = string; | ||
export type BuildInPlacements = Record<string, AlignType>; | ||
export type StretchType = string; | ||
export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu'; | ||
export type AnimationType = string; | ||
export type TransitionNameType = string; | ||
export interface Point { | ||
@@ -89,0 +89,0 @@ pageX: number; |
{ | ||
"name": "@rc-component/trigger", | ||
"version": "1.14.3", | ||
"version": "1.14.4", | ||
"description": "base abstract trigger component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175452