@ballistix.digital/react-components 0.3.0 → 0.3.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/index.d.ts CHANGED
@@ -1,16 +1,23 @@
1
- import React, { FC, ReactNode, RefObject, ReactElement, Dispatch, SetStateAction, ElementType } from 'react';
1
+ import React, { FC, ReactNode, RefObject, ReactElement, HTMLInputTypeAttribute, ElementType, Dispatch, SetStateAction } from 'react';
2
+ import { DeepPartial as DeepPartial$1 } from 'types/DeepPartial';
2
3
  import { Menu } from '@headlessui/react';
4
+ import { IconName } from '@fortawesome/fontawesome-svg-core';
5
+ import { ColumnDef } from '@tanstack/react-table';
6
+ import { TButtonElementStyles as TButtonElementStyles$1 } from 'components/Element/Button';
7
+ import { TDropdownElementStyles as TDropdownElementStyles$1 } from 'components/Element/Dropdown';
8
+ import { TPagePaginationNavigationStyles as TPagePaginationNavigationStyles$1 } from 'components/Navigation/PagePagination';
9
+
10
+ declare const base$i: {
11
+ loading: string;
12
+ spinner: string;
13
+ empty: string;
14
+ placeholder: string;
15
+ container: string;
16
+ indicator: string;
17
+ };
18
+ type TAvatarElementStyles = DeepPartial$1<typeof base$i>;
3
19
 
4
- type StylesType$f = {
5
- loading?: string;
6
- empty?: string;
7
- placeholder?: string;
8
- container?: string;
9
- indicator?: string;
10
- spinner?: string;
11
- };
12
-
13
- interface Props$e {
20
+ type TProps$h = {
14
21
  src?: string | undefined;
15
22
  placeholder?: string | undefined;
16
23
  children?: ReactNode | ReactNode[] | string;
@@ -20,233 +27,311 @@ interface Props$e {
20
27
  status?: 'offline' | 'online' | 'blocked';
21
28
  isDisabled?: boolean;
22
29
  isLoading?: boolean;
23
- styles?: StylesType$f;
24
- }
25
- declare const AvatarElement: FC<Props$e>;
30
+ styles?: TAvatarElementStyles;
31
+ };
32
+ declare const AvatarElement: FC<TProps$h>;
26
33
 
27
- type StylesType$e = {
28
- container?: string;
29
- };
34
+ declare const base$h: {
35
+ container: string;
36
+ indicator: string;
37
+ button: string;
38
+ };
39
+ type TBadgeElementStyles = DeepPartial$1<typeof base$h>;
40
+
41
+ type TProps$g = {
42
+ children: string | ReactNode;
43
+ color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
44
+ type?: 'normal' | 'indicator' | 'close';
45
+ size?: 'sm' | 'lg';
46
+ figure?: 'block' | 'rounded';
47
+ isDisabled?: boolean;
48
+ isLoading?: boolean;
49
+ onClose?: () => void;
50
+ styles?: TBadgeElementStyles;
51
+ };
52
+ declare const BadgeElement: FC<TProps$g>;
53
+
54
+ declare const base$g: {
55
+ container: string;
56
+ content: string;
57
+ icon: string;
58
+ spinner: string;
59
+ };
60
+ type TButtonElementStyles = DeepPartial$1<typeof base$g>;
30
61
 
31
- interface Props$d {
62
+ type TProps$f = {
32
63
  children: string | ReactNode;
64
+ innerRef?: RefObject<HTMLButtonElement>;
65
+ htmlType?: 'button' | 'submit';
33
66
  type?: 'primary' | 'secondary' | 'outline';
34
67
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
35
68
  figure?: 'block' | 'rounded';
36
69
  status?: 'idle' | 'loading' | 'success' | 'error';
37
- ref?: RefObject<HTMLButtonElement>;
38
70
  isDisabled?: boolean;
39
- styles?: StylesType$e;
71
+ styles?: TButtonElementStyles;
40
72
  onClick: () => void;
41
- }
42
- declare const ButtonElement: FC<Props$d>;
43
-
44
- type StylesType$d = {
45
- container?: string;
46
- firstButton?: string;
47
- button?: string;
48
- lastButton?: string;
49
- };
73
+ };
74
+ declare const ButtonElement: FC<TProps$f>;
75
+
76
+ declare const base$f: {
77
+ container: string;
78
+ firstButton: string;
79
+ button: string;
80
+ lastButton: string;
81
+ };
82
+ type TButtonGroupElementStyles = DeepPartial$1<typeof base$f>;
50
83
 
51
- interface Props$c {
84
+ type TProps$e = {
52
85
  children: ReactElement[];
53
- styles?: StylesType$d;
54
- }
55
- declare const ButtonGroupElement: FC<Props$c>;
56
-
57
- type StylesType$c = {
58
- container?: string;
59
- button?: string;
60
- compact?: string;
61
- dots?: string;
62
- items?: string;
63
- left?: string;
64
- right?: string;
65
- };
86
+ styles?: TButtonGroupElementStyles;
87
+ };
88
+ declare const ButtonGroupElement: FC<TProps$e>;
89
+
90
+ declare const base$e: {
91
+ container: string;
92
+ button: string;
93
+ compact: string;
94
+ dots: string;
95
+ items: string;
96
+ };
97
+ type TDropdownElementStyles = DeepPartial$1<typeof base$e>;
66
98
 
67
- interface Props$b {
99
+ type TProps$d = {
68
100
  children: ReactElement | ReactElement[];
69
- label: string;
101
+ label: string | ReactElement;
70
102
  type?: 'button' | 'compact';
71
103
  direction?: 'left' | 'right';
72
- styles?: StylesType$c;
73
- }
104
+ styles?: TDropdownElementStyles;
105
+ };
74
106
  declare const DropdownElement: {
75
- Container: FC<Props$b>;
107
+ Container: FC<TProps$d>;
76
108
  Item: typeof Menu.Item;
77
109
  };
78
110
 
79
- type StylesType$b = {
80
- container?: string;
81
- indicator?: string;
82
- button?: string;
83
- };
111
+ type TProps$c = {
112
+ accessor: IconName;
113
+ type: 'brands' | 'light' | 'regular' | 'solid';
114
+ className?: string;
115
+ };
116
+ declare const IconElement: FC<TProps$c>;
84
117
 
85
- interface Props$a {
86
- children: string | ReactNode;
87
- color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
88
- type?: 'normal' | 'indicator' | 'close';
89
- size?: 'sm' | 'lg';
90
- figure?: 'block' | 'rounded';
118
+ declare const base$d: {
119
+ container: string;
120
+ head: string;
121
+ body: string;
122
+ foot: string;
123
+ label: string;
124
+ hint: string;
125
+ leading: string;
126
+ input: string;
127
+ trailing: string;
128
+ description: string;
129
+ };
130
+ type TInputGroupStyles = DeepPartial$1<typeof base$d>;
131
+
132
+ type TProps$b = {
133
+ name: string;
134
+ htmlType: HTMLInputTypeAttribute;
135
+ label?: string;
136
+ description?: string;
137
+ placeholder?: string;
138
+ leading?: string;
139
+ trailing?: string;
140
+ value: string;
141
+ type: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
142
+ isValid?: boolean;
91
143
  isDisabled?: boolean;
92
- isLoading?: boolean;
93
- onClose?: () => void;
94
- styles?: StylesType$b;
95
- }
96
- declare const BadgeElement: FC<Props$a>;
144
+ isRequired?: boolean;
145
+ onChange: any;
146
+ styles?: TInputGroupStyles;
147
+ };
148
+ declare const InputGroupForm: FC<TProps$b>;
97
149
 
98
- type StylesType$a = {
99
- container?: string;
100
- content?: string;
101
- };
150
+ declare const base$c: {
151
+ container: string;
152
+ content: string;
153
+ };
154
+ type TContainerLayoutStyles = DeepPartial$1<typeof base$c>;
102
155
 
103
- interface Props$9 {
156
+ type TProps$a = {
104
157
  children: ReactNode;
105
158
  type?: 'break' | 'center' | 'fill';
106
- styles?: StylesType$a;
107
- }
108
- declare const ContainerLayout: FC<Props$9>;
109
-
110
- type StylesType$9 = {
111
- container?: string;
112
- head?: string;
113
- line?: string;
114
- body?: string;
115
- content?: string;
116
- };
159
+ styles?: TContainerLayoutStyles;
160
+ };
161
+ declare const ContainerLayout: FC<TProps$a>;
117
162
 
118
- interface Props$8 {
119
- children: ReactNode;
163
+ declare const base$b: {
164
+ container: string;
165
+ head: string;
166
+ line: string;
167
+ body: string;
168
+ content: string;
169
+ };
170
+ type TDividerLayoutStyles = DeepPartial$1<typeof base$b>;
171
+
172
+ type TProps$9 = {
173
+ children?: ReactNode;
120
174
  type?: 'left' | 'center' | 'right';
121
- styles?: StylesType$9;
122
- }
123
- declare const DividerLayout: FC<Props$8>;
175
+ styles?: TDividerLayoutStyles;
176
+ };
177
+ declare const DividerLayout: FC<TProps$9>;
124
178
 
125
- type StylesType$8 = {
126
- container?: string;
127
- list?: string;
128
- item?: string;
129
- };
179
+ declare const base$a: {
180
+ container: string;
181
+ list: string;
182
+ item: string;
183
+ };
184
+ type TListContainerLayoutStyles = DeepPartial$1<typeof base$a>;
130
185
 
131
- interface Props$7 {
186
+ type TProps$8 = {
132
187
  children: ReactElement | ReactElement[];
133
188
  type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
134
- styles?: StylesType$8;
135
- }
136
- declare const ListContainerLayout: FC<Props$7>;
137
-
138
- type StylesType$7 = {
139
- container?: string;
140
- figure?: string;
141
- svg?: string;
142
- title?: string;
143
- paragraph?: string;
144
- };
189
+ styles?: TListContainerLayoutStyles;
190
+ };
191
+ declare const ListContainerLayout: FC<TProps$8>;
145
192
 
146
- interface Props$6 {
193
+ declare const base$9: {
194
+ container: string;
195
+ figure: string;
196
+ svg: string;
197
+ title: string;
198
+ paragraph: string;
199
+ };
200
+ type TMediaObjectLayoutStyles = DeepPartial$1<typeof base$9>;
201
+
202
+ type TProps$7 = {
147
203
  title: string;
148
204
  paragraph: string;
149
205
  figure?: ReactNode;
150
206
  type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
151
- styles?: StylesType$7;
152
- }
153
- declare const MediaObjectLayout: FC<Props$6>;
207
+ styles?: TMediaObjectLayoutStyles;
208
+ };
209
+ declare const MediaObjectLayout: FC<TProps$7>;
154
210
 
155
- type StylesType$6 = {
156
- container?: string;
157
- section?: string;
158
- };
211
+ declare const base$8: {
212
+ container: string;
213
+ section: string;
214
+ };
215
+ type TPanelLayoutStyles = DeepPartial$1<typeof base$8>;
159
216
 
160
- interface ContainerProps$3 {
217
+ type TContainerProps$2 = {
161
218
  children: ReactNode;
162
219
  type?: 'normal' | 'sticky';
163
- styles?: StylesType$6;
164
- }
165
- interface HeadProps {
220
+ styles?: TPanelLayoutStyles;
221
+ };
222
+ type TSectionProps = {
166
223
  children: ReactNode;
167
- styles?: StylesType$6;
168
- }
224
+ styles?: {
225
+ section: string;
226
+ };
227
+ };
169
228
  declare const LayoutPanel: {
170
- Container: React.FC<ContainerProps$3>;
171
- Section: React.FC<HeadProps>;
229
+ Container: React.FC<TContainerProps$2>;
230
+ Section: React.FC<TSectionProps>;
172
231
  };
173
232
 
174
- type StylesType$5 = {
175
- slashes?: {
176
- container?: string;
177
- list?: string;
178
- separator?: string;
179
- home?: {
180
- container?: string;
181
- content?: string;
182
- link?: string;
183
- icon?: string;
184
- span?: string;
185
- };
186
- page?: {
187
- container?: string;
188
- content?: string;
189
- link?: string;
190
- span?: string;
191
- };
233
+ declare const base$7: {
234
+ container: string;
235
+ head: {
236
+ container: string;
237
+ head: string;
238
+ body: string;
239
+ heading: string;
240
+ paragraph: string;
192
241
  };
193
- chevrons?: {
194
- container?: string;
195
- list?: string;
196
- separator?: string;
197
- home?: {
198
- container?: string;
199
- content?: string;
200
- link?: string;
201
- icon?: string;
202
- span?: string;
203
- };
204
- page?: {
205
- container?: string;
206
- content?: string;
207
- link?: string;
208
- span?: string;
242
+ body: {
243
+ container: string;
244
+ wrapper: string;
245
+ content: string;
246
+ styleWrapper: string;
247
+ table: {
248
+ container: string;
249
+ head: {
250
+ container: string;
251
+ row: string;
252
+ cell: string;
253
+ checkbox: string;
254
+ };
255
+ body: {
256
+ container: string;
257
+ row: string;
258
+ cell: string;
259
+ checkbox: string;
260
+ indicator: string;
261
+ };
209
262
  };
210
263
  };
211
- panel?: {
212
- container?: string;
213
- list?: string;
214
- separator?: string;
215
- home?: {
216
- container?: string;
217
- content?: string;
218
- link?: string;
219
- icon?: string;
220
- span?: string;
221
- };
222
- page?: {
223
- container?: string;
224
- content?: string;
225
- link?: string;
226
- span?: string;
264
+ sortIndicator: {
265
+ container: string;
266
+ isSorted: string;
267
+ isNotSorted: string;
268
+ icon: {
269
+ container: string;
227
270
  };
228
271
  };
229
- bar?: {
230
- container?: string;
231
- list?: string;
232
- separator?: string;
233
- home?: {
234
- container?: string;
235
- content?: string;
236
- link?: string;
237
- icon?: string;
238
- span?: string;
272
+ controls: {
273
+ container: string;
274
+ content: string;
275
+ dropdown: {
276
+ container: string;
277
+ input: string;
278
+ label: string;
279
+ actions: string;
280
+ upIcon: string;
281
+ downIcon: string;
239
282
  };
240
- page?: {
241
- container?: string;
242
- content?: string;
243
- link?: string;
244
- span?: string;
283
+ };
284
+ };
285
+ type TTableListStyles = DeepPartial$1<typeof base$7>;
286
+
287
+ type TData = any;
288
+ type TProps$6<TData> = {
289
+ id: string;
290
+ columns: ColumnDef<TData>[];
291
+ data: TData[];
292
+ page: {
293
+ total: number;
294
+ };
295
+ children: ({ min, max, current, }: {
296
+ min: number;
297
+ max: number;
298
+ current: number;
299
+ }) => ReactNode;
300
+ type?: 'normal' | 'panel' | 'full';
301
+ isStriped?: boolean;
302
+ hasStickyHeader?: boolean;
303
+ hasVerticalSeparators?: boolean;
304
+ areControlsVisible?: boolean;
305
+ styles?: TTableListStyles & {
306
+ components: {
307
+ buttonElement: TButtonElementStyles$1;
308
+ dropdownElement: TDropdownElementStyles$1;
309
+ panelPaginationNavigation: TPagePaginationNavigationStyles$1;
245
310
  };
246
311
  };
247
- };
312
+ };
313
+ declare const TableList: FC<TProps$6<TData>>;
314
+
315
+ declare const base$6: {
316
+ container: string;
317
+ list: string;
318
+ separator: string;
319
+ home: {
320
+ container: string;
321
+ content: string;
322
+ link: string;
323
+ icon: string;
324
+ span: string;
325
+ };
326
+ page: {
327
+ container: string;
328
+ content: string;
329
+ link: string;
330
+ };
331
+ };
332
+ type TBreadcrumbsNavigationStyles = DeepPartial$1<typeof base$6>;
248
333
 
249
- interface Props$5 {
334
+ type TProps$5 = {
250
335
  href: string;
251
336
  pages: {
252
337
  name: string;
@@ -255,33 +340,34 @@ interface Props$5 {
255
340
  }[];
256
341
  type?: 'slashes' | 'chevrons' | 'panel' | 'bar';
257
342
  separator?: ReactNode;
258
- styles?: StylesType$5;
259
- }
260
- declare const BreadcrumbsNavigation: FC<Props$5>;
261
-
262
- type StylesType$4 = {
263
- container?: string;
264
- mobile?: {
265
- container?: string;
266
- button?: string;
343
+ styles?: TBreadcrumbsNavigationStyles;
344
+ };
345
+ declare const BreadcrumbsNavigation: FC<TProps$5>;
346
+
347
+ declare const base$5: {
348
+ container: string;
349
+ mobile: {
350
+ container: string;
351
+ button: string;
267
352
  };
268
- desktop?: {
269
- container?: string;
270
- leftButton?: string;
271
- rightButton?: string;
272
- navigation?: string;
353
+ desktop: {
354
+ container: string;
355
+ leftButton: string;
356
+ rightButton: string;
357
+ navigation: string;
273
358
  };
274
- button?: {
275
- default?: string;
276
- active?: string;
277
- disabled?: string;
359
+ button: {
360
+ default: string;
361
+ active: string;
362
+ disabled: string;
278
363
  };
279
- divider?: string;
364
+ divider: string;
280
365
  label: string;
281
366
  icon: string;
282
- };
367
+ };
368
+ type TPanelPaginationNavigationStyles = DeepPartial$1<typeof base$5>;
283
369
 
284
- interface Props$4 {
370
+ type TProps$4 = {
285
371
  min?: number;
286
372
  max: number;
287
373
  children: ({ min, max, current, }: {
@@ -289,125 +375,94 @@ interface Props$4 {
289
375
  max: number;
290
376
  current: number;
291
377
  }) => ReactNode;
292
- styles?: StylesType$4;
378
+ styles?: TPanelPaginationNavigationStyles;
293
379
  onChange?: (current: number) => void;
294
- }
295
- declare const PanelPaginationNavigation: React.FC<Props$4>;
296
-
297
- type StylesType$3 = {
298
- container?: string;
299
- left?: {
300
- container?: string;
301
- button?: string;
302
- icon?: string;
380
+ };
381
+ declare const PanelPaginationNavigation: React.FC<TProps$4>;
382
+
383
+ declare const base$4: {
384
+ container: string;
385
+ left: {
386
+ container: string;
387
+ button: string;
388
+ icon: string;
303
389
  };
304
- center?: {
305
- container?: string;
390
+ center: {
391
+ container: string;
306
392
  };
307
- right?: {
308
- container?: string;
309
- button?: string;
310
- icon?: string;
393
+ right: {
394
+ container: string;
395
+ button: string;
396
+ icon: string;
311
397
  };
312
- button?: {
313
- default?: string;
314
- active?: string;
315
- disabled?: string;
398
+ button: {
399
+ default: string;
400
+ active: string;
401
+ disabled: string;
316
402
  };
317
- divider?: string;
318
- };
403
+ divider: string;
404
+ };
405
+ type TPagePaginationNavigationStyles = DeepPartial$1<typeof base$4>;
319
406
 
320
- interface Props$3 {
407
+ type TProps$3 = {
321
408
  min?: number;
322
409
  max: number;
323
- styles?: StylesType$3;
410
+ styles?: TPagePaginationNavigationStyles;
324
411
  onChange?: (current: number) => void;
325
- }
326
- declare const PagePaginationNavigation: React.FC<Props$3>;
327
-
328
- type ContainerStylesType$2 = {
329
- root?: string;
330
- panel?: string;
331
- container?: string;
332
- content?: string;
333
412
  };
334
- type NavigationStylesType$2 = {
335
- list?: string;
336
- };
337
-
338
- interface ContainerProps$2 {
339
- children: ({ active, setActive, }: {
340
- active: string;
341
- setActive: Dispatch<SetStateAction<string>>;
342
- }) => ReactNode;
343
- styles?: ContainerStylesType$2;
344
- }
345
- interface ListProps {
346
- children: ReactElement;
347
- active: string;
348
- setActive: Dispatch<SetStateAction<string>>;
349
- styles?: NavigationStylesType$2;
350
- }
351
- interface ItemProps {
352
- accessor: string;
353
- href?: string;
354
- type?: string;
355
- children: ReactNode;
356
- linkComponent?: ElementType;
357
- isCurrent?: boolean;
358
- isInitial?: boolean;
359
- onClick?: (accessor: MouseEvent) => void;
360
- }
361
- interface FooterProps {
362
- children: ReactNode | ReactNode[];
363
- styles?: NavigationStylesType$2;
364
- }
365
- declare const SidebarNavigation: {
366
- Container: React.FC<ContainerProps$2>;
367
- List: React.FC<ListProps>;
368
- Item: React.FC<ItemProps>;
369
- Footer: React.FC<FooterProps>;
370
- };
413
+ declare const PagePaginationNavigation: React.FC<TProps$3>;
371
414
 
372
- type ContainerStylesType$1 = {
415
+ declare const base$3: {
373
416
  container: string;
417
+ list: {
418
+ container: string;
419
+ head: string;
420
+ body: string;
421
+ label: string;
422
+ select: string;
423
+ navigation: string;
424
+ };
425
+ tab: {
426
+ base: string;
427
+ active: string;
428
+ inactive: string;
429
+ };
374
430
  };
375
- type NavigationStylesType$1 = {
376
- select?: string;
377
- navigation?: string;
378
- };
431
+ type TTabNavigationStyles = DeepPartial$1<typeof base$3>;
379
432
 
380
- interface ContainerProps$1 {
433
+ type TContainerProps$1 = {
381
434
  children: ({ active, setActive, }: {
382
435
  active: string;
383
- setActive: Dispatch<SetStateAction<string>>;
384
- }) => ReactNode;
385
- styles?: ContainerStylesType$1;
386
- }
387
- interface NavigationProps$1 {
388
- children: ReactElement;
436
+ setActive: any;
437
+ }) => ReactNode | ReactNode[];
438
+ styles?: Pick<TTabNavigationStyles, 'container'>;
439
+ };
440
+ type TListProps = {
441
+ name: string;
442
+ children: ReactNode | ReactNode[];
389
443
  active: string;
390
- setActive: Dispatch<SetStateAction<string>>;
391
- styles?: NavigationStylesType$1;
392
- }
393
- interface NavigationItemProps$1 {
444
+ setActive: any;
445
+ styles?: Pick<TTabNavigationStyles, 'list'>;
446
+ };
447
+ type TNavigationItemProps$1 = {
394
448
  accessor: string;
395
449
  href?: string;
396
450
  type?: 'underline' | 'pills' | 'buttons';
397
451
  children: ReactNode;
398
- linkComponent?: ElementType;
452
+ as?: ElementType;
399
453
  isCurrent?: boolean;
400
454
  isInitial?: boolean;
401
455
  onClick?: (accessor: MouseEvent) => void;
402
- }
403
- interface ViewProps$1 {
456
+ styles?: Pick<TTabNavigationStyles, 'tab'>;
457
+ };
458
+ type TViewProps$1 = {
404
459
  children: ReactNode;
405
- }
460
+ };
406
461
  declare const TabNavigation: {
407
- Container: React.FC<ContainerProps$1>;
408
- List: React.FC<NavigationProps$1>;
409
- Item: React.FC<NavigationItemProps$1>;
410
- View: React.FC<ViewProps$1>;
462
+ Container: React.FC<TContainerProps$1>;
463
+ List: React.FC<TListProps>;
464
+ Item: React.FC<TNavigationItemProps$1>;
465
+ View: React.FC<TViewProps$1>;
411
466
  };
412
467
 
413
468
  type ContainerStylesType = {
@@ -417,121 +472,118 @@ type NavigationStylesType = {
417
472
  list?: string;
418
473
  };
419
474
 
420
- interface ContainerProps {
475
+ type TContainerProps = {
421
476
  children: ({ active, setActive, }: {
422
477
  active: string;
423
478
  setActive: Dispatch<SetStateAction<string>>;
424
- }) => ReactNode;
479
+ }) => ReactNode | ReactNode[];
425
480
  styles?: ContainerStylesType;
426
- }
427
- interface NavigationProps {
428
- children: ReactElement;
481
+ };
482
+ type TNavigationProps = {
483
+ children: ReactNode | ReactNode[];
429
484
  active: string;
430
485
  setActive: Dispatch<SetStateAction<string>>;
431
486
  styles?: NavigationStylesType;
432
- }
433
- interface NavigationItemProps {
487
+ };
488
+ type TNavigationItemProps = {
434
489
  accessor: string;
435
490
  href?: string;
436
491
  type?: string;
437
- children: ReactNode;
492
+ children: ReactNode | ReactNode[];
438
493
  linkComponent?: ElementType;
439
494
  isCurrent?: boolean;
440
495
  isInitial?: boolean;
441
496
  onClick?: (accessor: MouseEvent) => void;
442
- }
443
- interface ViewProps {
497
+ };
498
+ type TViewProps = {
444
499
  children: ReactNode;
445
- }
500
+ };
446
501
  declare const VerticalNavigation: {
447
- Container: React.FC<ContainerProps>;
448
- List: React.FC<NavigationProps>;
449
- Item: React.FC<NavigationItemProps>;
450
- View: React.FC<ViewProps>;
502
+ Container: React.FC<TContainerProps>;
503
+ List: React.FC<TNavigationProps>;
504
+ Item: React.FC<TNavigationItemProps>;
505
+ View: React.FC<TViewProps>;
451
506
  };
452
507
 
453
- type StylesType$2 = {
454
- container?: string;
455
- background?: {
456
- container?: string;
457
- transition?: {
458
- enter?: string;
459
- enterFrom?: string;
460
- enterTo?: string;
461
- leave?: string;
462
- leaveFrom?: string;
463
- leaveTo?: string;
508
+ declare const base$2: {
509
+ container: string;
510
+ background: {
511
+ container: string;
512
+ transition: {
513
+ enter: string;
514
+ enterFrom: string;
515
+ enterTo: string;
516
+ leave: string;
517
+ leaveFrom: string;
518
+ leaveTo: string;
464
519
  };
465
520
  };
466
- layout?: {
467
- container?: string;
468
- content?: string;
521
+ layout: {
522
+ container: string;
523
+ content: string;
469
524
  };
470
- panel?: {
471
- container?: string;
472
- transition?: {
473
- enter?: string;
474
- enterFrom?: string;
475
- enterTo?: string;
476
- leave?: string;
477
- leaveFrom?: string;
478
- leaveTo?: string;
525
+ panel: {
526
+ container: string;
527
+ transition: {
528
+ enter: string;
529
+ enterFrom: string;
530
+ enterTo: string;
531
+ leave: string;
532
+ leaveFrom: string;
533
+ leaveTo: string;
479
534
  };
480
535
  };
481
- };
536
+ };
537
+ type TModalOverlayStyles = DeepPartial$1<typeof base$2>;
482
538
 
483
- interface Props$2 {
484
- trigger?: ({ onOpen, onClose, }: {
485
- onOpen: () => void;
486
- onClose: () => void;
539
+ type TProps$2 = {
540
+ trigger?: ({ handleOpen, handleClose, }: {
541
+ handleOpen: () => void;
542
+ handleClose: () => void;
487
543
  }) => ReactNode;
488
- children: ({ onOpen, onClose, }: {
489
- onOpen: () => void;
490
- onClose: () => void;
544
+ children: ({ handleOpen, handleClose, }: {
545
+ handleOpen: () => void;
546
+ handleClose: () => void;
491
547
  }) => ReactNode;
492
548
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
493
- styles?: StylesType$2;
494
- }
495
- declare const ModalOverlay: FC<Props$2>;
496
-
497
- type StylesType$1 = {
498
- container?: {
499
- outer?: string;
500
- inner?: string;
549
+ styles?: TModalOverlayStyles;
550
+ onOpen: () => void;
551
+ onClose: () => void;
552
+ };
553
+ declare const ModalOverlay: FC<TProps$2>;
554
+
555
+ declare const base$1: {
556
+ container: {
557
+ outer: string;
558
+ inner: string;
501
559
  };
502
- item?: {
503
- container?: string;
504
- background?: {
505
- container?: string;
506
- transition?: {
507
- enter?: string;
508
- enterFrom?: string;
509
- enterTo?: string;
510
- leave?: string;
511
- leaveFrom?: string;
512
- leaveTo?: string;
513
- };
560
+ item: {
561
+ container: string;
562
+ layout: {
563
+ container: string;
564
+ content: string;
565
+ inner: string;
514
566
  };
515
- layout?: {
516
- container?: string;
517
- content?: string;
518
- inner?: string;
519
- };
520
- panel?: {
521
- container?: string;
522
- transition?: {
523
- enter?: string;
524
- enterFrom?: string;
525
- enterTo?: string;
526
- leave?: string;
527
- leaveFrom?: string;
528
- leaveTo?: string;
567
+ panel: {
568
+ container: string;
569
+ transition: {
570
+ enter: string;
571
+ enterFrom: string;
572
+ enterTo: string;
573
+ leave: string;
574
+ leaveFrom: string;
575
+ leaveTo: string;
529
576
  };
530
577
  };
531
578
  };
579
+ };
580
+ type TNotificationOverlayStyles = DeepPartial$1<typeof base$1>;
581
+
582
+ type DeepPartial<T> = {
583
+ [P in keyof T]?: DeepPartial<T[P]>;
532
584
  };
533
585
 
534
- interface Props$1 {
586
+ type TProps$1 = {
535
587
  trigger?: ({ onOpen, onClose, }: {
536
588
  onOpen: () => void;
537
589
  onClose: () => void;
@@ -541,48 +593,73 @@ interface Props$1 {
541
593
  onClose: () => void;
542
594
  }) => ReactNode;
543
595
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
544
- styles?: StylesType$1;
545
- }
546
- declare const _default: {
596
+ styles?: TNotificationOverlayStyles;
597
+ };
598
+ declare const NotificationOverlay: {
547
599
  Container: ({ children, styles: stylesOverrides, }: {
548
- children: React.ReactNode;
549
- styles?: StylesType$1 | undefined;
600
+ children: ReactNode;
601
+ styles?: DeepPartial<{
602
+ container: {
603
+ outer: string;
604
+ inner: string;
605
+ };
606
+ item: {
607
+ container: string;
608
+ layout: {
609
+ container: string;
610
+ content: string;
611
+ inner: string;
612
+ };
613
+ panel: {
614
+ container: string;
615
+ transition: {
616
+ enter: string;
617
+ enterFrom: string;
618
+ enterTo: string;
619
+ leave: string;
620
+ leaveFrom: string;
621
+ leaveTo: string;
622
+ };
623
+ };
624
+ };
625
+ }> | undefined;
550
626
  }) => JSX.Element;
551
- Item: React.FC<Props$1>;
627
+ Item: React.FC<TProps$1>;
552
628
  };
553
629
 
554
- type StylesType = {
555
- container?: string;
556
- background?: {
557
- container?: string;
558
- transition?: {
559
- enter?: string;
560
- enterFrom?: string;
561
- enterTo?: string;
562
- leave?: string;
563
- leaveFrom?: string;
564
- leaveTo?: string;
630
+ declare const base: {
631
+ container: string;
632
+ background: {
633
+ container: string;
634
+ transition: {
635
+ enter: string;
636
+ enterFrom: string;
637
+ enterTo: string;
638
+ leave: string;
639
+ leaveFrom: string;
640
+ leaveTo: string;
565
641
  };
566
642
  };
567
- layout?: {
568
- container?: string;
569
- content?: string;
570
- inner?: string;
643
+ layout: {
644
+ container: string;
645
+ content: string;
646
+ inner: string;
571
647
  };
572
- panel?: {
573
- container?: string;
574
- transition?: {
575
- enter?: string;
576
- enterFrom?: string;
577
- enterTo?: string;
578
- leave?: string;
579
- leaveFrom?: string;
580
- leaveTo?: string;
648
+ panel: {
649
+ container: string;
650
+ transition: {
651
+ enter: string;
652
+ enterFrom: string;
653
+ enterTo: string;
654
+ leave: string;
655
+ leaveFrom: string;
656
+ leaveTo: string;
581
657
  };
582
658
  };
583
- };
659
+ };
660
+ type TSlideOverOverlayStyles = DeepPartial$1<typeof base>;
584
661
 
585
- interface Props {
662
+ type TProps = {
586
663
  trigger?: ({ onOpen, onClose, }: {
587
664
  onOpen: () => void;
588
665
  onClose: () => void;
@@ -592,8 +669,8 @@ interface Props {
592
669
  onClose: () => void;
593
670
  }) => ReactNode;
594
671
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
595
- styles?: StylesType;
596
- }
597
- declare const SlideOverOverlay: FC<Props>;
672
+ styles?: TSlideOverOverlayStyles;
673
+ };
674
+ declare const SlideOverOverlay: FC<TProps>;
598
675
 
599
- export { AvatarElement as Avatar, BadgeElement as Badge, BreadcrumbsNavigation as Breadcrumbs, ButtonElement as Button, ButtonGroupElement as ButtonGroup, ContainerLayout as Container, DividerLayout as Divider, DropdownElement as Dropdown, ListContainerLayout as ListContainer, MediaObjectLayout as MediaObject, ModalOverlay as Modal, _default as Notification, PagePaginationNavigation as PagePagination, LayoutPanel as Panel, PanelPaginationNavigation as PanelPagination, SidebarNavigation as Sidebar, SlideOverOverlay as SlideOver, TabNavigation as Tab, VerticalNavigation as Vertical };
676
+ export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SlideOverOverlay, TabNavigation, TableList, VerticalNavigation };