@sendoutcards/quantum-design-ui 1.8.38-alpha.3 → 1.8.38-alpha.4

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.
Files changed (2) hide show
  1. package/dist/index.es.js +4 -5
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useCallback, useState, useMemo, useRef, useContext, useImperativeHandle } from 'react';
1
+ import React, { useEffect, useCallback, useState, useMemo, useRef, useLayoutEffect, useContext, useImperativeHandle } from 'react';
2
2
  import { jsx, ThemeProvider, Global, css, useTheme } from '@emotion/react';
3
3
  import Color$1 from 'color';
4
4
  import { motion, useMotionValue, useTransform, animate, AnimatePresence, useElementScroll, AnimateSharedLayout, useAnimation } from 'framer-motion';
@@ -14083,9 +14083,9 @@ var Sheet = function (_a) {
14083
14083
  var isHtmlElement = function (element) {
14084
14084
  return element instanceof HTMLElement;
14085
14085
  };
14086
- useEffect(function () {
14086
+ useLayoutEffect(function () {
14087
14087
  var _a, _b;
14088
- console.log('TARGET REF in use effect', targetRef.current, sheetHeight, (_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
14088
+ console.log('TARGET REF in use effect', targetRef, sheetHeight, (_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
14089
14089
  if (targetRef.current && sheetHeight !== ((_b = targetRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight)) {
14090
14090
  setSheetHeight(targetRef.current.offsetHeight);
14091
14091
  }
@@ -14321,8 +14321,7 @@ var Sheet = function (_a) {
14321
14321
  }, jsx(Flex, {
14322
14322
  flexDirection: "column",
14323
14323
  width: "100%",
14324
- inset: inset,
14325
- height: "100%"
14324
+ inset: inset
14326
14325
  }, children)))));
14327
14326
  };
14328
14327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.8.38-alpha.3",
3
+ "version": "1.8.38-alpha.4",
4
4
  "description": "UI component library for Quantum Design System",
5
5
  "module": "dist/index.es.js",
6
6
  "jsnext:main": "dist/index.es.js",