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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5569,7 +5569,7 @@ const DivWrapperSC$5 = styled.div `
|
|
|
5569
5569
|
`;
|
|
5570
5570
|
|
|
5571
5571
|
const FISInputStepper$1 = React.forwardRef((props, ref) => {
|
|
5572
|
-
const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, ...rest } = props;
|
|
5572
|
+
const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, className, ...rest } = props;
|
|
5573
5573
|
const [count, setCount] = React.useState(defaultValue !== undefined ? defaultValue : undefined);
|
|
5574
5574
|
const handleIncrement = () => {
|
|
5575
5575
|
setCount((prev) => {
|
|
@@ -5600,7 +5600,7 @@ const FISInputStepper$1 = React.forwardRef((props, ref) => {
|
|
|
5600
5600
|
"input-text-lg": sizeInput === "lg",
|
|
5601
5601
|
}), children: [jsxRuntime.jsx(FISIconButton$1, { icon: StartIcon ? StartIcon : jsxRuntime.jsx(DecreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleDecrement, disabled: min !== undefined && count !== undefined && count <= min, className: classNames("decrement", {
|
|
5602
5602
|
"disabled-button": disabled || readOnly,
|
|
5603
|
-
}) }), jsxRuntime.jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames({
|
|
5603
|
+
}) }), jsxRuntime.jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames(className, {
|
|
5604
5604
|
negative: negative,
|
|
5605
5605
|
"input-text-lg": sizeInput === "lg",
|
|
5606
5606
|
}), onChange: handleChange }), jsxRuntime.jsx(FISIconButton$1, { icon: EndIcon ? EndIcon : jsxRuntime.jsx(IncreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleIncrement, disabled: max !== undefined && count !== undefined && count >= max, className: classNames("increment", {
|