@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.
Files changed (29) hide show
  1. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +3 -3
  2. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +3 -3
  3. package/app/.yalc/@kanda-libs/ks-component-ts/package.json +2 -2
  4. package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -1
  5. package/app/src/App.tsx +15 -12
  6. package/app/yalc.lock +1 -1
  7. package/dist/index.d.ts +9912 -9912
  8. package/dist/index.esm.js +3 -3
  9. package/dist/index.esm.js.map +3 -3
  10. package/package.json +1 -1
  11. package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/index.tsx +2 -1
  12. package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/useBasicNumberInputUncontrolledProps.ts +5 -0
  13. package/src/generated/components/parameters/index.ts +5 -4
  14. package/src/generated/components/parameters/{xKandaBid.ts → x_kanda_bid.ts} +1 -1
  15. package/src/generated/components/parameters/{xKandaCid.ts → x_kanda_cid.ts} +1 -1
  16. package/src/generated/components/parameters/{xKandaEid.ts → x_kanda_eid.ts} +1 -1
  17. package/src/generated/components/parameters/x_kanda_protected.ts +8 -0
  18. package/src/generated/components/parameters/{xKandaTid.ts → x_kanda_tid.ts} +1 -1
  19. package/src/generated/operations/deleteLead.ts +8 -8
  20. package/src/generated/operations/getLead.ts +8 -8
  21. package/src/generated/operations/getLeads.ts +8 -8
  22. package/src/generated/operations/postLead.ts +28 -9
  23. package/src/generated/operations/postMe.ts +7 -2
  24. package/src/generated/operations/putLead.ts +8 -8
  25. package/src/generated/operations/quoteLead.ts +8 -8
  26. package/src/generated/operations/referLead.ts +8 -8
  27. package/src/generated/operations/tradeLead.ts +8 -8
  28. package/src/generated/operations/tradeQuoteApprovalLead.ts +8 -8
  29. 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.248-qa",
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": "8669f608f3d662f3deacb52d3833eab4"
95
+ "yalcSig": "251cc1eef0111db3f24f25ca52846e78"
96
96
  }
@@ -1 +1 @@
1
- 8669f608f3d662f3deacb52d3833eab4
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: 10,
19
+ pct: undefined,
27
20
  },
28
21
  });
29
22
  const [query, setQuery] = useState("");
30
23
 
31
24
  return (
32
- <div style={{ maxWidth: 500 }}>
33
- <SearchInput query={query} onSearch={setQuery} />
34
- </div>
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
 
package/app/yalc.lock CHANGED
@@ -2,7 +2,7 @@
2
2
  "version": "v1",
3
3
  "packages": {
4
4
  "@kanda-libs/ks-component-ts": {
5
- "signature": "8669f608f3d662f3deacb52d3833eab4",
5
+ "signature": "251cc1eef0111db3f24f25ca52846e78",
6
6
  "link": true
7
7
  },
8
8
  "@kanda-libs/ks-design-library": {