@zonos/amino 4.3.0 → 4.3.1

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-fe391a2e.js"),r=require("react/jsx-runtime"),t=require("react"),i=require("@graphiql/react"),n=require("graphiql");require("graphql");var s=require("../../icons/EyeIcon.js"),a=require("../../icons/EyeOffIcon.js"),o=require("../../styles/constants/theme.js"),l=require("../../utils/hooks/_useGraphiqlExplorer.js"),u=require("../../utils/hooks/_useGraphiqlFetcher.js"),c=require("../../utils/hooks/_useGraphiqlStorage.js"),h=require("styled-components"),p=require("../nested-data-table/NestedDataTable.js"),q=require("../split-panel/SplitPanel.js"),d=require("./_GraphiqlContextWrapper.js"),j=require("./_LoadingIcon.js");function g(e){return e&&e.__esModule?e:{default:e}}require("../../icons/icon-base/_IconBase.js"),require("@graphiql/plugin-explorer"),require("swr"),require("../../utils/_graphiqlFetcher.js"),require("../../utils/handleFetch.js"),require("../../utils/hooks/useSwr.js"),require("lodash/kebabCase"),require("../../utils/hooks/useCurrentShema.js"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("../button/Button.js"),require("../spinner/Spinner.js"),require("../button/RippleGroup.js"),require("framer-motion"),require("uuid"),require("../button/_Ripple.js"),require("../button/useRipple.js"),require("../rest-state/RestState.js"),require("../text/Text.js"),require("../nested-data-table/_TableData.js"),require("../../icons/ChevronRightCircleIcon.js"),require("../../utils/flattenRow.js"),require("../../utils/setupNestedData.js"),require("../../utils/truncateText.js"),require("../pivot-table/PivotTable.js"),require("react-data-grid"),require("../../icons/ChevronDownIcon.js"),require("../../icons/ChevronUpIcon.js"),require("../../utils/addIndex.js"),require("../tooltip/Tooltip.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../stack/VStack.js"),require("../stack/Stack.js"),require("../nested-data-table/_Filter.js"),require("../../icons/FilterIcon.js"),require("../../utils/hooks/useDropdown.js"),require("@floating-ui/react-dom"),require("../select/MultiSelect.js"),require("../checkbox/Checkbox.js"),require("../../icons/CheckmarkIcon.js"),require("../../utils/getTestId.js"),require("../help-text/HelpText.js"),require("../select/_StyledReactSelect.js"),require("react-select"),require("../../icons/CheckCircleIcon.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("@zonos/react-split"),require("../../icons/custom/ZonosLogoIcon.js");var b,m,x,_=g(h),v=_.default.div(b||(b=e.__makeTemplateObject(["\n height: 100%;\n .graphiql-tab > .graphiql-tab-button {\n outline: none;\n }\n .docExplorerWrap {\n /* Built-in plugin height is set to 100% which prevents the plugin bar scrolling */\n height: auto !important;\n /* Don't cap explorer width */\n width: auto !important;\n }\n .graphiql-explorer-graphql-arguments {\n svg {\n display: inline-block;\n }\n }\n\n .graphiql-explorer-root > div {\n overflow: auto !important;\n }\n"],["\n height: 100%;\n .graphiql-tab > .graphiql-tab-button {\n outline: none;\n }\n .docExplorerWrap {\n /* Built-in plugin height is set to 100% which prevents the plugin bar scrolling */\n height: auto !important;\n /* Don't cap explorer width */\n width: auto !important;\n }\n .graphiql-explorer-graphql-arguments {\n svg {\n display: inline-block;\n }\n }\n\n .graphiql-explorer-root > div {\n overflow: auto !important;\n }\n"]))),f=_.default.div(m||(m=e.__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"]))),k=_.default.div(x||(x=e.__makeTemplateObject(["\n height: 100vh;\n overflow: auto;\n padding: 0 ",";\n display: flex;\n flex-direction: column;\n"],["\n height: 100vh;\n overflow: auto;\n padding: 0 ",";\n display: flex;\n flex-direction: column;\n"])),o.theme.space12),y=function(o){var h=o.fetcher,g=o.loadingComponent,b=o.onEditQuery,m=o.onEditVariables,x=o.onResultData,_=o.query,y=void 0===_?"":_,S=o.schema,C=o.schemaName,E=o.url,I=o.variables,T=void 0===I?"":I,w=o.customToolbar,F=e.__read(t.useState(null),2),D=F[0],G=F[1],R=e.__read(t.useState(null),2)[1],B=e.__read(t.useState(!1),2),O=B[0],L=B[1],N=e.__read(t.useState("first-time"),1)[0],Q=e.__read(t.useState(!1),2),W=Q[0],A=Q[1],M=e.__read(t.useState(""),2),P=M[0],V=M[1],H=u.useGraphiqlFetcher({cachingKey:N,url:E,query:y,customFetcher:h||null,operationName:P}),z=H.graphiqlFetcher,K=H.resultData,U=H.isLoading,Z=c.useGraphiqlStorage({defaultSchema:C});t.useEffect((function(){L(!!(null==D?void 0:D.isFetching)||U)}),[null==D?void 0:D.isFetching,L,U]),t.useEffect((function(){K&&x&&x(K)}),[x,K]);var J=l.useGraphiqlExplorer({onEdit:b,query:y});if(!S)return r.jsx(r.Fragment,{children:g||r.jsx(j.Loading,{})});var X,Y;return r.jsx(v,{children:r.jsxs(q.SplitPanel,e.__assign({collapseAll:!W},{children:[r.jsx(f,{children:r.jsx(n.GraphiQL,e.__assign({fetcher:z,onEditOperationName:V,onEditQuery:b,onEditVariables:m,plugins:[J],query:y,variables:T,schema:S,toolbar:{additionalContent:r.jsxs(r.Fragment,{children:[r.jsx(i.ToolbarButton,e.__assign({label:W?"Hide table":"Show table",onClick:function(){return A(!W)}},{children:W?r.jsx(a.EyeOffIcon,{color:"gray400"}):r.jsx(s.EyeIcon,{color:"gray400"})})),w]})},storage:Z},{children:r.jsx(d.GraphiqlContextWrapper,e.__assign({setExecutionContext:G,setResponseEditorContext:R},{children:r.jsx(n.GraphiQL.Footer,{})}))}))}),(X=null!==K?K.data:K,Y=X?Object.entries(X):null,Y?r.jsx(k,{children:Y.map((function(t){var i=e.__read(t,2),n=i[0],s=i[1];return Array.isArray(s)||s?r.jsx(p.NestedDataTable,{isFetching:O,tableData:s,title:n},n):null}))}):null)]}))})};y.ToolbarButton=i.ToolbarButton,exports.GraphMatrix=y;
1
+ "use strict";var e=require("../../_tslib-fe391a2e.js"),r=require("react/jsx-runtime"),t=require("react"),i=require("@graphiql/react"),n=require("graphiql");require("graphql");var s=require("../../icons/EyeIcon.js"),a=require("../../icons/EyeOffIcon.js"),o=require("../../styles/constants/theme.js"),l=require("../../utils/hooks/_useGraphiqlExplorer.js"),u=require("../../utils/hooks/_useGraphiqlFetcher.js"),c=require("../../utils/hooks/_useGraphiqlStorage.js"),h=require("styled-components"),p=require("../nested-data-table/NestedDataTable.js"),q=require("../split-panel/SplitPanel.js"),d=require("./_GraphiqlContextWrapper.js"),j=require("./_LoadingIcon.js");function g(e){return e&&e.__esModule?e:{default:e}}require("../../icons/icon-base/_IconBase.js"),require("@graphiql/plugin-explorer"),require("swr"),require("../../utils/_graphiqlFetcher.js"),require("../../utils/handleFetch.js"),require("../../utils/hooks/useSwr.js"),require("lodash/kebabCase"),require("../../utils/hooks/useCurrentShema.js"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("../button/Button.js"),require("../spinner/Spinner.js"),require("../button/RippleGroup.js"),require("framer-motion"),require("uuid"),require("../button/_Ripple.js"),require("../button/useRipple.js"),require("../rest-state/RestState.js"),require("../text/Text.js"),require("../nested-data-table/_TableData.js"),require("../../icons/ChevronRightCircleIcon.js"),require("../../utils/flattenRow.js"),require("../../utils/setupNestedData.js"),require("../../utils/truncateText.js"),require("../pivot-table/PivotTable.js"),require("react-data-grid"),require("../../icons/ChevronDownIcon.js"),require("../../icons/ChevronUpIcon.js"),require("../../utils/addIndex.js"),require("../tooltip/Tooltip.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../stack/VStack.js"),require("../stack/Stack.js"),require("../nested-data-table/_Filter.js"),require("../../icons/FilterIcon.js"),require("../../utils/hooks/useDropdown.js"),require("@floating-ui/react-dom"),require("../select/MultiSelect.js"),require("../checkbox/Checkbox.js"),require("../../icons/CheckmarkIcon.js"),require("../../utils/getTestId.js"),require("../help-text/HelpText.js"),require("../select/_StyledReactSelect.js"),require("react-select"),require("../../icons/CheckCircleIcon.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("react-split-it"),require("../../icons/custom/ZonosLogoIcon.js");var b,m,x,_=g(h),v=_.default.div(b||(b=e.__makeTemplateObject(["\n height: 100%;\n .graphiql-tab > .graphiql-tab-button {\n outline: none;\n }\n .docExplorerWrap {\n /* Built-in plugin height is set to 100% which prevents the plugin bar scrolling */\n height: auto !important;\n /* Don't cap explorer width */\n width: auto !important;\n }\n .graphiql-explorer-graphql-arguments {\n svg {\n display: inline-block;\n }\n }\n\n .graphiql-explorer-root > div {\n overflow: auto !important;\n }\n"],["\n height: 100%;\n .graphiql-tab > .graphiql-tab-button {\n outline: none;\n }\n .docExplorerWrap {\n /* Built-in plugin height is set to 100% which prevents the plugin bar scrolling */\n height: auto !important;\n /* Don't cap explorer width */\n width: auto !important;\n }\n .graphiql-explorer-graphql-arguments {\n svg {\n display: inline-block;\n }\n }\n\n .graphiql-explorer-root > div {\n overflow: auto !important;\n }\n"]))),f=_.default.div(m||(m=e.__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"]))),k=_.default.div(x||(x=e.__makeTemplateObject(["\n height: 100vh;\n overflow: auto;\n padding: 0 ",";\n display: flex;\n flex-direction: column;\n"],["\n height: 100vh;\n overflow: auto;\n padding: 0 ",";\n display: flex;\n flex-direction: column;\n"])),o.theme.space12),y=function(o){var h=o.fetcher,g=o.loadingComponent,b=o.onEditQuery,m=o.onEditVariables,x=o.onResultData,_=o.query,y=void 0===_?"":_,S=o.schema,C=o.schemaName,E=o.url,I=o.variables,T=void 0===I?"":I,w=o.customToolbar,F=e.__read(t.useState(null),2),D=F[0],G=F[1],R=e.__read(t.useState(null),2)[1],B=e.__read(t.useState(!1),2),O=B[0],L=B[1],N=e.__read(t.useState("first-time"),1)[0],Q=e.__read(t.useState(!1),2),W=Q[0],A=Q[1],M=e.__read(t.useState(""),2),P=M[0],V=M[1],H=u.useGraphiqlFetcher({cachingKey:N,url:E,query:y,customFetcher:h||null,operationName:P}),K=H.graphiqlFetcher,U=H.resultData,Z=H.isLoading,z=c.useGraphiqlStorage({defaultSchema:C});t.useEffect((function(){L(!!(null==D?void 0:D.isFetching)||Z)}),[null==D?void 0:D.isFetching,L,Z]),t.useEffect((function(){U&&x&&x(U)}),[x,U]);var J=l.useGraphiqlExplorer({onEdit:b,query:y});if(!S)return r.jsx(r.Fragment,{children:g||r.jsx(j.Loading,{})});var X,Y;return r.jsx(v,{children:r.jsxs(q.SplitPanel,e.__assign({collapseAll:!W},{children:[r.jsx(f,{children:r.jsx(n.GraphiQL,e.__assign({fetcher:K,onEditOperationName:V,onEditQuery:b,onEditVariables:m,plugins:[J],query:y,variables:T,schema:S,toolbar:{additionalContent:r.jsxs(r.Fragment,{children:[r.jsx(i.ToolbarButton,e.__assign({label:W?"Hide table":"Show table",onClick:function(){return A(!W)}},{children:W?r.jsx(a.EyeOffIcon,{color:"red600"}):r.jsx(s.EyeIcon,{color:"gray400"})})),w]})},storage:z},{children:r.jsx(d.GraphiqlContextWrapper,e.__assign({setExecutionContext:G,setResponseEditorContext:R},{children:r.jsx(n.GraphiQL.Footer,{})}))}))}),(X=null!==U?U.data:U,Y=X?Object.entries(X):null,Y?r.jsx(k,{children:Y.map((function(t){var i=e.__read(t,2),n=i[0],s=i[1];return Array.isArray(s)||s?r.jsx(p.NestedDataTable,{isFetching:O,tableData:s,title:n},n):null}))}):null)]}))})};y.ToolbarButton=i.ToolbarButton,exports.GraphMatrix=y;
@@ -1,18 +1,26 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
2
- import { type SplitProps } from '@zonos/react-split';
3
- type BaseSplitPaneProps = {
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ type IProps = {
3
+ className?: string;
4
+ direction?: 'horizontal' | 'vertical';
4
5
  /**
5
- * @param children
6
- * @description The content of the component.
6
+ * @param minSize The minumum size in css pixel
7
+ * @default 10
7
8
  */
8
- children: ReactNode;
9
+ minSize?: number;
9
10
  /**
10
- * @param className
11
- * @description Override or extend the styles applied to the component.
11
+ * @param gutterSize The size of the gutter in pixels
12
+ * @default 10
12
13
  */
13
- className?: string;
14
+ gutterSize?: number;
15
+ children: any;
16
+ /**
17
+ * @param sizes The initial sizes of the panes
18
+ * @default 1 (make sure the sum of all sizes is 1)
19
+ */
20
+ sizes?: number[];
21
+ onSetSizes?: Dispatch<SetStateAction<number[]>>;
14
22
  collapseAll?: boolean;
23
+ lineBar?: boolean;
15
24
  };
16
- type SplitPaneProps = BaseSplitPaneProps & Omit<SplitProps, keyof HTMLAttributes<HTMLDivElement>>;
17
- export declare const SplitPanel: import("react").MemoExoticComponent<({ children, className, visiable, collapseAll, ...props }: SplitPaneProps) => JSX.Element>;
25
+ export declare const SplitPanel: ({ className, children, collapseAll, direction, gutterSize, sizes, onSetSizes, ...props }: IProps) => JSX.Element;
18
26
  export {};
@@ -1 +1 @@
1
- "use strict";var n=require("../../_tslib-fe391a2e.js"),e=require("react/jsx-runtime"),s=require("react"),i=require("@zonos/react-split"),t=require("styled-components");function a(n){return n&&n.__esModule?n:{default:n}}var l,r=a(i),_=a(t).default(r.default)(l||(l=n.__makeTemplateObject(["\n > .w-split-pane[style*='width: 0'] {\n opacity: 0;\n }\n > :last-child {\n flex: 1;\n }\n"],["\n > .w-split-pane[style*='width: 0'] {\n opacity: 0;\n }\n > :last-child {\n flex: 1;\n }\n"]))),c=s.memo((function(i){var t=i.children,a=i.className;i.visiable;var l=i.collapseAll,r=n.__rest(i,["children","className","visiable","collapseAll"]),c=s.useMemo((function(){return s.Children.toArray(t)}),[t]),o=n.__read(s.useState([]),2),u=o[0],p=o[1],d=n.__read(s.useState([]),2),h=d[0],g=d[1],f=s.useCallback((function(e){var s=e.collapse,i=e.childrenLength;p(s?function(e){return e.map((function(e,s){var i=0===s?"100%":"0";return e?n.__assign(n.__assign({},e),{width:i}):{width:i}}))}:function(e){return s?e:e.map((function(e,s){var t,a=(null===(t=h[s])||void 0===t?void 0:t.width)||"calc(100% / ".concat(i,")");return e?n.__assign(n.__assign({},e),{width:a,opacity:"1"}):{width:a,opacity:"1"}}))})}),[h]);return s.useEffect((function(){if(c.length>0){var e=c.map((function(e){var i=s.Children.only(e);if(!s.isValidElement(i))return null;var t=i.props.style;return t?n.__assign(n.__assign({},t),{width:t.width}):null}));g(e),p(e)}}),[c,c.length]),s.useEffect((function(){f({collapse:!!l,childrenLength:c.length})}),[l,c.length,f]),e.jsx(_,n.__assign({visiable:!l,className:a},r,{children:c.map((function(e,i){var t,a,r=s.Children.only(e);if(!s.isValidElement(r))return null;var _=r.props.style;return l&&i>0?n.__assign(n.__assign({},r),{props:n.__assign(n.__assign({},r.props),{className:"w-split-pane",style:n.__assign(n.__assign({},_),{width:0,opacity:0})})}):r?n.__assign(n.__assign({},r),{props:n.__assign(n.__assign({},r.props),{className:"w-split-pane",style:n.__assign(n.__assign({},_),{width:null===(t=u[i])||void 0===t?void 0:t.width,opacity:null===(a=u[i])||void 0===a?void 0:a.opacity})})}):null}))}))}));exports.SplitPanel=c;
1
+ "use strict";var e=require("../../_tslib-fe391a2e.js"),r=require("react/jsx-runtime"),n=require("react"),i=require("react-split-it"),t=require("styled-components");function s(e){return e&&e.__esModule?e:{default:e}}var a,l=s(i),u=function(r){var n=r.childrenCount,i=r.sizes;if(0===i.length)return e.__spreadArray([1],e.__read(new Array(n-1).fill(0)),!1);if(i.length!==n){var t=Math.abs(n-i.length);return e.__spreadArray(e.__spreadArray([],e.__read(i),!1),e.__read(new Array(t).fill(1)),!1)}var s=i.reduce((function(e,r){return e+r}),0);return i.map((function(e){return e/s}))},c=s(t).default.div(a||(a=e.__makeTemplateObject(["\n display: block;\n width: 100%;\n height: 100%;\n"],["\n display: block;\n width: 100%;\n height: 100%;\n"])));exports.SplitPanel=function(i){var t=i.className,s=i.children,a=i.collapseAll,d=i.direction,_=i.gutterSize,o=void 0===_?3:_,h=i.sizes,f=i.onSetSizes,p=e.__rest(i,["className","children","collapseAll","direction","gutterSize","sizes","onSetSizes"]),z=n.Children.count(s),S=e.__read(n.useState(u({childrenCount:z,sizes:h||[]})),1)[0];return n.useEffect((function(){a?null==f||f(e.__spreadArray([1],e.__read(new Array(z-1).fill(0)),!1)):null==f||f(u({childrenCount:z,sizes:S}))}),[z,a,S,f]),r.jsx(c,e.__assign({className:t},{children:r.jsx(l.default,e.__assign({sizes:u({childrenCount:z,sizes:h||[]}),onSetSizes:f,gutterSize:a?0:o,direction:d},p,{children:s}))}))};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
@@ -21,7 +21,6 @@
21
21
  "@mui/material": "^5.8.5",
22
22
  "@radix-ui/react-slider": "^0.1.4",
23
23
  "@types/topojson-client": "^3.1.1",
24
- "@zonos/react-split": "^5.9.1",
25
24
  "d3-geo": "^2.0.2",
26
25
  "fuse.js": "^6.6.2",
27
26
  "highlight.js": "^11.7.0",
@@ -31,6 +30,7 @@
31
30
  "react-dropzone": "^12.0.4",
32
31
  "react-select": "^5.7.3",
33
32
  "react-simple-maps": "^3.0.0",
33
+ "react-split-it": "^2.0.0",
34
34
  "topojson-client": "^3.1.0",
35
35
  "uuid": "^8.3.2"
36
36
  },
