Skip to content

Commit

Permalink
Prepare Release 1.19.0 (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgray authored Jun 9, 2017
1 parent eecb707 commit f5f6406
Show file tree
Hide file tree
Showing 12 changed files with 3,805 additions and 1,775 deletions.
22 changes: 11 additions & 11 deletions docs/blueprint-landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -2580,28 +2580,28 @@ a.pt-button {

.pt-card {
border-radius: 3px;
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.15);
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.15), 0 0 0 rgba(16, 22, 26, 0), 0 0 0 rgba(16, 22, 26, 0);
background-color: #ffffff;
padding: 20px;
transition: box-shadow 200ms cubic-bezier(0.4, 1, 0.75, 0.9), -webkit-transform 200ms cubic-bezier(0.4, 1, 0.75, 0.9);
transition: transform 200ms cubic-bezier(0.4, 1, 0.75, 0.9), box-shadow 200ms cubic-bezier(0.4, 1, 0.75, 0.9);
transition: transform 200ms cubic-bezier(0.4, 1, 0.75, 0.9), box-shadow 200ms cubic-bezier(0.4, 1, 0.75, 0.9), -webkit-transform 200ms cubic-bezier(0.4, 1, 0.75, 0.9); }
.pt-card.pt-dark,
.pt-dark .pt-card {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.4);
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.4), 0 0 0 rgba(16, 22, 26, 0), 0 0 0 rgba(16, 22, 26, 0);
background-color: #30404d; }

.pt-elevation-0 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.15); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.15), 0 0 0 rgba(16, 22, 26, 0), 0 0 0 rgba(16, 22, 26, 0); }
.pt-elevation-0.pt-dark,
.pt-dark .pt-elevation-0 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.4); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.4), 0 0 0 rgba(16, 22, 26, 0), 0 0 0 rgba(16, 22, 26, 0); }

.pt-elevation-1 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 1px 1px rgba(16, 22, 26, 0.2); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.2); }
.pt-elevation-1.pt-dark,
.pt-dark .pt-elevation-1 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 1px 1px rgba(16, 22, 26, 0.4); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.4); }

.pt-elevation-2 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 1px 1px rgba(16, 22, 26, 0.2), 0 2px 6px rgba(16, 22, 26, 0.2); }
Expand Down Expand Up @@ -2630,11 +2630,11 @@ a.pt-button {

.pt-card.pt-interactive:active {
opacity: 0.9;
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 1px 1px rgba(16, 22, 26, 0.2);
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.2);
transition-duration: 0; }
.pt-card.pt-interactive:active.pt-dark,
.pt-dark .pt-card.pt-interactive:active {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 1px 1px rgba(16, 22, 26, 0.4); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.4); }

