@progress/kendo-react-inputs 5.1.0-dev.202202230917 → 5.1.0-dev.202202250754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import * as React from 'react';
2
13
  import * as PropTypes from 'prop-types';
3
14
  import { useInternationalization, useLocalization } from '@progress/kendo-react-intl';
@@ -249,8 +260,7 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
249
260
  }, [forceUpdate]);
250
261
  var isValid = !validityStylesGetter() || validityGetter().valid;
251
262
  var numerictextbox = (React.createElement("span", { dir: props.dir, style: !props.label
252
- ? { width: props.width }
253
- : undefined, className: classNames('k-input', 'k-numerictextbox', (_a = {},
263
+ ? __assign({ width: props.width }, props.style) : props.style, className: classNames('k-input', 'k-numerictextbox', (_a = {},
254
264
  _a["k-input-" + (kendoThemeMaps.sizeMap[props.size] || props.size)] = props.size,
255
265
  _a["k-input-" + props.fillMode] = props.fillMode,
256
266
  _a["k-rounded-" + (kendoThemeMaps.roundedMap[props.rounded] || props.rounded)] = props.rounded,
@@ -259,7 +269,7 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
259
269
  _a['k-required'] = props.required,
260
270
  _a['k-disabled'] = props.disabled,
261
271
  _a), props.className), "aria-disabled": props.disabled ? 'true' : undefined },
262
- React.createElement("input", { value: looseValue === null ? '' : looseValue, tabIndex: getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
272
+ React.createElement("input", { value: looseValue === null ? '' : looseValue, tabIndex: getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, style: props.inputStyle, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
263
273
  props.children,
264
274
  props.spinners &&
265
275
  (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: onMouseDown },
@@ -165,5 +165,13 @@ export interface NumericTextBoxProps extends FormComponentProps {
165
165
  * @default `solid`
166
166
  */
167
167
  fillMode?: null | 'solid' | 'flat' | 'outline';
168
+ /**
169
+ * Represents the `style` HTML attribute.
170
+ */
171
+ style?: React.CSSProperties;
172
+ /**
173
+ * Represents the input element `style` HTML attribute.
174
+ */
175
+ inputStyle?: React.CSSProperties;
168
176
  }
169
177
  export {};
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-inputs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1645606895,
8
+ publishDate: 1645774710,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  var React = require("react");
4
15
  var PropTypes = require("prop-types");
@@ -251,8 +262,7 @@ exports.NumericTextBox = React.forwardRef(function (directProps, target) {
251
262
  }, [forceUpdate]);
252
263
  var isValid = !validityStylesGetter() || validityGetter().valid;
253
264
  var numerictextbox = (React.createElement("span", { dir: props.dir, style: !props.label
254
- ? { width: props.width }
255
- : undefined, className: kendo_react_common_1.classNames('k-input', 'k-numerictextbox', (_a = {},
265
+ ? __assign({ width: props.width }, props.style) : props.style, className: kendo_react_common_1.classNames('k-input', 'k-numerictextbox', (_a = {},
256
266
  _a["k-input-" + (kendo_react_common_1.kendoThemeMaps.sizeMap[props.size] || props.size)] = props.size,
257
267
  _a["k-input-" + props.fillMode] = props.fillMode,
258
268
  _a["k-rounded-" + (kendo_react_common_1.kendoThemeMaps.roundedMap[props.rounded] || props.rounded)] = props.rounded,
@@ -261,7 +271,7 @@ exports.NumericTextBox = React.forwardRef(function (directProps, target) {
261
271
  _a['k-required'] = props.required,
262
272
  _a['k-disabled'] = props.disabled,
263
273
  _a), props.className), "aria-disabled": props.disabled ? 'true' : undefined },
264
- React.createElement("input", { value: looseValue === null ? '' : looseValue, tabIndex: kendo_react_common_1.getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
274
+ React.createElement("input", { value: looseValue === null ? '' : looseValue, tabIndex: kendo_react_common_1.getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, style: props.inputStyle, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
265
275
  props.children,
266
276
  props.spinners &&
267
277
  (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: onMouseDown },
@@ -165,5 +165,13 @@ export interface NumericTextBoxProps extends FormComponentProps {
165
165
  * @default `solid`
166
166
  */
167
167
  fillMode?: null | 'solid' | 'flat' | 'outline';
168
+ /**
169
+ * Represents the `style` HTML attribute.
170
+ */
171
+ style?: React.CSSProperties;
172
+ /**
173
+ * Represents the input element `style` HTML attribute.
174
+ */
175
+ inputStyle?: React.CSSProperties;
168
176
  }
169
177
  export {};
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-inputs',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1645606895,
10
+ publishDate: 1645774710,
11
11
  version: '',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
13
13
  };