Socket
Socket
Sign inDemoInstall

alphaa-components

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

1

lib/components/Button/Button.d.ts

@@ -8,4 +8,5 @@ import * as React from 'react';

label: string;
type?: 'button' | 'submit' | 'reset';
onClick?: () => void;
}
export declare const Button: React.FC<ButtonProps>;

4

lib/components/Button/Button.js

@@ -18,6 +18,6 @@ "use strict";

const Button = (_a) => {
var { bg = 'primary', size = 'medium', backgroundColor, label } = _a, props = __rest(_a, ["bg", "size", "backgroundColor", "label"]);
return (React.createElement("button", Object.assign({ type: "button", className: ['btn', `btn-${size}`, bg].join(' '), style: { backgroundColor: backgroundColor } }, props), label));
var { bg = 'primary', size = 'medium', backgroundColor, type = 'button', onClick = () => null, label } = _a, props = __rest(_a, ["bg", "size", "backgroundColor", "type", "onClick", "label"]);
return (React.createElement("button", Object.assign({ type: type, className: ['btn', `btn-${size}`, bg].join(' '), style: { backgroundColor: backgroundColor }, onClick: onClick }, props), label));
};
exports.Button = Button;
//# sourceMappingURL=Button.js.map

@@ -8,3 +8,4 @@ import * as React from 'react';

value?: string | number;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
}
export declare const Input: React.FC<InputProps>;

@@ -18,6 +18,6 @@ "use strict";

const Input = (_a) => {
var { size = 'medium', label, placeholder = 'Name', value = '' } = _a, props = __rest(_a, ["size", "label", "placeholder", "value"]);
return (React.createElement("input", Object.assign({ type: "text", className: ['form', `form-${size}`].join(' '), placeholder: placeholder, value: value }, props)));
var { size = 'medium', label, placeholder = 'Name', value = '', onChange = () => null } = _a, props = __rest(_a, ["size", "label", "placeholder", "value", "onChange"]);
return (React.createElement("input", Object.assign({ type: "text", className: ['form', `form-${size}`].join(' '), placeholder: placeholder, value: value, onChange: onChange }, props)));
};
exports.Input = Input;
//# sourceMappingURL=Input.js.map
{
"name": "alphaa-components",
"version": "0.2.3",
"version": "0.2.4",
"private": false,

@@ -5,0 +5,0 @@ "description": "",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc