@@ -122,10 +122,10 @@ export interface Event {
122
122
123
123
export type AnalyticsHandlerFn = ( event : Record < string , any > ) => void ;
124
124
125
- export declare const AnalyticsPage : FunctionComponent < AnalyticsPageProps >
125
+ export declare const AnalyticsPage : FunctionComponent < AnalyticsPageProps > ;
126
126
127
- export declare const AnalyticsComponent : FunctionComponent < AnalyticsComponentProps >
128
- export interface ContainerProps extends AnalyticsProps {
127
+ export declare const AnalyticsComponent : FunctionComponent < AnalyticsComponentProps > ;
128
+ export interface ContainerProps extends AnalyticsProps {
129
129
className ?: string ;
130
130
columns ?: number | string ;
131
131
gap ?: string ;
@@ -140,14 +140,15 @@ export interface ContainerProps extends AnalyticsProps{
140
140
alignContent ?: string ;
141
141
}
142
142
143
- declare type TrackParams = Pick < Event , 'event' | 'type' | 'tag' > & Partial < Pick < Event , 'pages' | 'merchantId' | 'ip' > > ;
143
+ declare type TrackParams = Pick < Event , 'event' | 'type' | 'tag' > &
144
+ Partial < Pick < Event , 'pages' | 'merchantId' | 'ip' > > ;
144
145
145
146
export declare const useAnalytics : ( ) => {
146
147
track : ( trackParams : TrackParams ) => void ;
147
148
trackCallback : ( trackParams : TrackParams ) => ( ) => void ;
148
149
} ;
149
150
150
- export interface CellProps extends AnalyticsProps {
151
+ export interface CellProps extends AnalyticsProps {
151
152
className ?: string ;
152
153
width ?: number ;
153
154
height ?: number ;
@@ -165,7 +166,7 @@ interface IGrid {
165
166
166
167
export declare const Grid : IGrid ;
167
168
168
- export interface CheckboxProps extends AnalyticsProps {
169
+ export interface CheckboxProps extends AnalyticsProps {
169
170
label : string ;
170
171
id : string ;
171
172
name ?: string ;
@@ -187,7 +188,7 @@ export interface MenuItem {
187
188
smallSize ?: boolean ;
188
189
}
189
190
190
- export interface ModalProps extends AnalyticsProps {
191
+ export interface ModalProps extends AnalyticsProps {
191
192
isModalOpen : boolean ;
192
193
closeModal : ( ) => any ;
193
194
children : ReactNode ;
@@ -200,15 +201,15 @@ export declare const Modal: FunctionComponent<ModalProps>;
200
201
201
202
export type NoteType = 'informative' | 'success' | 'warning' | 'danger' ;
202
203
203
- export interface NoteProps extends AnalyticsProps {
204
+ export interface NoteProps extends AnalyticsProps {
204
205
title : string ;
205
206
text : string ;
206
207
type : NoteType ;
207
208
}
208
209
209
210
export declare const Note : FunctionComponent < NoteProps > ;
210
211
211
- export interface RadioProps extends AnalyticsProps {
212
+ export interface RadioProps extends AnalyticsProps {
212
213
label : string ;
213
214
id : string ;
214
215
name ?: string ;
@@ -279,7 +280,7 @@ interface TableButtonProps extends AnalyticsProps {
279
280
type : string ;
280
281
}
281
282
282
- export interface TableProps < TableData extends TableRowData = TableRowData > extends AnalyticsProps {
283
+ export interface TableProps < TableData extends TableRowData = TableRowData > extends AnalyticsProps {
283
284
columns : Array < TableColumn < TableData > > ;
284
285
data : Array < TableData > ;
285
286
showLoader ?: boolean ;
@@ -290,6 +291,8 @@ export interface TableProps<TableData extends TableRowData = TableRowData> exten
290
291
tableButton ?: Array < TableButtonProps > ;
291
292
actionsRowTitle ?: string ;
292
293
editableById ?: string ;
294
+ hasItemEntries ?: boolean ;
295
+ totalItems ?: number ;
293
296
}
294
297
295
298
interface TableState {
@@ -310,7 +313,7 @@ export declare class Table<TableData extends TableRowData> extends Component<
310
313
renderColumns : ( data : Array < TableColumn < TableData > > ) => ReactNodeArray ;
311
314
renderRows : ( data : Array < TableData > ) => ReactNodeArray ;
312
315
}
313
- interface NavigationTab extends AnalyticsProps {
316
+ interface NavigationTab extends AnalyticsProps {
314
317
title : string ;
315
318
}
316
319
@@ -320,7 +323,10 @@ export interface TabContentProps {
320
323
iconModifiers ?: Array < string > ;
321
324
}
322
325
323
- export interface TabNavigationProps < T > extends DivHTMLAttributes < HTMLDivElement > , TabContentProps , AnalyticsProps {
326
+ export interface TabNavigationProps < T >
327
+ extends DivHTMLAttributes < HTMLDivElement > ,
328
+ TabContentProps ,
329
+ AnalyticsProps {
324
330
tabs : Array < NavigationTab > ;
325
331
onTabClick : ( index : number ) => any ;
326
332
selectedTabIndex : number ;
@@ -334,7 +340,7 @@ interface TabInfo {
334
340
name : string ;
335
341
}
336
342
337
- interface TabsProps extends AnalyticsProps {
343
+ interface TabsProps extends AnalyticsProps {
338
344
tabs : Array < TabInfo > ;
339
345
selectedTabIndex : number ;
340
346
onTabClick : ( index : number ) => void ;
@@ -348,7 +354,7 @@ export interface ActionButtonRenderProps {
348
354
closeAccordion : ( e ?: SyntheticEvent < * > ) => void ;
349
355
}
350
356
351
- export interface AccordionPanel extends AnalyticsProps {
357
+ export interface AccordionPanel extends AnalyticsProps {
352
358
label : string ;
353
359
icon ?: ReactNode ;
354
360
iconTooltip ?: TooltipProps ;
@@ -397,7 +403,8 @@ export type ButtonModifier =
397
403
398
404
export interface ButtonProps < T >
399
405
extends ButtonHTMLAttributes < HTMLButtonElement > ,
400
- ButtonContentProps , AnalyticsProps {
406
+ ButtonContentProps ,
407
+ AnalyticsProps {
401
408
buttonModifiers ?: Array < ButtonModifier > ;
402
409
size ?: ButtonSize ;
403
410
style ?: CSSProperties ;
@@ -409,7 +416,7 @@ export interface ButtonProps<T>
409
416
410
417
export declare class Button < T = { } > extends Component < T & ButtonProps < T > > { }
411
418
412
- export interface CardProps extends AnalyticsProps {
419
+ export interface CardProps extends AnalyticsProps {
413
420
title ?: string ;
414
421
titleVariant ?: string ;
415
422
className ?: string ;
@@ -427,7 +434,7 @@ export type DayPicker$OnDateChange = (values: DayPicker$OnDateChange$Arguments)
427
434
428
435
export type DayPicker$OnFocusChange = ( focusedInput : boolean ) => any ;
429
436
430
- export interface DayPickerProps extends AnalyticsProps {
437
+ export interface DayPickerProps extends AnalyticsProps {
431
438
isOutsideRange ?: ( day : number ) => any ;
432
439
onDateChange : ( date : Moment ) => any ;
433
440
onFocusChange : ( focused : any ) => any ;
@@ -504,12 +511,12 @@ export declare class DatePicker extends Component<DatePickerProps, DatePickerSta
504
511
renderDatePresets : ( ) => ReactNode ;
505
512
}
506
513
507
- export interface Option extends AnalyticsProps {
514
+ export interface Option extends AnalyticsProps {
508
515
value : string ;
509
516
displayName : string ;
510
517
}
511
518
512
- export interface DefaultOption extends AnalyticsProps {
519
+ export interface DefaultOption extends AnalyticsProps {
513
520
displayName : string ;
514
521
disabled ?: boolean ;
515
522
}
@@ -534,29 +541,28 @@ export interface DropdownProps extends AllHTMLAttributes<HTMLSelectElement>, Ana
534
541
535
542
export declare const Dropdown : FunctionComponent < DropdownProps > ;
536
543
537
- export interface DrawerProps extends AnalyticsProps {
544
+ export interface DrawerProps extends AnalyticsProps {
538
545
handleClose : ( ) => void ;
539
546
isOpen : boolean ;
540
547
width ?: string ;
541
548
}
542
549
543
550
export declare const Drawer : FunctionComponent < DrawerProps > ;
544
551
545
-
546
552
export type LabelModifier =
547
553
| 'fontSizeExtraSmall'
548
554
| 'fontSizeSmall'
549
555
| 'fontSizeMedium'
550
556
| 'fontSizeLarge' ;
551
557
552
- export interface LabelProps extends AnalyticsProps {
558
+ export interface LabelProps extends AnalyticsProps {
553
559
disabled ?: boolean ;
554
560
modifiers ?: Array < LabelModifier > ;
555
561
}
556
562
557
563
export declare const Label : StyledComponent < 'label' , Theme , LabelProps > ;
558
564
559
- export interface LoaderProps extends AnalyticsProps {
565
+ export interface LoaderProps extends AnalyticsProps {
560
566
height ?: number ;
561
567
width ?: number ;
562
568
color ?: string ;
@@ -568,7 +574,7 @@ export declare const Loader: StyledComponent<'div', Theme, LoaderProps>;
568
574
569
575
export type NotificationVariant = 'success' | 'danger' | 'warning' ;
570
576
571
- interface NotificationProps extends AnalyticsProps {
577
+ interface NotificationProps extends AnalyticsProps {
572
578
title : string ;
573
579
content : string ;
574
580
variant ?: NotificationVariant ;
@@ -586,7 +592,7 @@ interface INotification extends FunctionComponent<NotificationProps> {
586
592
587
593
export declare const Notification : INotification ;
588
594
589
- export interface PaginationProps extends AnalyticsProps {
595
+ export interface PaginationProps extends AnalyticsProps {
590
596
onPageChange : ( pageNumber : number ) => any ;
591
597
totalItems : number ;
592
598
startPage ?: number ;
@@ -600,7 +606,7 @@ export type PillLabelModifier = 'primary' | 'info' | 'success' | 'danger' | 'war
600
606
601
607
export type PillLabelSize = 'xs' | 'sm' | 'md' | 'lg' ;
602
608
603
- interface PillLabelProps extends AnalyticsProps {
609
+ interface PillLabelProps extends AnalyticsProps {
604
610
modifiers ?: Array < PillLabelModifier > ;
605
611
size ?: PillLabelSize ;
606
612
}
@@ -609,7 +615,7 @@ export declare const PillLabel: StyledComponent<'span', Theme, PillLabelProps>;
609
615
610
616
export type ProgressType = 'circle' | 'line' ;
611
617
612
- export interface ProgressProps extends AnalyticsProps {
618
+ export interface ProgressProps extends AnalyticsProps {
613
619
type ?: ProgressType ;
614
620
strokeWidth ?: number ;
615
621
strokeColor ?: string ;
@@ -626,7 +632,7 @@ export interface ProgressProps extends AnalyticsProps{
626
632
627
633
export declare const Progress : FunctionComponent < ProgressProps > ;
628
634
629
- export interface SwitchProps extends AnalyticsProps {
635
+ export interface SwitchProps extends AnalyticsProps {
630
636
checked : boolean ;
631
637
disabled ?: boolean ;
632
638
id : string ;
@@ -666,7 +672,7 @@ export interface TypographyProps {
666
672
667
673
export declare const Typography : FunctionComponent < TypographyProps > ;
668
674
669
- export interface Theme extends AnalyticsProps {
675
+ export interface Theme extends AnalyticsProps {
670
676
palette : {
671
677
primary : {
672
678
main : string ;
@@ -768,7 +774,7 @@ interface IColors {
768
774
emerald : '#2ecc71' ;
769
775
peterRiver : '#3498db' ;
770
776
amethyst : '#9b59b6' ;
771
- asphalt : '#282c35' ,
777
+ asphalt : '#282c35' ;
772
778
wetAsphalt : '#34495e' ;
773
779
greenSea : '#16a085' ;
774
780
nephritis : '#27ae60' ;
@@ -795,7 +801,7 @@ export type FadeEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-o
795
801
796
802
export type TooltipBehavior = 'hover' | 'click' | 'ref' ;
797
803
798
- export interface TooltipProps extends AnalyticsProps {
804
+ export interface TooltipProps extends AnalyticsProps {
799
805
behavior ?: TooltipBehavior ;
800
806
durationOnClick ?: number ;
801
807
arrowWidth ?: number ;
@@ -830,13 +836,13 @@ export declare class Tooltip extends Component<TooltipProps, TooltipState> {
830
836
831
837
type TransitionVariant = 'fadeInLeft' | 'fadeInRight' | 'fadeOutLeft' | 'fadeOutRight' ;
832
838
833
- export interface Step extends AnalyticsProps {
839
+ export interface Step extends AnalyticsProps {
834
840
isDisabled : boolean ;
835
841
isCompleted : boolean ;
836
842
component : ReactNode ;
837
843
}
838
844
839
- interface StepWizardProps extends AnalyticsProps {
845
+ interface StepWizardProps extends AnalyticsProps {
840
846
steps : Array < Step > ;
841
847
activeStep : number ;
842
848
className ?: string ;
0 commit comments