1mpacto-react-ui 1.0.8 → 1.0.10
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/index.cjs +57 -57
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +890 -880
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Collapse/CollapseV2.d.ts +1 -1
- package/dist/src/components/Collapse/CollapseV2.stories.d.ts +14 -1
- package/dist/src/interfaces/components/Collapse/index.d.ts +5 -0
- package/dist/src/utils/common.d.ts +6 -0
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ICollapseV2 } from '../../interfaces/components/Collapse';
|
|
2
2
|
|
|
3
|
-
declare const CollapseV2: ({ children, open, className, id, classNameContainer }: ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CollapseV2: ({ children, open, className, id, classNameContainer, maxCollapsedHeight }: ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default CollapseV2;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ children, open, className, id, classNameContainer }: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ children, open, className, id, classNameContainer, maxCollapsedHeight }: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -67,6 +67,19 @@ declare const meta: {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
+
maxCollapsedHeight: {
|
|
71
|
+
control: "text";
|
|
72
|
+
description: string;
|
|
73
|
+
table: {
|
|
74
|
+
category: string;
|
|
75
|
+
type: {
|
|
76
|
+
summary: string;
|
|
77
|
+
};
|
|
78
|
+
defaultValue: {
|
|
79
|
+
summary: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
70
83
|
};
|
|
71
84
|
render: (args: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
72
85
|
};
|
|
@@ -76,4 +76,9 @@ export interface ICollapseV2 {
|
|
|
76
76
|
* [EN] : CSS class name for container (optional).
|
|
77
77
|
*/
|
|
78
78
|
classNameContainer?: string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* [ID] : Tinggi maksimum saat collapsed (opsional).
|
|
81
|
+
* [EN] : Maximum height when collapsed (optional).
|
|
82
|
+
*/
|
|
83
|
+
maxCollapsedHeight?: number | string;
|
|
79
84
|
}
|
|
@@ -55,6 +55,7 @@ export declare function transformSecondTime(secs: number, option?: {
|
|
|
55
55
|
minute: string | number;
|
|
56
56
|
second: string | number;
|
|
57
57
|
};
|
|
58
|
+
export declare function isObject(item: unknown): item is Record<string, unknown>;
|
|
58
59
|
export declare function mergeObjects<T>(target: T, ...sources: unknown[]): T;
|
|
59
60
|
export declare function deleteKeysMutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
60
61
|
export declare function deleteKeysImmutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
@@ -64,6 +65,11 @@ export declare function deepMerge<T, S>(target: T, source: S, options?: {
|
|
|
64
65
|
}): T & S;
|
|
65
66
|
export declare const transformNumber: (val: string) => number;
|
|
66
67
|
export declare const transformBigNumber: (val: TBigNumber) => string;
|
|
68
|
+
export declare const transformBigNumberOpt: (val: TBigNumber, options?: {
|
|
69
|
+
minimumFractionDigits?: number;
|
|
70
|
+
maximumFractionDigits?: number;
|
|
71
|
+
ignoreFractionLimit?: boolean;
|
|
72
|
+
}) => string;
|
|
67
73
|
export declare const transfromIsNan: (value: number) => number | undefined;
|
|
68
74
|
export declare const setDigit: (value: number | string) => string | 0 | null;
|
|
69
75
|
export declare function parseFileName(fileName: string): {
|