@deephaven/components 1.7.2-beta.3 → 1.7.2-beta.5
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/Collapse.d.ts +6 -5
- package/dist/Collapse.d.ts.map +1 -1
- package/dist/Collapse.js +40 -22
- package/dist/Collapse.js.map +1 -1
- package/dist/DraggableItemList.css.map +1 -1
- package/dist/DraggableItemList.d.ts +5 -5
- package/dist/DraggableItemList.d.ts.map +1 -1
- package/dist/DraggableItemList.js +5 -5
- package/dist/DraggableItemList.js.map +1 -1
- package/dist/LoadingOverlay.d.ts.map +1 -1
- package/dist/LoadingOverlay.js +4 -1
- package/dist/LoadingOverlay.js.map +1 -1
- package/dist/ToastNotification.d.ts.map +1 -1
- package/dist/ToastNotification.js +4 -1
- package/dist/ToastNotification.js.map +1 -1
- package/dist/modal/Modal.d.ts.map +1 -1
- package/dist/modal/Modal.js +4 -0
- package/dist/modal/Modal.js.map +1 -1
- package/dist/navigation/NavTab.js +1 -1
- package/dist/navigation/NavTab.js.map +1 -1
- package/dist/navigation/NavTabList.js +1 -1
- package/dist/navigation/NavTabList.js.map +1 -1
- package/dist/popper/Popper.d.ts +1 -0
- package/dist/popper/Popper.d.ts.map +1 -1
- package/dist/popper/Popper.js +3 -0
- package/dist/popper/Popper.js.map +1 -1
- package/dist/transitions/FadeTransition.d.ts +7 -4
- package/dist/transitions/FadeTransition.d.ts.map +1 -1
- package/dist/transitions/FadeTransition.js +34 -6
- package/dist/transitions/FadeTransition.js.map +1 -1
- package/dist/transitions/SlideTransition.d.ts +5 -4
- package/dist/transitions/SlideTransition.d.ts.map +1 -1
- package/dist/transitions/SlideTransition.js +24 -6
- package/dist/transitions/SlideTransition.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["direction", "
|
|
1
|
+
var _excluded = ["direction", "classNames", "children", "timeout"];
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -7,11 +7,14 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
7
7
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
8
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
9
|
// SlideTransition class uses CSSTransition with slide-left and slide-right classNames, depending on the prop direction. The transition is 250ms long.
|
|
10
|
-
|
|
10
|
+
import { useCallback, useRef } from 'react';
|
|
11
11
|
import { CSSTransition } from 'react-transition-group';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import ThemeExport from "../ThemeExport.js";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var DISPLAY_CONTENTS = {
|
|
16
|
+
display: 'contents'
|
|
17
|
+
};
|
|
15
18
|
/**
|
|
16
19
|
* Slides one component overtop of another component.
|
|
17
20
|
* Defaults to sliding left, unless `direction='right'` is provided.
|
|
@@ -20,16 +23,31 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
20
23
|
function SlideTransition(_ref) {
|
|
21
24
|
var {
|
|
22
25
|
direction = 'left',
|
|
23
|
-
|
|
26
|
+
classNames: classNamesProp,
|
|
27
|
+
children,
|
|
24
28
|
/** Defaults to mid */
|
|
25
29
|
timeout = ThemeExport.transitionMidMs
|
|
26
30
|
} = _ref,
|
|
27
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
|
|
32
|
+
var nodeRef = useRef(null);
|
|
33
|
+
|
|
34
|
+
// Mimics findDOMNode for CSSTransition
|
|
35
|
+
// The ref should be set before CSSTransition does anything with it
|
|
36
|
+
var setRef = useCallback(node => {
|
|
37
|
+
nodeRef.current = node === null || node === void 0 ? void 0 : node.firstElementChild;
|
|
38
|
+
}, []);
|
|
39
|
+
return /*#__PURE__*/_jsx(CSSTransition, _objectSpread(_objectSpread({
|
|
40
|
+
nodeRef: nodeRef,
|
|
29
41
|
timeout: timeout,
|
|
30
|
-
classNames: classNames("slide-".concat(direction),
|
|
42
|
+
classNames: classNames("slide-".concat(direction), classNamesProp)
|
|
31
43
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
32
|
-
}, props)
|
|
44
|
+
}, props), {}, {
|
|
45
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
46
|
+
ref: setRef,
|
|
47
|
+
style: DISPLAY_CONTENTS,
|
|
48
|
+
children: children
|
|
49
|
+
})
|
|
50
|
+
}));
|
|
33
51
|
}
|
|
34
52
|
export default SlideTransition;
|
|
35
53
|
//# sourceMappingURL=SlideTransition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlideTransition.js","names":["CSSTransition","classNames","ThemeExport","jsx","_jsx","SlideTransition","_ref","direction","
|
|
1
|
+
{"version":3,"file":"SlideTransition.js","names":["useCallback","useRef","CSSTransition","classNames","ThemeExport","jsx","_jsx","DISPLAY_CONTENTS","display","SlideTransition","_ref","direction","classNamesProp","children","timeout","transitionMidMs","props","_objectWithoutProperties","_excluded","nodeRef","setRef","node","current","firstElementChild","_objectSpread","concat","ref","style"],"sources":["../../src/transitions/SlideTransition.tsx"],"sourcesContent":["// SlideTransition class uses CSSTransition with slide-left and slide-right classNames, depending on the prop direction. The transition is 250ms long.\nimport { useCallback, useRef } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport type { CSSTransitionProps } from 'react-transition-group/CSSTransition';\nimport type { EndHandler } from 'react-transition-group/Transition';\nimport classNames from 'classnames';\nimport type { RemoveIndexSignature } from '@deephaven/utils';\nimport ThemeExport from '../ThemeExport';\n\nconst DISPLAY_CONTENTS = { display: 'contents' };\n\ntype SlideDirection = 'left' | 'right';\n\ntype SlideTransitionProps =\n // We default the timeout, so user doesn't need to provide it\n // However, CSSTransitionProps get confused if you don't provide a timeout, it requires an endHandler\n // We're just making the endHandler optional here, as the timeout has a default\n Omit<\n RemoveIndexSignature<CSSTransitionProps<HTMLElement>>,\n 'addEndHandler'\n > & {\n addEndHandler?: EndHandler<HTMLElement> | undefined;\n children?: React.ReactNode;\n /**\n * The direction of the slide transition. Defaults to left.\n */\n direction?: SlideDirection;\n\n timeout?: number;\n };\n\n/**\n * Slides one component overtop of another component.\n * Defaults to sliding left, unless `direction='right'` is provided.\n * Timeout defaults to 200ms.\n */\nfunction SlideTransition({\n direction = 'left',\n classNames: classNamesProp,\n children,\n\n /** Defaults to mid */\n timeout = ThemeExport.transitionMidMs,\n ...props\n}: SlideTransitionProps): JSX.Element {\n const nodeRef = useRef<HTMLElement | null>(null);\n\n // Mimics findDOMNode for CSSTransition\n // The ref should be set before CSSTransition does anything with it\n const setRef = useCallback((node: HTMLElement | null) => {\n nodeRef.current = node?.firstElementChild as HTMLElement;\n }, []);\n\n return (\n <CSSTransition\n nodeRef={nodeRef}\n timeout={timeout}\n classNames={classNames(`slide-${direction}`, classNamesProp)}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n >\n <div ref={setRef} style={DISPLAY_CONTENTS}>\n {children}\n </div>\n </CSSTransition>\n );\n}\n\nexport default SlideTransition;\n"],"mappings":";;;;;;;;AAAA;AACA,SAASA,WAAW,EAAEC,MAAM,QAAQ,OAAO;AAC3C,SAASC,aAAa,QAAQ,wBAAwB;AAGtD,OAAOC,UAAU,MAAM,YAAY;AAAC,OAE7BC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAElB,IAAMC,gBAAgB,GAAG;EAAEC,OAAO,EAAE;AAAW,CAAC;AAsBhD;AACA;AACA;AACA;AACA;AACA,SAASC,eAAeA,CAAAC,IAAA,EAQc;EAAA,IARb;MACvBC,SAAS,GAAG,MAAM;MAClBR,UAAU,EAAES,cAAc;MAC1BC,QAAQ;MAER;MACAC,OAAO,GAAGV,WAAW,CAACW;IAEF,CAAC,GAAAL,IAAA;IADlBM,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAER,IAAMC,OAAO,GAAGlB,MAAM,CAAqB,IAAI,CAAC;;EAEhD;EACA;EACA,IAAMmB,MAAM,GAAGpB,WAAW,CAAEqB,IAAwB,IAAK;IACvDF,OAAO,CAACG,OAAO,GAAGD,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEE,iBAAgC;EAC1D,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEjB,IAAA,CAACJ,aAAa,EAAAsB,aAAA,CAAAA,aAAA;IACZL,OAAO,EAAEA,OAAQ;IACjBL,OAAO,EAAEA,OAAQ;IACjBX,UAAU,EAAEA,UAAU,UAAAsB,MAAA,CAAUd,SAAS,GAAIC,cAAc;IAC3D;EAAA,GACII,KAAK;IAAAH,QAAA,eAETP,IAAA;MAAKoB,GAAG,EAAEN,MAAO;MAACO,KAAK,EAAEpB,gBAAiB;MAAAM,QAAA,EACvCA;IAAQ,CACN;EAAC,EACO,CAAC;AAEpB;AAEA,eAAeJ,eAAe","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/components",
|
|
3
|
-
"version": "1.7.2-beta.
|
|
3
|
+
"version": "1.7.2-beta.5+28d63776",
|
|
4
4
|
"description": "Deephaven React component library",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@adobe/react-spectrum": "3.38.0",
|
|
28
|
-
"@deephaven/icons": "^1.7.2-beta.
|
|
29
|
-
"@deephaven/log": "^1.7.2-beta.
|
|
30
|
-
"@deephaven/react-hooks": "^1.7.2-beta.
|
|
31
|
-
"@deephaven/utils": "^1.7.2-beta.
|
|
28
|
+
"@deephaven/icons": "^1.7.2-beta.5+28d63776",
|
|
29
|
+
"@deephaven/log": "^1.7.2-beta.5+28d63776",
|
|
30
|
+
"@deephaven/react-hooks": "^1.7.2-beta.5+28d63776",
|
|
31
|
+
"@deephaven/utils": "^1.7.2-beta.5+28d63776",
|
|
32
32
|
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
33
33
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
34
|
+
"@hello-pangea/dnd": "^18.0.1",
|
|
34
35
|
"@internationalized/date": "^3.5.5",
|
|
35
36
|
"@react-spectrum/theme-default": "^3.5.1",
|
|
36
37
|
"@react-spectrum/toast": "^3.0.0-beta.16",
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"memoizee": "^0.4.15",
|
|
49
50
|
"nanoid": "^5.0.7",
|
|
50
51
|
"popper.js": "^1.16.1",
|
|
51
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
52
52
|
"react-reverse-portal": "^2.3.0",
|
|
53
53
|
"react-transition-group": "^4.4.2",
|
|
54
54
|
"react-virtualized-auto-sizer": "1.0.7",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"react-is": ">=16.8.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@deephaven/mocks": "^1.7.2-beta.
|
|
64
|
-
"@deephaven/test-utils": "^1.7.2-beta.
|
|
63
|
+
"@deephaven/mocks": "^1.7.2-beta.5+28d63776",
|
|
64
|
+
"@deephaven/test-utils": "^1.7.2-beta.5+28d63776",
|
|
65
65
|
"react-redux": "^7.2.7"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "28d637768ffe289c1f16e1fdbc3af037aa9790ba"
|
|
80
80
|
}
|