myoperator-ui 0.0.172-beta.0 → 0.0.172-beta.1
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.
- package/dist/index.js +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -946,7 +946,11 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
946
946
|
return (
|
|
947
947
|
<input
|
|
948
948
|
type={type}
|
|
949
|
-
className={cn(
|
|
949
|
+
className={cn(
|
|
950
|
+
inputVariants({ state, className }),
|
|
951
|
+
type === "number" &&
|
|
952
|
+
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
|
|
953
|
+
)}
|
|
950
954
|
ref={ref}
|
|
951
955
|
{...props}
|
|
952
956
|
/>
|
|
@@ -1690,6 +1694,7 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
1690
1694
|
onChange,
|
|
1691
1695
|
disabled,
|
|
1692
1696
|
id,
|
|
1697
|
+
type,
|
|
1693
1698
|
...props
|
|
1694
1699
|
},
|
|
1695
1700
|
ref
|
|
@@ -1730,14 +1735,21 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
1730
1735
|
const ariaDescribedBy = error ? errorId : helperText ? helperId : undefined;
|
|
1731
1736
|
|
|
1732
1737
|
// Render the input element
|
|
1738
|
+
const numberSpinnerClasses =
|
|
1739
|
+
type === "number"
|
|
1740
|
+
? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
|
|
1741
|
+
: undefined;
|
|
1742
|
+
|
|
1733
1743
|
const inputElement = (
|
|
1734
1744
|
<input
|
|
1735
1745
|
ref={ref}
|
|
1736
1746
|
id={inputId}
|
|
1747
|
+
type={type}
|
|
1737
1748
|
className={cn(
|
|
1738
1749
|
hasAddons
|
|
1739
1750
|
? "flex-1 bg-transparent border-0 outline-none focus:ring-0 px-0 h-full text-sm text-semantic-text-primary placeholder:text-semantic-text-placeholder disabled:cursor-not-allowed"
|
|
1740
|
-
: textFieldInputVariants({ state: derivedState, className })
|
|
1751
|
+
: textFieldInputVariants({ state: derivedState, className }),
|
|
1752
|
+
numberSpinnerClasses
|
|
1741
1753
|
)}
|
|
1742
1754
|
disabled={disabled || loading}
|
|
1743
1755
|
maxLength={maxLength}
|