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

@botco/library

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botco/library - npm Package Compare versions

Comparing version

to
0.0.10

@@ -12,3 +12,4 @@ export { default as Accordion } from './Accordion';

export { default as TabButton } from './TabButton';
export { default as ToolButton } from './ToolButton';
export { default as RightSidebar } from './RightSidebar';
export * from './types';

@@ -520,2 +520,34 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

function ToolButton(_ref) {
var text = _ref.text,
selected = _ref.selected,
className = _ref.className,
onClick = _ref.onClick,
props = _objectWithoutPropertiesLoose(_ref, ["text", "selected", "className", "onClick"]);
var classes = useStyles$9({
selected: selected
});
return React__default.createElement(Button, Object.assign({
text: text,
variant: 'outlined',
className: clsx(classes.toolButton, className),
onClick: onClick
}, props));
}
var useStyles$9 = makeStyles(function (theme) {
return createStyles({
toolButton: {
color: function color(style) {
return style.selected ? theme.palette.white.main : theme.palette.black.main;
},
backgroundColor: function backgroundColor(style) {
return style.selected ? theme.palette.lightBlue.main : theme.palette.whiteBackground.main;
},
border: 'none',
borderRadius: 4
}
});
});
function RightSidebar(_ref) {

@@ -525,3 +557,3 @@ var className = _ref.className,

onHide = _ref.onHide;
var classes = useStyles$9();
var classes = useStyles$a();
return React__default.createElement(Box, {

@@ -541,3 +573,3 @@ width: 460,

}
var useStyles$9 = makeStyles(function (theme) {
var useStyles$a = makeStyles(function (theme) {
return createStyles({

@@ -566,2 +598,3 @@ closeButton: {

exports.TextInput = TextInput;
exports.ToolButton = ToolButton;
//# sourceMappingURL=index.js.map

@@ -517,2 +517,34 @@ import React, { useState } from 'react';

function ToolButton(_ref) {
var text = _ref.text,
selected = _ref.selected,
className = _ref.className,
onClick = _ref.onClick,
props = _objectWithoutPropertiesLoose(_ref, ["text", "selected", "className", "onClick"]);
var classes = useStyles$9({
selected: selected
});
return React.createElement(Button, Object.assign({
text: text,
variant: 'outlined',
className: clsx(classes.toolButton, className),
onClick: onClick
}, props));
}
var useStyles$9 = makeStyles(function (theme) {
return createStyles({
toolButton: {
color: function color(style) {
return style.selected ? theme.palette.white.main : theme.palette.black.main;
},
backgroundColor: function backgroundColor(style) {
return style.selected ? theme.palette.lightBlue.main : theme.palette.whiteBackground.main;
},
border: 'none',
borderRadius: 4
}
});
});
function RightSidebar(_ref) {

@@ -522,3 +554,3 @@ var className = _ref.className,

onHide = _ref.onHide;
var classes = useStyles$9();
var classes = useStyles$a();
return React.createElement(Box, {

@@ -538,3 +570,3 @@ width: 460,

}
var useStyles$9 = makeStyles(function (theme) {
var useStyles$a = makeStyles(function (theme) {
return createStyles({

@@ -551,3 +583,3 @@ closeButton: {

export { Accordion, Badge, BadgedTitle, Button, FormTitle, Header, IconButton, Label, Popover, RightSidebar, TabButton, TextInput };
export { Accordion, Badge, BadgedTitle, Button, FormTitle, Header, IconButton, Label, Popover, RightSidebar, TabButton, TextInput, ToolButton };
//# sourceMappingURL=index.modern.js.map
{
"name": "@botco/library",
"version": "0.0.9",
"version": "0.0.10",
"description": "Botco UI Components",

@@ -5,0 +5,0 @@ "author": "enricribas",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet