@synchra24/app-ui 0.1.0 → 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/CHANGELOG.md +17 -0
- package/README.md +24 -2
- package/custom-elements.json +465 -0
- package/dist/auto.js +1745 -24
- package/dist/index.d.ts +146 -2
- package/dist/index.js +1745 -24
- package/dist/react.d.ts +66 -1
- package/dist/synchra-app-ui.js +131 -8
- package/docs/AI-AGENT.md +28 -0
- package/docs/API.md +181 -0
- package/docs/DEVELOPMENT.md +1 -1
- package/package.json +3 -2
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import type {
|
|
3
|
+
EmployeesElement,
|
|
4
|
+
EmployeeItem,
|
|
5
|
+
AttachmentItem,
|
|
6
|
+
AttachmentsElement,
|
|
7
|
+
VoiceRecorderElement,
|
|
3
8
|
IconElement,
|
|
9
|
+
InfoElement,
|
|
10
|
+
ProgressElement,
|
|
11
|
+
TextEditorElement,
|
|
4
12
|
CircleButtonElement,
|
|
5
13
|
TypographyVariant,
|
|
6
14
|
SelectElement,
|
|
@@ -8,6 +16,7 @@ import type {
|
|
|
8
16
|
ValueElement,
|
|
9
17
|
ChoiceElement,
|
|
10
18
|
DialogElement,
|
|
19
|
+
SheetElement,
|
|
11
20
|
TabsElement,
|
|
12
21
|
ButtonElement,
|
|
13
22
|
PickerElement,
|
|
@@ -33,9 +42,59 @@ type FieldProps<T extends HTMLElement> = Props<T> & {
|
|
|
33
42
|
max?: number;
|
|
34
43
|
step?: number;
|
|
35
44
|
};
|
|
45
|
+
type AttachmentProps = {
|
|
46
|
+
label?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
error?: string;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
max?: number;
|
|
51
|
+
"max-size"?: number;
|
|
52
|
+
value?: AttachmentItem[];
|
|
53
|
+
upload?: (file: File) => Promise<AttachmentItem>;
|
|
54
|
+
};
|
|
36
55
|
declare module "react" {
|
|
37
56
|
namespace JSX {
|
|
38
57
|
interface IntrinsicElements {
|
|
58
|
+
"s24-info": Props<InfoElement> & {
|
|
59
|
+
heading?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
label?: string;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
};
|
|
64
|
+
"s24-progress": Props<ProgressElement> & {
|
|
65
|
+
value?: number;
|
|
66
|
+
max?: number;
|
|
67
|
+
state?: number;
|
|
68
|
+
steps?: number;
|
|
69
|
+
height?: number;
|
|
70
|
+
color?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
};
|
|
73
|
+
"s24-text-editor": Props<TextEditorElement> & {
|
|
74
|
+
value?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
label?: string;
|
|
77
|
+
placeholder?: string;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
readonly?: boolean;
|
|
80
|
+
};
|
|
81
|
+
"s24-employees": Props<EmployeesElement> & {
|
|
82
|
+
label?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
error?: string;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
max?: number;
|
|
87
|
+
"subordinates-only"?: boolean;
|
|
88
|
+
value?: number[];
|
|
89
|
+
employees?: EmployeeItem[];
|
|
90
|
+
};
|
|
91
|
+
"s24-photos": Props<AttachmentsElement> & AttachmentProps;
|
|
92
|
+
"s24-files": Props<AttachmentsElement> & AttachmentProps;
|
|
93
|
+
"s24-voice-recorder": Props<VoiceRecorderElement> &
|
|
94
|
+
Omit<AttachmentProps, "value"> & {
|
|
95
|
+
value?: AttachmentItem | null;
|
|
96
|
+
"max-duration"?: number;
|
|
97
|
+
};
|
|
39
98
|
"s24-button": Props<ButtonElement> & {
|
|
40
99
|
variant?: "primary" | "secondary" | "danger";
|
|
41
100
|
size?: "default" | "small" | "icon";
|
|
@@ -56,6 +115,7 @@ declare module "react" {
|
|
|
56
115
|
"light-grey"?: boolean;
|
|
57
116
|
type?: "button" | "submit" | "reset";
|
|
58
117
|
};
|
|
118
|
+
"s24-search": FieldProps<ValueElement> & { small?: boolean };
|
|
59
119
|
"s24-input": FieldProps<ValueElement>;
|
|
60
120
|
"s24-textarea": FieldProps<ValueElement>;
|
|
61
121
|
"s24-date-picker": Omit<FieldProps<PickerElement>, "min" | "max"> & {
|
|
@@ -162,12 +222,17 @@ declare module "react" {
|
|
|
162
222
|
variant?: "page" | "title" | "caption";
|
|
163
223
|
muted?: boolean;
|
|
164
224
|
};
|
|
165
|
-
"s24-tabs": Props<TabsElement> & {
|
|
225
|
+
"s24-tabs": Props<TabsElement> & {
|
|
226
|
+
value?: string;
|
|
227
|
+
variant?: "segmented";
|
|
228
|
+
};
|
|
166
229
|
"s24-tab": Props<HTMLElement> & {
|
|
167
230
|
value?: string;
|
|
168
231
|
panel?: string;
|
|
232
|
+
count?: string | number;
|
|
169
233
|
disabled?: boolean;
|
|
170
234
|
};
|
|
235
|
+
"s24-sheet": Props<SheetElement>;
|
|
171
236
|
"s24-dialog": Props<DialogElement> & {
|
|
172
237
|
heading?: string;
|
|
173
238
|
description?: string;
|