@ballistix.digital/react-components 0.1.13 → 0.3.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/index.d.ts +23 -20
- package/dist/index.esm.js +312 -523
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +312 -522
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, ReactNode, RefObject, ReactElement } from 'react';
|
|
1
|
+
import React, { FC, ReactNode, RefObject, ReactElement, Dispatch, SetStateAction, ElementType } from 'react';
|
|
2
2
|
import { Menu } from '@headlessui/react';
|
|
3
3
|
|
|
4
4
|
type StylesType$f = {
|
|
@@ -338,14 +338,14 @@ type NavigationStylesType$2 = {
|
|
|
338
338
|
interface ContainerProps$2 {
|
|
339
339
|
children: ({ active, setActive, }: {
|
|
340
340
|
active: string;
|
|
341
|
-
setActive:
|
|
342
|
-
}) => ReactNode
|
|
341
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
342
|
+
}) => ReactNode;
|
|
343
343
|
styles?: ContainerStylesType$2;
|
|
344
344
|
}
|
|
345
345
|
interface ListProps {
|
|
346
|
-
children:
|
|
346
|
+
children: ReactElement;
|
|
347
347
|
active: string;
|
|
348
|
-
setActive:
|
|
348
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
349
349
|
styles?: NavigationStylesType$2;
|
|
350
350
|
}
|
|
351
351
|
interface ItemProps {
|
|
@@ -353,9 +353,10 @@ interface ItemProps {
|
|
|
353
353
|
href?: string;
|
|
354
354
|
type?: string;
|
|
355
355
|
children: ReactNode;
|
|
356
|
+
linkComponent?: ElementType;
|
|
356
357
|
isCurrent?: boolean;
|
|
357
358
|
isInitial?: boolean;
|
|
358
|
-
onClick?: (accessor:
|
|
359
|
+
onClick?: (accessor: MouseEvent) => void;
|
|
359
360
|
}
|
|
360
361
|
interface FooterProps {
|
|
361
362
|
children: ReactNode | ReactNode[];
|
|
@@ -379,27 +380,28 @@ type NavigationStylesType$1 = {
|
|
|
379
380
|
interface ContainerProps$1 {
|
|
380
381
|
children: ({ active, setActive, }: {
|
|
381
382
|
active: string;
|
|
382
|
-
setActive:
|
|
383
|
-
}) => ReactNode
|
|
383
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
384
|
+
}) => ReactNode;
|
|
384
385
|
styles?: ContainerStylesType$1;
|
|
385
386
|
}
|
|
386
387
|
interface NavigationProps$1 {
|
|
387
|
-
children:
|
|
388
|
+
children: ReactElement;
|
|
388
389
|
active: string;
|
|
389
|
-
setActive:
|
|
390
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
390
391
|
styles?: NavigationStylesType$1;
|
|
391
392
|
}
|
|
392
393
|
interface NavigationItemProps$1 {
|
|
393
394
|
accessor: string;
|
|
394
395
|
href?: string;
|
|
395
|
-
type?:
|
|
396
|
+
type?: 'underline' | 'pills' | 'buttons';
|
|
396
397
|
children: ReactNode;
|
|
398
|
+
linkComponent?: ElementType;
|
|
397
399
|
isCurrent?: boolean;
|
|
398
400
|
isInitial?: boolean;
|
|
399
|
-
onClick?: (accessor:
|
|
401
|
+
onClick?: (accessor: MouseEvent) => void;
|
|
400
402
|
}
|
|
401
403
|
interface ViewProps$1 {
|
|
402
|
-
children: ReactNode
|
|
404
|
+
children: ReactNode;
|
|
403
405
|
}
|
|
404
406
|
declare const TabNavigation: {
|
|
405
407
|
Container: React.FC<ContainerProps$1>;
|
|
@@ -418,14 +420,14 @@ type NavigationStylesType = {
|
|
|
418
420
|
interface ContainerProps {
|
|
419
421
|
children: ({ active, setActive, }: {
|
|
420
422
|
active: string;
|
|
421
|
-
setActive:
|
|
422
|
-
}) => ReactNode
|
|
423
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
424
|
+
}) => ReactNode;
|
|
423
425
|
styles?: ContainerStylesType;
|
|
424
426
|
}
|
|
425
427
|
interface NavigationProps {
|
|
426
|
-
children:
|
|
428
|
+
children: ReactElement;
|
|
427
429
|
active: string;
|
|
428
|
-
setActive:
|
|
430
|
+
setActive: Dispatch<SetStateAction<string>>;
|
|
429
431
|
styles?: NavigationStylesType;
|
|
430
432
|
}
|
|
431
433
|
interface NavigationItemProps {
|
|
@@ -433,12 +435,13 @@ interface NavigationItemProps {
|
|
|
433
435
|
href?: string;
|
|
434
436
|
type?: string;
|
|
435
437
|
children: ReactNode;
|
|
438
|
+
linkComponent?: ElementType;
|
|
436
439
|
isCurrent?: boolean;
|
|
437
440
|
isInitial?: boolean;
|
|
438
|
-
onClick?: (accessor:
|
|
441
|
+
onClick?: (accessor: MouseEvent) => void;
|
|
439
442
|
}
|
|
440
443
|
interface ViewProps {
|
|
441
|
-
children: ReactNode
|
|
444
|
+
children: ReactNode;
|
|
442
445
|
}
|
|
443
446
|
declare const VerticalNavigation: {
|
|
444
447
|
Container: React.FC<ContainerProps>;
|
|
@@ -541,7 +544,7 @@ interface Props$1 {
|
|
|
541
544
|
styles?: StylesType$1;
|
|
542
545
|
}
|
|
543
546
|
declare const _default: {
|
|
544
|
-
Container: ({ children, styles:
|
|
547
|
+
Container: ({ children, styles: stylesOverrides, }: {
|
|
545
548
|
children: React.ReactNode;
|
|
546
549
|
styles?: StylesType$1 | undefined;
|
|
547
550
|
}) => JSX.Element;
|