Skip to content

Commit

Permalink
Extract from 8bc53499e326c7934c9b0382f1047c74c9b632f7
Browse files Browse the repository at this point in the history
  • Loading branch information
akeneo committed Jun 6, 2024
1 parent 79c1c56 commit 1abe8dc
Show file tree
Hide file tree
Showing 20 changed files with 292 additions and 13 deletions.
16 changes: 16 additions & 0 deletions lib/components/Input/MetricInput/MetricInput.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';
declare type MetricInputProps = {
amount: string;
onAmountChange: (amount: string) => void;
unit: string | null;
onUnitChange: (unit: string) => void;
unitOptions: {
value: string;
label: string | ((amount: string) => string);
}[];
openLabel: string;
min?: number;
max?: number;
};
export declare const MetricInput: React.FC<MetricInputProps>;
export {};
50 changes: 50 additions & 0 deletions lib/components/Input/MetricInput/MetricInput.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/components/Input/MetricInput/MetricInput.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/components/Input/NumberInput/NumberInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare type NumberInputProps = Override<Override<React.InputHTMLAttributes<HTML
step?: number;
invalid?: boolean;
onSubmit?: () => void;
withIncrementIcons?: boolean;
}>;
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
export { NumberInput };
Expand Down
4 changes: 2 additions & 2 deletions lib/components/Input/NumberInput/NumberInput.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/components/Input/NumberInput/NumberInput.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/components/Input/SelectInput/SelectInput.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1abe8dc

Please sign in to comment.