@true-engineering/true-react-common-ui-kit 1.12.0 → 1.12.1
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.
|
@@ -6096,7 +6096,7 @@
|
|
|
6096
6096
|
"text",
|
|
6097
6097
|
"custom"
|
|
6098
6098
|
];
|
|
6099
|
-
var Button = function(param) {
|
|
6099
|
+
var Button = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
6100
6100
|
var _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, onClick = param.onClick, onMouseDown = param.onMouseDown;
|
|
6101
6101
|
var _useTheme = useTheme("Button", styles$D, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
6102
6102
|
var tweakPreloaderStyles = React.useMemo(function() {
|
|
@@ -6110,6 +6110,7 @@
|
|
|
6110
6110
|
var hasNoAction = isDisabled || isLoading;
|
|
6111
6111
|
var _obj, _obj1;
|
|
6112
6112
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$v(_object_spread$E({
|
|
6113
|
+
ref,
|
|
6113
6114
|
type,
|
|
6114
6115
|
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$G(_obj, classes.disabled, isDisabled), _define_property$G(_obj, classes.fullWidth, isFullWidth), _define_property$G(_obj, classes.inline, isInline), _define_property$G(_obj, classes.active, isActive), _define_property$G(_obj, classes.loading, isLoading), _define_property$G(_obj, classes.onlyIcon, hasIcon && !hasChildren), _obj)),
|
|
6115
6116
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
@@ -6143,7 +6144,7 @@
|
|
|
6143
6144
|
})
|
|
6144
6145
|
]
|
|
6145
6146
|
}));
|
|
6146
|
-
};
|
|
6147
|
+
});
|
|
6147
6148
|
var styles$C = {
|
|
6148
6149
|
root: {
|
|
6149
6150
|
cursor: "pointer",
|