@kanda-libs/ks-component-ts 0.2.256 → 0.2.258
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/app/src/App.tsx +12 -15
- package/dist/index.d.ts +9798 -9752
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +4 -4
- package/dist/library.css +111 -57
- package/package.json +3 -1
- package/src/components/CreditLine/constants.ts +37 -0
- package/src/components/CreditLine/helpers.ts +35 -0
- package/src/components/CreditLine/index.tsx +141 -0
- package/src/components/CreditLine/types.d.ts +11 -0
- package/src/components/Form/index.tsx +12 -18
- package/src/components/MultiStepFormWrapper/index.tsx +27 -0
- package/src/components/index.ts +2 -0
- package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/index.tsx +1 -2
- package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/useBasicNumberInputUncontrolledProps.ts +0 -5
- package/src/generated/widget/index.tsx +42371 -42371
- package/src/hooks/useMultiStep/constants.ts +1 -0
- package/src/hooks/useMultiStep/helpers.ts +27 -0
- package/src/hooks/useMultiStep/index.tsx +119 -0
- package/src/hooks/useMultiStep/types.d.ts +8 -0
- package/src/index.ts +1 -0
- package/src/styles/library.css +111 -57
- package/yarn.lock +100 -4
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AddFieldButton } from "./AddFieldButton";
|
|
2
2
|
export { default as CompanyRiskFlag } from "./CompanyRiskFlag";
|
|
3
|
+
export { default as CreditLine } from "./CreditLine";
|
|
3
4
|
export { default as Dropzone } from "./Dropzone";
|
|
4
5
|
export { default as DropzoneContext } from "./Dropzone/DropzoneContext";
|
|
5
6
|
export { default as FieldHandle } from "./Handle";
|
|
@@ -8,6 +9,7 @@ export { default as FormState } from "./FormState";
|
|
|
8
9
|
export { default as FormTheme } from "./FormTheme";
|
|
9
10
|
export { default as HeaderSearch } from "./HeaderSearch";
|
|
10
11
|
export { default as MultiStepForm } from "./MultiStepForm";
|
|
12
|
+
export { default as MultiStepFormWrapper } from "./MultiStepFormWrapper";
|
|
11
13
|
export { default as PasswordStrengthIndicator } from "./PasswordStrengthIndicator";
|
|
12
14
|
export { default as RangeSlider } from "./RangeSlider";
|
|
13
15
|
export { default as RowFields } from "./RowFields";
|
|
@@ -50,8 +50,7 @@ const BasicNumberInputUncontrolled: FunctionComponent<BasicNumberInputUncontroll
|
|
|
50
50
|
isAllowed,
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
const focusedValue =
|
|
54
|
-
typeof currentValue !== "undefined" ? formatForDisplay(currentValue) : "";
|
|
53
|
+
const focusedValue = currentValue ? formatForDisplay(currentValue) : "";
|
|
55
54
|
const readOnlyProps = stripUnneededProps(props);
|
|
56
55
|
|
|
57
56
|
// DEV_NOTE: removed register here as need to register name and
|
|
@@ -66,11 +66,6 @@ export default function useBasicInputUncontrolledProps({
|
|
|
66
66
|
|
|
67
67
|
initialOnChange(e);
|
|
68
68
|
|
|
69
|
-
if (value.length === 0) {
|
|
70
|
-
setValue(name as string, undefined);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
69
|
const nextValue = formatForValue(parseFloat(value)) || 0;
|
|
75
70
|
const formattedNextValue = nextValue >= 0 ? nextValue : nextValue * -1;
|
|
76
71
|
|