react-magma-dom 3.0.0 → 3.1.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/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +8 -0
- package/dist/components/Accordion/useAccordion.d.ts +3 -0
- package/dist/components/Accordion/useAccordionButton.d.ts +3 -0
- package/dist/components/Accordion/useAccordionItem.d.ts +3 -0
- package/dist/components/Alert/Alert.stories.d.ts +7 -8
- package/dist/components/Alert/index.d.ts +4 -1
- package/dist/components/AlertBase/index.d.ts +8 -1
- package/dist/components/Announce/index.d.ts +3 -0
- package/dist/components/AppBar/AppBar.d.ts +7 -0
- package/dist/components/Badge/index.d.ts +3 -2
- package/dist/components/Banner/Banner.stories.d.ts +4 -2
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/BlockQuote/BlockQuoteItem.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +7 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +3 -0
- package/dist/components/BreakpointsContainer/index.d.ts +4 -1
- package/dist/components/Button/Button.stories.d.ts +2 -0
- package/dist/components/Button/index.d.ts +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +330 -0
- package/dist/components/ButtonGroup/index.d.ts +72 -0
- package/dist/components/Card/Card.d.ts +3 -0
- package/dist/components/Card/CardBody.d.ts +3 -0
- package/dist/components/Card/CardHeading.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts +8 -1
- package/dist/components/Combobox/index.d.ts +13 -4
- package/dist/components/Container/Container.d.ts +5 -0
- package/dist/components/Datagrid/Datagrid.d.ts +3 -1
- package/dist/components/Datagrid/Datagrid.stories.d.ts +8 -8
- package/dist/components/DatePicker/CalendarContext.d.ts +1 -0
- package/dist/components/DatePicker/CalendarDay.d.ts +1 -0
- package/dist/components/DatePicker/CalendarHeader.d.ts +1 -0
- package/dist/components/DatePicker/CalendarMonth.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/HelperInformation.d.ts +1 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/Drawer/Drawer.d.ts +5 -0
- package/dist/components/Dropdown/Dropdown.d.ts +7 -7
- package/dist/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/dist/components/Dropdown/DropdownButton.d.ts +1 -1
- package/dist/components/Dropdown/DropdownContent.d.ts +4 -0
- package/dist/components/Dropdown/DropdownDivider.d.ts +4 -0
- package/dist/components/Dropdown/DropdownHeader.d.ts +3 -0
- package/dist/components/Dropdown/DropdownMenuItem.d.ts +5 -1
- package/dist/components/Flex/Flex.d.ts +4 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/FormFieldContainer/FormFieldContainer.d.ts +4 -0
- package/dist/components/FormGroup/index.d.ts +3 -0
- package/dist/components/Heading/Heading.stories.d.ts +1 -0
- package/dist/components/Heading/index.d.ts +4 -1
- package/dist/components/HideAtBreakpoint/index.d.ts +6 -0
- package/dist/components/Hyperlink/index.d.ts +4 -0
- package/dist/components/IndeterminateCheckbox/index.d.ts +3 -0
- package/dist/components/Input/InputMessage.d.ts +3 -0
- package/dist/components/InputBase/InputBase.stories.d.ts +1 -0
- package/dist/components/InputBase/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts +9 -0
- package/dist/components/List/List.d.ts +5 -2
- package/dist/components/LoadingIndicator/LoadingIndicator.stories.d.ts +28 -1
- package/dist/components/LoadingIndicator/index.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.stories.d.ts +0 -1
- package/dist/components/NativeSelect/NativeSelect.d.ts +3 -0
- package/dist/components/NavTabs/NavTab.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/usePagination.d.ts +1 -0
- package/dist/components/Paragraph/index.d.ts +3 -0
- package/dist/components/PasswordInput/index.d.ts +3 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressRing/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts +4 -1
- package/dist/components/RadioGroup/index.d.ts +3 -0
- package/dist/components/Search/index.d.ts +3 -0
- package/dist/components/Select/ItemsList.d.ts +1 -0
- package/dist/components/Select/components.d.ts +2 -1
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/shared.d.ts +5 -1
- package/dist/components/SelectionControls/StyledContainer.d.ts +2 -2
- package/dist/components/SkipLink/index.d.ts +3 -0
- package/dist/components/SkipLinkContent/index.d.ts +3 -0
- package/dist/components/Spacer/Spacer.d.ts +4 -0
- package/dist/components/Spinner/index.d.ts +5 -1
- package/dist/components/StyledButton/styles.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +18 -0
- package/dist/components/Table/Table.stories.d.ts +836 -6
- package/dist/components/Table/TableBody.d.ts +3 -0
- package/dist/components/Table/TableCell.d.ts +3 -0
- package/dist/components/Table/TableHead.d.ts +3 -0
- package/dist/components/Table/TableHeaderCell.d.ts +3 -0
- package/dist/components/Table/TablePagination.d.ts +4 -1
- package/dist/components/Table/TableRow.d.ts +3 -0
- package/dist/components/Tabs/Tab.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.d.ts +3 -0
- package/dist/components/Tabs/TabPanelsContainer.d.ts +3 -0
- package/dist/components/Tabs/Tabs.d.ts +7 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -0
- package/dist/components/Tabs/TabsContainer.d.ts +3 -0
- package/dist/components/Tag/Tag.d.ts +2 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/TimePicker/useTimePicker.d.ts +2 -2
- package/dist/components/Toast/Toast.stories.d.ts +51 -1
- package/dist/components/Toast/ToastsContainer.d.ts +3 -0
- package/dist/components/Toast/index.d.ts +6 -1
- package/dist/components/Toggle/index.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Transition/Transition.d.ts +3 -0
- package/dist/components/Typography/index.d.ts +5 -0
- package/dist/components/VisuallyHidden/index.d.ts +3 -0
- package/dist/esm/index.js +2561 -2438
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/properties.json +589 -994
- package/dist/react-magma-dom.cjs.development.js +1435 -921
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/dist/theme/ThemeContext.d.ts +28 -32
- package/dist/theme/magma.d.ts +46 -66
- package/dist/utils/index.d.ts +10 -0
- package/package.json +1 -1
- package/dist/components/FormFieldContainer/FormFieldContainer.stories.d.ts +0 -34
|
@@ -8,38 +8,6 @@ export declare const ThemeContext: React.Context<{
|
|
|
8
8
|
colors: {
|
|
9
9
|
focus: string;
|
|
10
10
|
focusInverse: string;
|
|
11
|
-
primaryInverse: string;
|
|
12
|
-
foundation: string;
|
|
13
|
-
foundation02: string;
|
|
14
|
-
foundation03: string;
|
|
15
|
-
foundation04: string;
|
|
16
|
-
pop: string;
|
|
17
|
-
pop02: string;
|
|
18
|
-
pop03: string;
|
|
19
|
-
pop04: string;
|
|
20
|
-
pop05: string;
|
|
21
|
-
pop06: string;
|
|
22
|
-
success02: string;
|
|
23
|
-
successInverse: string;
|
|
24
|
-
dangerInverse: string;
|
|
25
|
-
neutral02: string;
|
|
26
|
-
neutral03: string;
|
|
27
|
-
neutral04: string;
|
|
28
|
-
neutral05: string;
|
|
29
|
-
neutral06: string;
|
|
30
|
-
neutral07: string;
|
|
31
|
-
neutral08: string;
|
|
32
|
-
disabledText: string;
|
|
33
|
-
disabledInverseText: string;
|
|
34
|
-
toggleBoxShadow: string;
|
|
35
|
-
shade: string;
|
|
36
|
-
shade02: string;
|
|
37
|
-
tint: string;
|
|
38
|
-
tint02: string;
|
|
39
|
-
tint03: string;
|
|
40
|
-
tint04: string;
|
|
41
|
-
tone: string;
|
|
42
|
-
tone02: string;
|
|
43
11
|
border: string;
|
|
44
12
|
borderInverse: string;
|
|
45
13
|
success100: string;
|
|
@@ -150,6 +118,7 @@ export declare const ThemeContext: React.Context<{
|
|
|
150
118
|
};
|
|
151
119
|
size03: {
|
|
152
120
|
fontSize: string;
|
|
121
|
+
letterSpacing: string;
|
|
153
122
|
lineHeight: string;
|
|
154
123
|
};
|
|
155
124
|
size04: {
|
|
@@ -192,6 +161,14 @@ export declare const ThemeContext: React.Context<{
|
|
|
192
161
|
fontSize: string;
|
|
193
162
|
lineHeight: string;
|
|
194
163
|
};
|
|
164
|
+
size14: {
|
|
165
|
+
fontSize: string;
|
|
166
|
+
lineHeight: string;
|
|
167
|
+
};
|
|
168
|
+
size15: {
|
|
169
|
+
fontSize: string;
|
|
170
|
+
lineHeight: string;
|
|
171
|
+
};
|
|
195
172
|
};
|
|
196
173
|
typographyVisualStyles: {
|
|
197
174
|
headingXLarge: {
|
|
@@ -275,10 +252,12 @@ export declare const ThemeContext: React.Context<{
|
|
|
275
252
|
bodyMedium: {
|
|
276
253
|
mobile: {
|
|
277
254
|
fontSize: string;
|
|
255
|
+
letterSpacing: string;
|
|
278
256
|
lineHeight: string;
|
|
279
257
|
};
|
|
280
258
|
desktop: {
|
|
281
259
|
fontSize: string;
|
|
260
|
+
letterSpacing: string;
|
|
282
261
|
lineHeight: string;
|
|
283
262
|
};
|
|
284
263
|
};
|
|
@@ -308,6 +287,17 @@ export declare const ThemeContext: React.Context<{
|
|
|
308
287
|
};
|
|
309
288
|
};
|
|
310
289
|
typographyExpressiveVisualStyles: {
|
|
290
|
+
heading2XLarge: {
|
|
291
|
+
mobile: {
|
|
292
|
+
fontSize: string;
|
|
293
|
+
lineHeight: string;
|
|
294
|
+
};
|
|
295
|
+
desktop: {
|
|
296
|
+
fontSize: string;
|
|
297
|
+
lineHeight: string;
|
|
298
|
+
};
|
|
299
|
+
fontWeight: number;
|
|
300
|
+
};
|
|
311
301
|
headingXLarge: {
|
|
312
302
|
mobile: {
|
|
313
303
|
fontSize: string;
|
|
@@ -366,10 +356,12 @@ export declare const ThemeContext: React.Context<{
|
|
|
366
356
|
heading2XSmall: {
|
|
367
357
|
mobile: {
|
|
368
358
|
fontSize: string;
|
|
359
|
+
letterSpacing: string;
|
|
369
360
|
lineHeight: string;
|
|
370
361
|
};
|
|
371
362
|
desktop: {
|
|
372
363
|
fontSize: string;
|
|
364
|
+
letterSpacing: string;
|
|
373
365
|
lineHeight: string;
|
|
374
366
|
};
|
|
375
367
|
fontWeight: number;
|
|
@@ -387,10 +379,12 @@ export declare const ThemeContext: React.Context<{
|
|
|
387
379
|
bodyMedium: {
|
|
388
380
|
mobile: {
|
|
389
381
|
fontSize: string;
|
|
382
|
+
letterSpacing: string;
|
|
390
383
|
lineHeight: string;
|
|
391
384
|
};
|
|
392
385
|
desktop: {
|
|
393
386
|
fontSize: string;
|
|
387
|
+
letterSpacing: string;
|
|
394
388
|
lineHeight: string;
|
|
395
389
|
};
|
|
396
390
|
};
|
|
@@ -501,10 +495,12 @@ export declare const ThemeContext: React.Context<{
|
|
|
501
495
|
bodyMedium: {
|
|
502
496
|
mobile: {
|
|
503
497
|
fontSize: string;
|
|
498
|
+
letterSpacing: string;
|
|
504
499
|
lineHeight: string;
|
|
505
500
|
};
|
|
506
501
|
desktop: {
|
|
507
502
|
fontSize: string;
|
|
503
|
+
letterSpacing: string;
|
|
508
504
|
lineHeight: string;
|
|
509
505
|
};
|
|
510
506
|
};
|
package/dist/theme/magma.d.ts
CHANGED
|
@@ -58,40 +58,8 @@ export interface Colors {
|
|
|
58
58
|
success500: string;
|
|
59
59
|
success600: string;
|
|
60
60
|
success700: string;
|
|
61
|
-
primaryInverse: string;
|
|
62
61
|
focus: string;
|
|
63
62
|
focusInverse: string;
|
|
64
|
-
foundation: string;
|
|
65
|
-
foundation02: string;
|
|
66
|
-
foundation03: string;
|
|
67
|
-
foundation04: string;
|
|
68
|
-
pop: string;
|
|
69
|
-
pop02: string;
|
|
70
|
-
pop03: string;
|
|
71
|
-
pop04: string;
|
|
72
|
-
pop05: string;
|
|
73
|
-
pop06: string;
|
|
74
|
-
success02: string;
|
|
75
|
-
successInverse: string;
|
|
76
|
-
dangerInverse: string;
|
|
77
|
-
neutral02: string;
|
|
78
|
-
neutral03: string;
|
|
79
|
-
neutral04: string;
|
|
80
|
-
neutral05: string;
|
|
81
|
-
neutral06: string;
|
|
82
|
-
neutral07: string;
|
|
83
|
-
neutral08: string;
|
|
84
|
-
disabledText: string;
|
|
85
|
-
disabledInverseText: string;
|
|
86
|
-
toggleBoxShadow: string;
|
|
87
|
-
shade: string;
|
|
88
|
-
shade02: string;
|
|
89
|
-
tint: string;
|
|
90
|
-
tint02: string;
|
|
91
|
-
tint03: string;
|
|
92
|
-
tint04: string;
|
|
93
|
-
tone: string;
|
|
94
|
-
tone02: string;
|
|
95
63
|
border: string;
|
|
96
64
|
borderInverse: string;
|
|
97
65
|
}
|
|
@@ -126,12 +94,13 @@ export interface SpacingScale {
|
|
|
126
94
|
spacing14: string;
|
|
127
95
|
}
|
|
128
96
|
export interface TypographyExpressiveSizes {
|
|
97
|
+
heading2XLarge: any;
|
|
129
98
|
headingXLarge: any;
|
|
130
99
|
headingLarge: any;
|
|
131
100
|
headingMedium: any;
|
|
132
101
|
headingSmall: any;
|
|
133
102
|
headingXSmall: any;
|
|
134
|
-
|
|
103
|
+
heading2XSmall: any;
|
|
135
104
|
bodyLarge: any;
|
|
136
105
|
bodyMedium: any;
|
|
137
106
|
bodySmall: any;
|
|
@@ -156,6 +125,8 @@ export interface TypeScale {
|
|
|
156
125
|
size11: TypeScaleSize;
|
|
157
126
|
size12: TypeScaleSize;
|
|
158
127
|
size13: TypeScaleSize;
|
|
128
|
+
size14: TypeScaleSize;
|
|
129
|
+
size15: TypeScaleSize;
|
|
159
130
|
}
|
|
160
131
|
export interface VisualStyle {
|
|
161
132
|
mobile: TypeScaleSize;
|
|
@@ -174,6 +145,19 @@ export interface TypographyVisualStyles {
|
|
|
174
145
|
bodySmall: VisualStyle;
|
|
175
146
|
bodyXSmall: VisualStyle;
|
|
176
147
|
}
|
|
148
|
+
export interface TypographyVisualStylesExpressive {
|
|
149
|
+
heading2XLarge: VisualStyle;
|
|
150
|
+
headingXLarge: VisualStyle;
|
|
151
|
+
headingLarge: VisualStyle;
|
|
152
|
+
headingMedium: VisualStyle;
|
|
153
|
+
headingSmall: VisualStyle;
|
|
154
|
+
headingXSmall: VisualStyle;
|
|
155
|
+
heading2XSmall: VisualStyle;
|
|
156
|
+
bodyLarge: VisualStyle;
|
|
157
|
+
bodyMedium: VisualStyle;
|
|
158
|
+
bodySmall: VisualStyle;
|
|
159
|
+
bodyXSmall: VisualStyle;
|
|
160
|
+
}
|
|
177
161
|
interface AppBar {
|
|
178
162
|
backgroundColor: string;
|
|
179
163
|
height: string;
|
|
@@ -286,7 +270,7 @@ export interface ThemeInterface {
|
|
|
286
270
|
select: Select;
|
|
287
271
|
typeScale: TypeScale;
|
|
288
272
|
typographyVisualStyles: TypographyVisualStyles;
|
|
289
|
-
typographyExpressiveVisualStyles:
|
|
273
|
+
typographyExpressiveVisualStyles: TypographyVisualStylesExpressive;
|
|
290
274
|
typographyNarrativeVisualStyles: TypographyVisualStyles;
|
|
291
275
|
modal: Modal;
|
|
292
276
|
tabs: Tabs;
|
|
@@ -302,38 +286,6 @@ export declare const magma: {
|
|
|
302
286
|
colors: {
|
|
303
287
|
focus: string;
|
|
304
288
|
focusInverse: string;
|
|
305
|
-
primaryInverse: string;
|
|
306
|
-
foundation: string;
|
|
307
|
-
foundation02: string;
|
|
308
|
-
foundation03: string;
|
|
309
|
-
foundation04: string;
|
|
310
|
-
pop: string;
|
|
311
|
-
pop02: string;
|
|
312
|
-
pop03: string;
|
|
313
|
-
pop04: string;
|
|
314
|
-
pop05: string;
|
|
315
|
-
pop06: string;
|
|
316
|
-
success02: string;
|
|
317
|
-
successInverse: string;
|
|
318
|
-
dangerInverse: string;
|
|
319
|
-
neutral02: string;
|
|
320
|
-
neutral03: string;
|
|
321
|
-
neutral04: string;
|
|
322
|
-
neutral05: string;
|
|
323
|
-
neutral06: string;
|
|
324
|
-
neutral07: string;
|
|
325
|
-
neutral08: string;
|
|
326
|
-
disabledText: string;
|
|
327
|
-
disabledInverseText: string;
|
|
328
|
-
toggleBoxShadow: string;
|
|
329
|
-
shade: string;
|
|
330
|
-
shade02: string;
|
|
331
|
-
tint: string;
|
|
332
|
-
tint02: string;
|
|
333
|
-
tint03: string;
|
|
334
|
-
tint04: string;
|
|
335
|
-
tone: string;
|
|
336
|
-
tone02: string;
|
|
337
289
|
border: string;
|
|
338
290
|
borderInverse: string;
|
|
339
291
|
success100: string;
|
|
@@ -444,6 +396,7 @@ export declare const magma: {
|
|
|
444
396
|
};
|
|
445
397
|
size03: {
|
|
446
398
|
fontSize: string;
|
|
399
|
+
letterSpacing: string;
|
|
447
400
|
lineHeight: string;
|
|
448
401
|
};
|
|
449
402
|
size04: {
|
|
@@ -486,6 +439,14 @@ export declare const magma: {
|
|
|
486
439
|
fontSize: string;
|
|
487
440
|
lineHeight: string;
|
|
488
441
|
};
|
|
442
|
+
size14: {
|
|
443
|
+
fontSize: string;
|
|
444
|
+
lineHeight: string;
|
|
445
|
+
};
|
|
446
|
+
size15: {
|
|
447
|
+
fontSize: string;
|
|
448
|
+
lineHeight: string;
|
|
449
|
+
};
|
|
489
450
|
};
|
|
490
451
|
typographyVisualStyles: {
|
|
491
452
|
headingXLarge: {
|
|
@@ -569,10 +530,12 @@ export declare const magma: {
|
|
|
569
530
|
bodyMedium: {
|
|
570
531
|
mobile: {
|
|
571
532
|
fontSize: string;
|
|
533
|
+
letterSpacing: string;
|
|
572
534
|
lineHeight: string;
|
|
573
535
|
};
|
|
574
536
|
desktop: {
|
|
575
537
|
fontSize: string;
|
|
538
|
+
letterSpacing: string;
|
|
576
539
|
lineHeight: string;
|
|
577
540
|
};
|
|
578
541
|
};
|
|
@@ -602,6 +565,17 @@ export declare const magma: {
|
|
|
602
565
|
};
|
|
603
566
|
};
|
|
604
567
|
typographyExpressiveVisualStyles: {
|
|
568
|
+
heading2XLarge: {
|
|
569
|
+
mobile: {
|
|
570
|
+
fontSize: string;
|
|
571
|
+
lineHeight: string;
|
|
572
|
+
};
|
|
573
|
+
desktop: {
|
|
574
|
+
fontSize: string;
|
|
575
|
+
lineHeight: string;
|
|
576
|
+
};
|
|
577
|
+
fontWeight: number;
|
|
578
|
+
};
|
|
605
579
|
headingXLarge: {
|
|
606
580
|
mobile: {
|
|
607
581
|
fontSize: string;
|
|
@@ -660,10 +634,12 @@ export declare const magma: {
|
|
|
660
634
|
heading2XSmall: {
|
|
661
635
|
mobile: {
|
|
662
636
|
fontSize: string;
|
|
637
|
+
letterSpacing: string;
|
|
663
638
|
lineHeight: string;
|
|
664
639
|
};
|
|
665
640
|
desktop: {
|
|
666
641
|
fontSize: string;
|
|
642
|
+
letterSpacing: string;
|
|
667
643
|
lineHeight: string;
|
|
668
644
|
};
|
|
669
645
|
fontWeight: number;
|
|
@@ -681,10 +657,12 @@ export declare const magma: {
|
|
|
681
657
|
bodyMedium: {
|
|
682
658
|
mobile: {
|
|
683
659
|
fontSize: string;
|
|
660
|
+
letterSpacing: string;
|
|
684
661
|
lineHeight: string;
|
|
685
662
|
};
|
|
686
663
|
desktop: {
|
|
687
664
|
fontSize: string;
|
|
665
|
+
letterSpacing: string;
|
|
688
666
|
lineHeight: string;
|
|
689
667
|
};
|
|
690
668
|
};
|
|
@@ -795,10 +773,12 @@ export declare const magma: {
|
|
|
795
773
|
bodyMedium: {
|
|
796
774
|
mobile: {
|
|
797
775
|
fontSize: string;
|
|
776
|
+
letterSpacing: string;
|
|
798
777
|
lineHeight: string;
|
|
799
778
|
};
|
|
800
779
|
desktop: {
|
|
801
780
|
fontSize: string;
|
|
781
|
+
letterSpacing: string;
|
|
802
782
|
lineHeight: string;
|
|
803
783
|
};
|
|
804
784
|
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -21,4 +21,14 @@ export declare function convertStyleValueToString(value: string | number, defaul
|
|
|
21
21
|
export declare function getNodeText(node: any): any;
|
|
22
22
|
export declare function getTrapElements(container: any): Array<HTMLElement>;
|
|
23
23
|
export declare function toCamelCase(str: any): any;
|
|
24
|
+
declare type ResolvedProps = {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Add keys & values of `defaultProps` that do not exist in `props`
|
|
29
|
+
* @param {object} defaultProps
|
|
30
|
+
* @param {object} props
|
|
31
|
+
* @returns {Person} resolved props
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveProps(defaultProps: object, props: object): ResolvedProps;
|
|
24
34
|
export {};
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
component: React.ForwardRefExoticComponent<import("./FormFieldContainer").FormFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
title: string;
|
|
5
|
-
argTypes: {
|
|
6
|
-
isInverse: {
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
errorMessage: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
helperMessage: {
|
|
17
|
-
control: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
labelText: {
|
|
22
|
-
control: {
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
29
|
-
export declare const Default: {
|
|
30
|
-
(args: any): JSX.Element;
|
|
31
|
-
args: {
|
|
32
|
-
labelText: string;
|
|
33
|
-
};
|
|
34
|
-
};
|