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