@maskingtech/designsystem 0.0.1 → 0.0.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.
package/dist/mtds.d.ts CHANGED
@@ -5,63 +5,79 @@ import { ReactElement } from 'react';
5
5
  import { ReactNode } from 'react';
6
6
  import { RefAttributes } from 'react';
7
7
 
8
- export declare function Avatar({ source, title, alt, width, height, fit }: Props_4): JSX.Element;
8
+ export declare function Avatar({ source, title, alt, width, height, fit }: Props): JSX.Element;
9
9
 
10
- export declare function Border({ type, size, padding, children }: Props_5): JSX.Element;
10
+ export declare function Border({ type, size, padding, children }: Props_2): JSX.Element;
11
11
 
12
- export declare function Button({ type, size, text, onClick }: Props_6): JSX.Element;
12
+ export declare function Button({ type, size, text, onClick }: Props_3): JSX.Element;
13
13
 
14
- export declare function Cell({ sizing, children }: Props_7): JSX.Element;
14
+ export declare function Cell({ sizing, children }: Props_4): JSX.Element;
15
15
 
16
- export declare function ClickArea({ padding, onClick, children }: Props_8): JSX.Element;
16
+ export declare const CheckBox: ForwardRefExoticComponent<Props_5 & RefAttributes<HTMLInputElement>>;
17
17
 
18
- export declare function Column({ alignX, alignY, gap, wrap, children }: Props_9): JSX.Element;
18
+ export declare function ClickArea({ padding, onClick, children }: Props_6): JSX.Element;
19
19
 
20
- export declare function Dropdown({ options, selected, onChange }: Props): JSX.Element;
20
+ export declare function Column({ alignX, alignY, gap, wrap, children }: Props_7): JSX.Element;
21
21
 
22
- export declare const Form: ForwardRefExoticComponent<Props_10 & RefAttributes<HTMLFormElement>>;
22
+ export declare const DateTime: ForwardRefExoticComponent<Props_8 & RefAttributes<HTMLInputElement>>;
23
23
 
24
- export declare function Grid({ layout, gap, children }: Props_11): JSX.Element;
24
+ export declare function DesignSystem({ children }: Props_37): JSX.Element;
25
25
 
26
- export declare function Icon({ type }: Props_12): JSX.Element;
26
+ export declare function Dropdown({ options, selected, onChange }: Props_33): JSX.Element;
27
27
 
28
- declare function Image_2({ source, title, alt, width, height, fit }: Props_13): JSX.Element;
28
+ declare function Element_2({ children }: Props_26): JSX.Element;
29
+
30
+ declare function Element_3({ border, children }: Props_29): JSX.Element;
31
+
32
+ declare function Element_4({ children }: Props_30): JSX.Element;
33
+
34
+ declare function Element_5({ children }: Props_27): JSX.Element;
35
+
36
+ declare function Element_6({ colspan, rowspan, alignX, alignY, size, children }: Props_28): JSX.Element;
37
+
38
+ export declare const Form: ForwardRefExoticComponent<Props_9 & RefAttributes<HTMLFormElement>>;
39
+
40
+ export declare function Grid({ layout, gap, children }: Props_10): JSX.Element;
41
+
42
+ export declare function Icon({ type }: Props_11): JSX.Element;
43
+
44
+ declare function Image_2({ source, title, alt, width, height, fit }: Props_12): JSX.Element;
29
45
  export { Image_2 as Image }
30
46
 
31
- export declare function Input({ label, element }: Props_14): JSX.Element;
47
+ export declare function Input({ label, element }: Props_13): JSX.Element;
32
48
 
33
- export declare function Label({ value }: Props_15): JSX.Element;
49
+ export declare function Label({ value }: Props_14): JSX.Element;
34
50
 
35
- export declare function Link({ url, target, children }: Props_19): JSX.Element;
51
+ export declare function Link({ url, target, children }: Props_18): JSX.Element;
36
52
 
37
- export declare function Modal({ open, sizing, children }: Props_20): JSX.Element;
53
+ export declare function Modal({ open, sizing, children }: Props_19): JSX.Element;
38
54
 
