@pingux/astro 2.32.0-alpha.13 → 2.32.0-alpha.14

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.
@@ -0,0 +1 @@
1
+ export { default } from './useMountTransition';
@@ -0,0 +1,14 @@
1
+ interface UseMountTransition {
2
+ /**
3
+ * Allows for css transitions to be applied to components, while mounting or unmounting.
4
+ * @param {Object} [props] Properties provided to the state
5
+ *
6
+ * `props.isMounted`: boolean - Whether the component has been mounted.
7
+ * `props.unmountDelay`: number - Number value of the length of the transition in ms.
8
+ *
9
+ * @returns {Boolean} `isTransitioning`
10
+ */
11
+ (isMounted: boolean, unmountDelay: number): boolean;
12
+ }
13
+ declare const useMountTransition: UseMountTransition;
14
+ export default useMountTransition;
@@ -9,15 +9,6 @@ exports["default"] = void 0;
9
9
  var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
11
11
  var _react = require("react");
12
- /**
13
- * Allows for css transitions to be applied to components, while mounting or unmounting.
14
- * @param {Object} [props] Properties provided to the state
15
- * @param {Boolean} [props.isMounted] Whether the component has been mounted.
16
- * @param {Number} [props.unmountDelay] Number value of the length of the transition in ms.
17
- * `(isOpen: boolean) => void`
18
- * @returns {Boolean} `isTransitioning`
19
- */
20
-
21
12
  var useMountTransition = function useMountTransition(isMounted, unmountDelay) {
22
13
  var _useState = (0, _react.useState)(false),
23
14
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
@@ -32,7 +32,7 @@ var ControlledWithTransition = function ControlledWithTransition() {
32
32
  var _useOverlayPanelState = (0, _useOverlayPanelState2["default"])(),
33
33
  state = _useOverlayPanelState.state,
34
34
  onClose = _useOverlayPanelState.onClose;
35
- var triggerRef = (0, _react.useRef)();
35
+ var triggerRef = (0, _react.useRef)(null);
36
36
  return (
37
37
  // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
38
38
  // readers when an overlay is open.
@@ -51,7 +51,7 @@ var ControlledWithTransition = function ControlledWithTransition() {
51
51
  },
52
52
  "aria-expanded": state.isOpen
53
53
  }, defaultCloseButtonProps), "Close Panel"), (0, _react2.jsx)("p", {
54
- pt: "md"
54
+ "padding-top": "md"
55
55
  }, (0, _stringify["default"])(state.isOpen)))))
56
56
  );
57
57
  };
@@ -1,16 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
3
3
  import { useEffect, useState } from 'react';
4
-
5
- /**
6
- * Allows for css transitions to be applied to components, while mounting or unmounting.
7
- * @param {Object} [props] Properties provided to the state
8
- * @param {Boolean} [props.isMounted] Whether the component has been mounted.
9
- * @param {Number} [props.unmountDelay] Number value of the length of the transition in ms.
10
- * `(isOpen: boolean) => void`
11
- * @returns {Boolean} `isTransitioning`
12
- */
13
-
14
4
  var useMountTransition = function useMountTransition(isMounted, unmountDelay) {
15
5
  var _useState = useState(false),
16
6
  _useState2 = _slicedToArray(_useState, 2),
@@ -23,7 +23,7 @@ var ControlledWithTransition = function ControlledWithTransition() {
23
23
  var _useOverlayPanelState = useOverlayPanelState(),
24
24
  state = _useOverlayPanelState.state,
25
25
  onClose = _useOverlayPanelState.onClose;
26
- var triggerRef = useRef();
26
+ var triggerRef = useRef(null);
27
27
  return (
28
28
  // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
29
29
  // readers when an overlay is open.
@@ -42,7 +42,7 @@ var ControlledWithTransition = function ControlledWithTransition() {
42
42
  },
43
43
  "aria-expanded": state.isOpen
44
44
  }, defaultCloseButtonProps), "Close Panel"), ___EmotionJSX("p", {
45
- pt: "md"
45
+ "padding-top": "md"
46
46
  }, _JSON$stringify(state.isOpen)))))
47
47
  );
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.32.0-alpha.13",
3
+ "version": "2.32.0-alpha.14",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",