@synchra24/app-ui 0.1.0 → 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/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,
@@ -33,9 +41,59 @@ type FieldProps<T extends HTMLElement> = Props<T> & {
33
41
  max?: number;
34
42
  step?: number;
35
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
+ };
36
54
  declare module "react" {
37
55
  namespace JSX {
38
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
+ };
39
97
  "s24-button": Props<ButtonElement> & {
40
98
  variant?: "primary" | "secondary" | "danger";
41
99
  size?: "default" | "small" | "icon";
@@ -56,6 +114,7 @@ declare module "react" {
56
114
  "light-grey"?: boolean;
57
115
  type?: "button" | "submit" | "reset";
58
116
  };
117
+ "s24-search": FieldProps<ValueElement> & { small?: boolean };
59
118
  "s24-input": FieldProps<ValueElement>;
60
119
  "s24-textarea": FieldProps<ValueElement>;
61
120
  "s24-date-picker": Omit<FieldProps<PickerElement>, "min" | "max"> & {
@@ -162,10 +221,14 @@ declare module "react" {
162
221
  variant?: "page" | "title" | "caption";
163
222
  muted?: boolean;
164
223
  };
165
- "s24-tabs": Props<TabsElement> & { value?: string };
224
+ "s24-tabs": Props<TabsElement> & {
225
+ value?: string;
226
+ variant?: "segmented";
227
+ };
166
228
  "s24-tab": Props<HTMLElement> & {
167
229
  value?: string;
168
230
  panel?: string;
231
+ count?: string | number;
169
232
  disabled?: boolean;
170
233
  };
171
234
  "s24-dialog": Props<DialogElement> & {