@kanda-libs/ks-component-ts 0.2.257 → 0.2.259

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 (39) hide show
  1. package/app/src/App.tsx +12 -15
  2. package/dist/index.d.ts +7544 -7544
  3. package/dist/index.esm.js +3 -3
  4. package/dist/index.esm.js.map +3 -3
  5. package/package.json +1 -1
  6. package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/index.tsx +1 -2
  7. package/src/field/components/BasicNumberInput/BasicNumberInputUncontrolled/useBasicNumberInputUncontrolledProps.ts +0 -5
  8. package/src/generated/operations/postLead.ts +3 -0
  9. package/src/generated/widget/index.tsx +38415 -38415
  10. package/.DS_Store +0 -0
  11. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBlackItalic.woff +0 -0
  12. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBoldItalic.woff +0 -0
  13. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraBoldItalic.woff +0 -0
  14. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraLightItalic.woff +0 -0
  15. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueHeavyItalic.woff +0 -0
  16. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueLightItalic.woff +0 -0
  17. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueMediumItalic.woff +0 -0
  18. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueRegularItalic.woff +0 -0
  19. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueSemiBoldItalic.woff +0 -0
  20. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueThinItalic.woff +0 -0
  21. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBlack.woff +0 -0
  22. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBold.woff +0 -0
  23. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraBold.woff +0 -0
  24. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraLight.woff +0 -0
  25. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueHeavy.woff +0 -0
  26. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueLight.woff +0 -0
  27. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueMedium.woff +0 -0
  28. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueRegular.woff +0 -0
  29. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueSemiBold.woff +0 -0
  30. package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueThin.woff +0 -0
  31. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +0 -4
  32. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +0 -7
  33. package/app/.yalc/@kanda-libs/ks-component-ts/dist/library.css +0 -4499
  34. package/app/.yalc/@kanda-libs/ks-component-ts/package.json +0 -97
  35. package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +0 -1
  36. package/app/yalc.lock +0 -9
  37. package/src/.DS_Store +0 -0
  38. package/src/field/.DS_Store +0 -0
  39. package/src/field/components/.DS_Store +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.2.257",
3
+ "version": "0.2.259",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as parameters from "../components/parameters";
2
3
  import * as schemas from "../components/schemas";
3
4
 
4
5
  export type PostLeadRequestParameters = {
@@ -6,6 +7,7 @@ export type PostLeadRequestParameters = {
6
7
  x_kanda_cid?: string;
7
8
  x_kanda_eid?: string;
8
9
  x_kanda_tid?: string;
10
+ x_kanda_protected: "yes" | "no";
9
11
  };
10
12
 
11
13
  export const postLeadOperation = {
@@ -40,6 +42,7 @@ export const postLeadOperation = {
40
42
  in: "header",
41
43
  name: "x_kanda_tid",
42
44
  },
45
+ parameters.x_kanda_protected,
43
46
  ],
44
47
  requestDefaultHeaders: {
45
48
  "Content-Type": "application/json",