39
- export declare function Panel({ type, padding, children }: Props_21): JSX.Element;
55
+ export declare function ModalManager({ selectedId, children }: Props_34): JSX.Element;
40
56
 
41
- export declare function Paragraph({ size, children }: Props_22): JSX.Element;
57
+ export declare function Panel({ type, padding, children }: Props_20): JSX.Element;
58
+
59
+ export declare function Paragraph({ size, children }: Props_21): JSX.Element;
42
60
 
43
61
  declare type Props = {
44
- readonly options: Map<string, string>;
45
- readonly selected?: string;
46
- readonly onChange?: (oldKey: string, newKey: string) => void;
62
+ readonly source: string;
63
+ readonly title?: string;
64
+ readonly alt?: string;
65
+ readonly width?: string;
66
+ readonly height?: string;
67
+ readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
47
68
  };
48
69
 
49
70
  declare type Props_10 = {
50
- readonly children: ReactNode;
51
- readonly submitHandler?: (form: HTMLFormElement) => void;
52
- };
53
-
54
- declare type Props_11 = {
55
71
  readonly layout: 'two-columns' | 'three-columns' | 'four-columns';
56
72
  readonly gap?: 'large' | 'medium' | 'small' | 'none';
57
73
  readonly children: ReactNode;
58
74
  };
59
75
 
60
- declare type Props_12 = {
61
- readonly type: 'attachment' | 'bookmark' | 'box' | 'box-checked' | 'box-crossed' | 'calendar' | 'caution' | 'check' | 'clock' | 'close' | 'cloud' | 'comment' | 'diamond' | 'eye' | 'flag' | 'heart' | 'home' | 'info' | 'lock' | 'mail' | 'music' | 'phone' | 'piece' | 'plus' | 'question' | 'rain' | 'recycle' | 'search' | 'settings' | 'star' | 'sun' | 'tag' | 'trash' | 'umbrella' | 'unlock' | 'user' | 'video' | 'warning' | 'yinyang';
76
+ declare type Props_11 = {
77
+ readonly type: 'attachment' | 'bookmark' | 'box' | 'box-checked' | 'box-crossed' | 'calendar' | 'caution' | 'check' | 'clock' | 'close' | 'cloud' | 'comment' | 'diamond' | 'eye' | 'flag' | 'heart' | 'home' | 'info' | 'lock' | 'mail' | 'music' | 'pencil' | 'phone' | 'piece' | 'plus' | 'question' | 'rain' | 'recycle' | 'search' | 'settings' | 'star' | 'sun' | 'tag' | 'trash' | 'umbrella' | 'unlock' | 'user' | 'video' | 'warning' | 'yinyang';
62
78
  };
63
79
 
64
- declare type Props_13 = {
80
+ declare type Props_12 = {
65
81
  readonly source: string;
66
82
  readonly title?: string;
67
83
  readonly alt?: string;
@@ -70,30 +86,33 @@ declare type Props_13 = {
70
86
  readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
71
87
  };
72
88
 
73
- declare type Props_14 = {
74
- readonly label: ReactElement<Props_15>;
75
- readonly element: ReactElement<Props_16> | ReactElement<Props_17> | ReactElement<Props_18>;
89
+ declare type Props_13 = {
90
+ readonly label: ReactElement<Props_14>;
91
+ readonly element: ReactElement<Props_15> | ReactElement<Props_16> | ReactElement<Props_17>;
76
92
  };
77
93
 
78
- declare type Props_15 = {
94
+ declare type Props_14 = {
79
95
  readonly value: string;
80
96
  };
81
97
 
82
- declare type Props_16 = {
98
+ declare type Props_15 = {
83
99
  readonly name: string;
84
100
  readonly placeholder?: string;
101
+ readonly defaultValue?: string;
85
102
  readonly value?: string;
86
103
  readonly limit?: number;
87
104
  readonly pattern?: string;
88
105
  readonly title?: string;
106
+ readonly type?: 'email' | 'number' | 'password' | 'search' | 'text' | 'tel' | 'url';
89
107
  readonly size?: 'large' | 'medium' | 'small';
90
108
  readonly required?: boolean;
91
109
  readonly onChange?: ChangeEventHandler<HTMLInputElement>;
92
110
  };
93
111
 
94
- declare type Props_17 = {
112
+ declare type Props_16 = {
95
113
  readonly name: string;
96
114
  readonly placeholder?: string;
115
+ readonly defaultValue?: string;
97
116
  readonly value?: string;
98
117
  readonly size?: 'large' | 'medium' | 'small';
99
118
  readonly rows?: number;
@@ -101,44 +120,47 @@ declare type Props_17 = {
101
120
  readonly onChange?: ChangeEventHandler<HTMLTextAreaElement>;
102
121
  };
103
122
 
104
- declare type Props_18 = {
123
+ declare type Props_17 = {
105
124
  readonly name: string;
106
125
  readonly options: Map<string, string>;
126
+ readonly defaultValue?: string;
107
127
  readonly value?: string;
108
128
  readonly size?: 'large' | 'medium' | 'small';
109
129
  readonly onChange?: ChangeEventHandler<HTMLSelectElement>;
110
130
  };
111
131
 
112
- declare type Props_19 = {
132
+ declare type Props_18 = {
113
133
  readonly url?: string;
114
134
  readonly target?: string;
115
135
  readonly children: ReactNode;
116
136
  };
117
137
 
118
- declare type Props_2 = {
119
- readonly id: string;
120
- readonly title: ReactNode;
121
- readonly children: ReactNode;
138
+ declare type Props_19 = {
139
+ readonly id?: string;
140
+ readonly open?: boolean;
141
+ readonly sizing?: 'full' | 'content';
142
+ readonly children?: ReactNode;
122
143
  };
123
144
 
124
- declare type Props_20 = {
125
- readonly open: boolean;
126
- readonly sizing?: 'full' | 'content';
145
+ declare type Props_2 = {
146
+ readonly type?: 'normal' | 'dashed' | 'dotted';
147
+ readonly size?: 'large' | 'medium' | 'small';
148
+ readonly padding?: 'large' | 'medium' | 'small' | 'none';
127
149
  readonly children?: ReactNode;
128
150
  };
129
151
 
130
- declare type Props_21 = {
152
+ declare type Props_20 = {
131
153
  readonly type?: 'normal' | 'alert' | 'warning' | 'success' | 'error' | 'transparent';
132
154
  readonly padding?: 'large' | 'medium' | 'small';
133
155
  readonly children?: ReactNode;
134
156
  };
135
157
 
136
- declare type Props_22 = {
158
+ declare type Props_21 = {
137
159
  readonly size?: 'large' | 'medium' | 'small';
138
160
  readonly children: ReactNode;
139
161
  };
140
162
 
141
- declare type Props_23 = {
163
+ declare type Props_22 = {
142
164
  readonly alignX?: 'left' | 'center' | 'right' | 'justify';
143
165
  readonly alignY?: 'top' | 'center' | 'bottom' | 'stretch';
144
166
  readonly gap?: 'large' | 'medium' | 'small' | 'none';
@@ -146,16 +168,54 @@ declare type Props_23 = {
146
168
  readonly children: ReactNode;
147
169
  };
148
170
 
149
- declare type Props_24 = {
171
+ declare type Props_23 = {
150
172
  readonly direction: 'horizontal' | 'vertical';
151
173
  readonly size?: 'small' | 'medium' | 'large';
152
174
  };
153
175
 
154
- declare type Props_25 = {
176
+ declare type Props_24 = {
155
177
  readonly active?: boolean;
156
178
  };
157
179
 
180
+ declare type Props_25 = {
181
+ readonly padding?: 'large' | 'medium' | 'small';
182
+ readonly children?: ReactElement<Props_26> | ReactElement<Props_29> | ReactElement<Props_30>[];
183
+ };
184
+
158
185
  declare type Props_26 = {
186
+ readonly children?: ReactElement<Props_27>;
187
+ };
188
+
189
+ declare type Props_27 = {
190
+ readonly children?: ReactElement<Props_28>;
191
+ };
192
+
193
+ declare type Props_28 = {
194
+ readonly colspan?: number;
195
+ readonly rowspan?: number;
196
+ readonly alignX?: 'left' | 'center' | 'right';
197
+ readonly alignY?: 'top' | 'center' | 'bottom';
198
+ readonly size?: '95' | '90' | '85' | '80' | '75' | '70' | '65' | '60' | '55' | '50' | '45' | '40' | '35' | '30' | '25' | '20' | '25' | '10' | '5' | 'fit';
199
+ readonly children?: ReactNode;
200
+ };
201
+
202
+ declare type Props_29 = {
203
+ readonly border?: 'large' | 'medium' | 'small' | 'none';
204
+ readonly children?: ReactElement<Props_27>;
205
+ };
206
+
207
+ declare type Props_3 = {
208
+ readonly type?: 'submit' | 'primary' | 'secondary' | 'disabled';
209
+ readonly size?: 'large' | 'medium' | 'small';
210
+ readonly text: string;
211
+ readonly onClick?: () => void;
212
+ };
213
+
214
+ declare type Props_30 = {
215
+ readonly children?: ReactElement<Props_27>;
216
+ };
217
+
218
+ declare type Props_31 = {
159
219
  readonly value: string;
160
220
  readonly type?: 'primary' | 'secondary';
161
221
  readonly size?: 'large' | 'medium' | 'small';
@@ -163,53 +223,61 @@ declare type Props_26 = {
163
223
  readonly wrap?: 'none' | 'normal' | 'break-word';
164
224
  };
165
225
 
166
- declare type Props_27 = {
226
+ declare type Props_32 = {
167
227
  readonly size?: 'large' | 'medium' | 'small';
168
228
  readonly children: ReactNode;
169
229
  };
170
230
 
171
- declare type Props_3 = {
231
+ declare type Props_33 = {
232
+ readonly options: Map<string, string>;
233
+ readonly selected?: string;
234
+ readonly onChange?: (oldKey: string, newKey: string) => void;
235
+ };
236
+
237
+ declare type Props_34 = {
238
+ readonly selectedId?: string;
239
+ readonly children: ReactElement<Props_19> | ReactElement<Props_19>[];
240
+ };
241
+
242
+ declare type Props_35 = {
172
243
  readonly separator?: ReactNode;
173
244
  readonly selectedId?: string;
174
- readonly children: ReactElement<Props_2> | ReactElement<Props_2>[];
245
+ readonly children: ReactElement<Props_36> | ReactElement<Props_36>[];
175
246
  readonly onChange?: (newId: string, oldId?: string) => void;
176
247
  };
177
248
 
178
- declare type Props_4 = {
179
- readonly source: string;
180
- readonly title?: string;
181
- readonly alt?: string;
182
- readonly width?: string;
183
- readonly height?: string;
184
- readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
249
+ declare type Props_36 = {
250
+ readonly id: string;
251
+ readonly title: ReactNode;
252
+ readonly children: ReactNode;
185
253
  };
186
254
 
187
- declare type Props_5 = {
188
- readonly type?: 'normal' | 'dashed' | 'dotted';
189
- readonly size?: 'large' | 'medium' | 'small';
190
- readonly padding?: 'large' | 'medium' | 'small' | 'none';
255
+ declare type Props_37 = {
191
256
  readonly children?: ReactNode;
192
257
  };
193
258
 
194
- declare type Props_6 = {
195
- readonly type?: 'submit' | 'primary' | 'secondary' | 'disabled';
196
- readonly size?: 'large' | 'medium' | 'small';
197
- readonly text: string;
198
- readonly onClick?: () => void;
199
- };
200
-
201
- declare type Props_7 = {
259
+ declare type Props_4 = {
202
260
  readonly sizing?: 'fixed' | 'fluid';
203
261
  readonly children: ReactNode;
204
262
  };
205
263
 
206
- declare type Props_8 = {
264
+ declare type Props_5 = {
265
+ readonly name: string;
266
+ readonly label: string;
267
+ readonly defaultChecked?: boolean;
268
+ readonly checked?: boolean;
269
+ readonly value?: string;
270
+ readonly required?: boolean;
271
+ readonly onChange?: ChangeEventHandler<HTMLInputElement>;
272
+ };
273
+
274
+ declare type Props_6 = {
207
275
  readonly padding?: 'large' | 'medium' | 'small' | 'none';
208
276
  readonly onClick?: () => void;
209
277
  readonly children?: ReactNode;
210
278
  };
211
279
 
212
- declare type Props_9 = {
280
+ declare type Props_7 = {
213
281
  readonly alignX?: 'left' | 'center' | 'right' | 'stretch';
214
282
  readonly alignY?: 'top' | 'center' | 'bottom' | 'justify';
215
283
  readonly gap?: 'large' | 'medium' | 'small' | 'none';
@@ -217,25 +285,55 @@ declare type Props_9 = {
217
285
  readonly children: ReactNode;
218
286
  };
219
287
 
220
- export declare function Row({ alignX, alignY, gap, wrap, children }: Props_23): JSX.Element;
288
+ declare type Props_8 = {
289
+ readonly name: string;
290
+ readonly defaultValue?: string;
291
+ readonly value?: string;
292
+ readonly title?: string;
293
+ readonly type?: 'datetime' | 'date' | 'time' | 'month' | 'week';
294
+ readonly size?: 'large' | 'medium' | 'small';
295
+ readonly required?: boolean;
296
+ readonly onChange?: ChangeEventHandler<HTMLInputElement>;
297
+ };
298
+
299
+ declare type Props_9 = {
300
+ readonly children: ReactNode;
301
+ readonly submitHandler?: (form: HTMLFormElement) => void;
302
+ };
303
+
304
+ export declare function Row({ alignX, alignY, gap, wrap, children }: Props_22): JSX.Element;
305
+
306
+ export declare function Ruler({ direction, size }: Props_23): JSX.Element;
307
+
308
+ export declare const Select: ForwardRefExoticComponent<Props_17 & RefAttributes<HTMLSelectElement>>;
309
+
310
+ export declare function Spinner({ active }: Props_24): JSX.Element;
221
311
 
222
- export declare function Ruler({ direction, size }: Props_24): JSX.Element;
312
+ declare function Tab({ children }: Props_36): JSX.Element;
223
313
 
224
- export declare const Select: ForwardRefExoticComponent<Props_18 & RefAttributes<HTMLSelectElement>>;
314
+ export declare function Table({ padding, children }: Props_25): JSX.Element;
225
315
 
226
- export declare function Spinner({ active }: Props_25): JSX.Element;
316
+ export declare namespace Table {
317
+ var Header: Element_2;
318
+ var Body: Element_3;
319
+ var Footer: Element_4;
320
+ var Row: Element_5;
321
+ var Cell: Element_6;
322
+ }
227
323
 
228
- export declare function Tab({ children }: Props_2): JSX.Element;
324
+ export declare function Tabs({ separator, selectedId, children, onChange }: Props_35): JSX.Element;
229
325
 
230
- export declare function Tabs({ separator, selectedId, children, onChange }: Props_3): JSX.Element;
326
+ export declare namespace Tabs {
327
+ var Tab: Tab;
328
+ }
231
329
 
232
- declare function Text_2({ value, type, size, weight, wrap }: Props_26): JSX.Element;
330
+ declare function Text_2({ value, type, size, weight, wrap }: Props_31): JSX.Element;
233
331
  export { Text_2 as Text }
234
332
 
235
- export declare const TextArea: ForwardRefExoticComponent<Props_17 & RefAttributes<HTMLTextAreaElement>>;
333
+ export declare const TextArea: ForwardRefExoticComponent<Props_16 & RefAttributes<HTMLTextAreaElement>>;
236
334
 
237
- export declare const TextBox: ForwardRefExoticComponent<Props_16 & RefAttributes<HTMLInputElement>>;
335
+ export declare const TextBox: ForwardRefExoticComponent<Props_15 & RefAttributes<HTMLInputElement>>;
238
336
 
239
- export declare function Title({ size, children }: Props_27): JSX.Element;
337
+ export declare function Title({ size, children }: Props_32): JSX.Element;
240
338
 
241
339
  export { }