@stella-source/stellasource-dsl 0.1.1 → 0.1.3

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,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { NumberInputProps } from "./types";
3
- declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, ariaDescribedBy, }: NumberInputProps) => React.JSX.Element;
3
+ declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, }: NumberInputProps) => React.JSX.Element;
4
4
  export default NumberInput;
@@ -27,6 +27,7 @@ export interface NumberInputProps {
27
27
  rightCategory?: `${TextFieldRightCategory}`;
28
28
  thousandSeparator?: boolean;
29
29
  decimalPlaces?: number;
30
+ allowNegativeNumbers?: boolean;
30
31
  /** for any extra text elements that need to be associated */
31
32
  ariaDescribedBy?: string;
32
33
  htmlProps?: HTMLAttributes<HTMLInputElement>;
package/dist/index.d.ts CHANGED
@@ -221,12 +221,13 @@ interface NumberInputProps {
221
221
  rightCategory?: `${TextFieldRightCategory}`;
222
222
  thousandSeparator?: boolean;
223
223
  decimalPlaces?: number;
224
+ allowNegativeNumbers?: boolean;
224
225
  /** for any extra text elements that need to be associated */
225
226
  ariaDescribedBy?: string;
226
227
  htmlProps?: HTMLAttributes<HTMLInputElement>;
227
228
  }
228
229
 
229
- declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, ariaDescribedBy, }: NumberInputProps) => React.JSX.Element;
230
+ declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, }: NumberInputProps) => React.JSX.Element;
230
231
 
231
232
  declare const Styles: {
232
233
  color: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"