@launchpad-ui/button
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -63,8 +63,2 @@ import type { LocationDescriptor } from 'history'; | ||
/** | ||
* Content to display when hovering over the button | ||
*/ | ||
/** | ||
* Content to display when hovering over the button | ||
*/ | ||
/** | ||
* Function to execute button is clicked | ||
@@ -136,3 +130,3 @@ */ | ||
* GOTCHA: focus only works with native dom elements: a and button. Since this | ||
* component can render Tooltip, Link and in fact it can render any custom react components, this | ||
* component can render Link and in fact it can render any custom react components, this | ||
* method is an anti-pattern. | ||
@@ -139,0 +133,0 @@ */ |
@@ -5,3 +5,3 @@ // ../../scripts/react-shim.js | ||
// src/Button.tsx | ||
import classNames from "classnames"; | ||
import cx from "clsx"; | ||
import { cloneElement, createRef, PureComponent } from "react"; | ||
@@ -98,3 +98,3 @@ import "./styles/Button.css"; | ||
const sizeClass = `Button--${size}`; | ||
const classes = classNames("Button", className, kindClass, sizeClass, { | ||
const classes = cx("Button", className, kindClass, sizeClass, { | ||
"Button--fit": fit, | ||
@@ -101,0 +101,0 @@ "Button--icon": type === "icon", |
@@ -37,3 +37,3 @@ var __create = Object.create; | ||
// src/Button.tsx | ||
var import_classnames = __toESM(require("classnames")); | ||
var import_clsx = __toESM(require("clsx")); | ||
var import_react = require("react"); | ||
@@ -130,3 +130,3 @@ var import_Button = require("./styles/Button.css"); | ||
const sizeClass = `Button--${size}`; | ||
const classes = (0, import_classnames.default)("Button", className, kindClass, sizeClass, { | ||
const classes = (0, import_clsx.default)("Button", className, kindClass, sizeClass, { | ||
"Button--fit": fit, | ||
@@ -133,0 +133,0 @@ "Button--icon": type === "icon", |
{ | ||
"name": "@launchpad-ui/button", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"publishConfig": { | ||
@@ -30,3 +30,3 @@ "access": "public" | ||
"@types/history": "^4.7.11", | ||
"classnames": "^2.3.1" | ||
"clsx": "^1.1.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
92993
668
+ Addedclsx@^1.1.1
+ Addedclsx@1.2.1(transitive)
- Removedclassnames@^2.3.1
- Removedclassnames@2.5.1(transitive)