@scbt-ecom/ui 0.67.2 → 0.68.0
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-Cw6f0svP.js → index-37evuXv8.js} +4 -9
- package/dist/{index-Cw6f0svP.js.map → index-37evuXv8.js.map} +1 -1
- package/dist/ui.js +2 -2
- package/dist/widget.js +871 -862
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/Calculator.d.ts +5 -6
- package/dist/widgets/calculator/CalculatorView.d.ts +7 -0
- package/dist/widgets/calculator/index.d.ts +1 -1
- package/dist/widgets/calculator/model/utils.d.ts +2 -2
- package/dist/widgets/calculator/ui/CalculatorTabs.d.ts +4 -4
- package/dist/widgets/calculator/ui/{rootCalculator/RootCalculator.d.ts → calculatorFields/CalculatorFields.d.ts} +2 -2
- package/dist/widgets/calculator/ui/calculatorFields/index.d.ts +1 -0
- package/dist/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +1 -1
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +2 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +5 -2
- package/dist/widgets/calculator/ui/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/widgets/calculator/CalculatorRoot.d.ts +0 -8
- package/dist/widgets/calculator/ui/rootCalculator/index.d.ts +0 -1
- /package/dist/widgets/calculator/ui/{rootCalculator → calculatorFields}/ui/CalculatorModal.d.ts +0 -0
- /package/dist/widgets/calculator/ui/{rootCalculator → calculatorFields}/ui/FieldsGroup.d.ts +0 -0
- /package/dist/widgets/calculator/ui/{rootCalculator → calculatorFields}/ui/index.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
rootCalculatorConfig: RootCalculatorProps<T>;
|
|
1
|
+
import { CalculatorViewProps } from './CalculatorView';
|
|
2
|
+
export interface CalculatorProps {
|
|
3
|
+
headline: string;
|
|
4
|
+
calculators: CalculatorViewProps[];
|
|
6
5
|
}
|
|
7
|
-
export declare const Calculator:
|
|
6
|
+
export declare const Calculator: ({ calculators, headline }: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { CalculatorFieldsProps, CalculatorInfoProps, CalculatorTab } from './ui';
|
|
3
|
+
export interface CalculatorViewProps<T extends FieldValues = FieldValues> extends CalculatorTab {
|
|
4
|
+
calculatorInfoConfig: CalculatorInfoProps;
|
|
5
|
+
calculatorFieldsConfig: CalculatorFieldsProps<T>;
|
|
6
|
+
}
|
|
7
|
+
export declare const CalculatorView: <T extends FieldValues>({ calculatorInfoConfig, calculatorFieldsConfig }: CalculatorViewProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Calculator';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './CalculatorView';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
3
|
+
import { CalculatorViewProps } from '../CalculatorView';
|
|
4
4
|
import { CalculatorSuffix, ValueWithFormula } from './types';
|
|
5
5
|
export declare const isFormula: (value: ValueWithFormula | string) => value is ValueWithFormula;
|
|
6
6
|
export declare const formatWithIntl: (suffix: CalculatorSuffix, value: number) => string;
|
|
7
|
-
export declare const getCalculatorSchema: <T extends FieldValues>(props:
|
|
7
|
+
export declare const getCalculatorSchema: <T extends FieldValues>(props: CalculatorViewProps<T>["calculatorFieldsConfig"]["fieldsGroup"]) => z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
}, {
|
|
10
10
|
[x: string]: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
export interface CalculatorTab {
|
|
3
|
+
name: string;
|
|
3
4
|
label: string;
|
|
4
|
-
value: string;
|
|
5
5
|
}
|
|
6
|
-
export type CalculatorTabValue = CalculatorTab['
|
|
6
|
+
export type CalculatorTabValue = CalculatorTab['name'];
|
|
7
7
|
export interface CalculatorTabsProps {
|
|
8
|
-
calculatorTabs
|
|
8
|
+
calculatorTabs?: CalculatorTab[];
|
|
9
9
|
activeCalculator: CalculatorTabValue;
|
|
10
10
|
setActiveCalculator: Dispatch<SetStateAction<CalculatorTabValue>>;
|
|
11
11
|
}
|
|
12
|
-
export declare const CalculatorTabs: ({ calculatorTabs, activeCalculator, setActiveCalculator }: CalculatorTabsProps) => import("react/jsx-runtime").JSX.Element
|
|
12
|
+
export declare const CalculatorTabs: import('react').MemoExoticComponent<({ calculatorTabs, activeCalculator, setActiveCalculator }: CalculatorTabsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { CalculatorModalProps, CheckboxGroupProps, RadioGroupProps, SelectGroupProps, SlidersGroupProps, SwitchGroupProps } from './ui';
|
|
3
|
-
export interface
|
|
3
|
+
export interface CalculatorFieldsProps<T extends FieldValues> {
|
|
4
4
|
modalConfig?: CalculatorModalProps;
|
|
5
5
|
fieldsGroup: {
|
|
6
6
|
selectGroupConfig?: SelectGroupProps<T>;
|
|
@@ -12,4 +12,4 @@ export interface RootCalculatorProps<T extends FieldValues> {
|
|
|
12
12
|
switchGroupConfig?: SwitchGroupProps<T>;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const CalculatorFields: <T extends FieldValues>({ modalConfig, fieldsGroup }: CalculatorFieldsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CalculatorFields';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CalculatedBlockProps, CalculatedInfoBodyProps, CalculatorInfoFooterProps, CalculatorInfoHeadProps } from './ui';
|
|
2
2
|
export interface CalculatorInfoProps extends CalculatedBlockProps, CalculatorInfoHeadProps, CalculatedInfoBodyProps, CalculatorInfoFooterProps {
|
|
3
3
|
}
|
|
4
|
-
export declare const CalculatorInfo: ({
|
|
4
|
+
export declare const CalculatorInfo: ({ rootDescription, bottomDescription, rootValue, title, subtitle, buttonsConfig, infoList, suffix, assistHint }: CalculatorInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CalculatorSuffix, CalculatorValue } from '../../../model';
|
|
2
2
|
export interface CalculatedBlockProps {
|
|
3
|
-
|
|
3
|
+
rootDescription: string;
|
|
4
4
|
rootValue: CalculatorValue;
|
|
5
5
|
suffix: CalculatorSuffix;
|
|
6
6
|
}
|
|
7
|
-
export declare const CalculatedBlock: ({
|
|
7
|
+
export declare const CalculatedBlock: ({ rootDescription, rootValue, suffix }: CalculatedBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,10 @@ import { AssistHintProps } from './AssistHint';
|
|
|
2
2
|
import { ButtonProps } from '../../../../../shared/ui';
|
|
3
3
|
export interface CalculatorInfoFooterProps {
|
|
4
4
|
assistHint?: AssistHintProps;
|
|
5
|
-
|
|
5
|
+
buttonsConfig: {
|
|
6
|
+
primaryBtn: ButtonProps;
|
|
7
|
+
secondaryBtn?: ButtonProps;
|
|
8
|
+
};
|
|
6
9
|
bottomDescription?: string;
|
|
7
10
|
}
|
|
8
|
-
export declare const CalculatorInfoFooter: ({ assistHint,
|
|
11
|
+
export declare const CalculatorInfoFooter: ({ assistHint, buttonsConfig, bottomDescription }: CalculatorInfoFooterProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CalculatorProps } from './Calculator';
|
|
2
|
-
import { CalculatorTab } from './ui';
|
|
3
|
-
export interface CalculatorRootProps {
|
|
4
|
-
headline: string;
|
|
5
|
-
calculators: CalculatorProps[];
|
|
6
|
-
calculatorTabs?: CalculatorTab[];
|
|
7
|
-
}
|
|
8
|
-
export declare const CalculatorRoot: ({ calculators, calculatorTabs, headline }: CalculatorRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RootCalculator';
|
/package/dist/widgets/calculator/ui/{rootCalculator → calculatorFields}/ui/CalculatorModal.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|