feat: Update currency parsing methods and enhance showcase styling
This commit is contained in:
@@ -41,7 +41,7 @@ export const InputCurrency = (props: InputCurrencyProps) => {
|
||||
* Note: never rounds or modifies the underlying value
|
||||
*/
|
||||
const parser = (displayValue: string | undefined) => {
|
||||
return currencyService.parse(displayValue);
|
||||
return currencyService.parseToRaw(displayValue);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -31,16 +31,16 @@ import { InputNumberProps, InputStatusType, VALID_INPUT_STATUSES } from '../type
|
||||
|
||||
// Handler Icons (Chevron Modern)
|
||||
const UpIcon = () => (
|
||||
<span className="input-number-handler-up-inner flex items-center justify-center w-full h-full">
|
||||
<svg viewBox="0 0 16 16" width="1em" height="1em" fill="currentColor" className="w-2.5 h-2.5">
|
||||
<span className="input-number-action-up-inner flex items-center justify-center w-full h-full">
|
||||
<svg viewBox="0 0 16 16" width="1em" height="1em" fill="currentColor" className="w-3 h-3">
|
||||
<path d="M8.5 6.5L12 10 5 10z" />
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
|
||||
const DownIcon = () => (
|
||||
<span className="input-number-handler-down-inner flex items-center justify-center w-full h-full">
|
||||
<svg viewBox="0 0 16 16" width="1em" height="1em" fill="currentColor" className="w-2.5 h-2.5">
|
||||
<span className="input-number-action-down-inner flex items-center justify-center w-full h-full">
|
||||
<svg viewBox="0 0 16 16" width="1em" height="1em" fill="currentColor" className="w-3 h-3">
|
||||
<path d="M8.5 9.5L5 6 12 6z" />
|
||||
</svg>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user