@functionalcms/svelte-components 5.1.6 → 5.1.8

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.
@@ -1,19 +1,3 @@
1
- export declare enum FieldType {
2
- Input = "input",
3
- NumberInput = "number-input",
4
- FloatInput = "float-input",
5
- PhoneInput = "phone",
6
- Textarea = "textarea",
7
- Radio = "radio",
8
- Checkbox = "checkbox",
9
- Range = "range",
10
- Select = "select",
11
- MultiSelect = "multi-select",
12
- TimePicker = "time-picker",
13
- Toggle = "toggle",
14
- File = "file",
15
- Hiidden = "hidden"
16
- }
17
1
  export declare enum InputType {
18
2
  Text = "text",
19
3
  Email = "email",
@@ -35,7 +19,7 @@ export type FieldDef = {
35
19
  label: string;
36
20
  class?: string;
37
21
  labelClass?: string;
38
- typeOfField: "input" | "textarea" | "select" | "collection" | "phoneInput" | "file" | "timepicker";
22
+ typeOfField: "input" | "textarea" | "select" | "collection" | "phoneInput" | "file" | "timepicker" | "hidden";
39
23
  disabled?: boolean;
40
24
  readonly?: boolean;
41
25
  required?: boolean;
@@ -89,7 +73,7 @@ export type PhoneInputField = FieldDef & {
89
73
  size: "md" | "sm" | "lg";
90
74
  placeholder?: string;
91
75
  };
92
- export type Field = InputField | TextareaField | CollectionField | SelectField | FilePickerField | TimePickerField | PhoneInputField;
76
+ export type Field = InputField | TextareaField | CollectionField | SelectField | FilePickerField | TimePickerField | PhoneInputField | HiddenField;
93
77
  export declare enum SubmitResult {
94
78
  Success = "success",
95
79
  Error = "error"
@@ -1,20 +1,3 @@
1
- export var FieldType;
2
- (function (FieldType) {
3
- FieldType["Input"] = "input";
4
- FieldType["NumberInput"] = "number-input";
5
- FieldType["FloatInput"] = "float-input";
6
- FieldType["PhoneInput"] = "phone";
7
- FieldType["Textarea"] = "textarea";
8
- FieldType["Radio"] = "radio";
9
- FieldType["Checkbox"] = "checkbox";
10
- FieldType["Range"] = "range";
11
- FieldType["Select"] = "select";
12
- FieldType["MultiSelect"] = "multi-select";
13
- FieldType["TimePicker"] = "time-picker";
14
- FieldType["Toggle"] = "toggle";
15
- FieldType["File"] = "file";
16
- FieldType["Hiidden"] = "hidden";
17
- })(FieldType || (FieldType = {}));
18
1
  export var InputType;
19
2
  (function (InputType) {
20
3
  InputType["Text"] = "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.1.6",
3
+ "version": "5.1.8",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {