@licklist/design 0.66.5 → 0.66.6

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.
@@ -5,7 +5,7 @@ export type PageBodyProps = PropsWithChildren<{
5
5
  } & HTMLAttributes<HTMLDivElement>>;
6
6
  export declare const PageBody: {
7
7
  ({ leftBlock, rightBlock, className, children, ...props }: PageBodyProps): JSX.Element;
8
- LeftBlock: ({ pageTitle, children, className, component, childrenClassName, ...props }: import("./components/LeftBlock").LeftBlockProps) => JSX.Element;
8
+ LeftBlock: ({ pageTitle, children, className, component, hasScroll, childrenClassName, ...props }: import("./components/LeftBlock").LeftBlockProps) => JSX.Element;
9
9
  RightBlock: ({ children, bottomBlock, className, ...props }: import("./components/RightBlock").RightBlockProps) => JSX.Element;
10
10
  };
11
11
  //# sourceMappingURL=PageBody.d.ts.map
@@ -3,6 +3,7 @@ export type LeftBlockProps = PropsWithChildren<{
3
3
  pageTitle?: ReactNode;
4
4
  component?: ReactNode;
5
5
  childrenClassName?: string;
6
+ hasScroll?: boolean;
6
7
  } & HTMLAttributes<HTMLDivElement>>;
7
- export declare const LeftBlock: ({ pageTitle, children, className, component, childrenClassName, ...props }: LeftBlockProps) => JSX.Element;
8
+ export declare const LeftBlock: ({ pageTitle, children, className, component, hasScroll, childrenClassName, ...props }: LeftBlockProps) => JSX.Element;
8
9
  //# sourceMappingURL=LeftBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LeftBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAC5C;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS,+EAOnB,cAAc,gBA+BhB,CAAC"}
1
+ {"version":3,"file":"LeftBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAC5C;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,cAAc,CAAC,cAAc,CAAC,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS,0FAQnB,cAAc,gBAmChB,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),l=e(require("react")),a=e(require("clsx")),i=require("../../constants.js"),s=require("@licklist/plugins/dist/context/page/PageContext"),n=require("../../hooks/useResizePageBody.js");exports.LeftBlock=function(e){var r=e.pageTitle,c=e.children,o=e.className,u=e.component,d=e.childrenClassName,m=t.__rest(e,["pageTitle","children","className","component","childrenClassName"]),f=n.useResizePageBody(),g=f.leftBlockStyles,p=f.leftBlockContainerSizes;return l.createElement("div",t.__assign({className:a("left-block",o)},m),l.createElement("div",{className:"navigation"},r&&l.createElement(l.Fragment,null,"string"==typeof r?l.createElement("div",{className:"title",id:"navigation-title"},r):r),u),l.createElement("div",{className:a("left-block-container",d),style:g,id:i.PAGE_LEFT_BLOCK_CONTAINER_ID},l.createElement(s.PageContextProvider,{leftBlockContainerSizes:p},c)))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),l=e(require("react")),a=e(require("clsx")),i=require("../../constants.js"),s=require("@licklist/plugins/dist/context/page/PageContext"),r=require("../../hooks/useResizePageBody.js");exports.LeftBlock=function(e){var n=e.pageTitle,o=e.children,c=e.className,d=e.component,u=e.hasScroll,m=void 0===u||u,f=e.childrenClassName,g=t.__rest(e,["pageTitle","children","className","component","hasScroll","childrenClassName"]),v=r.useResizePageBody(),p=v.leftBlockStyles,N=v.leftBlockContainerSizes;return l.createElement("div",t.__assign({className:a("left-block",c)},g),l.createElement("div",{className:"navigation"},n&&l.createElement(l.Fragment,null,"string"==typeof n?l.createElement("div",{className:"title",id:"navigation-title"},n):n),d),l.createElement("div",{className:a("left-block-container",f),style:m?p:void 0,id:i.PAGE_LEFT_BLOCK_CONTAINER_ID},l.createElement(s.PageContextProvider,{leftBlockContainerSizes:m?N:void 0},o)))};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.66.5",
3
+ "version": "0.66.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -177,7 +177,8 @@
177
177
  },
178
178
  "resolutions": {
179
179
  "@types/react": "17.0.2",
180
- "@types/react-dom": "17.0.2"
180
+ "@types/react-dom": "17.0.2",
181
+ "cheerio": "0.22.0"
181
182
  },
182
183
  "lint-staged": {
183
184
  "*.{ts,tsx}": [
@@ -9,6 +9,7 @@ export type LeftBlockProps = PropsWithChildren<
9
9
  pageTitle?: ReactNode;
10
10
  component?: ReactNode;
11
11
  childrenClassName?: string;
12
+ hasScroll?: boolean;
12
13
  } & HTMLAttributes<HTMLDivElement>
13
14
  >;
14
15
 
@@ -17,6 +18,7 @@ export const LeftBlock = ({
17
18
  children,
18
19
  className,
19
20
  component,
21
+ hasScroll = true,
20
22
  childrenClassName,
21
23
  ...props
22
24
  }: LeftBlockProps) => {
@@ -41,10 +43,14 @@ export const LeftBlock = ({
41
43
  </div>
42
44
  <div
43
45
  className={clsx("left-block-container", childrenClassName)}
44
- style={leftBlockStyles}
46
+ style={hasScroll ? leftBlockStyles : undefined}
45
47
  id={PAGE_LEFT_BLOCK_CONTAINER_ID}
46
48
  >
47
- <PageContextProvider leftBlockContainerSizes={leftBlockContainerSizes}>
49
+ <PageContextProvider
50
+ leftBlockContainerSizes={
51
+ hasScroll ? leftBlockContainerSizes : undefined
52
+ }
53
+ >
48
54
  {children}
49
55
  </PageContextProvider>
50
56
  </div>