fis-component 0.2.1 → 0.2.2

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/esm/index.js CHANGED
@@ -5549,7 +5549,7 @@ const DivWrapperSC$5 = styled.div `
5549
5549
  `;
5550
5550
 
5551
5551
  const FISInputStepper$1 = forwardRef((props, ref) => {
5552
- const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, ...rest } = props;
5552
+ const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, className, ...rest } = props;
5553
5553
  const [count, setCount] = useState(defaultValue !== undefined ? defaultValue : undefined);
5554
5554
  const handleIncrement = () => {
5555
5555
  setCount((prev) => {
@@ -5580,7 +5580,7 @@ const FISInputStepper$1 = forwardRef((props, ref) => {
5580
5580
  "input-text-lg": sizeInput === "lg",
5581
5581
  }), children: [jsx(FISIconButton$1, { icon: StartIcon ? StartIcon : jsx(DecreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleDecrement, disabled: min !== undefined && count !== undefined && count <= min, className: classNames("decrement", {
5582
5582
  "disabled-button": disabled || readOnly,
5583
- }) }), jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames({
5583
+ }) }), jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames(className, {
5584
5584
  negative: negative,
5585
5585
  "input-text-lg": sizeInput === "lg",
5586
5586
  }), onChange: handleChange }), jsx(FISIconButton$1, { icon: EndIcon ? EndIcon : jsx(IncreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleIncrement, disabled: max !== undefined && count !== undefined && count >= max, className: classNames("increment", {