@arkcit/react-ui 0.3.0
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.
- package/README.md +59 -0
- package/dist/ApiDocLayout-6hYQvst0.d.ts +19 -0
- package/dist/ComponentGuidelines-h1MjGBuJ.d.ts +1293 -0
- package/dist/FileUploadField-DLwEPn_A.d.ts +32 -0
- package/dist/contracts.d.ts +10 -0
- package/dist/contracts.js +36 -0
- package/dist/form-fields-9C7CmVGn.d.ts +88 -0
- package/dist/form-fields.d.ts +5 -0
- package/dist/form-fields.js +2113 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +16112 -0
- package/dist/orchestrator-contracts.d.ts +1 -0
- package/dist/orchestrator-contracts.js +0 -0
- package/dist/orchestrator-registry.d.ts +25 -0
- package/dist/orchestrator-registry.js +9405 -0
- package/dist/orchestrator.d.ts +29 -0
- package/dist/orchestrator.js +9602 -0
- package/dist/registry.d.ts +30 -0
- package/dist/registry.js +15786 -0
- package/dist/ui-contracts.d.ts +123 -0
- package/dist/ui-contracts.js +36 -0
- package/dist/ui-registry.d.ts +127 -0
- package/dist/ui-registry.js +15611 -0
- package/dist/ui.d.ts +119 -0
- package/dist/ui.js +9618 -0
- package/package.json +121 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { FieldConfig, Field } from '@arkcit/engine/form';
|
|
4
|
+
|
|
5
|
+
interface ComboboxFieldProps {
|
|
6
|
+
field: FieldConfig;
|
|
7
|
+
value: Field;
|
|
8
|
+
error?: string;
|
|
9
|
+
errorId?: string;
|
|
10
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ComboboxField: ({ field, value, error, onChange, }: ComboboxFieldProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
interface SliderFieldProps {
|
|
15
|
+
field: FieldConfig;
|
|
16
|
+
value: Field;
|
|
17
|
+
error?: string;
|
|
18
|
+
errorId?: string;
|
|
19
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const SliderField: ({ field, value, onChange }: SliderFieldProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
interface FileUploadFieldProps {
|
|
24
|
+
field: FieldConfig;
|
|
25
|
+
value: Field;
|
|
26
|
+
error?: string;
|
|
27
|
+
errorId?: string;
|
|
28
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
29
|
+
}
|
|
30
|
+
declare const FileUploadField: ({ field, value, onChange, }: FileUploadFieldProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
export { ComboboxField as C, FileUploadField as F, SliderField as S, type ComboboxFieldProps as a, type FileUploadFieldProps as b, type SliderFieldProps as c };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { FieldType, SharedUI } from './ui-contracts.js';
|
|
2
|
+
export { ComponentRegistry, ComponentRegistryEntry, UIActionRef, UIEngineProps, UIExprValue, UII18nValue, UIInlineEditingMode, UIInlineEditingState, UIInlineTextEditorProps, UINode, UINodeEventName, UINodeLayout, UINodeProps, UINodeWrapperProps, UIRefValue, UIRuntime, UISchema, UIStudioNodeMeta, UIValue } from '@arkcit/engine/types';
|
|
3
|
+
export { b as ApiPropDoc } from './ApiDocLayout-6hYQvst0.js';
|
|
4
|
+
export { N as Currency, O as CurrencySymbol, a6 as EmbeddedVideoProps, a$ as MapCardProps } from './ComponentGuidelines-h1MjGBuJ.js';
|
|
5
|
+
export { DeclarativeValidatorConfig, DeclarativeValidatorType, FieldConfig } from '@arkcit/engine/form';
|
|
6
|
+
import 'react';
|
|
7
|
+
import './form-fields-9C7CmVGn.js';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
|
+
import './FileUploadField-DLwEPn_A.js';
|
|
10
|
+
import 'lucide-react';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/components/shared/patterns/forms/FormField/constants.ts
|
|
2
|
+
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
3
|
+
FieldType2["TEXT"] = "text";
|
|
4
|
+
FieldType2["TEXTAREA"] = "textarea";
|
|
5
|
+
FieldType2["NUMBER"] = "number";
|
|
6
|
+
FieldType2["DATE"] = "date";
|
|
7
|
+
FieldType2["SELECT"] = "select";
|
|
8
|
+
FieldType2["TAGS"] = "tags";
|
|
9
|
+
FieldType2["CHECKBOX_SEARCH"] = "checkbox-search";
|
|
10
|
+
FieldType2["COMBOBOX"] = "combobox";
|
|
11
|
+
FieldType2["SLIDER"] = "slider";
|
|
12
|
+
FieldType2["FILE_UPLOAD"] = "file-upload";
|
|
13
|
+
FieldType2["CHECKBOX"] = "checkbox";
|
|
14
|
+
FieldType2["SWITCH"] = "switch";
|
|
15
|
+
FieldType2["COLOR"] = "color";
|
|
16
|
+
FieldType2["RADIO"] = "radio";
|
|
17
|
+
FieldType2["DATE_RANGE"] = "date-range";
|
|
18
|
+
return FieldType2;
|
|
19
|
+
})(FieldType || {});
|
|
20
|
+
|
|
21
|
+
// src/types/currency.ts
|
|
22
|
+
var Currency = /* @__PURE__ */ ((Currency2) => {
|
|
23
|
+
Currency2["EURO"] = "EUR";
|
|
24
|
+
Currency2["DOLLAR"] = "USD";
|
|
25
|
+
return Currency2;
|
|
26
|
+
})(Currency || {});
|
|
27
|
+
var CurrencySymbol = /* @__PURE__ */ ((CurrencySymbol2) => {
|
|
28
|
+
CurrencySymbol2["EUR"] = "\u20AC";
|
|
29
|
+
CurrencySymbol2["USD"] = "$";
|
|
30
|
+
return CurrencySymbol2;
|
|
31
|
+
})(CurrencySymbol || {});
|
|
32
|
+
export {
|
|
33
|
+
Currency,
|
|
34
|
+
CurrencySymbol,
|
|
35
|
+
FieldType
|
|
36
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { FieldConfig, Field } from '@arkcit/engine/form';
|
|
4
|
+
import './FileUploadField-DLwEPn_A.js';
|
|
5
|
+
|
|
6
|
+
interface CheckboxFieldProps {
|
|
7
|
+
field: FieldConfig;
|
|
8
|
+
value: Field;
|
|
9
|
+
error?: string;
|
|
10
|
+
errorId?: string;
|
|
11
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const CheckboxField: ({ field, value, error, errorId, onChange, }: CheckboxFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
interface CheckboxSearchFieldProps {
|
|
16
|
+
field: FieldConfig;
|
|
17
|
+
value: Field;
|
|
18
|
+
error?: string;
|
|
19
|
+
errorId?: string;
|
|
20
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
21
|
+
dict: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
declare const CheckboxSearchField: ({ field, value, error, errorId, onChange, dict, }: CheckboxSearchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface ColorFieldProps {
|
|
26
|
+
field: FieldConfig;
|
|
27
|
+
value: Field;
|
|
28
|
+
error?: string;
|
|
29
|
+
errorId?: string;
|
|
30
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
31
|
+
}
|
|
32
|
+
declare const ColorField: ({ field, value, error, errorId, onChange, }: ColorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
interface DatePickerFieldProps {
|
|
35
|
+
field: FieldConfig;
|
|
36
|
+
value: Field;
|
|
37
|
+
error?: string;
|
|
38
|
+
errorId?: string;
|
|
39
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
40
|
+
}
|
|
41
|
+
declare const DatePickerField: ({ field, value, error, errorId, onChange, }: DatePickerFieldProps) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface SelectFieldProps {
|
|
44
|
+
field: FieldConfig;
|
|
45
|
+
value: Field;
|
|
46
|
+
error?: string;
|
|
47
|
+
errorId?: string;
|
|
48
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
49
|
+
}
|
|
50
|
+
declare const SelectField: ({ field, value, error, errorId, onChange }: SelectFieldProps) => react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
interface SwitchFieldProps {
|
|
53
|
+
field: FieldConfig;
|
|
54
|
+
value: Field;
|
|
55
|
+
error?: string;
|
|
56
|
+
errorId?: string;
|
|
57
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
58
|
+
}
|
|
59
|
+
declare const SwitchField: ({ field, value, error, errorId, onChange, }: SwitchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
|
|
61
|
+
interface TagsFieldProps {
|
|
62
|
+
field: FieldConfig;
|
|
63
|
+
value: Field;
|
|
64
|
+
error?: string;
|
|
65
|
+
errorId?: string;
|
|
66
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
67
|
+
}
|
|
68
|
+
declare const TagsField: ({ field, value, error, errorId, onChange }: TagsFieldProps) => react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
interface TextAreaFieldProps {
|
|
71
|
+
field: FieldConfig;
|
|
72
|
+
value: Field;
|
|
73
|
+
error?: string;
|
|
74
|
+
errorId?: string;
|
|
75
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
76
|
+
}
|
|
77
|
+
declare const TextareaField: ({ field, value, error, errorId, onChange, }: TextAreaFieldProps) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
79
|
+
interface TextFieldProps {
|
|
80
|
+
field: FieldConfig;
|
|
81
|
+
value: Field;
|
|
82
|
+
error?: string;
|
|
83
|
+
errorId?: string;
|
|
84
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
85
|
+
}
|
|
86
|
+
declare const TextField: ({ field, value, error, errorId, onChange, }: TextFieldProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
export { CheckboxField as C, DatePickerField as D, SelectField as S, TagsField as T, CheckboxSearchField as a, ColorField as b, SwitchField as c, TextareaField as d, TextField as e, type CheckboxFieldProps as f, type CheckboxSearchFieldProps as g, type ColorFieldProps as h, type DatePickerFieldProps as i, type SelectFieldProps as j, type SwitchFieldProps as k, type TagsFieldProps as l, type TextAreaFieldProps as m, type TextFieldProps as n };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { C as CheckboxField, a as CheckboxSearchField, b as ColorField, D as DatePickerField, S as SelectField, c as SwitchField, T as TagField, T as TagsField, d as TextAreaField, e as TextField } from './form-fields-9C7CmVGn.js';
|
|
2
|
+
export { C as ComboboxField, a as ComboboxFieldProps, F as FileUploadField, b as FileUploadFieldProps, S as SliderField, c as SliderFieldProps } from './FileUploadField-DLwEPn_A.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@arkcit/engine/form';
|