@tradeshift/elements
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "@tradeshift/elements", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"src": "src/core.js", | ||
@@ -15,3 +15,3 @@ "main": "lib/core.umd.js", | ||
}, | ||
"gitHead": "a40f2b733b10bbc573ade7d66b39041459213810" | ||
"gitHead": "d0ea80e217c6b4da934c0ad9f2e510bf4db76adb" | ||
} |
import { LitElement, unsafeCSS } from 'lit-element'; | ||
import commonCSS from './common.css'; | ||
import { constants } from './utils'; | ||
export { constants, helpers } from './utils'; | ||
export { constants, helpers, CloseOnEscBehavior } from './utils'; | ||
@@ -16,3 +16,3 @@ export function customElementDefineHelper(name, component) { | ||
} | ||
// TODO: Remove this when changed rtl to dir in ohter components | ||
// TODO: Remove this when changed rtl to dir in other components | ||
get bodyHasRTL() { | ||
@@ -19,0 +19,0 @@ return document.body.getAttribute('dir') === 'rtl'; |
@@ -38,1 +38,9 @@ import msgs from './messages'; | ||
}; | ||
export const keyboardEventKeys = { | ||
ESCAPE: 'Escape' | ||
}; | ||
export const keyboardEventKeyCodes = { | ||
ESCAPE: 27 | ||
}; |
@@ -0,1 +1,3 @@ | ||
import { keyboardEventKeys, keyboardEventKeyCodes } from './constants'; | ||
export const classNamesToSelector = classNamesObject => { | ||
@@ -24,1 +26,5 @@ const selectors = {}; | ||
}; | ||
// Keycode check for IE11 | ||
export const isEscapeKeyEvent = event => | ||
event.key === keyboardEventKeys.ESCAPE || event.keyCode === keyboardEventKeyCodes.ESCAPE; |
import * as constantsData from './constants'; | ||
import * as helperFunctions from './helper-functions'; | ||
import { CloseOnEscBehavior as closeBehavior } from './behaviors'; | ||
export const constants = constantsData; | ||
export const helpers = helperFunctions; | ||
export const CloseOnEscBehavior = closeBehavior; |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
340100
15
3532
1