@maskingtech/designsystem 0.0.1 → 0.0.2

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,71 @@ 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_5): 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_6): 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_7): JSX.Element;
13
13
 
14
- export declare function Cell({ sizing, children }: Props_7): JSX.Element;
14
+ export declare function Cell({ sizing, children }: Props_8): JSX.Element;
15
15
 
16
- export declare function ClickArea({ padding, onClick, children }: Props_8): JSX.Element;
16
+ export declare function ClickArea({ padding, onClick, children }: Props_9): JSX.Element;
17
17
 
18
- export declare function Column({ alignX, alignY, gap, wrap, children }: Props_9): JSX.Element;
18
+ export declare function Column({ alignX, alignY, gap, wrap, children }: Props_10): JSX.Element;
19
19
 
20
- export declare function Dropdown({ options, selected, onChange }: Props): JSX.Element;
20
+ export declare function DesignSystem({ children }: Props): JSX.Element;
21
21
 
22
- export declare const Form: ForwardRefExoticComponent<Props_10 & RefAttributes<HTMLFormElement>>;
22
+ export declare function Dropdown({ options, selected, onChange }: Props_2): JSX.Element;
23
23
 
24
- export declare function Grid({ layout, gap, children }: Props_11): JSX.Element;
24
+ export declare const Form: ForwardRefExoticComponent<Props_11 & RefAttributes<HTMLFormElement>>;
25
25
 
26
- export declare function Icon({ type }: Props_12): JSX.Element;
26
+ export declare function Grid({ layout, gap, children }: Props_12): JSX.Element;
27
27
 
28
- declare function Image_2({ source, title, alt, width, height, fit }: Props_13): JSX.Element;
28
+ export declare function Icon({ type }: Props_13): JSX.Element;
29
+
30
+ declare function Image_2({ source, title, alt, width, height, fit }: Props_14): JSX.Element;
29
31
  export { Image_2 as Image }
30
32
 
31
- export declare function Input({ label, element }: Props_14): JSX.Element;
33
+ export declare function Input({ label, element }: Props_15): JSX.Element;
32
34
 
33
- export declare function Label({ value }: Props_15): JSX.Element;
35
+ export declare function Label({ value }: Props_16): JSX.Element;
34
36
 
35
- export declare function Link({ url, target, children }: Props_19): JSX.Element;
37
+ export declare function Link({ url, target, children }: Props_20): JSX.Element;
36
38
 
37
- export declare function Modal({ open, sizing, children }: Props_20): JSX.Element;
39
+ export declare function Modal({ open, sizing, children }: Props_21): JSX.Element;
38
40
 
39
- export declare function Panel({ type, padding, children }: Props_21): JSX.Element;
41
+ export declare function Panel({ type, padding, children }: Props_22): JSX.Element;
40
42
 
41
- export declare function Paragraph({ size, children }: Props_22): JSX.Element;
43
+ export declare function Paragraph({ size, children }: Props_23): JSX.Element;
42
44
 
43
45
  declare type Props = {
44
- readonly options: Map<string, string>;
45
- readonly selected?: string;
46
- readonly onChange?: (oldKey: string, newKey: string) => void;
46
+ readonly children?: ReactNode;
47
47
  };
48
48
 
49
49
  declare type Props_10 = {
50
+ readonly alignX?: 'left' | 'center' | 'right' | 'stretch';
51
+ readonly alignY?: 'top' | 'center' | 'bottom' | 'justify';
52
+ readonly gap?: 'large' | 'medium' | 'small' | 'none';
53
+ readonly wrap?: 'wrap' | 'nowrap';
50
54
  readonly children: ReactNode;
51
- readonly submitHandler?: (form: HTMLFormElement) => void;
52
55
  };
53
56
 
54
57
  declare type Props_11 = {
58
+ readonly children: ReactNode;
59
+ readonly submitHandler?: (form: HTMLFormElement) => void;
60
+ };
61
+
62
+ declare type Props_12 = {
55
63
  readonly layout: 'two-columns' | 'three-columns' | 'four-columns';
56
64
  readonly gap?: 'large' | 'medium' | 'small' | 'none';
57
65
  readonly children: ReactNode;
58
66
  };
59
67
 
60
- declare type Props_12 = {
68
+ declare type Props_13 = {
61
69
  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';
62
70
  };
63
71
 
64
- declare type Props_13 = {
72
+ declare type Props_14 = {
65
73
  readonly source: string;
66
74
  readonly title?: string;
67
75
  readonly alt?: string;
@@ -70,16 +78,16 @@ declare type Props_13 = {
70
78
  readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
71
79
  };
72
80
 
73
- declare type Props_14 = {
74
- readonly label: ReactElement<Props_15>;
75
- readonly element: ReactElement<Props_16> | ReactElement<Props_17> | ReactElement<Props_18>;
81
+ declare type Props_15 = {
82
+ readonly label: ReactElement<Props_16>;
83
+ readonly element: ReactElement<Props_17> | ReactElement<Props_18> | ReactElement<Props_19>;
76
84
  };
77
85
 
78
- declare type Props_15 = {
86
+ declare type Props_16 = {
79
87
  readonly value: string;
80
88
  };
81
89
 
82
- declare type Props_16 = {
90
+ declare type Props_17 = {
83
91
  readonly name: string;
84
92
  readonly placeholder?: string;
85
93
  readonly value?: string;
@@ -91,7 +99,7 @@ declare type Props_16 = {
91
99
  readonly onChange?: ChangeEventHandler<HTMLInputElement>;
92
100
  };
93
101
 
94
- declare type Props_17 = {
102
+ declare type Props_18 = {
95
103
  readonly name: string;
96
104
  readonly placeholder?: string;
97
105
  readonly value?: string;
@@ -101,7 +109,7 @@ declare type Props_17 = {
101
109
  readonly onChange?: ChangeEventHandler<HTMLTextAreaElement>;
102
110
  };
103
111
 
104
- declare type Props_18 = {
112
+ declare type Props_19 = {
105
113
  readonly name: string;
106
114
  readonly options: Map<string, string>;
107
115
  readonly value?: string;
@@ -109,36 +117,36 @@ declare type Props_18 = {
109
117
  readonly onChange?: ChangeEventHandler<HTMLSelectElement>;
110
118
  };
111
119
 
112
- declare type Props_19 = {
113
- readonly url?: string;
114
- readonly target?: string;
115
- readonly children: ReactNode;
120
+ declare type Props_2 = {
121
+ readonly options: Map<string, string>;
122
+ readonly selected?: string;
123
+ readonly onChange?: (oldKey: string, newKey: string) => void;
116
124
  };
117
125
 
118
- declare type Props_2 = {
119
- readonly id: string;
120
- readonly title: ReactNode;
126
+ declare type Props_20 = {
127
+ readonly url?: string;
128
+ readonly target?: string;
121
129
  readonly children: ReactNode;
122
130
  };
123
131
 
124
- declare type Props_20 = {
132
+ declare type Props_21 = {
125
133
  readonly open: boolean;
126
134
  readonly sizing?: 'full' | 'content';
127
135
  readonly children?: ReactNode;
128
136
  };
129
137
 
130
- declare type Props_21 = {
138
+ declare type Props_22 = {
131
139
  readonly type?: 'normal' | 'alert' | 'warning' | 'success' | 'error' | 'transparent';
132
140
  readonly padding?: 'large' | 'medium' | 'small';
133
141
  readonly children?: ReactNode;
134
142
  };
135
143
 
136
- declare type Props_22 = {
144
+ declare type Props_23 = {
137
145
  readonly size?: 'large' | 'medium' | 'small';
138
146
  readonly children: ReactNode;
139
147
  };
140
148
 
141
- declare type Props_23 = {
149
+ declare type Props_24 = {
142
150
  readonly alignX?: 'left' | 'center' | 'right' | 'justify';
143
151
  readonly alignY?: 'top' | 'center' | 'bottom' | 'stretch';
144
152
  readonly gap?: 'large' | 'medium' | 'small' | 'none';
@@ -146,16 +154,16 @@ declare type Props_23 = {
146
154
  readonly children: ReactNode;
147
155
  };
148
156
 
149
- declare type Props_24 = {
157
+ declare type Props_25 = {
150
158
  readonly direction: 'horizontal' | 'vertical';
151
159
  readonly size?: 'small' | 'medium' | 'large';
152
160
  };
153
161
 
154
- declare type Props_25 = {
162
+ declare type Props_26 = {
155
163
  readonly active?: boolean;
156
164
  };
157
165
 
158
- declare type Props_26 = {
166
+ declare type Props_27 = {
159
167
  readonly value: string;
160
168
  readonly type?: 'primary' | 'secondary';
161
169
  readonly size?: 'large' | 'medium' | 'small';
@@ -163,19 +171,25 @@ declare type Props_26 = {
163
171
  readonly wrap?: 'none' | 'normal' | 'break-word';
164
172
  };
165
173
 
166
- declare type Props_27 = {
174
+ declare type Props_28 = {
167
175
  readonly size?: 'large' | 'medium' | 'small';
168
176
  readonly children: ReactNode;
169
177
  };
170
178
 
171
179
  declare type Props_3 = {
180
+ readonly id: string;
181
+ readonly title: ReactNode;
182
+ readonly children: ReactNode;
183
+ };
184
+
185
+ declare type Props_4 = {
172
186
  readonly separator?: ReactNode;
173
187
  readonly selectedId?: string;
174
- readonly children: ReactElement<Props_2> | ReactElement<Props_2>[];
188
+ readonly children: ReactElement<Props_3> | ReactElement<Props_3>[];
175
189
  readonly onChange?: (newId: string, oldId?: string) => void;
176
190
  };
177
191
 
178
- declare type Props_4 = {
192
+ declare type Props_5 = {
179
193
  readonly source: string;
180
194
  readonly title?: string;
181
195
  readonly alt?: string;
@@ -184,58 +198,50 @@ declare type Props_4 = {
184
198
  readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
185
199
  };
186
200
 
187
- declare type Props_5 = {
201
+ declare type Props_6 = {
188
202
  readonly type?: 'normal' | 'dashed' | 'dotted';
189
203
  readonly size?: 'large' | 'medium' | 'small';
190
204
  readonly padding?: 'large' | 'medium' | 'small' | 'none';
191
205
  readonly children?: ReactNode;
192
206
  };
193
207
 
194
- declare type Props_6 = {
208
+ declare type Props_7 = {
195
209
  readonly type?: 'submit' | 'primary' | 'secondary' | 'disabled';
196
210
  readonly size?: 'large' | 'medium' | 'small';
197
211
  readonly text: string;
198
212
  readonly onClick?: () => void;
199
213
  };
200
214
 
201
- declare type Props_7 = {
215
+ declare type Props_8 = {
202
216
  readonly sizing?: 'fixed' | 'fluid';
203
217
  readonly children: ReactNode;
204
218
  };
205
219
 
206
- declare type Props_8 = {
220
+ declare type Props_9 = {
207
221
  readonly padding?: 'large' | 'medium' | 'small' | 'none';
208
222
  readonly onClick?: () => void;
209
223
  readonly children?: ReactNode;
210
224
  };
211
225
 
212
- declare type Props_9 = {
213
- readonly alignX?: 'left' | 'center' | 'right' | 'stretch';
214
- readonly alignY?: 'top' | 'center' | 'bottom' | 'justify';
215
- readonly gap?: 'large' | 'medium' | 'small' | 'none';
216
- readonly wrap?: 'wrap' | 'nowrap';
217
- readonly children: ReactNode;
218
- };
219
-
220
- export declare function Row({ alignX, alignY, gap, wrap, children }: Props_23): JSX.Element;
226
+ export declare function Row({ alignX, alignY, gap, wrap, children }: Props_24): JSX.Element;
221
227
 
222
- export declare function Ruler({ direction, size }: Props_24): JSX.Element;
228
+ export declare function Ruler({ direction, size }: Props_25): JSX.Element;
223
229
 
224
- export declare const Select: ForwardRefExoticComponent<Props_18 & RefAttributes<HTMLSelectElement>>;
230
+ export declare const Select: ForwardRefExoticComponent<Props_19 & RefAttributes<HTMLSelectElement>>;
225
231
 
226
- export declare function Spinner({ active }: Props_25): JSX.Element;
232
+ export declare function Spinner({ active }: Props_26): JSX.Element;
227
233
 
228
- export declare function Tab({ children }: Props_2): JSX.Element;
234
+ export declare function Tab({ children }: Props_3): JSX.Element;
229
235
 
230
- export declare function Tabs({ separator, selectedId, children, onChange }: Props_3): JSX.Element;
236
+ export declare function Tabs({ separator, selectedId, children, onChange }: Props_4): JSX.Element;
231
237
 
232
- declare function Text_2({ value, type, size, weight, wrap }: Props_26): JSX.Element;
238
+ declare function Text_2({ value, type, size, weight, wrap }: Props_27): JSX.Element;
233
239
  export { Text_2 as Text }
234
240
 
235
- export declare const TextArea: ForwardRefExoticComponent<Props_17 & RefAttributes<HTMLTextAreaElement>>;
241
+ export declare const TextArea: ForwardRefExoticComponent<Props_18 & RefAttributes<HTMLTextAreaElement>>;
236
242
 
237
- export declare const TextBox: ForwardRefExoticComponent<Props_16 & RefAttributes<HTMLInputElement>>;
243
+ export declare const TextBox: ForwardRefExoticComponent<Props_17 & RefAttributes<HTMLInputElement>>;
238
244
 
239
- export declare function Title({ size, children }: Props_27): JSX.Element;
245
+ export declare function Title({ size, children }: Props_28): JSX.Element;
240
246
 
241
247
  export { }