@transferwise/components 0.0.0-experimental-4553cce → 0.0.0-experimental-c02d699

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,11 @@
1
- export function addNoScrollClass(): void;
2
- export function removeNoScrollClass(): void;
1
+ /**
2
+ * Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)
3
+ *
4
+ * CSS class needs to be applied for `html` and not `body`, as this doing both will break any position sticky in the document.
5
+ */
6
+ export declare const addNoScrollClass: () => void;
7
+ /**
8
+ * Clean up after {@link addNoScrollClass} function
9
+ */
10
+ export declare const removeNoScrollClass: () => void;
3
11
  //# sourceMappingURL=DOMOperations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DOMOperations.d.ts","sourceRoot":"","sources":["../../../../src/common/DOMOperations/DOMOperations.js"],"names":[],"mappings":"AAUO,yCAEN;AAKM,4CAEN"}
1
+ {"version":3,"file":"DOMOperations.d.ts","sourceRoot":"","sources":["../../../../src/common/DOMOperations/DOMOperations.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAE5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,YAE/B,CAAC"}
@@ -1,4 +1,2 @@
1
- import { addNoScrollClass } from "./DOMOperations";
2
- import { removeNoScrollClass } from "./DOMOperations";
3
- export { addNoScrollClass, removeNoScrollClass };
1
+ export { addNoScrollClass, removeNoScrollClass } from './DOMOperations';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/DOMOperations/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/DOMOperations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { default } from "./FocusBoundary";
1
+ export { default } from './FocusBoundary';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/focusBoundary/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/focusBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-4553cce",
3
+ "version": "0.0.0-experimental-c02d699",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -93,8 +93,8 @@
93
93
  "react-intl": "^5.10.0",
94
94
  "rollup": "^3.28.1",
95
95
  "storybook": "^7.6.17",
96
- "@transferwise/neptune-css": "14.9.6",
97
96
  "@transferwise/less-config": "3.1.0",
97
+ "@transferwise/neptune-css": "14.9.6",
98
98
  "@wise/components-theming": "1.1.0"
99
99
  },
100
100
  "peerDependencies": {
@@ -0,0 +1 @@
1
+ export { addNoScrollClass, removeNoScrollClass } from './DOMOperations';
@@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
3
3
 
4
4
  import { Layout } from '../propsValues/layouts';
5
5
 
6
- import FlowHeader from './FlowHeader';
6
+ import FlowHeader, { FlowHeaderProps } from './FlowHeader';
7
7
 
8
8
  describe('FlowHeader', () => {
9
9
  const props = {
@@ -11,7 +11,7 @@ describe('FlowHeader', () => {
11
11
  rightContent: 'rightContent',
12
12
  bottomContent: 'bottomContent',
13
13
  className: 'className',
14
- };
14
+ } satisfies FlowHeaderProps;
15
15
  it('renders as expected', () => {
16
16
  expect(render(<FlowHeader {...props} />).container).toMatchSnapshot();
17
17
  });
@@ -1,3 +0,0 @@
1
- import { addNoScrollClass, removeNoScrollClass } from './DOMOperations';
2
-
3
- export { addNoScrollClass, removeNoScrollClass };
File without changes