1mpacto-react-ui 1.0.6 → 1.0.7
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/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +240 -223
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Button/Button.config.d.ts +1 -1
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +1 -1
- package/dist/src/components/NumberFormat/NumberFormat.d.ts +2 -1
- package/dist/src/components/NumberFormat/NumberFormat.stories.d.ts +21 -2
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +1 -1
- package/dist/src/interfaces/components/NumberFormat/index.d.ts +6 -5
- package/dist/src/utils/common.d.ts +2 -1
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const configButton: {
|
|
|
32
32
|
variants: {
|
|
33
33
|
'primary-laba-blue-10': string;
|
|
34
34
|
'primary-red-700-dsb_laba-grey-06': string;
|
|
35
|
-
'primary-green-700': string;
|
|
35
|
+
'primary-green-700-dsb_laba-grey-06': string;
|
|
36
36
|
'ghost-laba-blue-10': string;
|
|
37
37
|
'ghost-red-700': string;
|
|
38
38
|
'ghost-green-700': string;
|
|
@@ -32,7 +32,7 @@ export declare const configButton: {
|
|
|
32
32
|
variants: {
|
|
33
33
|
'primary-laba-blue-10': string;
|
|
34
34
|
'primary-red-700-dsb_laba-grey-06': string;
|
|
35
|
-
'primary-green-700': string;
|
|
35
|
+
'primary-green-700-dsb_laba-grey-06': string;
|
|
36
36
|
'filled-laba-white_laba-blue-10': string;
|
|
37
37
|
'filled-laba-white_laba-red-05': string;
|
|
38
38
|
'ghost-laba-blue-10': string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { InputAttributes } from 'react-number-format';
|
|
1
2
|
import { INumberFormat } from '../../interfaces/components/NumberFormat';
|
|
2
3
|
|
|
3
|
-
declare const NumberFormat: ({ max, min, selectedText, onChange, onFocusInput, ...otherProps }: INumberFormat) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const NumberFormat: <BaseType = InputAttributes>({ max, min, selectedText, onChange, onFocusInput, ...otherProps }: INumberFormat<BaseType>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default NumberFormat;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ max, min, selectedText, onChange, onFocusInput, ...otherProps }: import('../../interfaces/components/NumberFormat').INumberFormat) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: <BaseType = import('react-number-format').InputAttributes>({ max, min, selectedText, onChange, onFocusInput, ...otherProps }: import('../../interfaces/components/NumberFormat').INumberFormat<BaseType>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -395,7 +395,26 @@ declare const meta: {
|
|
|
395
395
|
args: {
|
|
396
396
|
onChange: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
397
397
|
};
|
|
398
|
-
render: (args: import('
|
|
398
|
+
render: (args: import('react-number-format/types/types').InternalNumberFormatBase & {
|
|
399
|
+
thousandSeparator?: boolean | string;
|
|
400
|
+
decimalSeparator?: string;
|
|
401
|
+
allowedDecimalSeparators?: Array<string>;
|
|
402
|
+
thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
|
|
403
|
+
decimalScale?: number;
|
|
404
|
+
fixedDecimalScale?: boolean;
|
|
405
|
+
allowNegative?: boolean;
|
|
406
|
+
allowLeadingZeros?: boolean;
|
|
407
|
+
suffix?: string;
|
|
408
|
+
prefix?: string;
|
|
409
|
+
} & Omit<import('react-number-format').InputAttributes, never> & Omit<unknown, "type" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "ref" | "prefix" | "inputMode" | "onMouseUp" | "displayType" | "renderText" | "getInputRef" | "valueIsNumericString" | "onValueChange" | "isAllowed" | "isCharacterSame" | "thousandSeparator" | "decimalSeparator" | "allowedDecimalSeparators" | "thousandsGroupStyle" | "decimalScale" | "fixedDecimalScale" | "allowNegative" | "allowLeadingZeros" | "suffix"> & {
|
|
410
|
+
customInput?: import('react').ComponentType<unknown> | undefined;
|
|
411
|
+
} & {
|
|
412
|
+
[key: string]: unknown;
|
|
413
|
+
max?: import('../../..').TBigNumber | undefined;
|
|
414
|
+
min?: import('../../..').TBigNumber | undefined;
|
|
415
|
+
selectedText?: string;
|
|
416
|
+
onFocusInput?: (value: string) => void;
|
|
417
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
399
418
|
};
|
|
400
419
|
export default meta;
|
|
401
420
|
type Story = StoryObj<typeof meta>;
|
|
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
* [ID] : Tipe varian tombol yang tersedia.
|
|
5
5
|
* [EN] : Available button variant types.
|
|
6
6
|
*/
|
|
7
|
-
export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-blue-gray-500_bg-blue-gray-50' | 'filled-bill-secondary-800_bg-white';
|
|
7
|
+
export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700-dsb_laba-grey-06' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-blue-gray-500_bg-blue-gray-50' | 'filled-bill-secondary-800_bg-white';
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Tipe ukuran tombol.
|
|
10
10
|
* [EN] : Button size type.
|
|
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
* [ID] : Tipe varian tombol ikon.
|
|
5
5
|
* [EN] : Button icon variant types.
|
|
6
6
|
*/
|
|
7
|
-
export type TButtonIcomVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'secondary-red-700' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
|
|
7
|
+
export type TButtonIcomVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700-dsb_laba-grey-06' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'secondary-red-700' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Tipe ukuran tombol ikon.
|
|
10
10
|
* [EN] : Button icon size type.
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { NumericFormatProps } from 'react-number-format';
|
|
1
|
+
import { InputAttributes, NumericFormatProps } from 'react-number-format';
|
|
2
|
+
import { TBigNumber } from '../../../config/bigNumber';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* [ID] : Interface untuk komponen NumberFormat.
|
|
5
6
|
* [EN] : Interface for NumberFormat component.
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type INumberFormat<BaseType = InputAttributes> = NumericFormatProps<BaseType> & {
|
|
8
9
|
/**
|
|
9
10
|
* [ID] : Nilai maksimum (opsional).
|
|
10
11
|
* [EN] : Maximum value (optional).
|
|
11
12
|
*/
|
|
12
|
-
max?:
|
|
13
|
+
max?: TBigNumber | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* [ID] : Nilai minimum (opsional).
|
|
15
16
|
* [EN] : Minimum value (optional).
|
|
16
17
|
*/
|
|
17
|
-
min?:
|
|
18
|
+
min?: TBigNumber | undefined;
|
|
18
19
|
/**
|
|
19
20
|
* [ID] : Properti dinamis lainnya.
|
|
20
21
|
* [EN] : Other dynamic properties.
|
|
@@ -31,4 +32,4 @@ export interface INumberFormat extends NumericFormatProps {
|
|
|
31
32
|
* @param value - [ID] : Nilai input. [EN] : Input value.
|
|
32
33
|
*/
|
|
33
34
|
onFocusInput?: (value: string) => void;
|
|
34
|
-
}
|
|
35
|
+
};
|
|
@@ -5,7 +5,8 @@ import { TBigNumber, TypeBigNumber } from '../config/bigNumber';
|
|
|
5
5
|
export declare const isAccurateBigNumber: (value: unknown) => boolean;
|
|
6
6
|
export declare const isAccurateNumber: (value: unknown) => boolean;
|
|
7
7
|
export declare function parseBigDecimal<T extends {
|
|
8
|
-
|
|
8
|
+
minimumFractionDigits?: number;
|
|
9
|
+
maximumFractionDigits?: number;
|
|
9
10
|
instance?: boolean;
|
|
10
11
|
}>(value: number | string, options?: T): T['instance'] extends true ? TypeBigNumber : string;
|
|
11
12
|
export declare const parseDecimal: (value: number | string, decimals?: number) => number;
|