Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

fix(number-input): fix for React #230

Merged
merged 1 commit into from
Dec 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions gulp-tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ const filter = require('gulp-filter');
const sourcemaps = require('gulp-sourcemaps');
const babel = require('gulp-babel');
const sass = require('gulp-sass');
const plumber = require('gulp-plumber');
const postcss = require('gulp-postcss');
const cleanCSS = require('gulp-clean-css');
const prettier = require('gulp-prettier');
const typescript = require('gulp-typescript');
const header = require('gulp-header');
const through2 = require('through2');
const log = require('fancy-log');
const stripComments = require('strip-comments');
const autoprefixer = require('autoprefixer');
const rtlcss = require('rtlcss');
Expand Down Expand Up @@ -78,7 +76,6 @@ const cssStream = ({ banner, dir }) =>
)
.pipe(prettier())
.pipe(header(banner))
.on('error', log)
.pipe(gulp.dest(path.resolve(config.jsDestDir)));

module.exports = {
Expand Down Expand Up @@ -118,7 +115,6 @@ module.exports = {
await promisifyStream(() =>
gulp
.src([`${config.srcDir}/components/**/*.ts`, `!${config.srcDir}/**/*-story*.ts*`, `!${config.srcDir}/**/stories/*.ts`])
.pipe(plumber())
.pipe(
babel({
babelrc: false,
Expand All @@ -133,7 +129,6 @@ module.exports = {
)
.pipe(prettier())
.pipe(header(banner))
.on('error', log)
.pipe(gulp.dest(`${config.jsDestDir}/components-react`))
);
},
Expand All @@ -149,7 +144,6 @@ module.exports = {
`!${config.srcDir}/**/*.d.ts`,
`!${config.srcDir}/index-with-polyfills.ts`,
])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(
babel({
Expand Down Expand Up @@ -181,7 +175,6 @@ module.exports = {
)
// Avoids generating `.js` from interface-only `.ts` files
.pipe(filter(file => stripComments(file.contents.toString(), { sourceType: 'module' }).replace(/\s/g, '')))
.on('error', log)
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(config.jsDestDir))
);
Expand All @@ -196,7 +189,6 @@ module.exports = {
`!${config.srcDir}/**/*-story*.ts*`,
`!${config.srcDir}/**/stories/**/*.ts*`,
])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(tsProject());
return dts
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.14.0",
"eslint-restricted-globals": "^0.2.0",
"fancy-log": "^1.3.0",
"flatpickr": "4.6.1",
"globby": "^10.0.0",
"gulp": "^4.0.0",
Expand All @@ -126,7 +125,6 @@
"gulp-filter": "^6.0.0",
"gulp-header": "^2.0.0",
"gulp-jsdoc3": "^1.0.0",
"gulp-plumber": "^1.2.0",
"gulp-postcss": "^8.0.0",
"gulp-prettier": "^2.1.0",
"gulp-sass": "^4.0.0",
Expand Down
24 changes: 12 additions & 12 deletions src/components/number-input/number-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,38 +50,38 @@ export default class BXNumberInput extends BXInput {
* The minimum value allowed in the input
*/
@property({ reflect: true })
set min(value) {
this._min = value;
}

get min() {
return this._min.toString();
}

set min(value) {
this._min = value;
}

/**
* The maximum value allowed in the input
*/
@property({ reflect: true })
set max(value) {
this._max = value;
}

get max() {
return this._max.toString();
}

set max(value) {
this._max = value;
}

/**
* The amount the value should increase or decrease by
*/
@property({ reflect: true })
set step(value) {
this._step = value;
}

get step() {
return this._step.toString();
}

set step(value) {
this._step = value;
}

/**
* Set to `true` to enable the mobile variant of the number input
*/
Expand Down