Socket
Socket
Sign inDemoInstall

@toptal/picasso-button

Package Overview
Dependencies
Maintainers
0
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toptal/picasso-button - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2-alpha-fx-5880-page-head-2-7af9caef5.15

LICENSE

2

dist-package/src/ButtonBase/styles.js

@@ -18,3 +18,3 @@ export const createCoreClassNames = ({ disabled, loading, }) => {

'outline-none',
'[&+&]:ml-4',
'[[data-component-type="button"]+&]:ml-4',
];

@@ -21,0 +21,0 @@ if (!disabled && !loading) {

@@ -19,3 +19,3 @@ var __rest = (this && this.__rest) || function (s, e) {

const finalClassName = twMerge(createRootClassNames(), className);
return (React.createElement("div", Object.assign({}, rest, { ref: ref, className: finalClassName, style: style }), children));
return (React.createElement("div", Object.assign({}, rest, { ref: ref, "data-component-type": 'button', className: finalClassName, style: style }), children));
});

@@ -22,0 +22,0 @@ ButtonGroup.defaultProps = {};

@@ -5,2 +5,4 @@ export const createRootClassNames = () => {

'justify-start',
'items-start',
'[[data-component-type="button"]+&]:ml-4',
'[&>[data-component-type="button"]:hover]:z-[1]',

@@ -7,0 +9,0 @@ '[&>[data-component-type="button"]:first-child:not(:last-child)]:rounded-r-none',

@@ -58,3 +58,3 @@ var __rest = (this && this.__rest) || function (s, e) {

}), actionButtonProps === null || actionButtonProps === void 0 ? void 0 : actionButtonProps.className);
const dropdownClassName = twMerge('block cursor-pointer', disabled && '[&>div]:cursor-auto');
const dropdownClassName = twMerge('inline-flex cursor-pointer', disabled && '[&>div]:cursor-auto');
return (React.createElement(ButtonGroup, Object.assign({}, rest, { ref: ref, style: style, className: className }),

@@ -61,0 +61,0 @@ React.createElement(Button, Object.assign({}, actionButtonProps, { className: actionButtonClassName, size: size, variant: variant, disabled: disabled, onClick: onClick, "data-testid": testIds.actionButton }), children),

{
"name": "@toptal/picasso-button",
"version": "4.0.1",
"version": "4.0.2-alpha-fx-5880-page-head-2-7af9caef5.15+7af9caef5",
"description": "Toptal UI components library - Button",

@@ -25,13 +25,13 @@ "publishConfig": {

"dependencies": {
"@toptal/picasso-checkbox": "4.0.0",
"@toptal/picasso-container": "3.0.0",
"@toptal/picasso-dropdown": "4.1.0",
"@toptal/picasso-icons": "1.6.0",
"@toptal/picasso-loader": "3.0.0",
"@toptal/picasso-radio": "4.0.0",
"@toptal/picasso-shared": "15.0.0",
"@toptal/picasso-utils": "1.0.3",
"@toptal/picasso-link": "3.0.0",
"@mui/base": "5.0.0-beta.40",
"@toptal/picasso-checkbox": "4.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-container": "3.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-dropdown": "4.1.1-alpha-fx-5880-page-head-2-7af9caef5.15+7af9caef5",
"@toptal/picasso-icons": "1.6.1-alpha-fx-5880-page-head-2-7af9caef5.95+7af9caef5",
"@toptal/picasso-link": "3.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-loader": "3.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-radio": "4.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-shared": "15.0.1-alpha-fx-5880-page-head-2-7af9caef5.188+7af9caef5",
"@toptal/picasso-utils": "1.0.4-alpha-fx-5880-page-head-2-7af9caef5.188+7af9caef5",
"ap-style-title-case": "^1.1.2",
"@mui/base": "5.0.0-beta.40",
"classnames": "^2.5.1"

@@ -44,5 +44,5 @@ },

"peerDependencies": {
"@toptal/picasso-provider": "*",
"@toptal/picasso-tailwind": ">=2.7",
"@toptal/picasso-tailwind-merge": "^2.0.0",
"@toptal/picasso-tailwind": ">=2.7",
"@toptal/picasso-provider": "*",
"react": ">=16.12.0 < 19.0.0"

@@ -54,5 +54,5 @@ },

"devDependencies": {
"@toptal/picasso-tailwind-merge": "2.0.0",
"@toptal/picasso-provider": "5.0.0",
"@toptal/picasso-test-utils": "1.1.1"
"@toptal/picasso-provider": "5.0.1-alpha-fx-5880-page-head-2-7af9caef5.109+7af9caef5",
"@toptal/picasso-tailwind-merge": "2.0.1-alpha-fx-5880-page-head-2-7af9caef5.26+7af9caef5",
"@toptal/picasso-test-utils": "1.1.2-alpha-fx-5880-page-head-2-7af9caef5.188+7af9caef5"
},

@@ -63,3 +63,4 @@ "files": [

"src"
]
],
"gitHead": "7af9caef59ecb293478d369764d6a56061419420"
}

@@ -25,3 +25,3 @@ export const createCoreClassNames = ({

'outline-none',
'[&+&]:ml-4',
'[[data-component-type="button"]+&]:ml-4',
]

@@ -28,0 +28,0 @@

@@ -5,2 +5,4 @@ export const createRootClassNames = () => {

'justify-start',
'items-start',
'[[data-component-type="button"]+&]:ml-4',

@@ -7,0 +9,0 @@ '[&>[data-component-type="button"]:hover]:z-[1]',

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

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