package/split-react.css CHANGED
@@ -1,186 +1,44 @@
1
- .w-split {
2
- height: 100%;
3
- display: flex;
4
- flex-direction: row;
5
- }
6
- .w-split-bar {
7
- z-index: 10;
8
- position: relative;
9
- justify-content: center;
1
+ .split-horizontal {
10
2
  display: flex;
11
- background: #f8f8f9;
12
- -webkit-user-select: none;
13
- user-select: none;
14
- }
15
- .w-split-bar::before,
16
- .w-split-bar::after {
17
- content: '';
18
- display: block;
19
- }
20
- .w-split-bar.disable {
21
- pointer-events: none;
22
- cursor: not-allowed !important;
23
- }
24
- .w-split-bar:hover:not(.disable) {
25
- transition: background-color 0.3s;
26
- background: #ecf7ff;
27
- }
28
- .w-split.dragging .w-split-pane {
29
- position: relative;
30
- }
31
- .w-split.dragging .w-split-pane::before {
32
- content: '';
33
- display: block;
34
- position: absolute;
35
- height: 100%;
36
3
  width: 100%;
37
- z-index: 10;
38
- }
39
- .w-split > .w-split-pane {
40
- -webkit-transform: none;
41
- transform: none;
42
- }
43
- .w-split:not(.dragging) > .w-split-pane {
44
- transition: all 0.3s;
45
- }
46
- .w-split-horizontal > .w-split-bar {
47
- cursor: col-resize;
48
- width: 5px;
49
- flex-direction: column;
50
- box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5;
51
- }
52
- .w-split-horizontal > .w-split-bar::before,
53
- .w-split-horizontal > .w-split-bar::after {
54
- height: 3px;
55
- width: 100%;
56
- box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5;
57
- }
58
- .w-split-horizontal > .w-split-bar::before {
59
- margin-top: -1px;
60
- }
61
- .w-split-horizontal > .w-split-bar::after {
62
- margin-top: 3px;
63
- }
64
- .w-split-horizontal > .w-split-bar.disable {
65
- box-shadow: inset 1px 0 0 0 #e6e6e6, 1px 0 0 0 #eaeaea !important;
4
+ height: 100%;
66
5
  }
67
- .w-split-vertical {
6
+ .split-vertical {
7
+ display: flex;
68
8
  flex-direction: column;
69
- }
70
- .w-split-vertical > .w-split-bar {
71
- cursor: row-resize;
72
- width: 100%;
73
- height: 5px;
74
- align-items: center;
75
- flex-direction: row;
76
- box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5;
77
- }
78
- .w-split-vertical > .w-split-bar.disable {
79
- box-shadow: inset 0 1px 0 0 #e6e6e6, 0 1px 0 0 #eaeaea !important;
80
- }
81
- .w-split-vertical > .w-split-bar::before,
82
- .w-split-vertical > .w-split-bar::after {
83
9
  height: 100%;
84
- width: 3px;
85
- box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5;
86
- }
87
- .w-split-vertical > .w-split-bar::before {
88
- margin-left: -1px;
89
- }
90
- .w-split-vertical > .w-split-bar::after {
91
- margin-left: 3px;
92
- }
93
- .w-split-large-bar div {
94
- position: absolute;
95
- left: 0;
96
- right: 0;
97
- bottom: 0;
98
- top: 0;
99
- }
100
- .w-split-vertical > .w-split-line-bar:hover::before,
101
- .w-split-horizontal > .w-split-line-bar:hover::before {
102
- border-color: #008ef0;
103
10
  }
104
- .w-split-vertical > .w-split-line-bar {
105
- height: 1px;
11
+
12
+ .gutter {
13
+ flex-shrink: 0;
14
+ flex-grow: 0;
15
+ background: var(--amino-gray-200);
106
16
  }
107
- .w-split-vertical > .w-split-line-bar div {
108
- cursor: row-resize;
109
- width: 100%;
110
- height: 8px;
111
- margin-top: -2px;
112
- margin-bottom: -2px;
113
- }
114
- .w-split-vertical > .w-split-line-bar div:hover,
115
- .w-split-vertical > .w-split-line-bar div:active,
116
- .w-split-vertical > .w-split-line-bar div:focus {
117
- margin-top: -6px;
118
- margin-bottom: -6px;
119
- height: 6px;
120
- }
121
- .w-split-vertical > .w-split-line-bar div:hover::after,
122
- .w-split-vertical > .w-split-line-bar div:active::after,
123
- .w-split-vertical > .w-split-line-bar div:focus::after {
124
- background-color: #008ef0;
125
- }
126
- .w-split-vertical > .w-split-line-bar div::after {
127
- height: 1px;
128
- width: 100%;
129
- }
130
- .w-split-horizontal > .w-split-line-bar {
131
- width: 1px;
132
- }
133
- .w-split-horizontal > .w-split-line-bar div {
17
+ .gutter-horizontal {
134
18
  cursor: col-resize;
135
- height: 100%;
136
- width: 8px;
137
- margin-left: -2px;
138
- margin-right: -2px;
139
19
  }
140
- .w-split-horizontal > .w-split-line-bar div:hover,
141
- .w-split-horizontal > .w-split-line-bar div:active,
142
- .w-split-horizontal > .w-split-line-bar div:focus {
143
- margin-left: -6px;
144
- margin-right: -6px;
145
- width: 6px;
146
- }
147
- .w-split-horizontal > .w-split-line-bar div:hover::after,
148
- .w-split-horizontal > .w-split-line-bar div:active::after,
149
- .w-split-horizontal > .w-split-line-bar div:focus::after {
150
- background-color: #008ef0;
151
- }
152
- .w-split-horizontal > .w-split-line-bar div::after {
153
- width: 1px;
154
- height: 100%;
20
+ .gutter-vertical {
21
+ cursor: row-resize;
155
22
  }
156
- .w-split-vertical > .w-split-line-bar,
157
- .w-split-horizontal > .w-split-line-bar {
158
- flex-direction: inherit;
23
+ .gutter:hover {
24
+ background: var(--amino-blue-300);
159
25
  }
160
- .w-split-vertical > .w-split-line-bar::before,
161
- .w-split-horizontal > .w-split-line-bar::before {
162
- display: none;
26
+ .gutter-dragging:hover {
27
+ background: var(--amino-blue-400);
163
28
  }
164
- .w-split-vertical > .w-split-line-bar div,
165
- .w-split-horizontal > .w-split-line-bar div {
29
+
30
+ .pane {
31
+ flex-shrink: 1;
32
+ flex-grow: 1;
33
+ overflow: auto;
166
34
  position: relative;
167
- display: flex;
168
- align-items: center;
169
- justify-content: center;
170
35
  }
171
- .w-split-vertical > .w-split-line-bar div::after,
172
- .w-split-horizontal > .w-split-line-bar div::after {
173
- content: '';
174
- display: block;
175
- background-color: #d5d5d5;
36
+ .pane:not(.pane-dragging) {
37
+ transition: 0.3s flex-basis ease;
176
38
  }
177
- .w-split-line-bar {
178
- box-shadow: inset 0 0 0 0 !important;
179
- background: transparent;
180
- }
181
- .w-split-line-bar::before {
182
- box-shadow: inset 0 0 0 0 !important;
183
- }
184
- .w-split-line-bar::after {
39
+ .pane[style*='flex-basis: 0%'] + .gutter {
185
40
  display: none;
186
41
  }
42
+ .pane-dragging {
43
+ overflow: hidden;
44
+ }