@jpmorganchase/mosaic-layouts 0.1.0-beta.9

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.
Files changed (205) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/README.md +39 -0
  3. package/dist/Fade.d.ts +11 -0
  4. package/dist/Fade.js +1 -0
  5. package/dist/LayoutBase/index.css +1 -0
  6. package/dist/LayoutBase/index.d.ts +6 -0
  7. package/dist/LayoutBase/index.js +1 -0
  8. package/dist/LayoutBase/styles.css.css +1 -0
  9. package/dist/LayoutBase/styles.css.d.ts +8 -0
  10. package/dist/LayoutBase/styles.css.js +1 -0
  11. package/dist/LayoutColumns/index.css +1 -0
  12. package/dist/LayoutColumns/index.d.ts +7 -0
  13. package/dist/LayoutColumns/index.js +1 -0
  14. package/dist/LayoutColumns/styles.css.css +1 -0
  15. package/dist/LayoutColumns/styles.css.d.ts +9 -0
  16. package/dist/LayoutColumns/styles.css.js +1 -0
  17. package/dist/LayoutConfigProvider/index.d.ts +6 -0
  18. package/dist/LayoutConfigProvider/index.js +1 -0
  19. package/dist/LayoutFullWidth/index.css +1 -0
  20. package/dist/LayoutFullWidth/index.d.ts +7 -0
  21. package/dist/LayoutFullWidth/index.js +1 -0
  22. package/dist/LayoutFullWidth/styles.css.css +1 -0
  23. package/dist/LayoutFullWidth/styles.css.d.ts +4 -0
  24. package/dist/LayoutFullWidth/styles.css.js +1 -0
  25. package/dist/LayoutProvider.css +1 -0
  26. package/dist/LayoutProvider.d.ts +10 -0
  27. package/dist/LayoutProvider.js +1 -0
  28. package/dist/Sidebars/Drawer.css +1 -0
  29. package/dist/Sidebars/Drawer.d.ts +5 -0
  30. package/dist/Sidebars/Drawer.js +1 -0
  31. package/dist/Sidebars/SidebarLeft.css +1 -0
  32. package/dist/Sidebars/SidebarLeft.d.ts +5 -0
  33. package/dist/Sidebars/SidebarLeft.js +1 -0
  34. package/dist/Sidebars/SidebarRight.css +1 -0
  35. package/dist/Sidebars/SidebarRight.d.ts +5 -0
  36. package/dist/Sidebars/SidebarRight.js +1 -0
  37. package/dist/Sidebars/index.css +1 -0
  38. package/dist/Sidebars/index.d.ts +2 -0
  39. package/dist/Sidebars/index.js +1 -0
  40. package/dist/Sidebars/styles.css.css +1 -0
  41. package/dist/Sidebars/styles.css.d.ts +13 -0
  42. package/dist/Sidebars/styles.css.js +1 -0
  43. package/dist/chunk-2Y7E2F4F.js +1 -0
  44. package/dist/chunk-365SCIKJ.js +1 -0
  45. package/dist/chunk-475WQFFV.js +0 -0
  46. package/dist/chunk-53T3BYR6.js +1 -0
  47. package/dist/chunk-5CMT2ZB7.js +1 -0
  48. package/dist/chunk-5UCWV6EJ.js +21 -0
  49. package/dist/chunk-6OVRDMTN.js +1 -0
  50. package/dist/chunk-7UEIPZZD.js +1 -0
  51. package/dist/chunk-B4T3CMOF.js +1 -0
  52. package/dist/chunk-BIWHBDPI.js +1 -0
  53. package/dist/chunk-BJ6T7WZV.js +1 -0
  54. package/dist/chunk-CQGMVPED.js +1 -0
  55. package/dist/chunk-DE36TWIF.js +1 -0
  56. package/dist/chunk-DQ7NCUDO.js +1 -0
  57. package/dist/chunk-DTW4UURD.js +1 -0
  58. package/dist/chunk-EHVQUK5M.js +1 -0
  59. package/dist/chunk-FTBY4K3Z.js +1 -0
  60. package/dist/chunk-H3KZTXVJ.js +1 -0
  61. package/dist/chunk-HANSMKYF.js +1 -0
  62. package/dist/chunk-IBOB6W4E.js +1 -0
  63. package/dist/chunk-IYWRLYME.js +1 -0
  64. package/dist/chunk-NDZQ5OZP.js +0 -0
  65. package/dist/chunk-OGKKALEL.js +1 -0
  66. package/dist/chunk-P34YRBM6.js +1 -0
  67. package/dist/chunk-PKAR7XZI.js +0 -0
  68. package/dist/chunk-PL34I4WI.js +1 -0
  69. package/dist/chunk-PL5OYTQO.js +1 -0
  70. package/dist/chunk-PNBJEM6G.js +1 -0
  71. package/dist/chunk-Q4PDOZVB.js +1 -0
  72. package/dist/chunk-RSL4VOEW.js +1 -0
  73. package/dist/chunk-RWSFNK3E.js +1 -0
  74. package/dist/chunk-TG7BCCJ4.js +1 -0
  75. package/dist/chunk-UA3BLLVS.js +1 -0
  76. package/dist/chunk-UAKGMBD2.js +1 -0
  77. package/dist/chunk-ULGDXPWY.js +1 -0
  78. package/dist/chunk-X2LSXOCH.js +1 -0
  79. package/dist/chunk-XSGX6KV2.js +1 -0
  80. package/dist/chunk-XVK33OXS.js +1 -0
  81. package/dist/chunk-ZXI72DLC.js +1 -0
  82. package/dist/hooks/useIsLoading.d.ts +6 -0
  83. package/dist/hooks/useIsLoading.js +1 -0
  84. package/dist/index.css +1 -0
  85. package/dist/index.d.ts +8 -0
  86. package/dist/index.js +1 -0
  87. package/dist/layouts/App/index.css +1 -0
  88. package/dist/layouts/App/index.d.ts +3 -0
  89. package/dist/layouts/App/index.js +1 -0
  90. package/dist/layouts/App/styles.css.css +1 -0
  91. package/dist/layouts/App/styles.css.d.ts +4 -0
  92. package/dist/layouts/App/styles.css.js +1 -0
  93. package/dist/layouts/Detail/DetailContentOnly.css +1 -0
  94. package/dist/layouts/Detail/DetailContentOnly.d.ts +3 -0
  95. package/dist/layouts/Detail/DetailContentOnly.js +1 -0
  96. package/dist/layouts/Detail/DetailHighlight.css +1 -0
  97. package/dist/layouts/Detail/DetailHighlight.d.ts +3 -0
  98. package/dist/layouts/Detail/DetailHighlight.js +1 -0
  99. package/dist/layouts/Detail/DetailOverview.css +1 -0
  100. package/dist/layouts/Detail/DetailOverview.d.ts +3 -0
  101. package/dist/layouts/Detail/DetailOverview.js +1 -0
  102. package/dist/layouts/Detail/DetailTechnical.css +1 -0
  103. package/dist/layouts/Detail/DetailTechnical.d.ts +3 -0
  104. package/dist/layouts/Detail/DetailTechnical.js +1 -0
  105. package/dist/layouts/Detail/index.css +1 -0
  106. package/dist/layouts/Detail/index.d.ts +4 -0
  107. package/dist/layouts/Detail/index.js +1 -0
  108. package/dist/layouts/Detail/styles.css.css +1 -0
  109. package/dist/layouts/Detail/styles.css.d.ts +4 -0
  110. package/dist/layouts/Detail/styles.css.js +1 -0
  111. package/dist/layouts/Edit/index.css +1 -0
  112. package/dist/layouts/Edit/index.d.ts +3 -0
  113. package/dist/layouts/Edit/index.js +1 -0
  114. package/dist/layouts/Edit/styles.css.css +1 -0
  115. package/dist/layouts/Edit/styles.css.d.ts +5 -0
  116. package/dist/layouts/Edit/styles.css.js +1 -0
  117. package/dist/layouts/FullWidth/index.css +1 -0
  118. package/dist/layouts/FullWidth/index.d.ts +3 -0
  119. package/dist/layouts/FullWidth/index.js +1 -0
  120. package/dist/layouts/Landing/index.css +1 -0
  121. package/dist/layouts/Landing/index.d.ts +3 -0
  122. package/dist/layouts/Landing/index.js +1 -0
  123. package/dist/layouts/Newsletter/index.css +1 -0
  124. package/dist/layouts/Newsletter/index.d.ts +5 -0
  125. package/dist/layouts/Newsletter/index.js +1 -0
  126. package/dist/layouts/Product/ProductDiscover.css +1 -0
  127. package/dist/layouts/Product/ProductDiscover.d.ts +3 -0
  128. package/dist/layouts/Product/ProductDiscover.js +1 -0
  129. package/dist/layouts/Product/ProductPreview.css +1 -0
  130. package/dist/layouts/Product/ProductPreview.d.ts +3 -0
  131. package/dist/layouts/Product/ProductPreview.js +1 -0
  132. package/dist/layouts/Product/index.css +1 -0
  133. package/dist/layouts/Product/index.d.ts +2 -0
  134. package/dist/layouts/Product/index.js +1 -0
  135. package/dist/layouts/PythonDoc/index.css +1 -0
  136. package/dist/layouts/PythonDoc/index.d.ts +3 -0
  137. package/dist/layouts/PythonDoc/index.js +1 -0
  138. package/dist/layouts/PythonDoc/styles.css.css +1 -0
  139. package/dist/layouts/PythonDoc/styles.css.d.ts +12 -0
  140. package/dist/layouts/PythonDoc/styles.css.js +1 -0
  141. package/dist/layouts/TypeDoc/ExportsSidebar/index.css +1 -0
  142. package/dist/layouts/TypeDoc/ExportsSidebar/index.d.ts +9 -0
  143. package/dist/layouts/TypeDoc/ExportsSidebar/index.js +1 -0
  144. package/dist/layouts/TypeDoc/ExportsSidebar/styles.css.css +1 -0
  145. package/dist/layouts/TypeDoc/ExportsSidebar/styles.css.d.ts +6 -0
  146. package/dist/layouts/TypeDoc/ExportsSidebar/styles.css.js +1 -0
  147. package/dist/layouts/TypeDoc/index.css +1 -0
  148. package/dist/layouts/TypeDoc/index.d.ts +3 -0
  149. package/dist/layouts/TypeDoc/index.js +1 -0
  150. package/dist/layouts/TypeDoc/styles.css.css +1 -0
  151. package/dist/layouts/TypeDoc/styles.css.d.ts +7 -0
  152. package/dist/layouts/TypeDoc/styles.css.js +1 -0
  153. package/dist/layouts/index.css +1 -0
  154. package/dist/layouts/index.d.ts +9 -0
  155. package/dist/layouts/index.js +1 -0
  156. package/dist/types/index.d.ts +34 -0
  157. package/dist/types/index.js +1 -0
  158. package/package.json +41 -0
  159. package/src/Fade.tsx +48 -0
  160. package/src/LayoutBase/index.tsx +35 -0
  161. package/src/LayoutBase/styles.css.ts +73 -0
  162. package/src/LayoutColumns/index.tsx +36 -0
  163. package/src/LayoutColumns/styles.css.ts +64 -0
  164. package/src/LayoutConfigProvider/index.tsx +22 -0
  165. package/src/LayoutFullWidth/index.tsx +22 -0
  166. package/src/LayoutFullWidth/styles.css.ts +17 -0
  167. package/src/LayoutProvider.tsx +35 -0
  168. package/src/Sidebars/Drawer.tsx +66 -0
  169. package/src/Sidebars/SidebarLeft.tsx +15 -0
  170. package/src/Sidebars/SidebarRight.tsx +13 -0
  171. package/src/Sidebars/index.tsx +2 -0
  172. package/src/Sidebars/styles.css.ts +101 -0
  173. package/src/hooks/useIsLoading.ts +75 -0
  174. package/src/index.ts +9 -0
  175. package/src/layouts/App/index.tsx +12 -0
  176. package/src/layouts/App/styles.css.ts +23 -0
  177. package/src/layouts/Detail/DetailContentOnly.tsx +15 -0
  178. package/src/layouts/Detail/DetailHighlight.tsx +24 -0
  179. package/src/layouts/Detail/DetailOverview.tsx +47 -0
  180. package/src/layouts/Detail/DetailTechnical.tsx +53 -0
  181. package/src/layouts/Detail/index.tsx +4 -0
  182. package/src/layouts/Detail/styles.css.ts +5 -0
  183. package/src/layouts/Edit/index.tsx +35 -0
  184. package/src/layouts/Edit/styles.css.ts +23 -0
  185. package/src/layouts/FullWidth/index.tsx +12 -0
  186. package/src/layouts/Landing/index.tsx +12 -0
  187. package/src/layouts/Newsletter/index.tsx +29 -0
  188. package/src/layouts/Product/ProductDiscover.tsx +15 -0
  189. package/src/layouts/Product/ProductPreview.tsx +12 -0
  190. package/src/layouts/Product/index.tsx +2 -0
  191. package/src/layouts/PythonDoc/index.tsx +86 -0
  192. package/src/layouts/PythonDoc/styles.css.ts +67 -0
  193. package/src/layouts/TypeDoc/ExportsSidebar/index.tsx +36 -0
  194. package/src/layouts/TypeDoc/ExportsSidebar/styles.css.ts +44 -0
  195. package/src/layouts/TypeDoc/icons.css +944 -0
  196. package/src/layouts/TypeDoc/icons.png +0 -0
  197. package/src/layouts/TypeDoc/icons@2x.png +0 -0
  198. package/src/layouts/TypeDoc/index.tsx +80 -0
  199. package/src/layouts/TypeDoc/style.css +689 -0
  200. package/src/layouts/TypeDoc/styles.css.ts +41 -0
  201. package/src/layouts/TypeDoc/widgets.png +0 -0
  202. package/src/layouts/TypeDoc/widgets@2x.png +0 -0
  203. package/src/layouts/index.ts +9 -0
  204. package/src/types/index.tsx +28 -0
  205. package/tsconfig.json +9 -0
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const DetailOverview: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-TG7BCCJ4.js";import"../../chunk-PL5OYTQO.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as DetailOverview};
@@ -0,0 +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%}@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}._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}._1hbq6t70{flex-shrink:0}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const DetailTechnical: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-X2LSXOCH.js";import"../../chunk-PL5OYTQO.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as DetailTechnical};
@@ -0,0 +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}@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}._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}._1hbq6t70{flex-shrink:0}
@@ -0,0 +1,4 @@
1
+ export { DetailContentOnly } from './DetailContentOnly';
2
+ export { DetailHighlight } from './DetailHighlight';
3
+ export { DetailOverview } from './DetailOverview';
4
+ export { DetailTechnical } from './DetailTechnical';
@@ -0,0 +1 @@
1
+ import"../../chunk-NDZQ5OZP.js";import{a}from"../../chunk-HANSMKYF.js";import{a as b}from"../../chunk-6OVRDMTN.js";import{a as c}from"../../chunk-TG7BCCJ4.js";import{a as d}from"../../chunk-X2LSXOCH.js";import"../../chunk-PL5OYTQO.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as DetailContentOnly,b as DetailHighlight,c as DetailOverview,d as DetailTechnical};
@@ -0,0 +1 @@
1
+ ._1hbq6t70{flex-shrink:0}
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ sidebarHeader: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-PL5OYTQO.js";import"../../chunk-XSGX6KV2.js";export{a as default};
@@ -0,0 +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%}.pc9j4m0>main{overflow:hidden;height:calc(100% + 44px)}.pc9j4m1{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const EditLayout: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-H3KZTXVJ.js";import"../../chunk-BIWHBDPI.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as EditLayout};
@@ -0,0 +1 @@
1
+ .pc9j4m0>main{overflow:hidden;height:calc(100% + 44px)}.pc9j4m1{max-width:100vw;margin-left:var(--space-horizontal-x10);margin-right:var(--space-horizontal-x10)}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ root: string;
3
+ base: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-BIWHBDPI.js";import"../../chunk-XSGX6KV2.js";export{a as default};
@@ -0,0 +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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const FullWidth: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-DQ7NCUDO.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as FullWidth};
@@ -0,0 +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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const Landing: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-IBOB6W4E.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as Landing};
@@ -0,0 +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%}@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}._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}._1hbq6t70{flex-shrink:0}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export interface NewsletterProps extends LayoutProps {
4
+ }
5
+ export declare const Newsletter: React.FC<NewsletterProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-UAKGMBD2.js";import"../../chunk-PL5OYTQO.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as Newsletter};
@@ -0,0 +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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const ProductDiscover: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-ULGDXPWY.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as ProductDiscover};
@@ -0,0 +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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const ProductPreview: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-PNBJEM6G.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as ProductPreview};
@@ -0,0 +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}
@@ -0,0 +1,2 @@
1
+ export { ProductDiscover } from './ProductDiscover';
2
+ export { ProductPreview } from './ProductPreview';
@@ -0,0 +1 @@
1
+ import"../../chunk-PKAR7XZI.js";import{a as b}from"../../chunk-PNBJEM6G.js";import{a}from"../../chunk-ULGDXPWY.js";import"../../chunk-RSL4VOEW.js";import"../../chunk-RWSFNK3E.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-XSGX6KV2.js";export{a as ProductDiscover,b as ProductPreview};
@@ -0,0 +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%}@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}._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}._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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const PythonDoc: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-BJ6T7WZV.js";import"../../chunk-XVK33OXS.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as PythonDoc};
@@ -0,0 +1 @@
1
+ ._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}
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ root: string;
3
+ main: string;
4
+ locked: string;
5
+ columnWrapper: string;
6
+ contentScrollMargin: string;
7
+ contentColumn: string;
8
+ contentBody: string;
9
+ sidebarHeader: string;
10
+ wrapper: string;
11
+ };
12
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-XVK33OXS.js";import"../../chunk-XSGX6KV2.js";export{a as default};
@@ -0,0 +1 @@
1
+ ._13gwk9a0{position:sticky}._13gwk9a1{list-style:none}._13gwk9a3{cursor:pointer;position:relative;display:block}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare type Item = {
3
+ level: number;
4
+ id: string;
5
+ text: string;
6
+ };
7
+ export declare function ExportsSidebar({ items }: {
8
+ items: any;
9
+ }): JSX.Element | null;
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-UA3BLLVS.js";import"../../../chunk-DE36TWIF.js";import"../../../chunk-XSGX6KV2.js";export{a as ExportsSidebar};
@@ -0,0 +1 @@
1
+ ._13gwk9a0{position:sticky}._13gwk9a1{list-style:none}._13gwk9a3{cursor:pointer;position:relative;display:block}
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ root: string;
3
+ list: string;
4
+ item: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-DE36TWIF.js";import"../../../chunk-XSGX6KV2.js";export{a as default};
@@ -0,0 +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%}@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}._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}._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}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LayoutProps } from '../../types';
3
+ export declare const TypeDoc: React.FC<LayoutProps>;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-365SCIKJ.js";import"../../chunk-ZXI72DLC.js";import"../../chunk-UA3BLLVS.js";import"../../chunk-DE36TWIF.js";import"../../chunk-FTBY4K3Z.js";import"../../chunk-DTW4UURD.js";import"../../chunk-Q4PDOZVB.js";import"../../chunk-P34YRBM6.js";import"../../chunk-B4T3CMOF.js";import"../../chunk-475WQFFV.js";import"../../chunk-CQGMVPED.js";import"../../chunk-5UCWV6EJ.js";import"../../chunk-7UEIPZZD.js";import"../../chunk-PL34I4WI.js";import"../../chunk-2Y7E2F4F.js";import"../../chunk-XSGX6KV2.js";export{a as TypeDoc};
@@ -0,0 +1 @@
1
+ ._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}
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ columnWrapper: string;
3
+ contentBody: string;
4
+ sidebarHeader: string;
5
+ wrapper: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-ZXI72DLC.js";import"../../chunk-XSGX6KV2.js";export{a as default};
@@ -0,0 +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}@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}._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}._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}
@@ -0,0 +1,9 @@
1
+ export * from './Detail';
2
+ export * from './App';
3
+ export * from './Edit';
4
+ export * from './FullWidth';
5
+ export * from './Landing';
6
+ export * from './Newsletter';
7
+ export * from './Product';
8
+ export * from './PythonDoc';
9
+ export * from './TypeDoc';
@@ -0,0 +1 @@
1
+ import"../chunk-OGKKALEL.js";import"../chunk-PKAR7XZI.js";import{a as k}from"../chunk-PNBJEM6G.js";import{a as l}from"../chunk-BJ6T7WZV.js";import"../chunk-XVK33OXS.js";import{a as m}from"../chunk-365SCIKJ.js";import"../chunk-ZXI72DLC.js";import"../chunk-UA3BLLVS.js";import"../chunk-DE36TWIF.js";import"../chunk-NDZQ5OZP.js";import{a as g}from"../chunk-H3KZTXVJ.js";import"../chunk-BIWHBDPI.js";import{a as h}from"../chunk-IBOB6W4E.js";import{a as i}from"../chunk-UAKGMBD2.js";import{a as j}from"../chunk-ULGDXPWY.js";import{a as f}from"../chunk-IYWRLYME.js";import"../chunk-5CMT2ZB7.js";import{a as b}from"../chunk-HANSMKYF.js";import{a as c}from"../chunk-6OVRDMTN.js";import{a as d}from"../chunk-TG7BCCJ4.js";import{a as e}from"../chunk-X2LSXOCH.js";import"../chunk-PL5OYTQO.js";import{a}from"../chunk-DQ7NCUDO.js";import"../chunk-RSL4VOEW.js";import"../chunk-RWSFNK3E.js";import"../chunk-FTBY4K3Z.js";import"../chunk-DTW4UURD.js";import"../chunk-Q4PDOZVB.js";import"../chunk-P34YRBM6.js";import"../chunk-B4T3CMOF.js";import"../chunk-475WQFFV.js";import"../chunk-CQGMVPED.js";import"../chunk-5UCWV6EJ.js";import"../chunk-7UEIPZZD.js";import"../chunk-PL34I4WI.js";import"../chunk-2Y7E2F4F.js";import"../chunk-XSGX6KV2.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};
@@ -0,0 +1,34 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { Breadcrumb, LinkType } from '@jpmorganchase/mosaic-site-components';
3
+ import { FooterProps } from '@jpmorganchase/mosaic-site-components';
4
+ export declare type LayoutProps = {
5
+ children?: ReactNode;
6
+ className?: string;
7
+ ToCProps?: {
8
+ items: any;
9
+ };
10
+ SidebarProps?: {
11
+ helpLinks: Pick<FooterProps, 'helpLinks'>;
12
+ };
13
+ NextPrevLinksProps?: {
14
+ next?: LinkType;
15
+ prev?: LinkType;
16
+ };
17
+ BreadcrumbsProps?: {
18
+ breadcrumbs: typeof Breadcrumb[];
19
+ };
20
+ BackLinkProps?: {
21
+ label?: string;
22
+ link: string;
23
+ };
24
+ FooterProps?: any;
25
+ layout?: string;
26
+ meta?: {
27
+ data: {
28
+ [key: string]: any;
29
+ };
30
+ };
31
+ frontmatter?: {
32
+ [key: string]: any;
33
+ };
34
+ };
@@ -0,0 +1 @@
1
+ import"../chunk-XSGX6KV2.js";
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@jpmorganchase/mosaic-layouts",
3
+ "license": "Apache-2.0",
4
+ "description": "Mosaic - Layout Components",
5
+ "version": "0.1.0-beta.9",
6
+ "author": "",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "style": "./dist/index.css",
10
+ "scripts": {
11
+ "build": "npm-run-all --parallel build:*",
12
+ "build:bundle": "node ../../scripts/bundle.js",
13
+ "build:types": "tsc",
14
+ "clean": "del-cli 'dist/**' && find . -type d -empty -delete",
15
+ "dev": "node ../../scripts/bundle.js watch"
16
+ },
17
+ "devDependencies": {
18
+ "del-cli": "^4.0.1",
19
+ "esbuild-node-externals": "^1.0.2",
20
+ "jest-fetch-mock": "^3.0.1",
21
+ "typescript": "^4.8.3"
22
+ },
23
+ "dependencies": {
24
+ "@jpmorganchase/mosaic-components": "^0.1.0-beta.9",
25
+ "@jpmorganchase/mosaic-content-editor-plugin": "0.1.0-beta.9",
26
+ "@jpmorganchase/mosaic-site-components": "^0.1.0-beta.9",
27
+ "@jpmorganchase/mosaic-store": "^0.1.0-beta.9",
28
+ "@jpmorganchase/mosaic-theme": "^0.1.0-beta.9",
29
+ "@jpmorganchase/uitk-lab": "^0.8.0",
30
+ "@vanilla-extract/css": "^1.6.0",
31
+ "classnames": "^2.2.6",
32
+ "lodash": "^4.17.21",
33
+ "next": "^12.1.0",
34
+ "react-transition-group": "^4.4.5"
35
+ },
36
+ "peerDependencies": {
37
+ "@types/react": "^16.9.34",
38
+ "react": "^16.8.0",
39
+ "react-dom": "^16.9.0"
40
+ }
41
+ }
package/src/Fade.tsx ADDED
@@ -0,0 +1,48 @@
1
+ import React, { FC, useRef, useState } from 'react';
2
+ import { Transition } from 'react-transition-group';
3
+
4
+ const transitionStyles = {
5
+ entering: { opacity: 1 },
6
+ entered: { opacity: 1 },
7
+ exiting: { opacity: 0 },
8
+ exited: { opacity: 0 }
9
+ };
10
+
11
+ type FadeProps = {
12
+ children: React.ReactElement;
13
+ duration?: {
14
+ enter: number;
15
+ exit: number;
16
+ };
17
+ in: boolean;
18
+ };
19
+
20
+ export const Fade: React.FC<FadeProps> = ({ children, duration, in: inProp }) => {
21
+ const nodeRef = useRef(null);
22
+ const [hasExited, setHasExited] = useState<boolean>(false);
23
+ const defaultStyle = {
24
+ transition: `opacity ${duration?.enter}ms ease-in-out`,
25
+ opacity: 0
26
+ };
27
+ const handleExit = () => {
28
+ setHasExited(true);
29
+ };
30
+ if (hasExited) {
31
+ return children;
32
+ }
33
+ return (
34
+ <Transition nodeRef={nodeRef} in={inProp} timeout={duration} onExit={handleExit} unmountOnExit>
35
+ {state => (
36
+ <div
37
+ ref={nodeRef}
38
+ style={{
39
+ ...defaultStyle,
40
+ ...transitionStyles[state]
41
+ }}
42
+ >
43
+ {children}
44
+ </div>
45
+ )}
46
+ </Transition>
47
+ );
48
+ };
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { Spinner } from '@jpmorganchase/uitk-lab';
3
+ import { useRouter } from 'next/router';
4
+ import classnames from 'classnames';
5
+
6
+ import { useIsLoading } from '../hooks/useIsLoading';
7
+ import { Fade } from '../Fade';
8
+ import styles from './styles.css';
9
+
10
+ export const LayoutBase = ({
11
+ Header,
12
+ children,
13
+ className
14
+ }: {
15
+ Header?: React.ReactNode;
16
+ className?: string;
17
+ children?: React.ReactNode;
18
+ }) => {
19
+ // Add a delay before showing loading state, so loading screen doesn't appear if page loads quickly
20
+ const [isLoading, isLoadingNewBaseRoute] = useIsLoading({ loadingDelay: 50 });
21
+ return (
22
+ <div className={classnames(styles.root, className)}>
23
+ <header className={styles.header}>{Header}</header>
24
+ <main className={styles.main}>
25
+ <Fade duration={{ enter: 1200, exit: 500 }} in={isLoading || isLoadingNewBaseRoute}>
26
+ <div className={styles.overlayRoot}>
27
+ <div className={styles.overlayInner} />
28
+ <Spinner size="large" />
29
+ </div>
30
+ </Fade>
31
+ <React.Fragment key={useRouter().asPath.replace(/#.*$/, '')}>{children}</React.Fragment>
32
+ </main>
33
+ </div>
34
+ );
35
+ };
@@ -0,0 +1,73 @@
1
+ import { style, globalStyle } from '@vanilla-extract/css';
2
+ import {
3
+ backgroundColor,
4
+ config,
5
+ foregroundColor,
6
+ neutralBorder,
7
+ paragraph,
8
+ shadow
9
+ } from '@jpmorganchase/mosaic-theme';
10
+
11
+ globalStyle('#__next', {
12
+ height: '100%'
13
+ });
14
+
15
+ export default {
16
+ root: style([
17
+ {
18
+ minHeight: '100vh'
19
+ },
20
+ paragraph({ variant: 'paragraph2' }),
21
+ backgroundColor({ variant: 'regular' }),
22
+ foregroundColor({ variant: 'high' })
23
+ ]),
24
+
25
+ main: style({
26
+ width: '100%',
27
+ zIndex: 1,
28
+ position: 'relative'
29
+ }),
30
+
31
+ header: style([
32
+ {
33
+ display: 'flex',
34
+ justifyContent: 'stretch',
35
+ alignItems: 'center',
36
+ height: `${config.appHeader.height}px`,
37
+ width: '100%',
38
+ position: 'sticky',
39
+ top: 0,
40
+ // This is high so that the header can overlay the UITK component for mobile
41
+ // sidebars and menus. If Drawer (with a zIndex of 1300) is ever refactored, we should reduce
42
+ // this to a more sensible number.
43
+ zIndex: 1500
44
+ },
45
+ backgroundColor({ variant: 'regular' }),
46
+ neutralBorder({ variant: 'low', borderBottomWidth: 'thin' }),
47
+ shadow({ variant: 'elevation2' })
48
+ ]),
49
+
50
+ overlayRoot: style([
51
+ {
52
+ zIndex: 1501,
53
+ top: 0,
54
+ bottom: 0,
55
+ position: 'fixed',
56
+ display: 'flex',
57
+ left: 0,
58
+ right: 0,
59
+ justifyContent: 'center',
60
+ alignItems: 'center'
61
+ }
62
+ ]),
63
+
64
+ overlayInner: style([
65
+ backgroundColor({ variant: 'regular' }),
66
+ {
67
+ opacity: 0.95,
68
+ position: 'absolute',
69
+ width: '100%',
70
+ height: '100%'
71
+ }
72
+ ])
73
+ };
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+
4
+ import { SidebarLeft, SidebarRight } from '../Sidebars';
5
+ import styles from './styles.css';
6
+
7
+ export const LayoutColumns = ({
8
+ PrimarySidebar,
9
+ SecondarySidebar,
10
+ Footer,
11
+ children
12
+ }: {
13
+ PrimarySidebar?: React.ReactNode;
14
+ SecondarySidebar?: React.ReactNode;
15
+ Footer?: React.ReactNode;
16
+ children?: React.ReactNode;
17
+ }) => (
18
+ <div
19
+ className={classnames({
20
+ [styles.fullWidth]: !PrimarySidebar,
21
+ [styles.withSidebar]: PrimarySidebar
22
+ })}
23
+ >
24
+ {PrimarySidebar && <SidebarLeft>{PrimarySidebar}</SidebarLeft>}
25
+ <div className={styles.mainWrapper}>
26
+ <div className={styles.columnWrapper}>
27
+ <div className={styles.contentColumn}>
28
+ <main className={styles.contentBody}>{children}</main>
29
+ {Footer && Footer}
30
+ </div>
31
+
32
+ {SecondarySidebar && <SidebarRight>{SecondarySidebar}</SidebarRight>}
33
+ </div>
34
+ </div>
35
+ </div>
36
+ );
@@ -0,0 +1,64 @@
1
+ import { style } from '@vanilla-extract/css';
2
+ import { config, responsiveSprinkles } from '@jpmorganchase/mosaic-theme';
3
+
4
+ const styles = {
5
+ fullWidth: style([
6
+ style({
7
+ maxWidth: `${config.main.wideWidth}px`,
8
+ marginLeft: 'auto',
9
+ marginRight: 'auto'
10
+ }),
11
+ responsiveSprinkles({
12
+ marginTop: ['x10', 'x10', 'x20', 'x20'],
13
+ paddingLeft: ['x4', 'x6', 'x6', 'x6'],
14
+ paddingRight: ['x4', 'x6', 'x6', 'x6']
15
+ })
16
+ ]),
17
+ withSidebar: style([
18
+ style({
19
+ width: '100%',
20
+ zIndex: 1,
21
+ display: 'flex'
22
+ })
23
+ ]),
24
+
25
+ mainWrapper: style({
26
+ width: '100%',
27
+ minWidth: 0,
28
+ display: 'flex',
29
+ justifyContent: 'center'
30
+ }),
31
+
32
+ columnWrapper: style([
33
+ style({
34
+ display: 'flex',
35
+ width: '100%',
36
+ maxWidth: `${config.main.width}px`
37
+ }),
38
+ responsiveSprinkles({
39
+ paddingX: ['x8', 'x8', 'x8', 'x8']
40
+ })
41
+ ]),
42
+
43
+ contentColumn: style([
44
+ style({
45
+ display: 'flex',
46
+ flexDirection: 'column',
47
+ justifyContent: 'stretch',
48
+ zIndex: 2,
49
+ width: '100%'
50
+ }),
51
+ responsiveSprinkles({
52
+ paddingTop: ['x10', 'x10', 'x20', 'x20'],
53
+ marginRight: ['none', 'none', 'none', 'x6']
54
+ })
55
+ ]),
56
+
57
+ contentBody: style([
58
+ style({
59
+ flexGrow: 1
60
+ })
61
+ ])
62
+ };
63
+
64
+ export default styles;