armstrong-react
Advanced tools
Comparing version 0.1.9 to 0.2.0
@@ -37,3 +37,3 @@ "use strict"; | ||
return (React.createElement("div", {className: classes}, | ||
React.createElement("div", {className: "dialog", style: style}, | ||
React.createElement("div", {className: "dialog", style: style, role: "dialog", "aria-hidden": !this.props.isOpen, "aria-labelledby": this.props.title, "aria-describedby": this.props.subtitle}, | ||
React.createElement(grid_1.Grid, null, | ||
@@ -40,0 +40,0 @@ React.createElement(grid_1.Row, {className: classBuilder_1.classNames("dialog-header", classBuilder_1.cd("dialog-header-no-title", !this.props.title)), fixed: true}, |
@@ -40,2 +40,3 @@ import * as React from "react"; | ||
componentDidMount(): void; | ||
checkMobile(width: number): void; | ||
handleEvent(e: any): void; | ||
@@ -42,0 +43,0 @@ onInputFocus(): void; |
@@ -114,16 +114,15 @@ "use strict"; | ||
DatePickerInput.prototype.componentDidMount = function () { | ||
var _this = this; | ||
this.inputElement = document.getElementById(this.inputElementId); | ||
this.bodyElement = document.getElementById(this.bodyElementId); | ||
this.checkMobile(window.innerWidth); | ||
window.addEventListener('mousedown', this); | ||
window.addEventListener('resize', function () { | ||
var width = window.innerWidth; | ||
if (width < 500 && !_this.state.isMobile) { | ||
_this.setState({ isMobile: true }); | ||
} | ||
if (width > 500 && _this.state.isMobile) { | ||
_this.setState({ isMobile: false }); | ||
} | ||
}); | ||
}; | ||
DatePickerInput.prototype.checkMobile = function (width) { | ||
if (width < 500 && !this.state.isMobile) { | ||
this.setState({ isMobile: true }); | ||
} | ||
if (width > 500 && this.state.isMobile) { | ||
this.setState({ isMobile: false }); | ||
} | ||
}; | ||
DatePickerInput.prototype.handleEvent = function (e) { | ||
@@ -167,3 +166,3 @@ if (this.mouseDownOnCalendar) { | ||
this.state.isMobile && | ||
React.createElement("div", {onClick: function () { return _this.onInputFocus(); }}, this.state.selectedDate.format(this.props.format)), | ||
React.createElement("div", {className: "fake-input", onClick: function () { return _this.onInputFocus(); }}, this.state.selectedDate.format(this.props.format)), | ||
React.createElement("div", {id: this.bodyElementId, className: classes}, | ||
@@ -170,0 +169,0 @@ React.createElement("div", {className: "date-picker-body-wrapper"}, |
@@ -15,1 +15,3 @@ export { IIconProps, Icon } from "./components/display/icon"; | ||
export { TextElementType, ITextProps, Text } from "./components/text/text"; | ||
export { Responsiveness, Color, Size, Side, CenterContentVertical, CenterContentHorizontal, CenterBoth, CenterContent, Spacing, Background, Foreground, SpacingType, ColorType, DisplayProps, LayoutProps, LayoutHelpers } from "./utilities/uiHelpers"; | ||
export { Icons } from "./utilities/icons"; |
@@ -33,1 +33,7 @@ "use strict"; | ||
exports.Text = text_1.Text; | ||
var uiHelpers_1 = require("./utilities/uiHelpers"); | ||
exports.SpacingType = uiHelpers_1.SpacingType; | ||
exports.ColorType = uiHelpers_1.ColorType; | ||
exports.LayoutHelpers = uiHelpers_1.LayoutHelpers; | ||
var icons_1 = require("./utilities/icons"); | ||
exports.Icons = icons_1.Icons; |
{ | ||
"name": "armstrong-react", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -31,2 +31,3 @@ "main": "./dist/index.js", | ||
"ntypescript": "^1.201604220008.1", | ||
"react": "^15.0.1", | ||
"ts-loader": "^0.8.2", | ||
@@ -33,0 +34,0 @@ "typescript": "^1.8.10", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
328395
9005
6
1