@sb1/ffe-modals-react 0.5.10 → 0.6.0

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/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @sb1/ffe-modals-react
2
+
3
+ ## Install
4
+
5
+ ```
6
+ npm install --save @sb1/ffe-modals-react
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ Full documentation on lists usage is available at https://design.sparebank1.no/komponenter/modal/.
12
+
13
+ This package depends on `@sb1/ffe-icons-react`.
14
+ Make sure you import the less-files.
15
+
16
+ ## Development
17
+
18
+ To start a local development server, run the following from the designsystem root folder:
19
+
20
+ ```bash
21
+ npm install
22
+ npm run build
23
+ npm start
24
+ ```
25
+
26
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
27
+
28
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
package/es/Modal.js CHANGED
@@ -24,6 +24,7 @@ import React, { useEffect, useImperativeHandle, useState, useRef } from 'react';
24
24
  import { createPortal } from 'react-dom';
25
25
  import classnames from 'classnames';
26
26
  import { CloseButton } from './CloseButton';
27
+ /* Remove me */
27
28
  export var Modal = React.forwardRef(function (_a, ref) {
28
29
  var children = _a.children, onClick = _a.onClick, ariaLabelledby = _a.ariaLabelledby, className = _a.className, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, onClose = _a.onClose, portalContainer = _a.portalContainer, rest = __rest(_a, ["children", "onClick", "ariaLabelledby", "className", "locale", "onClose", "portalContainer"]);
29
30
  // SSR does not have access to document/window etc.
@@ -1 +1 @@
1
- {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.2"}
1
+ {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.3"}
package/lib/Modal.js CHANGED
@@ -53,6 +53,7 @@ var react_1 = __importStar(require("react"));
53
53
  var react_dom_1 = require("react-dom");
54
54
  var classnames_1 = __importDefault(require("classnames"));
55
55
  var CloseButton_1 = require("./CloseButton");
56
+ /* Remove me */
56
57
  exports.Modal = react_1.default.forwardRef(function (_a, ref) {
57
58
  var children = _a.children, onClick = _a.onClick, ariaLabelledby = _a.ariaLabelledby, className = _a.className, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, onClose = _a.onClose, portalContainer = _a.portalContainer, rest = __rest(_a, ["children", "onClick", "ariaLabelledby", "className", "locale", "onClose", "portalContainer"]);
58
59
  // SSR does not have access to document/window etc.
@@ -1 +1 @@
1
- {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.2"}
1
+ {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-modals-react",
3
- "version": "0.5.10",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank 1",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "test:watch": "ffe-buildtool jest --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@sb1/ffe-icons-react": "^11.0.9",
29
- "@sb1/ffe-modals": "^0.3.4",
28
+ "@sb1/ffe-icons-react": "^11.0.10",
29
+ "@sb1/ffe-modals": "^0.4.0",
30
30
  "dialog-polyfill": "^0.5.6"
31
31
  },
32
32
  "devDependencies": {
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "671f9cd4a5c589643d12589a4454f40994eabb28"
44
+ "gitHead": "2dddf8a88d8da7d967ad00140e1bfb7b17dcdecb"
45
45
  }
@@ -1 +1 @@
1
- {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.2"}
1
+ {"root":["../src/CloseButton.tsx","../src/Modal.tsx","../src/ModalBlock.tsx","../src/index.ts","../src/texts.ts","../src/types.ts"],"version":"5.6.3"}