tabler-react-2
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -10,2 +10,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _reactRouterDom = require("react-router-dom"); | ||
var _excluded = ["children", "href", "onClick", "variant", "color", "ghost", "square", "pill", "outline", "loading", "size", "fill", "className"]; | ||
@@ -37,5 +38,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } | ||
_defineProperty({}, "btn-".concat(outline ? "outline-" : "").concat(ghost ? "ghost-" : "").concat(color || variant || fill && "primary"), fill || color || variant), square && "btn-square", pill && "btn-pill", className === null || className === void 0 ? void 0 : className.split(" ")); | ||
var ElementToRender = window.USE_FALLBACK_ANCHOR ? "a" : _reactRouterDom.Link; | ||
if (href) { | ||
return /*#__PURE__*/_react["default"].createElement("a", _extends({ | ||
href: href, | ||
return /*#__PURE__*/_react["default"].createElement(ElementToRender, _extends({ | ||
to: href, | ||
className: classes | ||
@@ -42,0 +44,0 @@ }, props), loading && /*#__PURE__*/_react["default"].createElement("span", { |
{ | ||
"name": "tabler-react-2", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "A react implementation of Tabler ui", | ||
@@ -22,3 +22,4 @@ "main": "dist/index.js", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1" | ||
"react-dom": "^18.3.1", | ||
"react-router-dom": "^6.26.2" | ||
}, | ||
@@ -29,4 +30,5 @@ "devDependencies": { | ||
"babel-plugin-transform-css-import-to-string": "^0.0.2", | ||
"postcss": "^8.4.45", | ||
"postcss-cli": "^11.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2603352
19
10347
10
5
+ Addedreact-router-dom@^6.26.2
+ Added@remix-run/router@1.21.0(transitive)
+ Addedreact-router@6.28.0(transitive)
+ Addedreact-router-dom@6.28.0(transitive)