@kanda-libs/ks-component-ts 0.2.249-qa → 0.2.250
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/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/package.json +2 -2
- package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -1
- package/app/src/App.tsx +15 -12
- package/app/yalc.lock +1 -1
- package/dist/index.d.ts +9912 -9912
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/index.tsx +2 -1
- package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/useBasicNumberInputUncontrolledProps.ts +5 -0
- package/src/generated/components/parameters/index.ts +5 -4
- package/src/generated/components/parameters/{xKandaBid.ts → x_kanda_bid.ts} +1 -1
- package/src/generated/components/parameters/{xKandaCid.ts → x_kanda_cid.ts} +1 -1
- package/src/generated/components/parameters/{xKandaEid.ts → x_kanda_eid.ts} +1 -1
- package/src/generated/components/parameters/x_kanda_protected.ts +8 -0
- package/src/generated/components/parameters/{xKandaTid.ts → x_kanda_tid.ts} +1 -1
- package/src/generated/operations/deleteLead.ts +8 -8
- package/src/generated/operations/getLead.ts +8 -8
- package/src/generated/operations/getLeads.ts +8 -8
- package/src/generated/operations/postLead.ts +28 -9
- package/src/generated/operations/postMe.ts +7 -2
- package/src/generated/operations/putLead.ts +8 -8
- package/src/generated/operations/quoteLead.ts +8 -8
- package/src/generated/operations/referLead.ts +8 -8
- package/src/generated/operations/tradeLead.ts +8 -8
- package/src/generated/operations/tradeQuoteApprovalLead.ts +8 -8
- package/src/generated/widget/index.tsx +43719 -43718
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanda-libs/ks-component-ts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.249-qa",
|
|
4
4
|
"description": "Kanda form component library",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"react": "17.0.2",
|
|
93
93
|
"@types/react": "^17.0.39"
|
|
94
94
|
},
|
|
95
|
-
"yalcSig": "
|
|
95
|
+
"yalcSig": "251cc1eef0111db3f24f25ca52846e78"
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
251cc1eef0111db3f24f25ca52846e78
|
package/app/src/App.tsx
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
window.global ||= window;
|
|
2
2
|
import "@kanda-libs/ks-component-ts/dist/library.css";
|
|
3
3
|
import "@kanda-libs/ks-design-library/dist/library.css";
|
|
4
|
-
import {
|
|
5
|
-
useForm,
|
|
6
|
-
Field,
|
|
7
|
-
Form,
|
|
8
|
-
OptionalHiddenField,
|
|
9
|
-
Label,
|
|
10
|
-
SearchInput,
|
|
11
|
-
} from "@kanda-libs/ks-component-ts";
|
|
4
|
+
import { useForm, Field, Form } from "@kanda-libs/ks-component-ts";
|
|
12
5
|
import { StringIndexedObject } from "~/types";
|
|
13
6
|
import { useState } from "react";
|
|
14
7
|
|
|
@@ -23,15 +16,25 @@ const capitalise = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
|
23
16
|
function App() {
|
|
24
17
|
const form = useForm({
|
|
25
18
|
defaultValues: {
|
|
26
|
-
pct:
|
|
19
|
+
pct: undefined,
|
|
27
20
|
},
|
|
28
21
|
});
|
|
29
22
|
const [query, setQuery] = useState("");
|
|
30
23
|
|
|
31
24
|
return (
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
25
|
+
<Form form={form} onSubmit={() => {}}>
|
|
26
|
+
<Field.NumberInput
|
|
27
|
+
label="Rent or mortgage"
|
|
28
|
+
name="pct"
|
|
29
|
+
{...{
|
|
30
|
+
type: "price",
|
|
31
|
+
placeholder: "£0.00",
|
|
32
|
+
icon: "pound",
|
|
33
|
+
iconVariant: "dark",
|
|
34
|
+
symbol: "",
|
|
35
|
+
}}
|
|
36
|
+
/>
|
|
37
|
+
</Form>
|
|
35
38
|
);
|
|
36
39
|
}
|
|
37
40
|
|