@zonos/amino 5.0.3 → 5.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),n=require("react");function r(e){return e&&e.__esModule?e:{default:e}}var i,o=r(require("styled-components")).default.div(i||(i=e.__makeTemplateObject(["\n position: relative;\n transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: ",";\n visibility: ",";\n height: ",";\n"],["\n position: relative;\n transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: ",";\n visibility: ",";\n height: ",";\n"])),(function(e){return e.hideOverflow?"hidden":void 0}),(function(e){return e.completelyCollapsed?"hidden":void 0}),(function(e){return e.currentlyCollapsed?"".concat(e.collapseSize,"px"):"".concat(e.$height,"px")}));exports.Collapse=function(r){var i=r.children,l=r.className,s=r.collapsed,a=void 0!==s&&s,u=r.collapseSize,c=void 0===u?0:u,d=e.__read(n.useState(a),2),p=d[0],f=d[1],h=e.__read(n.useState(a),2),v=h[0],m=h[1],b=e.__read(n.useState(),2),_=b[0],g=b[1],y=n.useRef(null),w=function(){if(null!==y.current){var e=window.getComputedStyle(y.current);return parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+parseFloat(e.marginTop)+parseFloat(e.marginBottom)}};n.useEffect((function(){g(w());var e=null;return y.current&&(e=new ResizeObserver((function(){g(w())}))).observe(y.current),function(){null==e||e.disconnect()}}),[]),n.useEffect((function(){m(!0),a||f(!1)}),[a]);return t.jsx(o,{$height:_,className:l,collapseSize:c,completelyCollapsed:p,currentlyCollapsed:a,hideOverflow:v,onTransitionEnd:function(){a?(m(!0),f(!0)):(m(!1),f(!1),g(w()))},children:t.jsx("div",{ref:y,style:{position:"relative"},children:i})})};
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),n=require("react");function r(e){return e&&e.__esModule?e:{default:e}}var i,o=r(require("styled-components")).default.div(i||(i=e.__makeTemplateObject(["\n position: relative;\n transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: ",";\n visibility: ",";\n height: ",";\n"],["\n position: relative;\n transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: ",";\n visibility: ",";\n height: ",";\n"])),(function(e){return e.hideOverflow?"hidden":void 0}),(function(e){return e.completelyCollapsed?"hidden":void 0}),(function(e){return e.currentlyCollapsed?"".concat(e.collapseSize,"px"):"".concat(e.$height,"px")}));exports.Collapse=function(r){var i=r.children,l=r.className,s=r.collapsed,a=void 0!==s&&s,u=r.collapseSize,c=void 0===u?0:u,d=e.__read(n.useState(a),2),p=d[0],f=d[1],h=e.__read(n.useState(a),2),v=h[0],m=h[1],b=e.__read(n.useState(),2),_=b[0],g=b[1],y=n.useRef(null),w=function(){if(null!==y.current){var e=window.getComputedStyle(y.current);return parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+parseFloat(e.marginTop)+parseFloat(e.marginBottom)}};n.useEffect((function(){g(w());var e=null;return y.current&&(e=new ResizeObserver((function(){g(w())}))).observe(y.current),function(){null==e||e.disconnect()}}),[]),n.useEffect((function(){m(!0),a||f(!1)}),[a]);return t.jsx(o,{$height:_,className:l,collapseSize:c,completelyCollapsed:p,currentlyCollapsed:a,hideOverflow:v,onTransitionEnd:function(){a?(m(!0),f(!0)):(m(!1),f(!1),g(w()))},children:t.jsx("div",{ref:y,style:{overflow:"auto",position:"relative"},children:i})})};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonos/amino",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Core UI components for Amino",
|
|
5
5
|
"repository": "git@github.com:Zonos/amino.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@emotion/react": "^11.x",
|
|
41
41
|
"@emotion/styled": "^11.x",
|
|
42
42
|
"@graphiql/plugin-explorer": "^0.3",
|
|
43
|
-
"@graphiql/react": "^0.
|
|
44
|
-
"framer-motion": "^
|
|
43
|
+
"@graphiql/react": "^0.19",
|
|
44
|
+
"framer-motion": "^10.x",
|
|
45
45
|
"graphiql": "^3.0.1",
|
|
46
46
|
"graphql": "^16.x",
|
|
47
47
|
"graphql-request": "~5.1.0",
|