feat: Update currency parsing methods and enhance showcase styling

This commit is contained in:
Firman Ramdhani
2026-01-28 17:24:57 +07:00
parent 883f42f598
commit 47f365d1a7
5 changed files with 13 additions and 13 deletions
@@ -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>