@chakra-ui/popper
Advanced tools
Comparing version 1.0.0-next.4 to 1.0.0-next.5
@@ -6,2 +6,14 @@ # Change Log | ||
# [1.0.0-next.5](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/popper@1.0.0-next.4...@chakra-ui/popper@1.0.0-next.5) (2020-07-15) | ||
### Features | ||
- add support for css transition | ||
([a41614c](https://github.com/chakra-ui/chakra-ui/commit/a41614c8e9757e5d38ddef6a356d2d8c718f406f)) | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# 1.0.0-next.4 (2020-07-01) | ||
@@ -8,0 +20,0 @@ |
"use strict"; | ||
exports.__esModule = true; | ||
var _exportNames = { | ||
toTransformOrigin: true | ||
}; | ||
exports.toTransformOrigin = void 0; | ||
@@ -9,2 +13,3 @@ var _usePopper = require("./use-popper"); | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _usePopper[key]; | ||
@@ -17,4 +22,9 @@ }); | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _popper[key]; | ||
}); | ||
var _popper2 = require("./popper.utils"); | ||
exports.toTransformOrigin = _popper2.toTransformOrigin; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
exports.getBoxShadow = getBoxShadow; | ||
exports.getOppositePosition = void 0; | ||
exports.toTransformOrigin = exports.getOppositePosition = void 0; | ||
var oppositeDirections = { | ||
@@ -55,2 +55,23 @@ top: "bottom", | ||
} | ||
var transformEnum = { | ||
top: "bottom center", | ||
"top-start": "bottom left", | ||
"top-end": "bottom right", | ||
bottom: "top center", | ||
"bottom-start": "top left", | ||
"bottom-end": "top right", | ||
left: "right center", | ||
"left-start": "right top", | ||
"left-end": "right bottom", | ||
right: "left center", | ||
"right-start": "left top", | ||
"right-end": "left bottom" | ||
}; | ||
var toTransformOrigin = function toTransformOrigin(placement) { | ||
return transformEnum[placement]; | ||
}; | ||
exports.toTransformOrigin = toTransformOrigin; | ||
//# sourceMappingURL=popper.utils.js.map |
export * from "./use-popper"; | ||
export * from "./popper.modifiers"; | ||
export { toTransformOrigin } from "./popper.utils"; | ||
//# sourceMappingURL=index.js.map |
@@ -42,2 +42,17 @@ var oppositeDirections = { | ||
} | ||
var transformEnum = { | ||
top: "bottom center", | ||
"top-start": "bottom left", | ||
"top-end": "bottom right", | ||
bottom: "top center", | ||
"bottom-start": "top left", | ||
"bottom-end": "top right", | ||
left: "right center", | ||
"left-start": "right top", | ||
"left-end": "right bottom", | ||
right: "left center", | ||
"right-start": "left top", | ||
"right-end": "left bottom" | ||
}; | ||
export var toTransformOrigin = placement => transformEnum[placement]; | ||
//# sourceMappingURL=popper.utils.js.map |
export * from "./use-popper"; | ||
export * from "./popper.modifiers"; | ||
export { toTransformOrigin } from "./popper.utils"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,3 +13,4 @@ /// <reference types="react" /> | ||
export declare function getBoxShadow(placement: Placement, color: string): string | undefined; | ||
export declare const toTransformOrigin: (placement: Placement) => any; | ||
export {}; | ||
//# sourceMappingURL=popper.utils.d.ts.map |
{ | ||
"name": "@chakra-ui/popper", | ||
"version": "1.0.0-next.4", | ||
"version": "1.0.0-next.5", | ||
"description": "A React component and hooks wrapper for popper.js", | ||
@@ -59,3 +59,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "cdd5eac1db90ba33a07c009fb8dbcc4453d6ec01" | ||
"gitHead": "24eec5d796d81b6fafbcfa7231fb2cb15e6d5a29" | ||
} |
@@ -59,1 +59,22 @@ import { Placement } from "@popperjs/core" | ||
} | ||
const transformEnum = { | ||
top: "bottom center", | ||
"top-start": "bottom left", | ||
"top-end": "bottom right", | ||
bottom: "top center", | ||
"bottom-start": "top left", | ||
"bottom-end": "top right", | ||
left: "right center", | ||
"left-start": "right top", | ||
"left-end": "right bottom", | ||
right: "left center", | ||
"right-start": "left top", | ||
"right-end": "left bottom", | ||
} | ||
export const toTransformOrigin = (placement: Placement) => | ||
transformEnum[placement] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62841
748
1