onix-chess-ctrls
Advanced tools
Comparing version 1.6.25 to 1.6.27
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
export interface WhoMoveSelectorProps extends FormControlProps { | ||
defaultTurn?: Color; | ||
defaultValue?: Color; | ||
onChangeTurn?: (color: Color) => void; | ||
@@ -8,0 +8,0 @@ } |
@@ -24,4 +24,4 @@ import { __assign, __extends, __rest } from "tslib"; | ||
WhoMoveSelector.prototype.render = function () { | ||
var _a = this.props, defaultTurn = _a.defaultTurn, onChangeTurn = _a.onChangeTurn, size = _a.size, otherProps = __rest(_a, ["defaultTurn", "onChangeTurn", "size"]); | ||
return (React.createElement(FormControl, __assign({ as: "select", size: size, onChange: this.onChange, defaultValue: defaultTurn }, otherProps), | ||
var _a = this.props, defaultValue = _a.defaultValue, onChangeTurn = _a.onChangeTurn, size = _a.size, otherProps = __rest(_a, ["defaultValue", "onChangeTurn", "size"]); | ||
return (React.createElement(FormControl, __assign({ as: "select", size: size, onChange: this.onChange, defaultValue: defaultValue.toString() }, otherProps), | ||
React.createElement("option", { value: "white" }, Intl.t("chess-ctrls", "white_move")), | ||
@@ -31,3 +31,3 @@ React.createElement("option", { value: "black" }, Intl.t("chess-ctrls", "black_move")))); | ||
WhoMoveSelector.defaultProps = { | ||
defaultTurn: 'white', | ||
defaultValue: 'white', | ||
size: 'sm', | ||
@@ -34,0 +34,0 @@ }; |
{ | ||
"name": "onix-chess-ctrls", | ||
"version": "1.6.25", | ||
"version": "1.6.27", | ||
"description": "Chess related controls", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,0 +0,0 @@ export { PieceSelector, PieceSelectorProps } from './ctrls/PieceSelector'; |
@@ -0,0 +0,0 @@ export { PieceSelectorTest } from './PieceSelectorTest'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
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
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
67727