@ballistix.digital/react-components 0.4.105 → 0.4.106
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.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4612,7 +4612,7 @@ var List$1 = function (props) {
|
|
|
4612
4612
|
}) }))] })), jsx("div", __assign({ className: styles.list.body }, { children: jsx("nav", __assign({ className: styles.list.navigation }, { children: children })) }))] })));
|
|
4613
4613
|
};
|
|
4614
4614
|
var Item$2 = function (props) {
|
|
4615
|
-
var children = props.children, _a = props.as, LinkComponent = _a === void 0 ? 'a' : _a, _b = props.type, type = _b === void 0 ? 'underline' : _b, href = props.href, isCurrent = props.isCurrent, onClick = props.onClick, stylesOverrides = props.styles,
|
|
4615
|
+
var children = props.children, _a = props.as, LinkComponent = _a === void 0 ? 'a' : _a, _b = props.type, type = _b === void 0 ? 'underline' : _b, href = props.href, isCurrent = props.isCurrent, onClick = props.onClick, stylesOverrides = props.styles, isLoading = props.isLoading;
|
|
4616
4616
|
var handleGenerateStyle = function () {
|
|
4617
4617
|
var result = deepCopyObject(styles$7.base);
|
|
4618
4618
|
var keys = calculateNestedKeys(styles$7.base);
|
|
@@ -4623,7 +4623,7 @@ var Item$2 = function (props) {
|
|
|
4623
4623
|
};
|
|
4624
4624
|
var styles = handleGenerateStyle();
|
|
4625
4625
|
if (href && LinkComponent) {
|
|
4626
|
-
return (jsx(LinkComponent, __assign({ href: href, className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
4626
|
+
return (jsx(LinkComponent, __assign({ href: href, className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive, isLoading && 'opacity-30 !text-gray-300 !cursor-default', isLoading && styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
4627
4627
|
}
|
|
4628
4628
|
return (jsx("div", __assign({ className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive, isLoading && 'opacity-30 !text-gray-300 !cursor-default', isLoading && styles.tab.inactive), onClick: !isLoading ? onClick : function () { return null; } }, { children: children })));
|
|
4629
4629
|
};
|
package/dist/index.js
CHANGED
|
@@ -4623,7 +4623,7 @@ var List$1 = function (props) {
|
|
|
4623
4623
|
}) }))] })), jsxRuntime.jsx("div", __assign({ className: styles.list.body }, { children: jsxRuntime.jsx("nav", __assign({ className: styles.list.navigation }, { children: children })) }))] })));
|
|
4624
4624
|
};
|
|
4625
4625
|
var Item$2 = function (props) {
|
|
4626
|
-
var children = props.children, _a = props.as, LinkComponent = _a === void 0 ? 'a' : _a, _b = props.type, type = _b === void 0 ? 'underline' : _b, href = props.href, isCurrent = props.isCurrent, onClick = props.onClick, stylesOverrides = props.styles,
|
|
4626
|
+
var children = props.children, _a = props.as, LinkComponent = _a === void 0 ? 'a' : _a, _b = props.type, type = _b === void 0 ? 'underline' : _b, href = props.href, isCurrent = props.isCurrent, onClick = props.onClick, stylesOverrides = props.styles, isLoading = props.isLoading;
|
|
4627
4627
|
var handleGenerateStyle = function () {
|
|
4628
4628
|
var result = deepCopyObject(styles$7.base);
|
|
4629
4629
|
var keys = calculateNestedKeys(styles$7.base);
|
|
@@ -4634,7 +4634,7 @@ var Item$2 = function (props) {
|
|
|
4634
4634
|
};
|
|
4635
4635
|
var styles = handleGenerateStyle();
|
|
4636
4636
|
if (href && LinkComponent) {
|
|
4637
|
-
return (jsxRuntime.jsx(LinkComponent, __assign({ href: href, className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
4637
|
+
return (jsxRuntime.jsx(LinkComponent, __assign({ href: href, className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive, isLoading && 'opacity-30 !text-gray-300 !cursor-default', isLoading && styles.tab.inactive), onClick: onClick }, { children: children })));
|
|
4638
4638
|
}
|
|
4639
4639
|
return (jsxRuntime.jsx("div", __assign({ className: toClassName(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive, isLoading && 'opacity-30 !text-gray-300 !cursor-default', isLoading && styles.tab.inactive), onClick: !isLoading ? onClick : function () { return null; } }, { children: children })));
|
|
4640
4640
|
};
|