@sendoutcards/quantum-design-ui 1.8.37 → 1.8.38-alpha.0
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/dist/index.es.js +3 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useCallback, useState, useMemo, useRef,
|
|
1
|
+
import React, { useEffect, useCallback, useState, useMemo, useRef, 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';
|
|
@@ -14000,6 +14000,7 @@ var Sheet = function (_a) {
|
|
|
14000
14000
|
var _h = useState(((_b = targetRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0),
|
|
14001
14001
|
sheetHeight = _h[0],
|
|
14002
14002
|
setSheetHeight = _h[1];
|
|
14003
|
+
console.log(sheetHeight, 'SHEET HEIGHT');
|
|
14003
14004
|
var device = useDeviceSize().device;
|
|
14004
14005
|
var isMobile = device === 'small' || device === 'xSmall' ? true : false;
|
|
14005
14006
|
var sheet = useEntities().sheet;
|
|
@@ -14081,7 +14082,7 @@ var Sheet = function (_a) {
|
|
|
14081
14082
|
var isHtmlElement = function (element) {
|
|
14082
14083
|
return element instanceof HTMLElement;
|
|
14083
14084
|
};
|
|
14084
|
-
|
|
14085
|
+
useEffect(function () {
|
|
14085
14086
|
var _a;
|
|
14086
14087
|
if (targetRef.current && sheetHeight !== ((_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight)) {
|
|
14087
14088
|
setSheetHeight(targetRef.current.offsetHeight);
|