New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clayui/link

Package Overview
Dependencies
Maintainers
15
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/link - npm Package Compare versions

Comparing version 3.40.0 to 3.45.0

2

lib/index.d.ts
import React from 'react';
import ClayLinkContext from './Context';
interface IProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
block?: boolean;
borderless?: boolean;

@@ -13,2 +14,3 @@ button?: boolean | {

outline?: boolean;
small?: boolean;
}

@@ -15,0 +17,0 @@ declare const ClayLink: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLAnchorElement>>;

12

lib/index.js

@@ -20,3 +20,3 @@ "use strict";

var _excluded = ["borderless", "button", "children", "className", "displayType", "monospaced", "outline", "rel", "target"];
var _excluded = ["block", "borderless", "button", "children", "className", "displayType", "monospaced", "outline", "rel", "small", "target"];

@@ -34,3 +34,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ClayLink = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
var borderless = _ref.borderless,
var block = _ref.block,
borderless = _ref.borderless,
button = _ref.button,

@@ -43,2 +44,3 @@ children = _ref.children,

rel = _ref.rel,
small = _ref.small,
target = _ref.target,

@@ -57,6 +59,6 @@ otherProps = _objectWithoutProperties(_ref, _excluded);

btn: !!button,
'btn-block': button.block,
'btn-monospaced': button.monospaced,
'btn-block': button.block || block,
'btn-monospaced': button.monospaced || monospaced,
'btn-outline-borderless': borderless,
'btn-sm': button.small
'btn-sm': button.small || small
}, _defineProperty(_classes, "btn-".concat(displayType), displayType && !outline && !borderless), _defineProperty(_classes, "btn-outline-".concat(displayType), displayType && (outline || borderless)), _classes);

@@ -63,0 +65,0 @@ } else {

{
"name": "@clayui/link",
"version": "3.40.0",
"version": "3.45.0",
"description": "ClayLink component",

@@ -39,3 +39,3 @@ "license": "BSD-3-Clause",

],
"gitHead": "35f995fa7784af86b2052a542ae5d7b1eccfd356"
"gitHead": "82d19a7d31a21a6bb4ac92a0d709b32fc19502e9"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc