@ballistix.digital/react-components 0.4.41 → 0.4.43
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 +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -483,7 +483,7 @@ type TNavigationItemProps$1 = {
|
|
|
483
483
|
as?: ElementType;
|
|
484
484
|
isCurrent?: boolean;
|
|
485
485
|
isInitial?: boolean;
|
|
486
|
-
onClick?: (accessor: MouseEvent) => void;
|
|
486
|
+
onClick?: ((accessor: MouseEvent) => void) | any;
|
|
487
487
|
styles?: Pick<TTabNavigationStyles, 'tab'>;
|
|
488
488
|
};
|
|
489
489
|
type TViewProps$1 = {
|
package/dist/index.esm.js
CHANGED
|
@@ -17087,9 +17087,9 @@ var base$6 = {
|
|
|
17087
17087
|
container: 'flex flex-col',
|
|
17088
17088
|
wrapper: '-my-2 -mx-4 sm:-mx-6 lg:-mx-8',
|
|
17089
17089
|
content: '',
|
|
17090
|
-
styleWrapper: '',
|
|
17090
|
+
styleWrapper: 'overflow-scroll w-screen md:w-auto md:overflow-auto',
|
|
17091
17091
|
table: {
|
|
17092
|
-
container: 'min-w-full divide-y divide-gray-300',
|
|
17092
|
+
container: 'min-w-full divide-y divide-gray-300 ',
|
|
17093
17093
|
head: {
|
|
17094
17094
|
container: '',
|
|
17095
17095
|
row: '',
|
|
@@ -17468,7 +17468,10 @@ var Item$1 = function (props) {
|
|
|
17468
17468
|
return result;
|
|
17469
17469
|
};
|
|
17470
17470
|
var styles = handleGenerateStyle();
|
|
17471
|
-
|
|
17471
|
+
if (href && LinkComponent) {
|
|
17472
|
+
return (jsx(LinkComponent, __assign({ href: href, className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
17473
|
+
}
|
|
17474
|
+
return (jsx("div", __assign({ className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
17472
17475
|
};
|
|
17473
17476
|
var View$1 = function (props) {
|
|
17474
17477
|
var children = props.children;
|