@fremtind/jkl-core
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -40,2 +40,9 @@ import React from 'react'; | ||
var breakpoints = { | ||
small: 768, | ||
medium: 992, | ||
large: 1200, | ||
xl: 1600 | ||
}; | ||
var ScreenReaderOnly = function ScreenReaderOnly(_ref) { | ||
@@ -49,2 +56,2 @@ var children = _ref.children, | ||
export { ScreenReaderOnly, getValuePair, initTabListener }; | ||
export { ScreenReaderOnly, breakpoints, getValuePair, initTabListener }; |
@@ -1,1 +0,1 @@ | ||
import e from"react";var t=!1;function n(){if(!t){t=!0;var e=document.querySelector("html");e&&e.setAttribute("data-mousenavigation","true"),document.removeEventListener("mousedown",n),document.addEventListener("keydown",o)}}function o(e){if("Tab"===e.key&&t){t=!1;var r=document.querySelector("html");r&&r.removeAttribute("data-mousenavigation"),document.removeEventListener("keydown",o),document.addEventListener("mousedown",n)}}function r(){"undefined"!=typeof document&&document.addEventListener("mousedown",n)}function u(e){return"string"==typeof e?{value:e,label:e}:e}var a=function(t){var n=t.children,o=t.showOnFocus;return e.createElement("span",{className:"jkl-sr-only ".concat(o?"jkl-sr-only--focusable":"")},n)};export{a as ScreenReaderOnly,u as getValuePair,r as initTabListener}; | ||
import e from"react";var t=!1;function n(){if(!t){t=!0;var e=document.querySelector("html");e&&e.setAttribute("data-mousenavigation","true"),document.removeEventListener("mousedown",n),document.addEventListener("keydown",o)}}function o(e){if("Tab"===e.key&&t){t=!1;var r=document.querySelector("html");r&&r.removeAttribute("data-mousenavigation"),document.removeEventListener("keydown",o),document.addEventListener("mousedown",n)}}function r(){"undefined"!=typeof document&&document.addEventListener("mousedown",n)}function u(e){return"string"==typeof e?{value:e,label:e}:e}var a={small:768,medium:992,large:1200,xl:1600},d=function(t){var n=t.children,o=t.showOnFocus;return e.createElement("span",{className:"jkl-sr-only ".concat(o?"jkl-sr-only--focusable":"")},n)};export{d as ScreenReaderOnly,a as breakpoints,u as getValuePair,r as initTabListener}; |
@@ -46,2 +46,9 @@ 'use strict'; | ||
var breakpoints = { | ||
small: 768, | ||
medium: 992, | ||
large: 1200, | ||
xl: 1600 | ||
}; | ||
var ScreenReaderOnly = function ScreenReaderOnly(_ref) { | ||
@@ -56,3 +63,4 @@ var children = _ref.children, | ||
exports.ScreenReaderOnly = ScreenReaderOnly; | ||
exports.breakpoints = breakpoints; | ||
exports.getValuePair = getValuePair; | ||
exports.initTabListener = initTabListener; |
@@ -40,2 +40,9 @@ import React from 'react'; | ||
var breakpoints = { | ||
small: 768, | ||
medium: 992, | ||
large: 1200, | ||
xl: 1600 | ||
}; | ||
var ScreenReaderOnly = function ScreenReaderOnly(_ref) { | ||
@@ -49,2 +56,2 @@ var children = _ref.children, | ||
export { ScreenReaderOnly, getValuePair, initTabListener }; | ||
export { ScreenReaderOnly, breakpoints, getValuePair, initTabListener }; |
@@ -1,1 +0,1 @@ | ||
import e from"react";var t=!1;function n(){if(!t){t=!0;var e=document.querySelector("html");e&&e.setAttribute("data-mousenavigation","true"),document.removeEventListener("mousedown",n),document.addEventListener("keydown",o)}}function o(e){if("Tab"===e.key&&t){t=!1;var r=document.querySelector("html");r&&r.removeAttribute("data-mousenavigation"),document.removeEventListener("keydown",o),document.addEventListener("mousedown",n)}}function r(){"undefined"!=typeof document&&document.addEventListener("mousedown",n)}function u(e){return"string"==typeof e?{value:e,label:e}:e}var a=function(t){var n=t.children,o=t.showOnFocus;return e.createElement("span",{className:"jkl-sr-only ".concat(o?"jkl-sr-only--focusable":"")},n)};export{a as ScreenReaderOnly,u as getValuePair,r as initTabListener}; | ||
import e from"react";var t=!1;function n(){if(!t){t=!0;var e=document.querySelector("html");e&&e.setAttribute("data-mousenavigation","true"),document.removeEventListener("mousedown",n),document.addEventListener("keydown",o)}}function o(e){if("Tab"===e.key&&t){t=!1;var r=document.querySelector("html");r&&r.removeAttribute("data-mousenavigation"),document.removeEventListener("keydown",o),document.addEventListener("mousedown",n)}}function r(){"undefined"!=typeof document&&document.addEventListener("mousedown",n)}function u(e){return"string"==typeof e?{value:e,label:e}:e}var a={small:768,medium:992,large:1200,xl:1600},d=function(t){var n=t.children,o=t.showOnFocus;return e.createElement("span",{className:"jkl-sr-only ".concat(o?"jkl-sr-only--focusable":"")},n)};export{d as ScreenReaderOnly,a as breakpoints,u as getValuePair,r as initTabListener}; |
@@ -1,2 +0,2 @@ | ||
export { initTabListener, getValuePair } from "./utils"; | ||
export { initTabListener, getValuePair, breakpoints } from "./utils"; | ||
export { ScreenReaderOnly } from "./components"; | ||
@@ -3,0 +3,0 @@ export declare type LabelVariant = "small" | "medium" | "large"; |
export { initTabListener } from "./tabListener"; | ||
export { getValuePair } from "./getValuePair"; | ||
export { breakpoints } from "./breakpoints"; |
@@ -6,2 +6,21 @@ # Change Log | ||
# [4.0.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-core@3.0.0...@fremtind/jkl-core@4.0.0) (2020-03-05) | ||
### Features | ||
* **core:** add new func colors, remove illustration colors ([7847426](https://github.com/fremtind/jokul/commit/7847426fe77f723cd68085d4d995b3d867693c86)) | ||
* **core:** update warning and error colors ([13f6976](https://github.com/fremtind/jokul/commit/13f697673012acd39d5d8ecb6fd835805d2e18b2)) | ||
* **links:** add indicator for external links ([4562e46](https://github.com/fremtind/jokul/commit/4562e469cf865b9d5f04f133d1db37450bbd2731)) | ||
* **react-hooks:** add hook for responsivity in js ([4c36d27](https://github.com/fremtind/jokul/commit/4c36d27a8928a329e4ead16636f7f5a33d6b423f)) | ||
### BREAKING CHANGES | ||
* **core:** Removes illustration colors: sand, jord, sol, blomst, skog, hav | ||
# [3.0.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-core@2.0.1...@fremtind/jkl-core@3.0.0) (2020-02-18) | ||
@@ -8,0 +27,0 @@ |
{ | ||
"name": "@fremtind/jkl-core", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"publishConfig": { | ||
@@ -57,3 +57,3 @@ "access": "public" | ||
], | ||
"gitHead": "c4b043d2ac66a4cb18a77b20d5e7bb6f680b4b74" | ||
"gitHead": "8934422f5b382e4b2a21aa886e566775390ecf28" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110174
58
1781