@scbt-ecom/ui 0.71.0 → 0.71.2
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/{index-B-4hL4-d.js → index-Cgp0l1lv.js} +4 -1
- package/dist/{index-B-4hL4-d.js.map → index-Cgp0l1lv.js.map} +1 -1
- package/dist/ui.js +2 -2
- package/dist/widget.js +1047 -1048
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/model/utils.d.ts +2 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +3 -8
- package/package.json +3 -2
|
@@ -4,8 +4,8 @@ import { CalculatorViewProps } from '../CalculatorView';
|
|
|
4
4
|
import { InfoListItemMode } from '../ui';
|
|
5
5
|
import { CalculatorSuffix, ValueWithFormula } from './types';
|
|
6
6
|
export declare const isFormula: (value: ValueWithFormula | string) => value is ValueWithFormula;
|
|
7
|
-
export declare const formatWithIntl: (suffix: CalculatorSuffix, value: number) => string;
|
|
8
|
-
export declare const formatValueToRenderInfoItem: (renderMode: InfoListItemMode, value: string) => string;
|
|
7
|
+
export declare const formatWithIntl: (suffix: CalculatorSuffix, value: number) => string | null;
|
|
8
|
+
export declare const formatValueToRenderInfoItem: (renderMode: InfoListItemMode, value: string) => string | null;
|
|
9
9
|
export declare const getCalculatorSchema: <T extends FieldValues>(props: CalculatorViewProps<T>["calculatorFieldsConfig"]["fieldsGroup"]) => z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}, {
|
|
@@ -3,14 +3,9 @@ import { AssistHintProps } from './AssistHint';
|
|
|
3
3
|
import { ButtonProps } from '../../../../../shared/ui';
|
|
4
4
|
export interface CalculatorInfoFooterProps {
|
|
5
5
|
assistHint?: AssistHintProps;
|
|
6
|
-
buttonsConfig: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
secondaryBtn?: ButtonProps & {
|
|
11
|
-
handlerOptions: ButtonHandlerOptions;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
6
|
+
buttonsConfig: Array<ButtonProps & {
|
|
7
|
+
handlerOptions: ButtonHandlerOptions;
|
|
8
|
+
}>;
|
|
14
9
|
bottomDescription?: string;
|
|
15
10
|
}
|
|
16
11
|
export declare const CalculatorInfoFooter: ({ assistHint, buttonsConfig, bottomDescription }: CalculatorInfoFooterProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scbt-ecom/ui",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"start": "npm run start:sb",
|
|
56
56
|
"test-storybook": "test-storybook",
|
|
57
57
|
"cypress:open": "cypress open --component --browser chrome",
|
|
58
|
+
"cypress-ci": "cypress run --component --browser chrome",
|
|
58
59
|
"prepare": "husky",
|
|
59
60
|
"pre-commit": "npm run lint",
|
|
60
61
|
"chromatic": "npx chromatic --project-token=chpt_9468dafcf1bf3e3 --only-changed --files='src/stories/**/*.stories.@(tsx)'",
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
"chromatic": "^11.7.1",
|
|
131
132
|
"class-variance-authority": "^0.7.0",
|
|
132
133
|
"clsx": "^2.1.1",
|
|
133
|
-
"cypress": "
|
|
134
|
+
"cypress": "14.0.0",
|
|
134
135
|
"date-fns": "^4.1.0",
|
|
135
136
|
"embla-carousel": "^8.5.2",
|
|
136
137
|
"embla-carousel-autoplay": "^8.5.2",
|