@ballistix.digital/react-components 0.1.6 → 0.1.7

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.
Files changed (64) hide show
  1. package/dist/index.d.ts +595 -0
  2. package/dist/index.esm.js +0 -30
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +0 -30
  5. package/dist/index.js.map +1 -1
  6. package/package.json +4 -3
  7. package/dist/@types/components/Element/Avatar/AvatarElement.d.ts +0 -17
  8. package/dist/@types/components/Element/Avatar/AvatarElement.styles.d.ts +0 -14
  9. package/dist/@types/components/Element/Avatar/index.d.ts +0 -3
  10. package/dist/@types/components/Element/Badge/BadgeElement.d.ts +0 -15
  11. package/dist/@types/components/Element/Badge/BadgeElement.styles.d.ts +0 -11
  12. package/dist/@types/components/Element/Badge/index.d.ts +0 -3
  13. package/dist/@types/components/Element/Button/ButtonElement.d.ts +0 -15
  14. package/dist/@types/components/Element/Button/ButtonElement.styles.d.ts +0 -9
  15. package/dist/@types/components/Element/Button/index.d.ts +0 -3
  16. package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.d.ts +0 -8
  17. package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.styles.d.ts +0 -12
  18. package/dist/@types/components/Element/ButtonGroup/index.d.ts +0 -3
  19. package/dist/@types/components/Element/Dropdown/DropdownElement.d.ts +0 -15
  20. package/dist/@types/components/Element/Dropdown/DropdownElement.styles.d.ts +0 -15
  21. package/dist/@types/components/Element/Dropdown/index.d.ts +0 -3
  22. package/dist/@types/components/Layout/Container/ContainerLayout.d.ts +0 -9
  23. package/dist/@types/components/Layout/Container/ContainerLayout.styles.d.ts +0 -17
  24. package/dist/@types/components/Layout/Container/index.d.ts +0 -3
  25. package/dist/@types/components/Layout/Divider/DividerLayout.d.ts +0 -9
  26. package/dist/@types/components/Layout/Divider/DividerLayout.styles.d.ts +0 -13
  27. package/dist/@types/components/Layout/Divider/index.d.ts +0 -3
  28. package/dist/@types/components/Layout/ListContainer/ListContainerLayout.d.ts +0 -9
  29. package/dist/@types/components/Layout/ListContainer/ListContainerLayout.styles.d.ts +0 -11
  30. package/dist/@types/components/Layout/ListContainer/index.d.ts +0 -3
  31. package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.d.ts +0 -12
  32. package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.styles.d.ts +0 -13
  33. package/dist/@types/components/Layout/MediaObject/index.d.ts +0 -3
  34. package/dist/@types/components/Layout/Panel/PanelLayout.d.ts +0 -16
  35. package/dist/@types/components/Layout/Panel/PanelLayout.styles.d.ts +0 -6
  36. package/dist/@types/components/Layout/Panel/index.d.ts +0 -3
  37. package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.d.ts +0 -15
  38. package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.styles.d.ts +0 -145
  39. package/dist/@types/components/Navigation/Breadcrumbs/index.d.ts +0 -3
  40. package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.d.ts +0 -10
  41. package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.styles.d.ts +0 -45
  42. package/dist/@types/components/Navigation/PagePagination/index.d.ts +0 -3
  43. package/dist/@types/components/Navigation/PanelPagination/PanelPagination.d.ts +0 -15
  44. package/dist/@types/components/Navigation/PanelPagination/PanelPagination.styles.d.ts +0 -43
  45. package/dist/@types/components/Navigation/PanelPagination/index.d.ts +0 -3
  46. package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.d.ts +0 -35
  47. package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.styles.d.ts +0 -29
  48. package/dist/@types/components/Navigation/Sidebar/index.d.ts +0 -3
  49. package/dist/@types/components/Navigation/Tab/TabNavigation.d.ts +0 -34
  50. package/dist/@types/components/Navigation/Tab/TabNavigation.styles.d.ts +0 -49
  51. package/dist/@types/components/Navigation/Tab/index.d.ts +0 -3
  52. package/dist/@types/components/Navigation/Vertical/VerticalNavigation.d.ts +0 -34
  53. package/dist/@types/components/Navigation/Vertical/VerticalNavigation.styles.d.ts +0 -23
  54. package/dist/@types/components/Navigation/Vertical/index.d.ts +0 -3
  55. package/dist/@types/components/Overlay/Modal/ModalOverlay.d.ts +0 -16
  56. package/dist/@types/components/Overlay/Modal/ModalOverlay.styles.d.ts +0 -64
  57. package/dist/@types/components/Overlay/Modal/index.d.ts +0 -3
  58. package/dist/@types/components/Overlay/Notification/NotificationOverlay.d.ts +0 -22
  59. package/dist/@types/components/Overlay/Notification/NotificationOverlay.styles.d.ts +0 -67
  60. package/dist/@types/components/Overlay/Notification/index.d.ts +0 -3
  61. package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.d.ts +0 -16
  62. package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.styles.d.ts +0 -66
  63. package/dist/@types/components/Overlay/SlideOver/index.d.ts +0 -3
  64. package/dist/@types/index.d.ts +0 -19
@@ -0,0 +1,595 @@
1
+ import React, { FC, ReactNode, ReactElement } from 'react';
2
+ import { Menu } from '@headlessui/react';
3
+
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 {
14
+ src?: string | undefined;
15
+ placeholder?: string | undefined;
16
+ children?: ReactNode | ReactNode[] | string;
17
+ url?: string;
18
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
19
+ figure?: 'block' | 'rounded';
20
+ status?: 'offline' | 'online' | 'blocked';
21
+ isDisabled?: boolean;
22
+ isLoading?: boolean;
23
+ styles?: StylesType$f;
24
+ }
25
+ declare const AvatarElement: FC<Props$e>;
26
+
27
+ type StylesType$e = {
28
+ container?: string;
29
+ };
30
+
31
+ interface Props$d {
32
+ children: string | ReactNode;
33
+ type?: 'primary' | 'secondary' | 'outline';
34
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
35
+ figure?: 'block' | 'rounded';
36
+ status?: 'idle' | 'loading' | 'success' | 'error';
37
+ isDisabled?: boolean;
38
+ styles?: StylesType$e;
39
+ onClick: () => void;
40
+ }
41
+ declare const ButtonElement: FC<Props$d>;
42
+
43
+ type StylesType$d = {
44
+ container?: string;
45
+ firstButton?: string;
46
+ button?: string;
47
+ lastButton?: string;
48
+ };
49
+
50
+ interface Props$c {
51
+ children: ReactElement[];
52
+ styles?: StylesType$d;
53
+ }
54
+ declare const ButtonGroupElement: FC<Props$c>;
55
+
56
+ type StylesType$c = {
57
+ container?: string;
58
+ button?: string;
59
+ compact?: string;
60
+ dots?: string;
61
+ items?: string;
62
+ left?: string;
63
+ right?: string;
64
+ };
65
+
66
+ interface Props$b {
67
+ children: ReactElement | ReactElement[];
68
+ label: string;
69
+ type?: 'button' | 'compact';
70
+ direction?: 'left' | 'right';
71
+ styles?: StylesType$c;
72
+ }
73
+ declare const DropdownElement: {
74
+ Container: FC<Props$b>;
75
+ Item: typeof Menu.Item;
76
+ };
77
+
78
+ type StylesType$b = {
79
+ container?: string;
80
+ indicator?: string;
81
+ button?: string;
82
+ };
83
+
84
+ interface Props$a {
85
+ children: string | ReactNode;
86
+ color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
87
+ type?: 'normal' | 'indicator' | 'close';
88
+ size?: 'sm' | 'lg';
89
+ figure?: 'block' | 'rounded';
90
+ isDisabled?: boolean;
91
+ isLoading?: boolean;
92
+ onClose?: () => void;
93
+ styles?: StylesType$b;
94
+ }
95
+ declare const BadgeElement: FC<Props$a>;
96
+
97
+ type StylesType$a = {
98
+ container?: string;
99
+ content?: string;
100
+ };
101
+
102
+ interface Props$9 {
103
+ children: ReactNode;
104
+ type?: 'break' | 'center' | 'fill';
105
+ styles?: StylesType$a;
106
+ }
107
+ declare const ContainerLayout: FC<Props$9>;
108
+
109
+ type StylesType$9 = {
110
+ container?: string;
111
+ head?: string;
112
+ line?: string;
113
+ body?: string;
114
+ content?: string;
115
+ };
116
+
117
+ interface Props$8 {
118
+ children: ReactNode;
119
+ type?: 'left' | 'center' | 'right';
120
+ styles?: StylesType$9;
121
+ }
122
+ declare const DividerLayout: FC<Props$8>;
123
+
124
+ type StylesType$8 = {
125
+ container?: string;
126
+ list?: string;
127
+ item?: string;
128
+ };
129
+
130
+ interface Props$7 {
131
+ children: ReactElement | ReactElement[];
132
+ type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
133
+ styles?: StylesType$8;
134
+ }
135
+ declare const ListContainerLayout: FC<Props$7>;
136
+
137
+ type StylesType$7 = {
138
+ container?: string;
139
+ figure?: string;
140
+ svg?: string;
141
+ title?: string;
142
+ paragraph?: string;
143
+ };
144
+
145
+ interface Props$6 {
146
+ title: string;
147
+ paragraph: string;
148
+ figure?: ReactNode;
149
+ type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
150
+ styles?: StylesType$7;
151
+ }
152
+ declare const MediaObjectLayout: FC<Props$6>;
153
+
154
+ type StylesType$6 = {
155
+ container?: string;
156
+ section?: string;
157
+ };
158
+
159
+ interface ContainerProps$3 {
160
+ children: ReactNode;
161
+ type?: 'normal' | 'sticky';
162
+ styles?: StylesType$6;
163
+ }
164
+ interface HeadProps {
165
+ children: ReactNode;
166
+ styles?: StylesType$6;
167
+ }
168
+ declare const LayoutPanel: {
169
+ Container: React.FC<ContainerProps$3>;
170
+ Section: React.FC<HeadProps>;
171
+ };
172
+
173
+ type StylesType$5 = {
174
+ slashes?: {
175
+ container?: string;
176
+ list?: string;
177
+ separator?: string;
178
+ home?: {
179
+ container?: string;
180
+ content?: string;
181
+ link?: string;
182
+ icon?: string;
183
+ span?: string;
184
+ };
185
+ page?: {
186
+ container?: string;
187
+ content?: string;
188
+ link?: string;
189
+ span?: string;
190
+ };
191
+ };
192
+ chevrons?: {
193
+ container?: string;
194
+ list?: string;
195
+ separator?: string;
196
+ home?: {
197
+ container?: string;
198
+ content?: string;
199
+ link?: string;
200
+ icon?: string;
201
+ span?: string;
202
+ };
203
+ page?: {
204
+ container?: string;
205
+ content?: string;
206
+ link?: string;
207
+ span?: string;
208
+ };
209
+ };
210
+ panel?: {
211
+ container?: string;
212
+ list?: string;
213
+ separator?: string;
214
+ home?: {
215
+ container?: string;
216
+ content?: string;
217
+ link?: string;
218
+ icon?: string;
219
+ span?: string;
220
+ };
221
+ page?: {
222
+ container?: string;
223
+ content?: string;
224
+ link?: string;
225
+ span?: string;
226
+ };
227
+ };
228
+ bar?: {
229
+ container?: string;
230
+ list?: string;
231
+ separator?: string;
232
+ home?: {
233
+ container?: string;
234
+ content?: string;
235
+ link?: string;
236
+ icon?: string;
237
+ span?: string;
238
+ };
239
+ page?: {
240
+ container?: string;
241
+ content?: string;
242
+ link?: string;
243
+ span?: string;
244
+ };
245
+ };
246
+ };
247
+
248
+ interface Props$5 {
249
+ href: string;
250
+ pages: {
251
+ name: string;
252
+ href: string;
253
+ isCurrent: boolean;
254
+ }[];
255
+ type?: 'slashes' | 'chevrons' | 'panel' | 'bar';
256
+ separator?: ReactNode;
257
+ styles?: StylesType$5;
258
+ }
259
+ declare const BreadcrumbsNavigation: FC<Props$5>;
260
+
261
+ type StylesType$4 = {
262
+ container?: string;
263
+ mobile?: {
264
+ container?: string;
265
+ button?: string;
266
+ };
267
+ desktop?: {
268
+ container?: string;
269
+ leftButton?: string;
270
+ rightButton?: string;
271
+ navigation?: string;
272
+ };
273
+ button?: {
274
+ default?: string;
275
+ active?: string;
276
+ disabled?: string;
277
+ };
278
+ divider?: string;
279
+ label: string;
280
+ icon: string;
281
+ };
282
+
283
+ interface Props$4 {
284
+ min?: number;
285
+ max: number;
286
+ children: ({ min, max, current, }: {
287
+ min: number;
288
+ max: number;
289
+ current: number;
290
+ }) => ReactNode;
291
+ styles?: StylesType$4;
292
+ onChange?: (current: number) => void;
293
+ }
294
+ declare const PanelPaginationNavigation: React.FC<Props$4>;
295
+
296
+ type StylesType$3 = {
297
+ container?: string;
298
+ left?: {
299
+ container?: string;
300
+ button?: string;
301
+ icon?: string;
302
+ };
303
+ center?: {
304
+ container?: string;
305
+ };
306
+ right?: {
307
+ container?: string;
308
+ button?: string;
309
+ icon?: string;
310
+ };
311
+ button?: {
312
+ default?: string;
313
+ active?: string;
314
+ disabled?: string;
315
+ };
316
+ divider?: string;
317
+ };
318
+
319
+ interface Props$3 {
320
+ min?: number;
321
+ max: number;
322
+ styles?: StylesType$3;
323
+ onChange?: (current: number) => void;
324
+ }
325
+ declare const PagePaginationNavigation: React.FC<Props$3>;
326
+
327
+ type ContainerStylesType$2 = {
328
+ root?: string;
329
+ panel?: string;
330
+ container?: string;
331
+ content?: string;
332
+ };
333
+ type NavigationStylesType$2 = {
334
+ list?: string;
335
+ };
336
+
337
+ interface ContainerProps$2 {
338
+ children: ({ active, setActive, }: {
339
+ active: string;
340
+ setActive: any;
341
+ }) => ReactNode | ReactNode[];
342
+ styles?: ContainerStylesType$2;
343
+ }
344
+ interface ListProps {
345
+ children: ReactNode | ReactNode[];
346
+ active: string;
347
+ setActive: any;
348
+ styles?: NavigationStylesType$2;
349
+ }
350
+ interface ItemProps {
351
+ accessor: string;
352
+ href?: string;
353
+ type?: string;
354
+ children: ReactNode;
355
+ isCurrent?: boolean;
356
+ isInitial?: boolean;
357
+ onClick?: (accessor: any) => void;
358
+ }
359
+ interface FooterProps {
360
+ children: ReactNode | ReactNode[];
361
+ styles?: NavigationStylesType$2;
362
+ }
363
+ declare const SidebarNavigation: {
364
+ Container: React.FC<ContainerProps$2>;
365
+ List: React.FC<ListProps>;
366
+ Item: React.FC<ItemProps>;
367
+ Footer: React.FC<FooterProps>;
368
+ };
369
+
370
+ type ContainerStylesType$1 = {
371
+ container: string;
372
+ };
373
+ type NavigationStylesType$1 = {
374
+ select?: string;
375
+ navigation?: string;
376
+ };
377
+
378
+ interface ContainerProps$1 {
379
+ children: ({ active, setActive, }: {
380
+ active: string;
381
+ setActive: any;
382
+ }) => ReactNode | ReactNode[];
383
+ styles?: ContainerStylesType$1;
384
+ }
385
+ interface NavigationProps$1 {
386
+ children: ReactNode | ReactNode[];
387
+ active: string;
388
+ setActive: any;
389
+ styles?: NavigationStylesType$1;
390
+ }
391
+ interface NavigationItemProps$1 {
392
+ accessor: string;
393
+ href?: string;
394
+ type?: string;
395
+ children: ReactNode;
396
+ isCurrent?: boolean;
397
+ isInitial?: boolean;
398
+ onClick?: (accessor: any) => void;
399
+ }
400
+ interface ViewProps$1 {
401
+ children: ReactNode | ReactNode[];
402
+ }
403
+ declare const TabNavigation: {
404
+ Container: React.FC<ContainerProps$1>;
405
+ List: React.FC<NavigationProps$1>;
406
+ Item: React.FC<NavigationItemProps$1>;
407
+ View: React.FC<ViewProps$1>;
408
+ };
409
+
410
+ type ContainerStylesType = {
411
+ container: string;
412
+ };
413
+ type NavigationStylesType = {
414
+ list?: string;
415
+ };
416
+
417
+ interface ContainerProps {
418
+ children: ({ active, setActive, }: {
419
+ active: string;
420
+ setActive: any;
421
+ }) => ReactNode | ReactNode[];
422
+ styles?: ContainerStylesType;
423
+ }
424
+ interface NavigationProps {
425
+ children: ReactNode | ReactNode[];
426
+ active: string;
427
+ setActive: any;
428
+ styles?: NavigationStylesType;
429
+ }
430
+ interface NavigationItemProps {
431
+ accessor: string;
432
+ href?: string;
433
+ type?: string;
434
+ children: ReactNode;
435
+ isCurrent?: boolean;
436
+ isInitial?: boolean;
437
+ onClick?: (accessor: any) => void;
438
+ }
439
+ interface ViewProps {
440
+ children: ReactNode | ReactNode[];
441
+ }
442
+ declare const VerticalNavigation: {
443
+ Container: React.FC<ContainerProps>;
444
+ List: React.FC<NavigationProps>;
445
+ Item: React.FC<NavigationItemProps>;
446
+ View: React.FC<ViewProps>;
447
+ };
448
+
449
+ type StylesType$2 = {
450
+ container?: string;
451
+ background?: {
452
+ container?: string;
453
+ transition?: {
454
+ enter?: string;
455
+ enterFrom?: string;
456
+ enterTo?: string;
457
+ leave?: string;
458
+ leaveFrom?: string;
459
+ leaveTo?: string;
460
+ };
461
+ };
462
+ layout?: {
463
+ container?: string;
464
+ content?: string;
465
+ };
466
+ panel?: {
467
+ container?: string;
468
+ transition?: {
469
+ enter?: string;
470
+ enterFrom?: string;
471
+ enterTo?: string;
472
+ leave?: string;
473
+ leaveFrom?: string;
474
+ leaveTo?: string;
475
+ };
476
+ };
477
+ };
478
+
479
+ interface Props$2 {
480
+ trigger?: ({ onOpen, onClose, }: {
481
+ onOpen: () => void;
482
+ onClose: () => void;
483
+ }) => ReactNode;
484
+ children: ({ onOpen, onClose, }: {
485
+ onOpen: () => void;
486
+ onClose: () => void;
487
+ }) => ReactNode;
488
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
489
+ styles?: StylesType$2;
490
+ }
491
+ declare const ModalOverlay: FC<Props$2>;
492
+
493
+ type StylesType$1 = {
494
+ container?: {
495
+ outer?: string;
496
+ inner?: string;
497
+ };
498
+ item?: {
499
+ container?: string;
500
+ background?: {
501
+ container?: string;
502
+ transition?: {
503
+ enter?: string;
504
+ enterFrom?: string;
505
+ enterTo?: string;
506
+ leave?: string;
507
+ leaveFrom?: string;
508
+ leaveTo?: string;
509
+ };
510
+ };
511
+ layout?: {
512
+ container?: string;
513
+ content?: string;
514
+ inner?: string;
515
+ };
516
+ panel?: {
517
+ container?: string;
518
+ transition?: {
519
+ enter?: string;
520
+ enterFrom?: string;
521
+ enterTo?: string;
522
+ leave?: string;
523
+ leaveFrom?: string;
524
+ leaveTo?: string;
525
+ };
526
+ };
527
+ };
528
+ };
529
+
530
+ interface Props$1 {
531
+ trigger?: ({ onOpen, onClose, }: {
532
+ onOpen: () => void;
533
+ onClose: () => void;
534
+ }) => ReactNode;
535
+ children: ({ onOpen, onClose, }: {
536
+ onOpen: () => void;
537
+ onClose: () => void;
538
+ }) => ReactNode;
539
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
540
+ styles?: StylesType$1;
541
+ }
542
+ declare const _default: {
543
+ Container: ({ children, styles: customStyles, }: {
544
+ children: React.ReactNode;
545
+ styles?: StylesType$1 | undefined;
546
+ }) => JSX.Element;
547
+ Item: React.FC<Props$1>;
548
+ };
549
+
550
+ type StylesType = {
551
+ container?: string;
552
+ background?: {
553
+ container?: string;
554
+ transition?: {
555
+ enter?: string;
556
+ enterFrom?: string;
557
+ enterTo?: string;
558
+ leave?: string;
559
+ leaveFrom?: string;
560
+ leaveTo?: string;
561
+ };
562
+ };
563
+ layout?: {
564
+ container?: string;
565
+ content?: string;
566
+ inner?: string;
567
+ };
568
+ panel?: {
569
+ container?: string;
570
+ transition?: {
571
+ enter?: string;
572
+ enterFrom?: string;
573
+ enterTo?: string;
574
+ leave?: string;
575
+ leaveFrom?: string;
576
+ leaveTo?: string;
577
+ };
578
+ };
579
+ };
580
+
581
+ interface Props {
582
+ trigger?: ({ onOpen, onClose, }: {
583
+ onOpen: () => void;
584
+ onClose: () => void;
585
+ }) => ReactNode;
586
+ children: ({ onOpen, onClose, }: {
587
+ onOpen: () => void;
588
+ onClose: () => void;
589
+ }) => ReactNode;
590
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
591
+ styles?: StylesType;
592
+ }
593
+ declare const SlideOverOverlay: FC<Props>;
594
+
595
+ 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 };