@functionalcms/svelte-components 4.19.0 → 4.19.3

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,6 +1,29 @@
1
- export type FieldType = "input" | "textarea" | "radio" | "checkbox";
2
- export type InputType = 'text' | 'email' | 'search' | 'password' | 'tel' | 'number' | 'url' | 'month' | 'time' | 'week' | 'date' | 'datetime-local' | 'color';
3
- export type LabelSize = 'small' | 'large' | '';
1
+ export declare enum FieldType {
2
+ Input = "input",
3
+ Textarea = "textarea",
4
+ Radio = "radio",
5
+ Checkbox = "checkbox"
6
+ }
7
+ export declare enum InputType {
8
+ Text = "text",
9
+ Email = "email",
10
+ Search = "search",
11
+ Password = "password",
12
+ Tel = "tel",
13
+ Number = "number",
14
+ Url = "url",
15
+ Month = "month",
16
+ Time = "time",
17
+ Week = "week",
18
+ Date = "date",
19
+ DateTimeLocal = "datetime-local",
20
+ Color = "color"
21
+ }
22
+ export declare enum LabelSize {
23
+ Small = "small",
24
+ Large = "large",
25
+ None = ""
26
+ }
4
27
  export interface Field {
5
28
  name: string;
6
29
  label?: string;
@@ -1 +1,29 @@
1
- export {};
1
+ export var FieldType;
2
+ (function (FieldType) {
3
+ FieldType["Input"] = "input";
4
+ FieldType["Textarea"] = "textarea";
5
+ FieldType["Radio"] = "radio";
6
+ FieldType["Checkbox"] = "checkbox";
7
+ })(FieldType || (FieldType = {}));
8
+ export var InputType;
9
+ (function (InputType) {
10
+ InputType["Text"] = "text";
11
+ InputType["Email"] = "email";
12
+ InputType["Search"] = "search";
13
+ InputType["Password"] = "password";
14
+ InputType["Tel"] = "tel";
15
+ InputType["Number"] = "number";
16
+ InputType["Url"] = "url";
17
+ InputType["Month"] = "month";
18
+ InputType["Time"] = "time";
19
+ InputType["Week"] = "week";
20
+ InputType["Date"] = "date";
21
+ InputType["DateTimeLocal"] = "datetime-local";
22
+ InputType["Color"] = "color";
23
+ })(InputType || (InputType = {}));
24
+ export var LabelSize;
25
+ (function (LabelSize) {
26
+ LabelSize["Small"] = "small";
27
+ LabelSize["Large"] = "large";
28
+ LabelSize["None"] = "";
29
+ })(LabelSize || (LabelSize = {}));
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ export { default as Button } from './components/form/Button.svelte';
29
29
  export { default as Input } from './components/form/Input.svelte';
30
30
  export { default as Switch } from './components/form/Switch.svelte';
31
31
  export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
32
- export type { InputType, FieldType, Field } from './components/form/form.js';
32
+ export { InputType, FieldType, LabelSize, type Field } from './components/form/form.js';
33
33
  export { default as AntiBot } from './components/form/AntiBot.svelte';
34
34
  export { default as Dropzone } from './components/form/Dropzone.svelte';
35
35
  export { default as Select } from './components/form/Select.svelte';
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ export { default as Button } from './components/form/Button.svelte';
42
42
  export { default as Input } from './components/form/Input.svelte';
43
43
  export { default as Switch } from './components/form/Switch.svelte';
44
44
  export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
45
+ export { InputType, FieldType, LabelSize } from './components/form/form.js';
45
46
  export { default as AntiBot } from './components/form/AntiBot.svelte';
46
47
  export { default as Dropzone } from './components/form/Dropzone.svelte';
47
48
  export { default as Select } from './components/form/Select.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.19.0",
3
+ "version": "4.19.3",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [