uniforms-bootstrap4
Advanced tools
Comparing version 3.0.0-rc.6 to 3.0.0-rc.7
@@ -1,8 +0,3 @@ | ||
declare module 'uniforms' { | ||
interface FilterDOMProps { | ||
grid: never; | ||
} | ||
} | ||
declare type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; | ||
export default function gridClassName(grid?: number | string | Partial<Record<GridSize, number>>, side?: 'input' | 'label'): string; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var uniforms_1 = require("uniforms"); | ||
uniforms_1.filterDOMProps.register('grid'); | ||
function gridClassNamePart(size, value, side) { | ||
@@ -7,0 +5,0 @@ var sizeInfix = size === 'xs' ? '' : size + "-"; |
@@ -5,3 +5,2 @@ "use strict"; | ||
var classnames_1 = tslib_1.__importDefault(require("classnames")); | ||
var omit_1 = tslib_1.__importDefault(require("lodash/omit")); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
@@ -12,3 +11,3 @@ var uniforms_1 = require("uniforms"); | ||
var _a; | ||
return wrapField_1.default(omit_1.default(props, ['value', 'onChange']), react_1.default.createElement("textarea", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
return wrapField_1.default(props, react_1.default.createElement("textarea", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
@@ -15,0 +14,0 @@ }), disabled: props.disabled, id: props.id, name: props.name, onChange: function (event) { return props.onChange(event.target.value); }, placeholder: props.placeholder, ref: props.inputRef, rows: props.rows, value: (_a = props.value) !== null && _a !== void 0 ? _a : '' })); |
@@ -5,3 +5,2 @@ "use strict"; | ||
var classnames_1 = tslib_1.__importDefault(require("classnames")); | ||
var omit_1 = tslib_1.__importDefault(require("lodash/omit")); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
@@ -12,3 +11,3 @@ var uniforms_1 = require("uniforms"); | ||
var _a; | ||
return wrapField_1.default(omit_1.default(props, ['value', 'onChange']), react_1.default.createElement("input", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
return wrapField_1.default(props, react_1.default.createElement("input", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
@@ -15,0 +14,0 @@ }), disabled: props.disabled, id: props.id, max: props.max, min: props.min, name: props.name, onChange: function (event) { |
@@ -11,6 +11,6 @@ "use strict"; | ||
var _a, _b; | ||
return wrapField_1.default(omit_1.default(props, ['value', 'onChange', 'autoComplete']), react_1.default.createElement("input", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
return wrapField_1.default(omit_1.default(props, ['autoComplete']), react_1.default.createElement("input", { autoComplete: props.autoComplete, className: classnames_1.default(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
}), autoComplete: props.autoComplete, disabled: props.disabled, id: props.id, name: props.name, onChange: function (event) { return props.onChange(event.target.value); }, placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
}), disabled: props.disabled, id: props.id, name: props.name, onChange: function (event) { return props.onChange(event.target.value); }, placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
exports.default = uniforms_1.connectField(Text, { kind: 'leaf' }); |
@@ -22,2 +22,7 @@ import { HTMLProps, ReactNode } from 'react'; | ||
...props }: WrapperProps, children: ReactNode): JSX.Element; | ||
declare module 'uniforms' { | ||
interface FilterDOMProps { | ||
grid: never; | ||
} | ||
} | ||
export {}; |
@@ -25,3 +25,3 @@ "use strict"; | ||
row: grid, | ||
}) }, uniforms_1.filterDOMProps(omit_1.default(props, [ | ||
}) }, omit_1.default(uniforms_1.filterDOMProps(props), [ | ||
'checkboxes', | ||
@@ -33,3 +33,3 @@ 'inline', | ||
'transform', | ||
]))), | ||
])), | ||
label && (react_1.default.createElement("label", { htmlFor: id, className: classnames_1.default({ | ||
@@ -36,0 +36,0 @@ 'col-form-label': grid, |
@@ -1,8 +0,3 @@ | ||
declare module 'uniforms' { | ||
interface FilterDOMProps { | ||
grid: never; | ||
} | ||
} | ||
declare type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; | ||
export default function gridClassName(grid?: number | string | Partial<Record<GridSize, number>>, side?: 'input' | 'label'): string; | ||
export {}; |
@@ -1,3 +0,1 @@ | ||
import { filterDOMProps } from 'uniforms'; | ||
filterDOMProps.register('grid'); | ||
function gridClassNamePart(size, value, side) { | ||
@@ -4,0 +2,0 @@ const sizeInfix = size === 'xs' ? '' : `${size}-`; |
import classnames from 'classnames'; | ||
import omit from 'lodash/omit'; | ||
import React from 'react'; | ||
@@ -8,3 +7,3 @@ import { connectField } from 'uniforms'; | ||
var _a; | ||
return wrapField(omit(props, ['value', 'onChange']), React.createElement("textarea", { className: classnames(props.inputClassName, 'form-control', { | ||
return wrapField(props, React.createElement("textarea", { className: classnames(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
@@ -11,0 +10,0 @@ }), disabled: props.disabled, id: props.id, name: props.name, onChange: event => props.onChange(event.target.value), placeholder: props.placeholder, ref: props.inputRef, rows: props.rows, value: (_a = props.value) !== null && _a !== void 0 ? _a : '' })); |
import classnames from 'classnames'; | ||
import omit from 'lodash/omit'; | ||
import React from 'react'; | ||
@@ -8,3 +7,3 @@ import { connectField } from 'uniforms'; | ||
var _a; | ||
return wrapField(omit(props, ['value', 'onChange']), React.createElement("input", { className: classnames(props.inputClassName, 'form-control', { | ||
return wrapField(props, React.createElement("input", { className: classnames(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
@@ -11,0 +10,0 @@ }), disabled: props.disabled, id: props.id, max: props.max, min: props.min, name: props.name, onChange: event => { |
@@ -8,6 +8,6 @@ import classnames from 'classnames'; | ||
var _a, _b; | ||
return wrapField(omit(props, ['value', 'onChange', 'autoComplete']), React.createElement("input", { className: classnames(props.inputClassName, 'form-control', { | ||
return wrapField(omit(props, ['autoComplete']), React.createElement("input", { autoComplete: props.autoComplete, className: classnames(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
}), autoComplete: props.autoComplete, disabled: props.disabled, id: props.id, name: props.name, onChange: event => props.onChange(event.target.value), placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
}), disabled: props.disabled, id: props.id, name: props.name, onChange: event => props.onChange(event.target.value), placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
export default connectField(Text, { kind: 'leaf' }); |
@@ -22,2 +22,7 @@ import { HTMLProps, ReactNode } from 'react'; | ||
...props }: WrapperProps, children: ReactNode): JSX.Element; | ||
declare module 'uniforms' { | ||
interface FilterDOMProps { | ||
grid: never; | ||
} | ||
} | ||
export {}; |
@@ -23,3 +23,3 @@ import { __rest } from "tslib"; | ||
row: grid, | ||
}) }, filterDOMProps(omit(props, [ | ||
}) }, omit(filterDOMProps(props), [ | ||
'checkboxes', | ||
@@ -31,3 +31,3 @@ 'inline', | ||
'transform', | ||
]))), | ||
])), | ||
label && (React.createElement("label", { htmlFor: id, className: classnames({ | ||
@@ -34,0 +34,0 @@ 'col-form-label': grid, |
{ | ||
"name": "uniforms-bootstrap4", | ||
"version": "3.0.0-rc.6", | ||
"version": "3.0.0-rc.7", | ||
"license": "MIT", | ||
@@ -36,6 +36,6 @@ "main": "es5/index.js", | ||
"tslib": "^1.10.0", | ||
"uniforms": "^3.0.0-rc.6", | ||
"uniforms": "^3.0.0-rc.7", | ||
"warning": "^4.0.0" | ||
}, | ||
"gitHead": "609bc4db78edba6795fde467b068df3df4969d52" | ||
"gitHead": "27681eb8621469b6ecd15d11ca7acbfee665feab" | ||
} |
@@ -1,11 +0,1 @@ | ||
import { filterDOMProps } from 'uniforms'; | ||
declare module 'uniforms' { | ||
interface FilterDOMProps { | ||
grid: never; | ||
} | ||
} | ||
filterDOMProps.register('grid'); | ||
function gridClassNamePart( | ||
@@ -12,0 +2,0 @@ size: string, |
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
165234
3211
Updateduniforms@^3.0.0-rc.7