@synchra24/app-ui 0.0.0-stage → 0.2.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 +11 -0
- package/FONT-SOURCES.md +21 -0
- package/README.md +121 -2
- package/custom-elements.json +2251 -0
- package/dist/auto.js +3929 -0
- package/dist/index.d.ts +261 -0
- package/dist/index.js +3926 -0
- package/dist/react.d.ts +260 -0
- package/dist/react.js +2 -0
- package/dist/synchra-app-ui.js +437 -0
- package/docs/AI-AGENT.md +115 -0
- package/docs/API.md +392 -0
- package/docs/DEVELOPMENT.md +78 -0
- package/licenses/google-material-symbols-Apache-2.0.txt +201 -0
- package/package.json +72 -4
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type {
|
|
3
|
+
EmployeesElement,
|
|
4
|
+
EmployeeItem,
|
|
5
|
+
AttachmentItem,
|
|
6
|
+
AttachmentsElement,
|
|
7
|
+
VoiceRecorderElement,
|
|
8
|
+
IconElement,
|
|
9
|
+
InfoElement,
|
|
10
|
+
ProgressElement,
|
|
11
|
+
TextEditorElement,
|
|
12
|
+
CircleButtonElement,
|
|
13
|
+
TypographyVariant,
|
|
14
|
+
SelectElement,
|
|
15
|
+
SelectOption,
|
|
16
|
+
ValueElement,
|
|
17
|
+
ChoiceElement,
|
|
18
|
+
DialogElement,
|
|
19
|
+
TabsElement,
|
|
20
|
+
ButtonElement,
|
|
21
|
+
PickerElement,
|
|
22
|
+
SliderElement,
|
|
23
|
+
} from "./index.js";
|
|
24
|
+
type Props<T extends HTMLElement> = React.HTMLAttributes<T> &
|
|
25
|
+
React.RefAttributes<T>;
|
|
26
|
+
type FieldProps<T extends HTMLElement> = Props<T> & {
|
|
27
|
+
label?: string;
|
|
28
|
+
grey?: boolean;
|
|
29
|
+
len?: number;
|
|
30
|
+
"hide-native-label"?: boolean;
|
|
31
|
+
name?: string;
|
|
32
|
+
value?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
error?: string;
|
|
37
|
+
required?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
maxlength?: number;
|
|
40
|
+
min?: number;
|
|
41
|
+
max?: number;
|
|
42
|
+
step?: number;
|
|
43
|
+
};
|
|
44
|
+
type AttachmentProps = {
|
|
45
|
+
label?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
max?: number;
|
|
50
|
+
"max-size"?: number;
|
|
51
|
+
value?: AttachmentItem[];
|
|
52
|
+
upload?: (file: File) => Promise<AttachmentItem>;
|
|
53
|
+
};
|
|
54
|
+
declare module "react" {
|
|
55
|
+
namespace JSX {
|
|
56
|
+
interface IntrinsicElements {
|
|
57
|
+
"s24-info": Props<InfoElement> & {
|
|
58
|
+
heading?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
label?: string;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
};
|
|
63
|
+
"s24-progress": Props<ProgressElement> & {
|
|
64
|
+
value?: number;
|
|
65
|
+
max?: number;
|
|
66
|
+
state?: number;
|
|
67
|
+
steps?: number;
|
|
68
|
+
height?: number;
|
|
69
|
+
color?: string;
|
|
70
|
+
label?: string;
|
|
71
|
+
};
|
|
72
|
+
"s24-text-editor": Props<TextEditorElement> & {
|
|
73
|
+
value?: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
label?: string;
|
|
76
|
+
placeholder?: string;
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
readonly?: boolean;
|
|
79
|
+
};
|
|
80
|
+
"s24-employees": Props<EmployeesElement> & {
|
|
81
|
+
label?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
error?: string;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
max?: number;
|
|
86
|
+
"subordinates-only"?: boolean;
|
|
87
|
+
value?: number[];
|
|
88
|
+
employees?: EmployeeItem[];
|
|
89
|
+
};
|
|
90
|
+
"s24-photos": Props<AttachmentsElement> & AttachmentProps;
|
|
91
|
+
"s24-files": Props<AttachmentsElement> & AttachmentProps;
|
|
92
|
+
"s24-voice-recorder": Props<VoiceRecorderElement> &
|
|
93
|
+
Omit<AttachmentProps, "value"> & {
|
|
94
|
+
value?: AttachmentItem | null;
|
|
95
|
+
"max-duration"?: number;
|
|
96
|
+
};
|
|
97
|
+
"s24-button": Props<ButtonElement> & {
|
|
98
|
+
variant?: "primary" | "secondary" | "danger";
|
|
99
|
+
size?: "default" | "small" | "icon";
|
|
100
|
+
type?: "button" | "submit" | "reset";
|
|
101
|
+
label?: string;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
loading?: boolean;
|
|
104
|
+
block?: boolean;
|
|
105
|
+
rounded?: boolean;
|
|
106
|
+
};
|
|
107
|
+
"s24-circle-button": Props<CircleButtonElement> & {
|
|
108
|
+
variant?: "primary" | "secondary" | "danger";
|
|
109
|
+
size?: "small" | "medium" | "large";
|
|
110
|
+
label: string;
|
|
111
|
+
icon?: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
loading?: boolean;
|
|
114
|
+
"light-grey"?: boolean;
|
|
115
|
+
type?: "button" | "submit" | "reset";
|
|
116
|
+
};
|
|
117
|
+
"s24-search": FieldProps<ValueElement> & { small?: boolean };
|
|
118
|
+
"s24-input": FieldProps<ValueElement>;
|
|
119
|
+
"s24-textarea": FieldProps<ValueElement>;
|
|
120
|
+
"s24-date-picker": Omit<FieldProps<PickerElement>, "min" | "max"> & {
|
|
121
|
+
min?: string;
|
|
122
|
+
max?: string;
|
|
123
|
+
locale?: string;
|
|
124
|
+
};
|
|
125
|
+
"s24-time-picker": Omit<FieldProps<PickerElement>, "min" | "max"> & {
|
|
126
|
+
min?: string;
|
|
127
|
+
max?: string;
|
|
128
|
+
"minute-step"?: number;
|
|
129
|
+
locale?: string;
|
|
130
|
+
};
|
|
131
|
+
"s24-slider": FieldProps<SliderElement> & {
|
|
132
|
+
valueAsNumber?: number;
|
|
133
|
+
"hide-value"?: boolean;
|
|
134
|
+
"start-label"?: string;
|
|
135
|
+
"middle-label"?: string;
|
|
136
|
+
"end-label"?: string;
|
|
137
|
+
suffix?: string;
|
|
138
|
+
locale?: string;
|
|
139
|
+
};
|
|
140
|
+
"s24-select": FieldProps<SelectElement> & {
|
|
141
|
+
options?: SelectOption[];
|
|
142
|
+
variant?: "dropdown";
|
|
143
|
+
};
|
|
144
|
+
"s24-checkbox": FieldProps<ChoiceElement> & { checked?: boolean };
|
|
145
|
+
"s24-radio": FieldProps<ChoiceElement> & { checked?: boolean };
|
|
146
|
+
"s24-switch": FieldProps<ChoiceElement> & { checked?: boolean };
|
|
147
|
+
"s24-island": Props<HTMLElement> & {
|
|
148
|
+
heading?: string;
|
|
149
|
+
description?: string;
|
|
150
|
+
};
|
|
151
|
+
"s24-well": Props<HTMLElement> & {
|
|
152
|
+
dark?: boolean;
|
|
153
|
+
white?: boolean;
|
|
154
|
+
grey?: boolean;
|
|
155
|
+
grey2?: boolean;
|
|
156
|
+
grey3?: boolean;
|
|
157
|
+
grey4?: boolean;
|
|
158
|
+
light?: boolean;
|
|
159
|
+
"no-padding"?: boolean;
|
|
160
|
+
row?: boolean;
|
|
161
|
+
"center-y"?: boolean;
|
|
162
|
+
"space-between"?: boolean;
|
|
163
|
+
radius?:
|
|
164
|
+
| "small"
|
|
165
|
+
| "medium"
|
|
166
|
+
| "large"
|
|
167
|
+
| "rounded"
|
|
168
|
+
| "noBorderTopMedium"
|
|
169
|
+
| "noBorderBottomMedium";
|
|
170
|
+
};
|
|
171
|
+
"s24-space": Props<HTMLElement> & {
|
|
172
|
+
top?: string | number;
|
|
173
|
+
bottom?: string | number;
|
|
174
|
+
left?: string | number;
|
|
175
|
+
right?: string | number;
|
|
176
|
+
type?: "inner" | "outer" | "padding" | "margin";
|
|
177
|
+
row?: boolean;
|
|
178
|
+
"center-x"?: boolean;
|
|
179
|
+
"center-y"?: boolean;
|
|
180
|
+
"space-between"?: boolean;
|
|
181
|
+
flex?: number;
|
|
182
|
+
};
|
|
183
|
+
"s24-screen": Props<HTMLElement> & {
|
|
184
|
+
padding?: "standard" | "none";
|
|
185
|
+
tone?: "surface";
|
|
186
|
+
};
|
|
187
|
+
"s24-stack": Props<HTMLElement> & {
|
|
188
|
+
direction?: "row";
|
|
189
|
+
columns?: string;
|
|
190
|
+
gap?: "small" | "large" | "none";
|
|
191
|
+
};
|
|
192
|
+
"s24-icon": Props<IconElement> & {
|
|
193
|
+
name?: string;
|
|
194
|
+
size?: number;
|
|
195
|
+
label?: string;
|
|
196
|
+
color?: string;
|
|
197
|
+
};
|
|
198
|
+
"s24-typography": Omit<Props<HTMLElement>, "title"> & {
|
|
199
|
+
variant?: TypographyVariant;
|
|
200
|
+
variants?: TypographyVariant;
|
|
201
|
+
text?: string;
|
|
202
|
+
bold?: boolean;
|
|
203
|
+
medium?: boolean;
|
|
204
|
+
thin?: boolean;
|
|
205
|
+
black?: boolean;
|
|
206
|
+
italic?: boolean;
|
|
207
|
+
title?: boolean;
|
|
208
|
+
inversion?: boolean;
|
|
209
|
+
grey?: boolean;
|
|
210
|
+
green?: boolean;
|
|
211
|
+
blue?: boolean;
|
|
212
|
+
red?: boolean;
|
|
213
|
+
color?: string;
|
|
214
|
+
align?: "left" | "right" | "center";
|
|
215
|
+
left?: boolean;
|
|
216
|
+
right?: boolean;
|
|
217
|
+
center?: boolean;
|
|
218
|
+
"list-item"?: boolean;
|
|
219
|
+
};
|
|
220
|
+
"s24-text": Props<HTMLElement> & {
|
|
221
|
+
variant?: "page" | "title" | "caption";
|
|
222
|
+
muted?: boolean;
|
|
223
|
+
};
|
|
224
|
+
"s24-tabs": Props<TabsElement> & {
|
|
225
|
+
value?: string;
|
|
226
|
+
variant?: "segmented";
|
|
227
|
+
};
|
|
228
|
+
"s24-tab": Props<HTMLElement> & {
|
|
229
|
+
value?: string;
|
|
230
|
+
panel?: string;
|
|
231
|
+
count?: string | number;
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
};
|
|
234
|
+
"s24-dialog": Props<DialogElement> & {
|
|
235
|
+
heading?: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
open?: boolean;
|
|
238
|
+
"close-label"?: string;
|
|
239
|
+
};
|
|
240
|
+
"s24-badge": Props<HTMLElement> & {
|
|
241
|
+
tone?: "neutral" | "success" | "warning" | "error" | "info";
|
|
242
|
+
};
|
|
243
|
+
"s24-divider": Props<HTMLElement>;
|
|
244
|
+
"s24-row": Props<HTMLElement> & {
|
|
245
|
+
heading?: string;
|
|
246
|
+
description?: string;
|
|
247
|
+
interactive?: boolean;
|
|
248
|
+
selected?: boolean;
|
|
249
|
+
disabled?: boolean;
|
|
250
|
+
last?: boolean;
|
|
251
|
+
};
|
|
252
|
+
"s24-empty": Props<HTMLElement> & {
|
|
253
|
+
size?: number;
|
|
254
|
+
heading?: string;
|
|
255
|
+
description?: string;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
export {};
|
package/dist/react.js
ADDED