@jpmorganchase/mosaic-layouts 0.1.0-beta.19 → 0.1.0-beta.20
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/LayoutBase/index.js +1 -1
- package/dist/LayoutColumns/index.css +1 -1
- package/dist/LayoutColumns/index.js +1 -1
- package/dist/LayoutColumns/styles.css.css +1 -1
- package/dist/LayoutColumns/styles.css.d.ts +1 -0
- package/dist/LayoutColumns/styles.css.js +1 -1
- package/dist/LayoutProvider.js +1 -1
- package/dist/{chunk-6HHPB7YT.js → chunk-5AM7OY3P.js} +1 -1
- package/dist/{chunk-52YJPQCT.js → chunk-5O37LHMU.js} +1 -1
- package/dist/{chunk-25KPR4KC.js → chunk-B6WMQBWD.js} +1 -1
- package/dist/{chunk-W34XAVGE.js → chunk-BBXNHRKX.js} +1 -1
- package/dist/{chunk-AKPLQCIT.js → chunk-CXTRPC6X.js} +1 -1
- package/dist/{chunk-JNIHCWHI.js → chunk-DS6U34VZ.js} +1 -1
- package/dist/chunk-EGC3PWIT.js +1 -0
- package/dist/chunk-FW4SDOGD.js +1 -0
- package/dist/chunk-LHCSNR7M.js +1 -0
- package/dist/{chunk-TKC6R6CM.js → chunk-MHHMPHV3.js} +1 -1
- package/dist/chunk-OSYJ4NO7.js +1 -0
- package/dist/{chunk-O26VNYJQ.js → chunk-PGRTX5RD.js} +1 -1
- package/dist/{chunk-VEHUHLGJ.js → chunk-PVNBC7N4.js} +1 -1
- package/dist/chunk-WHS3IRIM.js +1 -0
- package/dist/{chunk-L5WWHJGP.js → chunk-X5MG5RSD.js} +1 -1
- package/dist/chunk-XC5K3JHE.js +1 -0
- package/dist/chunk-XYNPCMIQ.js +1 -0
- package/dist/{chunk-ZXC3PEIO.js → chunk-YVGEOEEZ.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Detail/DetailContentOnly.js +1 -1
- package/dist/layouts/Detail/DetailHighlight.css +1 -1
- package/dist/layouts/Detail/DetailHighlight.js +1 -1
- package/dist/layouts/Detail/DetailOverview.css +1 -1
- package/dist/layouts/Detail/DetailOverview.js +1 -1
- package/dist/layouts/Detail/DetailTechnical.css +1 -1
- package/dist/layouts/Detail/DetailTechnical.js +1 -1
- package/dist/layouts/Detail/index.css +1 -1
- package/dist/layouts/Detail/index.js +1 -1
- package/dist/layouts/Edit/index.js +1 -1
- package/dist/layouts/FullWidth/index.js +1 -1
- package/dist/layouts/Landing/index.js +1 -1
- package/dist/layouts/Newsletter/index.css +1 -1
- package/dist/layouts/Newsletter/index.js +1 -1
- package/dist/layouts/Product/ProductDiscover.js +1 -1
- package/dist/layouts/Product/ProductPreview.js +1 -1
- package/dist/layouts/Product/index.js +1 -1
- package/dist/layouts/PythonDoc/index.css +1 -1
- package/dist/layouts/PythonDoc/index.js +1 -1
- package/dist/layouts/TypeDoc/index.css +1 -1
- package/dist/layouts/TypeDoc/index.js +1 -1
- package/dist/layouts/index.css +1 -1
- package/dist/layouts/index.js +1 -1
- package/package.json +6 -6
- package/src/LayoutBase/index.tsx +15 -12
- package/src/LayoutColumns/index.tsx +42 -18
- package/src/LayoutColumns/styles.css.ts +20 -0
- package/src/index.ts +0 -1
- package/src/layouts/Detail/DetailOverview.tsx +2 -2
- package/src/layouts/Detail/DetailTechnical.tsx +2 -2
- package/src/layouts/PythonDoc/index.tsx +2 -2
- package/src/layouts/TypeDoc/index.tsx +2 -2
- package/dist/Sidebars/Drawer.css +0 -1
- package/dist/Sidebars/Drawer.d.ts +0 -5
- package/dist/Sidebars/Drawer.js +0 -1
- package/dist/Sidebars/SidebarLeft.css +0 -1
- package/dist/Sidebars/SidebarLeft.d.ts +0 -5
- package/dist/Sidebars/SidebarLeft.js +0 -1
- package/dist/Sidebars/SidebarRight.css +0 -1
- package/dist/Sidebars/SidebarRight.d.ts +0 -5
- package/dist/Sidebars/SidebarRight.js +0 -1
- package/dist/Sidebars/index.css +0 -1
- package/dist/Sidebars/index.d.ts +0 -2
- package/dist/Sidebars/index.js +0 -1
- package/dist/Sidebars/styles.css.css +0 -1
- package/dist/Sidebars/styles.css.d.ts +0 -13
- package/dist/Sidebars/styles.css.js +0 -1
- package/dist/chunk-36VRRJYH.js +0 -1
- package/dist/chunk-3OGXLLMG.js +0 -1
- package/dist/chunk-475WQFFV.js +0 -0
- package/dist/chunk-E6MQWWR2.js +0 -1
- package/dist/chunk-GAMD2B7L.js +0 -1
- package/dist/chunk-KZ6ZH4EY.js +0 -1
- package/dist/chunk-NFDOXZYZ.js +0 -1
- package/dist/chunk-O77SFZBP.js +0 -1
- package/dist/chunk-R3NXG7VM.js +0 -1
- package/dist/chunk-RWWDUWAZ.js +0 -1
- package/dist/chunk-TJSYUHUU.js +0 -1
- package/dist/chunk-ZMLV2A35.js +0 -1
- package/src/Sidebars/Drawer.tsx +0 -66
- package/src/Sidebars/SidebarLeft.tsx +0 -15
- package/src/Sidebars/SidebarRight.tsx +0 -13
- package/src/Sidebars/index.tsx +0 -2
- package/src/Sidebars/styles.css.ts +0 -101
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@jpmorganchase/mosaic-layouts:build: cache hit, replaying output
|
|
1
|
+
@jpmorganchase/mosaic-layouts:build: cache hit, replaying output d9061b1665e502bd
|
|
2
2
|
@jpmorganchase/mosaic-layouts:build: $ npm-run-all --parallel build:*
|
|
3
3
|
@jpmorganchase/mosaic-layouts:build: $ node ../../scripts/bundle.js
|
|
4
4
|
@jpmorganchase/mosaic-layouts:build: $ tsc
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @jpmorganchase/mosaic-layouts
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9c7b8ff: pip to beta.20
|
|
8
|
+
- Updated dependencies [9c7b8ff]
|
|
9
|
+
- @jpmorganchase/mosaic-components@0.1.0-beta.20
|
|
10
|
+
- @jpmorganchase/mosaic-content-editor-plugin@0.1.0-beta.20
|
|
11
|
+
- @jpmorganchase/mosaic-site-components@0.1.0-beta.20
|
|
12
|
+
- @jpmorganchase/mosaic-store@0.1.0-beta.20
|
|
13
|
+
- @jpmorganchase/mosaic-theme@0.1.0-beta.20
|
|
14
|
+
|
|
3
15
|
## 0.1.0-beta.19
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/LayoutBase/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-EGC3PWIT.js";import"../chunk-DTW4UURD.js";import"../chunk-5DJN5CVQ.js";import"../chunk-S2SS5ZQ2.js";import"../chunk-FEIY7W7S.js";export{a as LayoutBase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-LHCSNR7M.js";import"../chunk-B6WMQBWD.js";import"../chunk-FEIY7W7S.js";export{a as LayoutColumns};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}
|
|
1
|
+
._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-B6WMQBWD.js";import"../chunk-FEIY7W7S.js";export{a as default};
|
package/dist/LayoutProvider.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-5AM7OY3P.js";import"./chunk-BBXNHRKX.js";import"./chunk-Q3Z3PB5J.js";import"./chunk-X52NEVFW.js";import"./chunk-EGC3PWIT.js";import"./chunk-DTW4UURD.js";import"./chunk-5DJN5CVQ.js";import"./chunk-S2SS5ZQ2.js";import"./chunk-FEIY7W7S.js";export{a as LayoutProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-BBXNHRKX.js";import t from"react";import{useLayout as y}from"@jpmorganchase/mosaic-store";import{usePageState as i}from"@jpmorganchase/mosaic-content-editor-plugin";var c=({children:u,layoutComponents:a,LayoutProps:p={}})=>{let{layout:n="FullWidth"}=y(),{pageState:s}=i(),r=s!=="VIEW"?"EditLayout":n,o=a?.[r];return o||(console.error(`Layout ${r} is not supported, defaulting to FullWidth`),o=e),o?t.createElement(o,{...p},u):t.createElement(t.Fragment,null,"children")};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-OOBVDA2T.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-OOBVDA2T.js";import{a as r}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as m}from"@jpmorganchase/mosaic-site-components";var i=({children:p})=>o.createElement(r,{Header:o.createElement(m,null)},o.createElement("div",{className:t.root},p));export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l={fullWidth:"_1sxa5wh0 pdl72ew pdl72ex pdl72e1e pdl72e1f pdl72ed4 pdl72ed9 pdl72eda pdl72edb pdl72e9k pdl72e9p pdl72e9q pdl72e9r",withSidebar:"_1sxa5wh2",mainWrapper:"_1sxa5wh4",columnWrapper:"_1sxa5wh5 pdl72edc pdl72edd pdl72ede pdl72edf pdl72e9s pdl72e9t pdl72e9u pdl72e9v",contentColumn:"_1sxa5wh7 pdl72e80 pdl72e81 pdl72e8i pdl72e8j pdl72e1w pdl72e1x pdl72e1y pdl72e2n",contentBody:"_1sxa5wh9"};export{l as a};
|
|
1
|
+
var l={fullWidth:"_1sxa5wh0 pdl72ew pdl72ex pdl72e1e pdl72e1f pdl72ed4 pdl72ed9 pdl72eda pdl72edb pdl72e9k pdl72e9p pdl72e9q pdl72e9r",withSidebar:"_1sxa5wh2",mainWrapper:"_1sxa5wh4",columnWrapper:"_1sxa5wh5 pdl72edc pdl72edd pdl72ede pdl72edf pdl72e9s pdl72e9t pdl72e9u pdl72e9v",contentColumn:"_1sxa5wh7 pdl72e80 pdl72e81 pdl72e8i pdl72e8j pdl72e1w pdl72e1x pdl72e1y pdl72e2n",contentBody:"_1sxa5wh9",toggleButton:"_1sxa5whb pdl72eig pdl72eih pdl72eii pdl72eij pdl72egs pdl72egt pdl72egu pdl72egv"};export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-Q3Z3PB5J.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-Q3Z3PB5J.js";import{a as t}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as m}from"@jpmorganchase/mosaic-site-components";var y=({children:p})=>o.createElement(t,{Header:o.createElement(m,null)},o.createElement(r,null,p));export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-EGC3PWIT.js";import{a as t}from"./chunk-LHCSNR7M.js";import o from"react";import{AppHeader as a,Breadcrumbs as p,Footer as i,TableOfContents as s}from"@jpmorganchase/mosaic-site-components";var d=({FooterProps:e,children:m})=>o.createElement(r,{Header:o.createElement(a,null)},o.createElement(t,{PrimarySidebar:null,SecondarySidebar:o.createElement(s,null),Footer:o.createElement(i,{...e})},o.createElement(p,null),m));export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as e,Breadcrumbs as u,Footer as a}from"@jpmorganchase/mosaic-site-components";var L=({FooterProps:p,children:m})=>o.createElement(r,{Header:o.createElement(e,null)},o.createElement(t,{Footer:o.createElement(a,{...p})},o.createElement(u,null),m));export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-DTW4UURD.js";import{a}from"./chunk-5DJN5CVQ.js";import{a as r}from"./chunk-S2SS5ZQ2.js";import e from"react";import{Spinner as t}from"@salt-ds/lab";import{useRouter as l}from"next/router";import p from"classnames";import{SidebarProvider as v}from"@jpmorganchase/mosaic-site-components";var L=({Header:i,children:s,className:m})=>{let[d,n]=o({loadingDelay:50});return e.createElement(v,null,e.createElement("div",{className:p(r.root,m)},e.createElement("header",{className:r.header},i),e.createElement("main",{className:r.main},e.createElement(a,{duration:{enter:1200,exit:500},in:d||n},e.createElement("div",{className:r.overlayRoot},e.createElement("div",{className:r.overlayInner}),e.createElement(t,{size:"large"}))),e.createElement(e.Fragment,{key:l().asPath.replace(/#.*$/,"")},s))))};export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l}from"./chunk-WNZGJWRV.js";import{a as y}from"./chunk-LAW2KABC.js";import{a as p}from"./chunk-EGC3PWIT.js";import{a as n}from"./chunk-LHCSNR7M.js";import o from"react";import u from"classnames";import{HelpLinks as b,Hero as f}from"@jpmorganchase/mosaic-components";import{AppHeader as L,BackLink as g,Breadcrumbs as h,Footer as v,PageNavigation as H}from"@jpmorganchase/mosaic-site-components";var N=({description:a,name:r,pageType:i,releaseDate:e,title:t,version:s})=>o.createElement(f,{datestamp:e,datestampLabel:"Release Date",description:a,eyebrow:i==="root"?`Version ${s}`:`${r} - v${s}`,title:i==="root"?r:t}),B=({BackLinkProps:a,SidebarProps:r,FooterProps:i,meta:e,children:t})=>{let s=o.createElement(o.Fragment,null,a&&o.createElement("header",{className:l.sidebarHeader},o.createElement(g,{...a})),o.createElement(H,null),r?.helpLinks&&o.createElement(b,{subTitle:"Need help?",...r.helpLinks})),d=e?.data?.pageType==="root"||e?.data?.pageType==="index",m=e?.data?.sidebarNavOptions?o.createElement(y,{items:e.data.sidebarNavOptions}):null;return o.createElement(p,{Header:o.createElement(L,null)},o.createElement(n,{PrimarySidebar:s,SecondarySidebar:m,Footer:o.createElement(v,{...i})},o.createElement("div",{className:u("typedoc",{"typedoc-index":d})},o.createElement(h,null),d&&e?.data?o.createElement(N,{description:e.data.api?.description?`Changelog: ${e.data.api.description}`:void 0,name:e.data.api?.name,pageType:e.data.pageType,releaseDate:e.data.api?.releaseDate,title:e.data.title,version:e.data.api?.version}):null,t)))};export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-B6WMQBWD.js";import e from"react";import d from"classnames";import{Drawer as c,Sidebar as n}from"@jpmorganchase/mosaic-site-components";import{Button as p,Icon as l,useBreakpoint as g}from"@jpmorganchase/mosaic-components";var u=({open:o,onClick:i})=>e.createElement(p,{className:t.toggleButton,variant:"secondary",onClick:i},o?e.createElement(l,{"aria-label":"close the main navigation",name:"close"}):e.createElement(l,{"aria-label":"show the main navigation",name:"menu"})),k=({PrimarySidebar:o,SecondarySidebar:i,Footer:a,children:m})=>{let s=g(),r=s==="mobile"||s=="tablet";return e.createElement("div",{className:d({[t.fullWidth]:!o,[t.withSidebar]:o})},r&&o&&e.createElement(c,{side:"left",TriggerElement:u},e.createElement(n,{side:"left"},o)),!r&&o&&e.createElement(n,{side:"left"},o),e.createElement("div",{className:t.mainWrapper},e.createElement("div",{className:t.columnWrapper},e.createElement("div",{className:t.contentColumn},e.createElement("main",{className:t.contentBody},m),a&&a),i&&e.createElement(n,{side:"right",sticky:!0},i))))};export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as m,Breadcrumbs as a,Footer as u}from"@jpmorganchase/mosaic-site-components";var L=({FooterProps:p,children:e})=>o.createElement(r,{Header:o.createElement(m,null)},o.createElement(t,{Footer:o.createElement(u,{...p})},o.createElement(a,null),e));export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-OMED577C.js";import{a}from"./chunk-EGC3PWIT.js";import{a as i}from"./chunk-LHCSNR7M.js";import r from"react";import{HelpLinks as p}from"@jpmorganchase/mosaic-components";import{AppHeader as y,DocPaginator as l,BackLink as u,Breadcrumbs as L,Footer as b,TableOfContents as f,PageNavigation as S}from"@jpmorganchase/mosaic-site-components";var F=({BackLinkProps:o,FooterProps:s,SidebarProps:e,children:t})=>{let n=r.createElement(y,null),d=r.createElement(r.Fragment,null,o&&r.createElement("header",{className:m.sidebarHeader},r.createElement(u,{...o})),r.createElement(S,null),e?.helpLinks&&r.createElement(p,{subTitle:"Need help?",...e.helpLinks}));return r.createElement(a,{Header:n},r.createElement(i,{PrimarySidebar:d,SecondarySidebar:r.createElement(f,null),Footer:r.createElement(b,{...s})},r.createElement(L,null),t,r.createElement(l,null)))};export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-OMED577C.js";import{a as e}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-OMED577C.js";import{a as e}from"./chunk-EGC3PWIT.js";import{a as t}from"./chunk-LHCSNR7M.js";import r from"react";import{AppHeader as p,DocPaginator as l,BackLink as n,Footer as u}from"@jpmorganchase/mosaic-site-components";var S=({children:a,BackLinkProps:o,FooterProps:i})=>{let m=o?.link?r.createElement("header",{className:s.sidebarHeader},r.createElement(n,{...o})):null;return r.createElement(e,{Header:r.createElement(p,null)},r.createElement(t,{PrimarySidebar:m,Footer:r.createElement(u,{...i}),SecondarySidebar:null},a,r.createElement(l,{linkSuffix:"Post"})))};export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as m,Footer as u}from"@jpmorganchase/mosaic-site-components";var L=({FooterProps:p,children:e})=>o.createElement(r,{Header:o.createElement(m,null)},o.createElement(t,{Footer:o.createElement(u,{...p})},e));export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-YVGEOEEZ.js";import{a as b}from"./chunk-PGRTX5RD.js";import{a as c}from"./chunk-DS6U34VZ.js";import{a as d}from"./chunk-PVNBC7N4.js";import{a as g}from"./chunk-XC5K3JHE.js";import{a as h}from"./chunk-FW4SDOGD.js";import{a as f}from"./chunk-CXTRPC6X.js";import{a as m}from"./chunk-XYNPCMIQ.js";import{a as p}from"./chunk-OSYJ4NO7.js";import{a as x}from"./chunk-X5MG5RSD.js";import{a as t}from"./chunk-5O37LHMU.js";import{a as e}from"./chunk-MHHMPHV3.js";import{a as r}from"./chunk-BBXNHRKX.js";import{a as o}from"./chunk-FEIY7W7S.js";var i={};o(i,{AppLayout:()=>t,DetailContentOnly:()=>e,DetailHighlight:()=>f,DetailOverview:()=>m,DetailTechnical:()=>p,EditLayout:()=>x,FullWidth:()=>r,Landing:()=>a,Newsletter:()=>b,ProductDiscover:()=>c,ProductPreview:()=>d,PythonDoc:()=>g,TypeDoc:()=>h});export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-ASVIILPC.js";import{a as n}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-ASVIILPC.js";import{a as n}from"./chunk-EGC3PWIT.js";import e,{useEffect as m}from"react";import{useRouter as p}from"next/router";import{useContentEditor as u}from"@jpmorganchase/mosaic-content-editor-plugin";import{AppHeader as f}from"@jpmorganchase/mosaic-site-components";var C=({children:i})=>{let t=p(),{pageState:r,stopEditing:s}=u();return m(()=>{let a=()=>{r==="EDIT"&&s()};return t.events.on("routeChangeStart",a),()=>{t.events.off("routeChangeStart",a)}},[r,t.events,s]),e.createElement(n,{className:o.base,Header:e.createElement(f,null)},e.createElement("div",{id:"edit-layout",className:o.root},i))};export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-Z4UFTC3H.js";import{a as p}from"./chunk-EGC3PWIT.js";import{a as d}from"./chunk-LHCSNR7M.js";import e from"react";import f from"classnames";import{HelpLinks as b,Hero as L}from"@jpmorganchase/mosaic-components";import{AppHeader as g,BackLink as h,Breadcrumbs as c,DocPaginator as S,Footer as C,TableOfContents as H,PageNavigation as P}from"@jpmorganchase/mosaic-site-components";var T=({description:r,name:t,pageType:a,releaseDate:i,title:s,version:o})=>e.createElement(L,{datestamp:i,datestampLabel:"Release Date",description:r,eyebrow:a==="root"?`Version ${o}`:`${t} - v${o}`,title:a==="root"?t:s}),A=({BackLinkProps:r,FooterProps:t,SidebarProps:a,ToCProps:i,children:s,meta:o})=>{let m=i?.items?.map(({text:y,...u})=>({...u,text:y.replace(/\s*\(.*?\).*/g,"() ")})),l=e.createElement(e.Fragment,null,r&&e.createElement("header",{className:n.sidebarHeader},e.createElement(h,{...r})),e.createElement(P,null),a?.helpLinks&&e.createElement(b,{subTitle:"Need help?",...a.helpLinks}));return e.createElement(p,{Header:e.createElement(g,null)},e.createElement(d,{PrimarySidebar:l,SecondarySidebar:e.createElement(H,{items:m}),Footer:e.createElement(C,{...t})},e.createElement("main",{className:f(n.contentBody,"pythondoc")},e.createElement(c,null),o?.data?.pageType==="root"||o?.data?.pageType==="index"?e.createElement(T,{description:o.data.api?.description?`Changelog: ${o.data.api.description}`:void 0,name:o.data.api?.name,pageType:o.data.pageType,releaseDate:o.data.api?.releaseDate,title:o.data.title,version:o.data.api?.version}):null,s,e.createElement(S,null))))};export{A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-OMED577C.js";import{a as i}from"./chunk-EGC3PWIT.js";import{a as m}from"./chunk-LHCSNR7M.js";import r from"react";import{HelpLinks as l}from"@jpmorganchase/mosaic-components";import{AppHeader as n,BackLink as u,Breadcrumbs as d,DocPaginator as y,Footer as L,PageNavigation as f}from"@jpmorganchase/mosaic-site-components";var B=({BackLinkProps:o,SidebarProps:e,FooterProps:s,children:p})=>{let t=r.createElement(r.Fragment,null,o&&r.createElement("header",{className:a.sidebarHeader},r.createElement(u,{...o})),r.createElement(f,null),e?.helpLinks&&r.createElement(l,{subTitle:"Need help?",...e.helpLinks}));return r.createElement(i,{Header:r.createElement(n,null)},r.createElement(m,{PrimarySidebar:t,SecondarySidebar:null,Footer:r.createElement(L,{...s})},r.createElement(d,null),p,r.createElement(y,null)))};export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-Q3Z3PB5J.js";import{a as r}from"./chunk-EGC3PWIT.js";import o from"react";import{AppHeader as a,Footer as e}from"@jpmorganchase/mosaic-site-components";var s=({FooterProps:p,children:m})=>o.createElement(r,{Header:o.createElement(a,null)},o.createElement(t,{Footer:o.createElement(e,{...p})},m));export{s as a};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}.valrau0{max-width:1128px;margin-left:auto;margin-right:auto}._1hbq6t70{flex-shrink:0}._2d730j0{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}._2d730j1>footer{max-width:1128px;margin-left:auto;margin-right:auto}.pc9j4m0>main{overflow:hidden;height:calc(100% + 44px)}.pc9j4m1{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}._1byhr150{width:100%;z-index:1;display:flex}._1byhr151{width:100%;min-width:0;display:flex;justify-content:center}._1byhr152{width:100%;min-width:0;display:flex;justify-content:center;position:relative;overflow:hidden}._1byhr153{display:flex;width:100%;max-width:1128px}._1byhr156{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1byhr158{flex-grow:1}._1byhr15a{flex-shrink:0}._1byhr15b{width:100%;overflow:hidden;position:relative}._32b77h0{display:flex;justify-content:stretch;width:100%;max-width:1440px;margin-left:auto;margin-right:auto}._32b77h2{z-index:2;flex-grow:1;flex-shrink:1;width:1px}._32b77h4{flex-shrink:0}._32b77h5{width:100%;overflow:hidden;position:relative}._13gwk9a0{position:sticky}._13gwk9a1{list-style:none}._13gwk9a3{cursor:pointer;position:relative;display:block}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-WHS3IRIM.js";import"./chunk-YVGEOEEZ.js";import"./chunk-PGRTX5RD.js";import"./chunk-PKAR7XZI.js";import"./chunk-DS6U34VZ.js";import"./chunk-PVNBC7N4.js";import"./chunk-XC5K3JHE.js";import"./chunk-Z4UFTC3H.js";import"./chunk-FW4SDOGD.js";import"./chunk-WNZGJWRV.js";import"./chunk-LAW2KABC.js";import"./chunk-DE36TWIF.js";import"./chunk-NDZQ5OZP.js";import"./chunk-CXTRPC6X.js";import"./chunk-XYNPCMIQ.js";import"./chunk-OSYJ4NO7.js";import"./chunk-OMED577C.js";import"./chunk-X5MG5RSD.js";import"./chunk-ASVIILPC.js";import"./chunk-5O37LHMU.js";import"./chunk-OOBVDA2T.js";import"./chunk-MHHMPHV3.js";import{a as f}from"./chunk-5AM7OY3P.js";import"./chunk-BBXNHRKX.js";import{a as e}from"./chunk-Q3Z3PB5J.js";import"./chunk-X52NEVFW.js";import{a as t}from"./chunk-EGC3PWIT.js";import{a as r}from"./chunk-DTW4UURD.js";import"./chunk-5DJN5CVQ.js";import"./chunk-S2SS5ZQ2.js";import{a as m}from"./chunk-LHCSNR7M.js";import"./chunk-B6WMQBWD.js";import{a as p,b as x}from"./chunk-53T3BYR6.js";import"./chunk-FEIY7W7S.js";export{t as LayoutBase,m as LayoutColumns,p as LayoutConfigProvider,e as LayoutFullWidth,f as LayoutProvider,o as layouts,r as useIsLoading,x as useLayoutConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-5O37LHMU.js";import"../../chunk-OOBVDA2T.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as AppLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-MHHMPHV3.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as DetailContentOnly};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-CXTRPC6X.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as DetailHighlight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1hbq6t70{flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XYNPCMIQ.js";import"../../chunk-OMED577C.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as DetailOverview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1hbq6t70{flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OSYJ4NO7.js";import"../../chunk-OMED577C.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as DetailTechnical};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}.valrau0{max-width:1128px;margin-left:auto;margin-right:auto}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}.valrau0{max-width:1128px;margin-left:auto;margin-right:auto}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1hbq6t70{flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-NDZQ5OZP.js";import{a
|
|
1
|
+
import"../../chunk-NDZQ5OZP.js";import{a as b}from"../../chunk-CXTRPC6X.js";import{a as c}from"../../chunk-XYNPCMIQ.js";import{a as d}from"../../chunk-OSYJ4NO7.js";import"../../chunk-OMED577C.js";import{a}from"../../chunk-MHHMPHV3.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as DetailContentOnly,b as DetailHighlight,c as DetailOverview,d as DetailTechnical};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-X5MG5RSD.js";import"../../chunk-ASVIILPC.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as EditLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BBXNHRKX.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as FullWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YVGEOEEZ.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as Landing};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1hbq6t70{flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PGRTX5RD.js";import"../../chunk-OMED577C.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as Newsletter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-DS6U34VZ.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as ProductDiscover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PVNBC7N4.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as ProductPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-PKAR7XZI.js";import{a
|
|
1
|
+
import"../../chunk-PKAR7XZI.js";import{a}from"../../chunk-DS6U34VZ.js";import{a as b}from"../../chunk-PVNBC7N4.js";import"../../chunk-Q3Z3PB5J.js";import"../../chunk-X52NEVFW.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-FEIY7W7S.js";export{a as ProductDiscover,b as ProductPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1byhr150{width:100%;z-index:1;display:flex}._1byhr151{width:100%;min-width:0;display:flex;justify-content:center}._1byhr152{width:100%;min-width:0;display:flex;justify-content:center;position:relative;overflow:hidden}._1byhr153{display:flex;width:100%;max-width:1128px}._1byhr156{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1byhr158{flex-grow:1}._1byhr15a{flex-shrink:0}._1byhr15b{width:100%;overflow:hidden;position:relative}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XC5K3JHE.js";import"../../chunk-Z4UFTC3H.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as PythonDoc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._32b77h0{display:flex;justify-content:stretch;width:100%;max-width:1440px;margin-left:auto;margin-right:auto}._32b77h2{z-index:2;flex-grow:1;flex-shrink:1;width:1px}._32b77h4{flex-shrink:0}._32b77h5{width:100%;overflow:hidden;position:relative}._13gwk9a0{position:sticky}._13gwk9a1{list-style:none}._13gwk9a3{cursor:pointer;position:relative;display:block}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-FW4SDOGD.js";import"../../chunk-WNZGJWRV.js";import"../../chunk-LAW2KABC.js";import"../../chunk-DE36TWIF.js";import"../../chunk-EGC3PWIT.js";import"../../chunk-DTW4UURD.js";import"../../chunk-5DJN5CVQ.js";import"../../chunk-S2SS5ZQ2.js";import"../../chunk-LHCSNR7M.js";import"../../chunk-B6WMQBWD.js";import"../../chunk-FEIY7W7S.js";export{a as TypeDoc};
|
package/dist/layouts/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}.valrau0{max-width:1128px;margin-left:auto;margin-right:auto}
|
|
1
|
+
#__next{height:100%}._7sodkm0{min-height:100vh}._7sodkm1{width:100%;z-index:1;position:relative}._7sodkm2{display:flex;justify-content:stretch;align-items:center;height:44px;width:100%;position:sticky;top:0;z-index:1500}._7sodkm3{z-index:1501;position:fixed;display:flex;inset:0;justify-content:center;align-items:center}._7sodkm4{opacity:.95;position:absolute;width:100%;height:100%}.valrau0{max-width:1128px;margin-left:auto;margin-right:auto}._1sxa5wh0{max-width:1440px;margin-left:auto;margin-right:auto}._1sxa5wh2{width:100%;z-index:1;display:flex}._1sxa5wh4{width:100%;min-width:0;display:flex;justify-content:center}._1sxa5wh5{display:flex;width:100%;max-width:1128px}._1sxa5wh7{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1sxa5wh9{flex-grow:1}button._1sxa5whb{display:block;position:fixed;z-index:5;padding:0;box-sizing:content-box;width:44px;height:44px}._1hbq6t70{flex-shrink:0}._2d730j0{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}._2d730j1>footer{max-width:1128px;margin-left:auto;margin-right:auto}.pc9j4m0>main{overflow:hidden;height:calc(100% + 44px)}.pc9j4m1{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}._1byhr150{width:100%;z-index:1;display:flex}._1byhr151{width:100%;min-width:0;display:flex;justify-content:center}._1byhr152{width:100%;min-width:0;display:flex;justify-content:center;position:relative;overflow:hidden}._1byhr153{display:flex;width:100%;max-width:1128px}._1byhr156{display:flex;flex-direction:column;justify-content:stretch;z-index:2;width:100%}._1byhr158{flex-grow:1}._1byhr15a{flex-shrink:0}._1byhr15b{width:100%;overflow:hidden;position:relative}._32b77h0{display:flex;justify-content:stretch;width:100%;max-width:1440px;margin-left:auto;margin-right:auto}._32b77h2{z-index:2;flex-grow:1;flex-shrink:1;width:1px}._32b77h4{flex-shrink:0}._32b77h5{width:100%;overflow:hidden;position:relative}._13gwk9a0{position:sticky}._13gwk9a1{list-style:none}._13gwk9a3{cursor:pointer;position:relative;display:block}
|
package/dist/layouts/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-
|
|
1
|
+
import"../chunk-WHS3IRIM.js";import{a as h}from"../chunk-YVGEOEEZ.js";import{a as i}from"../chunk-PGRTX5RD.js";import"../chunk-PKAR7XZI.js";import{a as j}from"../chunk-DS6U34VZ.js";import{a as k}from"../chunk-PVNBC7N4.js";import{a as l}from"../chunk-XC5K3JHE.js";import"../chunk-Z4UFTC3H.js";import{a as m}from"../chunk-FW4SDOGD.js";import"../chunk-WNZGJWRV.js";import"../chunk-LAW2KABC.js";import"../chunk-DE36TWIF.js";import"../chunk-NDZQ5OZP.js";import{a as c}from"../chunk-CXTRPC6X.js";import{a as d}from"../chunk-XYNPCMIQ.js";import{a as e}from"../chunk-OSYJ4NO7.js";import"../chunk-OMED577C.js";import{a as g}from"../chunk-X5MG5RSD.js";import"../chunk-ASVIILPC.js";import{a as f}from"../chunk-5O37LHMU.js";import"../chunk-OOBVDA2T.js";import{a as b}from"../chunk-MHHMPHV3.js";import{a}from"../chunk-BBXNHRKX.js";import"../chunk-Q3Z3PB5J.js";import"../chunk-X52NEVFW.js";import"../chunk-EGC3PWIT.js";import"../chunk-DTW4UURD.js";import"../chunk-5DJN5CVQ.js";import"../chunk-S2SS5ZQ2.js";import"../chunk-LHCSNR7M.js";import"../chunk-B6WMQBWD.js";import"../chunk-FEIY7W7S.js";export{f as AppLayout,b as DetailContentOnly,c as DetailHighlight,d as DetailOverview,e as DetailTechnical,g as EditLayout,a as FullWidth,h as Landing,i as Newsletter,j as ProductDiscover,k as ProductPreview,l as PythonDoc,m as TypeDoc};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@jpmorganchase/mosaic-layouts",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
4
|
"description": "Mosaic - Layout Components",
|
|
5
|
-
"version": "0.1.0-beta.
|
|
5
|
+
"version": "0.1.0-beta.20",
|
|
6
6
|
"author": "",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"typescript": "^4.8.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@jpmorganchase/mosaic-components": "^0.1.0-beta.
|
|
36
|
-
"@jpmorganchase/mosaic-content-editor-plugin": "0.1.0-beta.
|
|
37
|
-
"@jpmorganchase/mosaic-site-components": "^0.1.0-beta.
|
|
38
|
-
"@jpmorganchase/mosaic-store": "^0.1.0-beta.
|
|
39
|
-
"@jpmorganchase/mosaic-theme": "^0.1.0-beta.
|
|
35
|
+
"@jpmorganchase/mosaic-components": "^0.1.0-beta.20",
|
|
36
|
+
"@jpmorganchase/mosaic-content-editor-plugin": "0.1.0-beta.20",
|
|
37
|
+
"@jpmorganchase/mosaic-site-components": "^0.1.0-beta.20",
|
|
38
|
+
"@jpmorganchase/mosaic-store": "^0.1.0-beta.20",
|
|
39
|
+
"@jpmorganchase/mosaic-theme": "^0.1.0-beta.20",
|
|
40
40
|
"@salt-ds/lab": "^1.0.0-alpha.0",
|
|
41
41
|
"@vanilla-extract/css": "^1.6.0",
|
|
42
42
|
"classnames": "^2.2.6",
|
package/src/LayoutBase/index.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Spinner } from '@salt-ds/lab';
|
|
3
3
|
import { useRouter } from 'next/router';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
+
import { SidebarProvider } from '@jpmorganchase/mosaic-site-components';
|
|
5
6
|
|
|
6
7
|
import { useIsLoading } from '../hooks/useIsLoading';
|
|
7
8
|
import { Fade } from '../Fade';
|
|
@@ -19,17 +20,19 @@ export const LayoutBase = ({
|
|
|
19
20
|
// Add a delay before showing loading state, so loading screen doesn't appear if page loads quickly
|
|
20
21
|
const [isLoading, isLoadingNewBaseRoute] = useIsLoading({ loadingDelay: 50 });
|
|
21
22
|
return (
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<div className={styles.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
<SidebarProvider>
|
|
24
|
+
<div className={classnames(styles.root, className)}>
|
|
25
|
+
<header className={styles.header}>{Header}</header>
|
|
26
|
+
<main className={styles.main}>
|
|
27
|
+
<Fade duration={{ enter: 1200, exit: 500 }} in={isLoading || isLoadingNewBaseRoute}>
|
|
28
|
+
<div className={styles.overlayRoot}>
|
|
29
|
+
<div className={styles.overlayInner} />
|
|
30
|
+
<Spinner size="large" />
|
|
31
|
+
</div>
|
|
32
|
+
</Fade>
|
|
33
|
+
<React.Fragment key={useRouter().asPath.replace(/#.*$/, '')}>{children}</React.Fragment>
|
|
34
|
+
</main>
|
|
35
|
+
</div>
|
|
36
|
+
</SidebarProvider>
|
|
34
37
|
);
|
|
35
38
|
};
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
|
|
4
|
-
import { SidebarLeft, SidebarRight } from '../Sidebars';
|
|
5
4
|
import styles from './styles.css';
|
|
5
|
+
import { Drawer, Sidebar, TriggerElementProps } from '@jpmorganchase/mosaic-site-components';
|
|
6
|
+
import { Button, Icon, useBreakpoint } from '@jpmorganchase/mosaic-components';
|
|
7
|
+
|
|
8
|
+
const TriggerElement: React.FC<TriggerElementProps> = ({ open, onClick: handleClick }) => (
|
|
9
|
+
<Button className={styles.toggleButton} variant="secondary" onClick={handleClick}>
|
|
10
|
+
{open ? (
|
|
11
|
+
<Icon aria-label="close the main navigation" name="close" />
|
|
12
|
+
) : (
|
|
13
|
+
<Icon aria-label="show the main navigation" name="menu" />
|
|
14
|
+
)}
|
|
15
|
+
</Button>
|
|
16
|
+
);
|
|
6
17
|
|
|
7
18
|
export const LayoutColumns = ({
|
|
8
19
|
PrimarySidebar,
|
|
@@ -14,23 +25,36 @@ export const LayoutColumns = ({
|
|
|
14
25
|
SecondarySidebar?: React.ReactNode;
|
|
15
26
|
Footer?: React.ReactNode;
|
|
16
27
|
children?: React.ReactNode;
|
|
17
|
-
}) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
</
|
|
28
|
+
}) => {
|
|
29
|
+
const breakpoint = useBreakpoint();
|
|
30
|
+
const showDrawer = breakpoint === 'mobile' || breakpoint == 'tablet';
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
className={classnames({
|
|
34
|
+
[styles.fullWidth]: !PrimarySidebar,
|
|
35
|
+
[styles.withSidebar]: PrimarySidebar
|
|
36
|
+
})}
|
|
37
|
+
>
|
|
38
|
+
{showDrawer && PrimarySidebar && (
|
|
39
|
+
<Drawer side="left" TriggerElement={TriggerElement}>
|
|
40
|
+
<Sidebar side="left">{PrimarySidebar}</Sidebar>
|
|
41
|
+
</Drawer>
|
|
42
|
+
)}
|
|
43
|
+
{!showDrawer && PrimarySidebar && <Sidebar side="left">{PrimarySidebar}</Sidebar>}
|
|
44
|
+
<div className={styles.mainWrapper}>
|
|
45
|
+
<div className={styles.columnWrapper}>
|
|
46
|
+
<div className={styles.contentColumn}>
|
|
47
|
+
<main className={styles.contentBody}>{children}</main>
|
|
48
|
+
{Footer && Footer}
|
|
49
|
+
</div>
|
|
31
50
|
|
|
32
|
-
|
|
51
|
+
{SecondarySidebar && (
|
|
52
|
+
<Sidebar side="right" sticky>
|
|
53
|
+
{SecondarySidebar}
|
|
54
|
+
</Sidebar>
|
|
55
|
+
)}
|
|
56
|
+
</div>
|
|
33
57
|
</div>
|
|
34
58
|
</div>
|
|
35
|
-
|
|
36
|
-
|
|
59
|
+
);
|
|
60
|
+
};
|
|
@@ -58,6 +58,26 @@ const styles = {
|
|
|
58
58
|
style({
|
|
59
59
|
flexGrow: 1
|
|
60
60
|
})
|
|
61
|
+
]),
|
|
62
|
+
|
|
63
|
+
toggleButton: style([
|
|
64
|
+
{
|
|
65
|
+
selectors: {
|
|
66
|
+
['button.&']: {
|
|
67
|
+
display: 'block',
|
|
68
|
+
position: 'fixed',
|
|
69
|
+
zIndex: 5,
|
|
70
|
+
padding: '0px',
|
|
71
|
+
boxSizing: 'content-box',
|
|
72
|
+
width: `${config.appHeader.height}px`,
|
|
73
|
+
height: `${config.appHeader.height}px`
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
responsiveSprinkles({
|
|
78
|
+
bottom: ['x6', 'x6', 'x6', 'x6'],
|
|
79
|
+
right: ['x6', 'x6', 'x6', 'x6']
|
|
80
|
+
})
|
|
61
81
|
])
|
|
62
82
|
};
|
|
63
83
|
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Breadcrumbs,
|
|
7
7
|
DocPaginator,
|
|
8
8
|
Footer,
|
|
9
|
-
|
|
9
|
+
PageNavigation
|
|
10
10
|
} from '@jpmorganchase/mosaic-site-components';
|
|
11
11
|
|
|
12
12
|
import { LayoutBase } from '../../LayoutBase';
|
|
@@ -27,7 +27,7 @@ export const DetailOverview: React.FC<LayoutProps> = ({
|
|
|
27
27
|
<BackLink {...BackLinkProps} />
|
|
28
28
|
</header>
|
|
29
29
|
)}
|
|
30
|
-
<
|
|
30
|
+
<PageNavigation />
|
|
31
31
|
{SidebarProps?.helpLinks && <HelpLinks subTitle="Need help?" {...SidebarProps.helpLinks} />}
|
|
32
32
|
</>
|
|
33
33
|
);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Breadcrumbs,
|
|
8
8
|
Footer,
|
|
9
9
|
TableOfContents,
|
|
10
|
-
|
|
10
|
+
PageNavigation
|
|
11
11
|
} from '@jpmorganchase/mosaic-site-components';
|
|
12
12
|
|
|
13
13
|
import { LayoutBase } from '../../LayoutBase';
|
|
@@ -30,7 +30,7 @@ export const DetailTechnical: React.FC<LayoutProps> = ({
|
|
|
30
30
|
<BackLink {...BackLinkProps} />
|
|
31
31
|
</header>
|
|
32
32
|
)}
|
|
33
|
-
<
|
|
33
|
+
<PageNavigation />
|
|
34
34
|
{SidebarProps?.helpLinks && <HelpLinks subTitle="Need help?" {...SidebarProps.helpLinks} />}
|
|
35
35
|
</>
|
|
36
36
|
);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
DocPaginator,
|
|
9
9
|
Footer,
|
|
10
10
|
TableOfContents,
|
|
11
|
-
|
|
11
|
+
PageNavigation
|
|
12
12
|
} from '@jpmorganchase/mosaic-site-components';
|
|
13
13
|
|
|
14
14
|
import { LayoutBase } from '../../LayoutBase';
|
|
@@ -49,7 +49,7 @@ export const PythonDoc: React.FC<LayoutProps> = ({
|
|
|
49
49
|
<BackLink {...BackLinkProps} />
|
|
50
50
|
</header>
|
|
51
51
|
)}
|
|
52
|
-
<
|
|
52
|
+
<PageNavigation />
|
|
53
53
|
{SidebarProps?.helpLinks && <HelpLinks subTitle="Need help?" {...SidebarProps.helpLinks} />}
|
|
54
54
|
</>
|
|
55
55
|
);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
BackLink,
|
|
7
7
|
Breadcrumbs,
|
|
8
8
|
Footer,
|
|
9
|
-
|
|
9
|
+
PageNavigation
|
|
10
10
|
} from '@jpmorganchase/mosaic-site-components';
|
|
11
11
|
|
|
12
12
|
import { LayoutBase } from '../../LayoutBase';
|
|
@@ -39,7 +39,7 @@ export const TypeDoc: React.FC<LayoutProps> = ({
|
|
|
39
39
|
<BackLink {...BackLinkProps} />
|
|
40
40
|
</header>
|
|
41
41
|
)}
|
|
42
|
-
<
|
|
42
|
+
<PageNavigation />
|
|
43
43
|
{SidebarProps?.helpLinks && <HelpLinks subTitle="Need help?" {...SidebarProps.helpLinks} />}
|
|
44
44
|
</>
|
|
45
45
|
);
|
package/dist/Sidebars/Drawer.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes lnbh570{0%{opacity:0}to{opacity:1}}.lnbh571{flex-shrink:0;flex-grow:0;z-index:1;width:248px}.lnbh574{flex-shrink:0;z-index:1}.lnbh576{flex-shrink:0;z-index:3;width:168px}.lnbh578{position:sticky;overflow:auto;height:calc(100vh - 44px);top:44px}.lnbh57a{display:block;position:fixed;z-index:5}.lnbh57b{display:block;position:fixed;opacity:0;animation-duration:.1s;animation-delay:225ms;animation-fill-mode:forwards;animation-name:lnbh570}.lnbh57c{bottom:0;overflow-y:scroll;top:44px;height:calc(100% - 44px)}.lnbh57e{display:none}
|
package/dist/Sidebars/Drawer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-36VRRJYH.js";import"../chunk-RWWDUWAZ.js";import"../chunk-FEIY7W7S.js";export{a as Drawer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes lnbh570{0%{opacity:0}to{opacity:1}}.lnbh571{flex-shrink:0;flex-grow:0;z-index:1;width:248px}.lnbh574{flex-shrink:0;z-index:1}.lnbh576{flex-shrink:0;z-index:3;width:168px}.lnbh578{position:sticky;overflow:auto;height:calc(100vh - 44px);top:44px}.lnbh57a{display:block;position:fixed;z-index:5}.lnbh57b{display:block;position:fixed;opacity:0;animation-duration:.1s;animation-delay:225ms;animation-fill-mode:forwards;animation-name:lnbh570}.lnbh57c{bottom:0;overflow-y:scroll;top:44px;height:calc(100% - 44px)}.lnbh57e{display:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-GAMD2B7L.js";import"../chunk-36VRRJYH.js";import"../chunk-RWWDUWAZ.js";import"../chunk-FEIY7W7S.js";export{a as SidebarLeft};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes lnbh570{0%{opacity:0}to{opacity:1}}.lnbh571{flex-shrink:0;flex-grow:0;z-index:1;width:248px}.lnbh574{flex-shrink:0;z-index:1}.lnbh576{flex-shrink:0;z-index:3;width:168px}.lnbh578{position:sticky;overflow:auto;height:calc(100vh - 44px);top:44px}.lnbh57a{display:block;position:fixed;z-index:5}.lnbh57b{display:block;position:fixed;opacity:0;animation-duration:.1s;animation-delay:225ms;animation-fill-mode:forwards;animation-name:lnbh570}.lnbh57c{bottom:0;overflow-y:scroll;top:44px;height:calc(100% - 44px)}.lnbh57e{display:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-KZ6ZH4EY.js";import"../chunk-RWWDUWAZ.js";import"../chunk-FEIY7W7S.js";export{a as SidebarRight};
|
package/dist/Sidebars/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes lnbh570{0%{opacity:0}to{opacity:1}}.lnbh571{flex-shrink:0;flex-grow:0;z-index:1;width:248px}.lnbh574{flex-shrink:0;z-index:1}.lnbh576{flex-shrink:0;z-index:3;width:168px}.lnbh578{position:sticky;overflow:auto;height:calc(100vh - 44px);top:44px}.lnbh57a{display:block;position:fixed;z-index:5}.lnbh57b{display:block;position:fixed;opacity:0;animation-duration:.1s;animation-delay:225ms;animation-fill-mode:forwards;animation-name:lnbh570}.lnbh57c{bottom:0;overflow-y:scroll;top:44px;height:calc(100% - 44px)}.lnbh57e{display:none}
|
package/dist/Sidebars/index.d.ts
DELETED
package/dist/Sidebars/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunk-475WQFFV.js";import{a}from"../chunk-GAMD2B7L.js";import"../chunk-36VRRJYH.js";import{a as b}from"../chunk-KZ6ZH4EY.js";import"../chunk-RWWDUWAZ.js";import"../chunk-FEIY7W7S.js";export{a as SidebarLeft,b as SidebarRight};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes lnbh570{0%{opacity:0}to{opacity:1}}.lnbh571{flex-shrink:0;flex-grow:0;z-index:1;width:248px}.lnbh574{flex-shrink:0;z-index:1}.lnbh576{flex-shrink:0;z-index:3;width:168px}.lnbh578{position:sticky;overflow:auto;height:calc(100vh - 44px);top:44px}.lnbh57a{display:block;position:fixed;z-index:5}.lnbh57b{display:block;position:fixed;opacity:0;animation-duration:.1s;animation-delay:225ms;animation-fill-mode:forwards;animation-name:lnbh570}.lnbh57c{bottom:0;overflow-y:scroll;top:44px;height:calc(100% - 44px)}.lnbh57e{display:none}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
sidebarLeft: string;
|
|
3
|
-
sidebarLeftDrawer: string;
|
|
4
|
-
sidebarLeftEmpty: string;
|
|
5
|
-
sidebarRight: string;
|
|
6
|
-
sidebarStickyArea: string;
|
|
7
|
-
toggleDrawer: string;
|
|
8
|
-
toggleButton: string;
|
|
9
|
-
closeDrawerButtonWrapper: string;
|
|
10
|
-
drawerInner: string;
|
|
11
|
-
drawerButton: string;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-RWWDUWAZ.js";import"../chunk-FEIY7W7S.js";export{a as default};
|
package/dist/chunk-36VRRJYH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-RWWDUWAZ.js";import e,{useEffect as p,useLayoutEffect as c,useState as n}from"react";import{LayerLayout as w}from"@salt-ds/lab";import{Icon as l,Button as b,useBreakpoint as g}from"@jpmorganchase/mosaic-components";var m=typeof window<"u"?c:p,k=({children:r})=>{let[s,t]=n(!1),[i,d]=n(!1),o=g(),f=()=>{t(u=>!u)};return m(()=>{d(o==="mobile"||o==="tablet")},[o]),m(()=>{t(!1)},[r]),e.createElement(e.Fragment,null,i&&e.createElement(e.Fragment,null,e.createElement(w,{className:a.drawerInner,"aria-label":"Overlaid Drawer",isOpen:s,disableScrim:!0,position:"left"},e.createElement("aside",{className:a.sidebarLeftDrawer},r)),e.createElement("div",{className:a.toggleDrawer},e.createElement(b,{className:a.toggleButton,onClick:f,variant:"regular","aria-label":"show the secondary navigation"},s?e.createElement(l,{"aria-label":"close the main navigation",name:"close"}):e.createElement(l,{"aria-label":"show the main navigation",name:"menu"})))),!i&&e.createElement("aside",{className:a.sidebarLeft},e.createElement("div",{className:a.sidebarStickyArea},r)))};export{k as a};
|
package/dist/chunk-3OGXLLMG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-OMED577C.js";import{a}from"./chunk-R3NXG7VM.js";import{a as i}from"./chunk-E6MQWWR2.js";import r from"react";import{HelpLinks as p}from"@jpmorganchase/mosaic-components";import{AppHeader as y,DocPaginator as l,BackLink as u,Breadcrumbs as L,Footer as b,TableOfContents as f,VerticalNavigation as S}from"@jpmorganchase/mosaic-site-components";var P=({BackLinkProps:o,FooterProps:s,SidebarProps:e,children:t})=>{let n=r.createElement(y,null),d=r.createElement(r.Fragment,null,o&&r.createElement("header",{className:m.sidebarHeader},r.createElement(u,{...o})),r.createElement(S,null),e?.helpLinks&&r.createElement(p,{subTitle:"Need help?",...e.helpLinks}));return r.createElement(a,{Header:n},r.createElement(i,{PrimarySidebar:d,SecondarySidebar:r.createElement(f,null),Footer:r.createElement(b,{...s})},r.createElement(L,null),t,r.createElement(l,null)))};export{P as a};
|
package/dist/chunk-475WQFFV.js
DELETED
|
File without changes
|
package/dist/chunk-E6MQWWR2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-GAMD2B7L.js";import{a as m}from"./chunk-KZ6ZH4EY.js";import{a as e}from"./chunk-25KPR4KC.js";import a from"react";import c from"classnames";var N=({PrimarySidebar:i,SecondarySidebar:o,Footer:t,children:s})=>a.createElement("div",{className:c({[e.fullWidth]:!i,[e.withSidebar]:i})},i&&a.createElement(d,null,i),a.createElement("div",{className:e.mainWrapper},a.createElement("div",{className:e.columnWrapper},a.createElement("div",{className:e.contentColumn},a.createElement("main",{className:e.contentBody},s),t&&t),o&&a.createElement(m,null,o))));export{N as a};
|
package/dist/chunk-GAMD2B7L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-36VRRJYH.js";import{a as o}from"./chunk-RWWDUWAZ.js";import r from"react";var p=({children:e})=>r.createElement(r.Fragment,null,e&&r.createElement(t,null,e),!e&&r.createElement("aside",{className:o.sidebarLeftEmpty}));export{p as a};
|
package/dist/chunk-KZ6ZH4EY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-RWWDUWAZ.js";import r from"react";var o=({children:i})=>r.createElement("aside",{className:e.sidebarRight},i&&r.createElement("div",{className:e.sidebarStickyArea},i));export{o as a};
|
package/dist/chunk-NFDOXZYZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-OMED577C.js";import{a as i}from"./chunk-R3NXG7VM.js";import{a as m}from"./chunk-E6MQWWR2.js";import r from"react";import{HelpLinks as l}from"@jpmorganchase/mosaic-components";import{AppHeader as n,BackLink as u,Breadcrumbs as d,DocPaginator as y,Footer as L,VerticalNavigation as f}from"@jpmorganchase/mosaic-site-components";var C=({BackLinkProps:o,SidebarProps:e,FooterProps:s,children:t})=>{let p=r.createElement(r.Fragment,null,o&&r.createElement("header",{className:a.sidebarHeader},r.createElement(u,{...o})),r.createElement(f,null),e?.helpLinks&&r.createElement(l,{subTitle:"Need help?",...e.helpLinks}));return r.createElement(i,{Header:r.createElement(n,null)},r.createElement(m,{PrimarySidebar:p,SecondarySidebar:null,Footer:r.createElement(L,{...s})},r.createElement(d,null),t,r.createElement(y,null)))};export{C as a};
|
package/dist/chunk-O77SFZBP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-Z4UFTC3H.js";import{a as p}from"./chunk-R3NXG7VM.js";import{a as d}from"./chunk-E6MQWWR2.js";import e from"react";import f from"classnames";import{HelpLinks as b,Hero as L}from"@jpmorganchase/mosaic-components";import{AppHeader as c,BackLink as g,Breadcrumbs as h,DocPaginator as S,Footer as C,TableOfContents as H,VerticalNavigation as T}from"@jpmorganchase/mosaic-site-components";var D=({description:r,name:t,pageType:a,releaseDate:i,title:s,version:o})=>e.createElement(L,{datestamp:i,datestampLabel:"Release Date",description:r,eyebrow:a==="root"?`Version ${o}`:`${t} - v${o}`,title:a==="root"?t:s}),A=({BackLinkProps:r,FooterProps:t,SidebarProps:a,ToCProps:i,children:s,meta:o})=>{let m=i?.items?.map(({text:y,...u})=>({...u,text:y.replace(/\s*\(.*?\).*/g,"() ")})),l=e.createElement(e.Fragment,null,r&&e.createElement("header",{className:n.sidebarHeader},e.createElement(g,{...r})),e.createElement(T,null),a?.helpLinks&&e.createElement(b,{subTitle:"Need help?",...a.helpLinks}));return e.createElement(p,{Header:e.createElement(c,null)},e.createElement(d,{PrimarySidebar:l,SecondarySidebar:e.createElement(H,{items:m}),Footer:e.createElement(C,{...t})},e.createElement("main",{className:f(n.contentBody,"pythondoc")},e.createElement(h,null),o?.data?.pageType==="root"||o?.data?.pageType==="index"?e.createElement(D,{description:o.data.api?.description?`Changelog: ${o.data.api.description}`:void 0,name:o.data.api?.name,pageType:o.data.pageType,releaseDate:o.data.api?.releaseDate,title:o.data.title,version:o.data.api?.version}):null,s,e.createElement(S,null))))};export{A as a};
|
package/dist/chunk-R3NXG7VM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-DTW4UURD.js";import{a as r}from"./chunk-5DJN5CVQ.js";import{a}from"./chunk-S2SS5ZQ2.js";import e from"react";import{Spinner as d}from"@salt-ds/lab";import{useRouter as l}from"next/router";import p from"classnames";var h=({Header:s,children:i,className:m})=>{let[n,t]=o({loadingDelay:50});return e.createElement("div",{className:p(a.root,m)},e.createElement("header",{className:a.header},s),e.createElement("main",{className:a.main},e.createElement(r,{duration:{enter:1200,exit:500},in:n||t},e.createElement("div",{className:a.overlayRoot},e.createElement("div",{className:a.overlayInner}),e.createElement(d,{size:"large"}))),e.createElement(e.Fragment,{key:l().asPath.replace(/#.*$/,"")},i)))};export{h as a};
|
package/dist/chunk-RWWDUWAZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d={sidebarLeft:"lnbh571 fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq71wg ueedq71wh ueedq71wi ueedq71wj ueedq71wk ueedq71wl ueedq71wm ueedq71wn xpw6ps0 xpw6ps1 xpw6ps2 xpw6ps3 xpw6ps24 xpw6ps25 xpw6ps2a xpw6ps27 xpw6ps2o xpw6ps2p xpw6ps2q xpw6ps2r xpw6ps4k xpw6ps4l xpw6ps4m xpw6ps4n",sidebarLeftDrawer:"pdl72e78 pdl72e79 pdl72e7u pdl72e7v",sidebarLeftEmpty:"lnbh574 xpw6ps4 xpw6ps5 xpw6ps6 xpw6ps3 xpw6psg xpw6psh xpw6ps2a xpw6ps27 xpw6ps2o xpw6ps2p xpw6ps2q xpw6ps2r xpw6ps4k xpw6ps4l xpw6ps4m xpw6ps4n",sidebarRight:"lnbh576 xpw6ps4 xpw6ps5 xpw6ps6 xpw6ps3 xpw6psg xpw6psh xpw6psi xpw6ps27 xpw6ps2o xpw6ps2p xpw6ps2q xpw6ps2r xpw6ps4k xpw6ps4l xpw6ps4m xpw6ps4n",sidebarStickyArea:"lnbh578 pdl72e80 pdl72e81 pdl72e8i pdl72e8j pdl72eb8 pdl72eb9 pdl72eba pdl72ebb",toggleDrawer:"lnbh57a pdl72eig pdl72eih pdl72eii pdl72eij pdl72egs pdl72egt pdl72egu pdl72egv",toggleButton:"_1eyk9cvx pdl72ecw pdl72ecx pdl72ecy pdl72ed7 pdl72e9c pdl72e9d pdl72e9e pdl72e9n _1eyk9cv16 _1eyk9cv0 _1eyk9cv5 _1eyk9cva _1eyk9cvf _1eyk9cvg _1eyk9cvl _1eyk9cvq _1eyk9cvv wfgi8t3u wfgi8t44 wfgi8t3q wfgi8t4g wfgi8t4r wfgi8t51 wfgi8t4n wfgi8t5d wfgi8t5e wfgi8t5g wfgi8t5y wfgi8t5k wfgi8t6r wfgi8t6t wfgi8t6f wfgi8t6x pdl72e4 pdl72e5 pdl72e6 pdl72e7",closeDrawerButtonWrapper:"lnbh57b pdl72eig pdl72eih pdl72eii pdl72eij pdl72egs pdl72egt pdl72egu pdl72egv",drawerInner:"lnbh57c xpw6ps0 xpw6ps1 xpw6ps2 xpw6ps3 xpw6ps2c xpw6ps2d xpw6ps2a xpw6ps27 xpw6ps2o xpw6ps2p xpw6ps2q xpw6ps2r xpw6ps4k xpw6ps4l xpw6ps4m xpw6ps4n pdl72e7s pdl72e7t pdl72e7a pdl72e7b pdl72ebc pdl72ebd pdl72eau pdl72eav",drawerButton:"lnbh57e"};export{d as a};
|
package/dist/chunk-TJSYUHUU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-VEHUHLGJ.js";import{a as g}from"./chunk-O77SFZBP.js";import{a as h}from"./chunk-ZMLV2A35.js";import{a as x}from"./chunk-L5WWHJGP.js";import{a}from"./chunk-ZXC3PEIO.js";import{a as b}from"./chunk-O26VNYJQ.js";import{a as c}from"./chunk-JNIHCWHI.js";import{a as t}from"./chunk-52YJPQCT.js";import{a as e}from"./chunk-TKC6R6CM.js";import{a as f}from"./chunk-AKPLQCIT.js";import{a as m}from"./chunk-NFDOXZYZ.js";import{a as p}from"./chunk-3OGXLLMG.js";import{a as r}from"./chunk-W34XAVGE.js";import{a as o}from"./chunk-FEIY7W7S.js";var i={};o(i,{AppLayout:()=>t,DetailContentOnly:()=>e,DetailHighlight:()=>f,DetailOverview:()=>m,DetailTechnical:()=>p,EditLayout:()=>x,FullWidth:()=>r,Landing:()=>a,Newsletter:()=>b,ProductDiscover:()=>c,ProductPreview:()=>d,PythonDoc:()=>g,TypeDoc:()=>h});export{i as a};
|
package/dist/chunk-ZMLV2A35.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk-WNZGJWRV.js";import{a as y}from"./chunk-LAW2KABC.js";import{a as p}from"./chunk-R3NXG7VM.js";import{a as n}from"./chunk-E6MQWWR2.js";import o from"react";import u from"classnames";import{HelpLinks as b,Hero as f}from"@jpmorganchase/mosaic-components";import{AppHeader as L,BackLink as h,Breadcrumbs as v,Footer as H,VerticalNavigation as c}from"@jpmorganchase/mosaic-site-components";var g=({description:a,name:r,pageType:i,releaseDate:e,title:s,version:t})=>o.createElement(f,{datestamp:e,datestampLabel:"Release Date",description:a,eyebrow:i==="root"?`Version ${t}`:`${r} - v${t}`,title:i==="root"?r:s}),B=({BackLinkProps:a,SidebarProps:r,FooterProps:i,meta:e,children:s})=>{let t=o.createElement(o.Fragment,null,a&&o.createElement("header",{className:l.sidebarHeader},o.createElement(h,{...a})),o.createElement(c,null),r?.helpLinks&&o.createElement(b,{subTitle:"Need help?",...r.helpLinks})),d=e?.data?.pageType==="root"||e?.data?.pageType==="index",m=e?.data?.sidebarNavOptions?o.createElement(y,{items:e.data.sidebarNavOptions}):null;return o.createElement(p,{Header:o.createElement(L,null)},o.createElement(n,{PrimarySidebar:t,SecondarySidebar:m,Footer:o.createElement(H,{...i})},o.createElement("div",{className:u("typedoc",{"typedoc-index":d})},o.createElement(v,null),d&&e?.data?o.createElement(g,{description:e.data.api?.description?`Changelog: ${e.data.api.description}`:void 0,name:e.data.api?.name,pageType:e.data.pageType,releaseDate:e.data.api?.releaseDate,title:e.data.title,version:e.data.api?.version}):null,s)))};export{B as a};
|
package/src/Sidebars/Drawer.tsx
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactNode, useEffect, useLayoutEffect, useState } from 'react';
|
|
2
|
-
import { LayerLayout } from '@salt-ds/lab';
|
|
3
|
-
import { Icon, Button, useBreakpoint } from '@jpmorganchase/mosaic-components';
|
|
4
|
-
import styles from './styles.css';
|
|
5
|
-
|
|
6
|
-
export interface DrawerProps {
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
11
|
-
|
|
12
|
-
export const Drawer: FC<DrawerProps> = ({ children }) => {
|
|
13
|
-
const [open, setOpen] = useState(false);
|
|
14
|
-
const [useDrawer, setUseDrawer] = useState(false);
|
|
15
|
-
const breakpoint = useBreakpoint();
|
|
16
|
-
|
|
17
|
-
const toggleDrawer = () => {
|
|
18
|
-
setOpen(old => !old);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
useIsomorphicLayoutEffect(() => {
|
|
22
|
-
setUseDrawer(breakpoint === 'mobile' || breakpoint === 'tablet');
|
|
23
|
-
}, [breakpoint]);
|
|
24
|
-
|
|
25
|
-
useIsomorphicLayoutEffect(() => {
|
|
26
|
-
// Close drawer whenever a page loads
|
|
27
|
-
setOpen(false);
|
|
28
|
-
}, [children]);
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<>
|
|
32
|
-
{useDrawer && (
|
|
33
|
-
<>
|
|
34
|
-
<LayerLayout
|
|
35
|
-
className={styles.drawerInner}
|
|
36
|
-
aria-label="Overlaid Drawer"
|
|
37
|
-
isOpen={open}
|
|
38
|
-
disableScrim
|
|
39
|
-
position="left"
|
|
40
|
-
>
|
|
41
|
-
<aside className={styles.sidebarLeftDrawer}>{children}</aside>
|
|
42
|
-
</LayerLayout>
|
|
43
|
-
<div className={styles.toggleDrawer}>
|
|
44
|
-
<Button
|
|
45
|
-
className={styles.toggleButton}
|
|
46
|
-
onClick={toggleDrawer}
|
|
47
|
-
variant="regular"
|
|
48
|
-
aria-label="show the secondary navigation"
|
|
49
|
-
>
|
|
50
|
-
{open ? (
|
|
51
|
-
<Icon aria-label="close the main navigation" name="close" />
|
|
52
|
-
) : (
|
|
53
|
-
<Icon aria-label="show the main navigation" name="menu" />
|
|
54
|
-
)}
|
|
55
|
-
</Button>
|
|
56
|
-
</div>
|
|
57
|
-
</>
|
|
58
|
-
)}
|
|
59
|
-
{!useDrawer && (
|
|
60
|
-
<aside className={styles.sidebarLeft}>
|
|
61
|
-
<div className={styles.sidebarStickyArea}>{children}</div>
|
|
62
|
-
</aside>
|
|
63
|
-
)}
|
|
64
|
-
</>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
import styles from './styles.css';
|
|
4
|
-
import { Drawer } from './Drawer';
|
|
5
|
-
|
|
6
|
-
export interface SidebarLeftProps {
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const SidebarLeft: FC<SidebarLeftProps> = ({ children }) => (
|
|
11
|
-
<>
|
|
12
|
-
{children && <Drawer>{children}</Drawer>}
|
|
13
|
-
{!children && <aside className={styles.sidebarLeftEmpty} />}
|
|
14
|
-
</>
|
|
15
|
-
);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
import styles from './styles.css';
|
|
4
|
-
|
|
5
|
-
export interface SidebarRightProps {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const SidebarRight: FC<SidebarRightProps> = ({ children }) => (
|
|
10
|
-
<aside className={styles.sidebarRight}>
|
|
11
|
-
{children && <div className={styles.sidebarStickyArea}>{children}</div>}
|
|
12
|
-
</aside>
|
|
13
|
-
);
|
package/src/Sidebars/index.tsx
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { keyframes, style } from '@vanilla-extract/css';
|
|
2
|
-
import {
|
|
3
|
-
button,
|
|
4
|
-
neutralBorder,
|
|
5
|
-
responsiveSprinkles,
|
|
6
|
-
sidebar,
|
|
7
|
-
config
|
|
8
|
-
} from '@jpmorganchase/mosaic-theme';
|
|
9
|
-
|
|
10
|
-
const fadeIn = keyframes({
|
|
11
|
-
'0%': { opacity: 0 },
|
|
12
|
-
'100%': { opacity: 1 }
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
sidebarLeft: style([
|
|
17
|
-
style({
|
|
18
|
-
flexShrink: 0,
|
|
19
|
-
flexGrow: 0,
|
|
20
|
-
zIndex: 1,
|
|
21
|
-
width: `${config.sidebarLeft.width}px`
|
|
22
|
-
}),
|
|
23
|
-
neutralBorder({ variant: 'low', borderRightWidth: 'thin' }),
|
|
24
|
-
sidebar({ variant: 'left' })
|
|
25
|
-
]),
|
|
26
|
-
sidebarLeftDrawer: style([
|
|
27
|
-
responsiveSprinkles({
|
|
28
|
-
paddingTop: ['none', 'none', 'x6', 'x6']
|
|
29
|
-
})
|
|
30
|
-
]),
|
|
31
|
-
sidebarLeftEmpty: style([
|
|
32
|
-
style({
|
|
33
|
-
flexShrink: 0,
|
|
34
|
-
zIndex: 1
|
|
35
|
-
}),
|
|
36
|
-
sidebar({ variant: 'leftEmpty' })
|
|
37
|
-
]),
|
|
38
|
-
sidebarRight: style([
|
|
39
|
-
style({
|
|
40
|
-
flexShrink: 0,
|
|
41
|
-
zIndex: 3,
|
|
42
|
-
width: `${config.sidebarRight.width}px`
|
|
43
|
-
}),
|
|
44
|
-
sidebar({ variant: 'right' })
|
|
45
|
-
]),
|
|
46
|
-
sidebarStickyArea: style([
|
|
47
|
-
style({
|
|
48
|
-
position: 'sticky',
|
|
49
|
-
overflow: 'auto',
|
|
50
|
-
height: `calc(100vh - ${config.appHeader.height}px)`,
|
|
51
|
-
top: `${config.appHeader.height}px`
|
|
52
|
-
}),
|
|
53
|
-
responsiveSprinkles({
|
|
54
|
-
paddingTop: ['x10', 'x10', 'x20', 'x20'],
|
|
55
|
-
paddingBottom: ['x4', 'x4', 'x4', 'x4']
|
|
56
|
-
})
|
|
57
|
-
]),
|
|
58
|
-
toggleDrawer: style([
|
|
59
|
-
{
|
|
60
|
-
display: 'block',
|
|
61
|
-
position: 'fixed',
|
|
62
|
-
zIndex: 5
|
|
63
|
-
},
|
|
64
|
-
responsiveSprinkles({
|
|
65
|
-
bottom: ['x6', 'x6', 'x6', 'x6'],
|
|
66
|
-
right: ['x6', 'x6', 'x6', 'x6']
|
|
67
|
-
})
|
|
68
|
-
]),
|
|
69
|
-
toggleButton: button({ variant: 'square' }),
|
|
70
|
-
closeDrawerButtonWrapper: style([
|
|
71
|
-
{
|
|
72
|
-
display: 'block',
|
|
73
|
-
position: 'fixed',
|
|
74
|
-
opacity: 0,
|
|
75
|
-
animationDuration: '100ms',
|
|
76
|
-
animationDelay: '225ms',
|
|
77
|
-
animationFillMode: 'forwards',
|
|
78
|
-
animationName: fadeIn
|
|
79
|
-
},
|
|
80
|
-
responsiveSprinkles({
|
|
81
|
-
bottom: ['x6', 'x6', 'x6', 'x6'],
|
|
82
|
-
right: ['x6', 'x6', 'x6', 'x6']
|
|
83
|
-
})
|
|
84
|
-
]),
|
|
85
|
-
drawerInner: style([
|
|
86
|
-
style({
|
|
87
|
-
bottom: 0,
|
|
88
|
-
overflowY: 'scroll',
|
|
89
|
-
top: `${config.appHeader.height}px`,
|
|
90
|
-
height: `calc(100% - ${config.appHeader.height}px)`
|
|
91
|
-
}),
|
|
92
|
-
sidebar({ variant: 'drawer' }),
|
|
93
|
-
responsiveSprinkles({
|
|
94
|
-
paddingTop: ['x6', 'x6', 'none', 'none'],
|
|
95
|
-
paddingBottom: ['x6', 'x6', 'none', 'none']
|
|
96
|
-
})
|
|
97
|
-
]),
|
|
98
|
-
drawerButton: style({
|
|
99
|
-
display: 'none'
|
|
100
|
-
})
|
|
101
|
-
};
|