.pt-collapse {
height: 0;
Expand Down Expand Up @@ -5257,17 +5257,17 @@ button.pt-menu-item {
.pt-navbar {
position: relative;
z-index: 10;
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 1px 1px rgba(16, 22, 26, 0.2);
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.1), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.2);
background-color: #ffffff;
height: 50px;
padding: 0 15px; }
.pt-navbar.pt-dark,
.pt-dark .pt-navbar {
background-color: #394b59; }
.pt-navbar.pt-dark {
box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.2), 0 1px 1px rgba(16, 22, 26, 0.4); }
box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.2), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.4); }
.pt-dark .pt-navbar {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 1px 1px rgba(16, 22, 26, 0.4); }
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 0 0 rgba(16, 22, 26, 0), 0 1px 1px rgba(16, 22, 26, 0.4); }
.pt-navbar.pt-fixed-top {
position: fixed;
top: 0;
Expand Down
28 changes: 15 additions & 13 deletions docs/blueprint-landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -30569,11 +30569,13 @@
// ===================
_this.handleDecrementButtonClick = function (e) {
var delta = _this.getIncrementDelta(IncrementDirection.DOWN, e.shiftKey, e.altKey);
_this.incrementValue(delta);
var nextValue = _this.incrementValue(delta);
_this.invokeValueCallback(nextValue, _this.props.onButtonClick);
};
_this.handleIncrementButtonClick = function (e) {
var delta = _this.getIncrementDelta(IncrementDirection.UP, e.shiftKey, e.altKey);
_this.incrementValue(delta);
var nextValue = _this.incrementValue(delta);
_this.invokeValueCallback(nextValue, _this.props.onButtonClick);
};
_this.handleButtonFocus = function () {
_this.setState({ isButtonGroupFocused: true });
Expand Down Expand Up @@ -30614,7 +30616,7 @@
var sanitizedValue = _this.getSanitizedValue(value);
_this.setState(tslib_1.__assign({}, baseStateChange, { value: sanitizedValue }));
if (value !== sanitizedValue) {
_this.invokeOnValueChangeCallback(sanitizedValue);
_this.invokeValueCallback(sanitizedValue, _this.props.onValueChange);
}
}
else {
Expand Down Expand Up @@ -30673,7 +30675,7 @@
}
_this.shouldSelectAfterUpdate = false;
_this.setState({ value: nextValue });
_this.invokeOnValueChangeCallback(nextValue);
_this.invokeValueCallback(nextValue, _this.props.onValueChange);
};
_this.state = {
stepMaxPrecision: _this.getStepMaxPrecision(props),
Expand All @@ -30695,7 +30697,7 @@
// outside of the new bounds, then clamp the value to the new valid range.
if (didBoundsChange && sanitizedValue !== this.state.value) {
this.setState({ stepMaxPrecision: stepMaxPrecision, value: sanitizedValue });
this.invokeOnValueChangeCallback(sanitizedValue);
this.invokeValueCallback(sanitizedValue, this.props.onValueChange);
}
else {
this.setState({ stepMaxPrecision: stepMaxPrecision, value: value });
Expand All @@ -30711,6 +30713,7 @@
"large",
"majorStepSize",
"minorStepSize",
"onButtonClick",
"onValueChange",
"selectAllOnFocus",
"selectAllOnIncrement",
Expand Down Expand Up @@ -30783,20 +30786,19 @@
};
return (React.createElement(buttons_1.Button, { disabled: this.props.disabled || this.props.readOnly, iconName: iconName, intent: this.props.intent, key: key, onBlur: this.handleButtonBlur, onClick: onClick, onFocus: this.handleButtonFocus, onKeyUp: onKeyUp }));
};
NumericInput.prototype.invokeOnValueChangeCallback = function (value) {
var valueAsString = value;
var valueAsNumber = +value; // coerces non-numeric strings to NaN
common_1.Utils.safeInvoke(this.props.onValueChange, valueAsNumber, valueAsString);
NumericInput.prototype.invokeValueCallback = function (value, callback) {
common_1.Utils.safeInvoke(callback, +value, value);
};
// Value Helpers
// =============
NumericInput.prototype.incrementValue = function (delta /*, e: React.FormEvent<HTMLInputElement>*/) {
NumericInput.prototype.incrementValue = function (delta) {
// pretend we're incrementing from 0 if currValue is empty
var currValue = this.state.value || NumericInput_1.VALUE_ZERO;
var nextValue = this.getSanitizedValue(currValue, delta);
this.shouldSelectAfterUpdate = this.props.selectAllOnIncrement;
this.setState({ value: nextValue });
this.invokeOnValueChangeCallback(nextValue);
this.invokeValueCallback(nextValue, this.props.onValueChange);
return nextValue;
};
NumericInput.prototype.getIncrementDelta = function (direction, isShiftKeyPressed, isAltKeyPressed) {
var _a = this.props, majorStepSize = _a.majorStepSize, minorStepSize = _a.minorStepSize, stepSize = _a.stepSize;
Expand Down Expand Up @@ -33098,8 +33100,8 @@
targetTabElement.click();
}
};
_this.handleTabClick = function (newTabId) {
utils_1.safeInvoke(_this.props.onChange, newTabId, _this.state.selectedTabId);
_this.handleTabClick = function (newTabId, event) {
utils_1.safeInvoke(_this.props.onChange, newTabId, _this.state.selectedTabId, event);
if (_this.props.selectedTabId === undefined) {
_this.setState({ selectedTabId: newTabId });
}
Expand Down
86 changes: 64 additions & 22 deletions docs/docs/site-docs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit f5f6406

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prepare Release 1.19.0 (#1211)

Preview: documentation
Coverage: core | datetime

Please sign in to comment.