@overmap-ai/forms 1.0.35-gcs.0 → 1.0.35-gcs.1

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 (93) hide show
  1. package/dist/ImageCard/ImageCard.d.ts +0 -1
  2. package/dist/ImageFile/ImageFile.d.ts +5 -0
  3. package/dist/ImageFile/hooks.d.ts +1 -0
  4. package/dist/ImageFile/index.d.ts +2 -0
  5. package/dist/form/builder/Root.d.ts +0 -4
  6. package/dist/form/builder/context.d.ts +0 -2
  7. package/dist/form/builder/index.d.ts +1 -1
  8. package/dist/form/builder/preview/Preview.d.ts +1 -4
  9. package/dist/form/builder/typings.d.ts +1 -3
  10. package/dist/form/fields/BaseField/BaseField.d.ts +6 -2
  11. package/dist/form/fields/BaseFormElement/typings.d.ts +2 -2
  12. package/dist/form/fields/BaseStringField/BaseStringField.d.ts +2 -2
  13. package/dist/form/fields/BooleanField/BooleanField.d.ts +2 -2
  14. package/dist/form/fields/BooleanField/BooleanFieldInput.d.ts +7 -0
  15. package/dist/form/fields/BooleanField/index.d.ts +1 -1
  16. package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +2 -2
  17. package/dist/form/fields/CheckboxListField/CheckboxListFieldInput.d.ts +7 -0
  18. package/dist/form/fields/CheckboxListField/index.d.ts +1 -1
  19. package/dist/form/fields/DateField/DateField.d.ts +2 -2
  20. package/dist/form/fields/DateField/DateFieldInput.d.ts +7 -0
  21. package/dist/form/fields/DateField/index.d.ts +1 -1
  22. package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +2 -2
  23. package/dist/form/fields/MultiSelectField/MultiSelectFieldInput.d.ts +6 -0
  24. package/dist/form/fields/MultiSelectField/index.d.ts +1 -1
  25. package/dist/form/fields/MultiStringField/MultiStringField.d.ts +2 -2
  26. package/dist/form/fields/MultiStringField/MultiStringFieldInput.d.ts +7 -0
  27. package/dist/form/fields/MultiStringField/index.d.ts +1 -1
  28. package/dist/form/fields/NumberField/NumberField.d.ts +2 -2
  29. package/dist/form/fields/NumberField/NumberFieldInput.d.ts +7 -0
  30. package/dist/form/fields/NumberField/index.d.ts +1 -1
  31. package/dist/form/fields/{OneTimePasswordField → OTPField}/OTPField.d.ts +2 -2
  32. package/dist/form/fields/OTPField/OTPFieldInput.d.ts +7 -0
  33. package/dist/form/fields/{OneTimePasswordField → OTPField}/index.d.ts +1 -1
  34. package/dist/form/fields/PassFailField/PassFailField.d.ts +3 -2
  35. package/dist/form/fields/PassFailField/PassFailFieldInput.d.ts +7 -0
  36. package/dist/form/fields/PassFailField/index.d.ts +1 -1
  37. package/dist/form/fields/RadioField/RadioField.d.ts +2 -2
  38. package/dist/form/fields/RadioField/RadioFieldInput.d.ts +7 -0
  39. package/dist/form/fields/RadioField/index.d.ts +1 -1
  40. package/dist/form/fields/RatingField/RatingField.d.ts +2 -2
  41. package/dist/form/fields/RatingField/RatingFieldInput.d.ts +7 -0
  42. package/dist/form/fields/RatingField/index.d.ts +1 -1
  43. package/dist/form/fields/ScanField/ScanField.d.ts +2 -2
  44. package/dist/form/fields/ScanField/ScanFieldInput.d.ts +7 -0
  45. package/dist/form/fields/ScanField/index.d.ts +1 -1
  46. package/dist/form/fields/SelectField/SelectField.d.ts +2 -2
  47. package/dist/form/fields/SelectField/SelectFieldInput.d.ts +7 -0
  48. package/dist/form/fields/SelectField/index.d.ts +1 -1
  49. package/dist/form/fields/StringField/StringFieldInput.d.ts +7 -0
  50. package/dist/form/fields/StringField/index.d.ts +1 -1
  51. package/dist/form/fields/TextField/TextFieldInput.d.ts +7 -0
  52. package/dist/form/fields/TextField/index.d.ts +1 -1
  53. package/dist/form/fields/UploadField/UploadField.d.ts +2 -2
  54. package/dist/form/fields/UploadField/UploadFieldInput.d.ts +7 -0
  55. package/dist/form/fields/UploadField/index.d.ts +1 -1
  56. package/dist/form/fields/components/InputWithLabel.d.ts +4 -4
  57. package/dist/form/fields/components/index.d.ts +0 -2
  58. package/dist/form/fields/constants.d.ts +1 -1
  59. package/dist/form/fields/hooks.d.ts +3 -3
  60. package/dist/form/fields/index.d.ts +1 -1
  61. package/dist/form/fields/typings.d.ts +1 -1
  62. package/dist/form/fields/utils.d.ts +6 -3
  63. package/dist/form/renderer/FieldsRenderer.d.ts +25 -0
  64. package/dist/form/renderer/constants.d.ts +3 -2
  65. package/dist/form/renderer/context.d.ts +8 -2
  66. package/dist/form/renderer/index.d.ts +2 -1
  67. package/dist/form/renderer/typings.d.ts +1 -0
  68. package/dist/form/schema/FieldSchema.d.ts +15 -5
  69. package/dist/form/typings.d.ts +1 -11
  70. package/dist/forms.js +5027 -5045
  71. package/dist/forms.umd.cjs +58 -58
  72. package/dist/index.d.ts +1 -0
  73. package/package.json +1 -1
  74. package/dist/form/fields/BooleanField/BooleanInput.d.ts +0 -7
  75. package/dist/form/fields/CheckboxListField/CheckboxListInput.d.ts +0 -7
  76. package/dist/form/fields/DateField/DateInput.d.ts +0 -7
  77. package/dist/form/fields/MultiSelectField/MultiSelectInput.d.ts +0 -6
  78. package/dist/form/fields/MultiStringField/MultiStringInput.d.ts +0 -7
  79. package/dist/form/fields/NumberField/NumberInput.d.ts +0 -7
  80. package/dist/form/fields/OneTimePasswordField/OTPInput.d.ts +0 -7
  81. package/dist/form/fields/PassFailField/PassFailInput.d.ts +0 -7
  82. package/dist/form/fields/RadioField/RadioInput.d.ts +0 -7
  83. package/dist/form/fields/RatingField/RatingInput.d.ts +0 -7
  84. package/dist/form/fields/ScanField/ScanInput.d.ts +0 -7
  85. package/dist/form/fields/SelectField/SelectInput.d.ts +0 -7
  86. package/dist/form/fields/StringField/StringInput.d.ts +0 -7
  87. package/dist/form/fields/TextField/TextInput.d.ts +0 -7
  88. package/dist/form/fields/UploadField/UploadInput.d.ts +0 -7
  89. package/dist/form/fields/UploadField/utils.d.ts +0 -1
  90. package/dist/form/fields/components/InputWithHelpText.d.ts +0 -8
  91. package/dist/form/fields/components/InputWithLabelAndHelpText.d.ts +0 -8
  92. package/dist/form/renderer/FormRenderer.d.ts +0 -33
  93. /package/dist/form/fields/{OneTimePasswordField → OTPField}/typings.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './form';
3
3
  export * from './ImageCard';
4
4
  export * from './ImageViewer';
5
5
  export * from './Scanner';
6
+ export * from './ImageFile';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/forms",
3
- "version": "1.0.35-gcs.0",
3
+ "version": "1.0.35-gcs.1",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +0,0 @@
1
- import { BooleanField } from './BooleanField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface BooleanInputProps extends FieldRenderProps {
4
- field: BooleanField;
5
- }
6
- export declare const BooleanInput: import('react').MemoExoticComponent<(props: BooleanInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
- import { CheckboxListField } from './CheckboxListField';
3
- interface CheckboxListInputProps extends FieldRenderProps {
4
- field: CheckboxListField;
5
- }
6
- export declare const CheckboxListInput: import('react').NamedExoticComponent<CheckboxListInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { DateField } from './DateField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface DateInputProps extends FieldRenderProps {
4
- field: DateField;
5
- }
6
- export declare const DateInput: import('react').MemoExoticComponent<(props: DateInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1,6 +0,0 @@
1
- import { MultiSelectField } from './MultiSelectField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- export interface MultiSelectInputProps extends FieldRenderProps {
4
- field: MultiSelectField;
5
- }
6
- export declare const MultiSelectInput: import('react').MemoExoticComponent<(props: MultiSelectInputProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,7 +0,0 @@
1
- import { MultiStringField } from './MultiStringField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface MultiStringInputProps extends FieldRenderProps {
4
- field: MultiStringField;
5
- }
6
- export declare const MultiStringInput: import('react').NamedExoticComponent<MultiStringInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { NumberField } from './NumberField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface NumberInputProps extends FieldRenderProps {
4
- field: NumberField;
5
- }
6
- export declare const NumberInput: import('react').MemoExoticComponent<(props: NumberInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
- import { OTPField } from './OTPField';
3
- interface OTPInputProps extends FieldRenderProps {
4
- field: OTPField;
5
- }
6
- export declare const OTPInput: import('react').MemoExoticComponent<(props: OTPInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { PassFailField } from './PassFailField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface PassFailInputProps extends FieldRenderProps {
4
- field: PassFailField;
5
- }
6
- export declare const PassFailInput: import('react').MemoExoticComponent<(props: PassFailInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { RadioField } from './RadioField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface RadioInputProps extends FieldRenderProps {
4
- field: RadioField;
5
- }
6
- export declare const RadioInput: import('react').NamedExoticComponent<RadioInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { RatingField } from './RatingField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface RatingInputProps extends FieldRenderProps {
4
- field: RatingField;
5
- }
6
- export declare const RatingInput: import('react').NamedExoticComponent<RatingInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { ScanField } from './ScanField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface ScanInputProps extends FieldRenderProps {
4
- field: ScanField;
5
- }
6
- export declare const ScanInput: import('react').NamedExoticComponent<ScanInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { SelectField } from './SelectField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface SelectInputProps extends FieldRenderProps {
4
- field: SelectField;
5
- }
6
- export declare const SelectInput: import('react').NamedExoticComponent<SelectInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { StringField } from './StringField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface StringInputProps extends FieldRenderProps {
4
- field: StringField;
5
- }
6
- export declare const StringInput: import('react').NamedExoticComponent<StringInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { TextField } from './TextField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface TextInputProps extends FieldRenderProps {
4
- field: TextField;
5
- }
6
- export declare const TextInput: import('react').NamedExoticComponent<TextInputProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { UploadField } from './UploadField';
2
- import { FieldRenderProps } from '../BaseFormElement';
3
- interface UploadInputProps extends FieldRenderProps {
4
- field: UploadField;
5
- }
6
- export declare const UploadInput: import('react').MemoExoticComponent<(props: UploadInputProps) => import("react/jsx-runtime").JSX.Element>;
7
- export {};
@@ -1 +0,0 @@
1
- export declare const convertBytesToLargestUnit: (bytes: number) => string;
@@ -1,8 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { Severity } from '../../typings';
3
- export interface InputWithHelpTextProps {
4
- severity: Severity | undefined;
5
- helpText: string | null;
6
- children: ReactElement;
7
- }
8
- export declare const InputWithHelpText: (props: InputWithHelpTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { InputWithHelpTextProps } from './InputWithHelpText';
3
- import { InputWithLabelProps } from './InputWithLabel';
4
- interface InputWithLabelAndHelpTextProps extends InputWithHelpTextProps {
5
- children: ReactElement<InputWithLabelProps>;
6
- }
7
- export declare const InputWithLabelAndHelpText: (props: InputWithLabelAndHelpTextProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,33 +0,0 @@
1
- import { ButtonProps } from '@overmap-ai/blocks';
2
- import { FieldValues, ISchema } from '../typings';
3
- interface FormRendererProps {
4
- /** The schema of the form the render */
5
- schema: ISchema;
6
- /** Initial values of the form */
7
- values?: FieldValues;
8
- /** The function to call when the form values change */
9
- onValuesChange?: (allValues: FieldValues, changedValues: FieldValues) => void;
10
- enableReinitialize?: boolean;
11
- excludeUnchangedFields?: boolean;
12
- onSubmit?: (values: FieldValues) => Promise<void> | void;
13
- /** @default "Submit" */
14
- submitText?: string;
15
- /** The text of the cancel button (hidden by default)
16
- * @default null
17
- */
18
- cancelText?: string;
19
- onCancel?: () => void;
20
- onDirty?: () => void;
21
- onDirtyChange?: (dirty: boolean) => void;
22
- /** Hide the form description
23
- * @default false */
24
- hideDescription?: boolean;
25
- /** Hide the title (and description)
26
- * @default false
27
- */
28
- hideTitle?: boolean;
29
- className?: string;
30
- buttonProps?: Omit<ButtonProps, "children">;
31
- }
32
- export declare const FormRenderer: import('react').NamedExoticComponent<FormRendererProps & import('react').RefAttributes<HTMLFormElement>>;
33
- export {};