Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

a11y-components

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a11y-components - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

5

dist/Button/Button.js

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

});
exports.Button = void 0;
exports.default = void 0;

@@ -31,2 +31,3 @@ var _react = _interopRequireWildcard(require("react"));

});
exports.Button = Button;
var _default = Button;
exports.default = _default;

56

dist/Button/Button.stories.js

@@ -6,48 +6,24 @@ "use strict";

});
exports.Basic = exports.default = void 0;
exports.actions = exports.text = void 0;
var _react = _interopRequireDefault(require("react"));
var _Button = require("./Button");
var _react2 = require("@storybook/react");
var _addonActions = require("@storybook/addon-actions");
var _Button = _interopRequireDefault(require("./Button"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = {
title: 'Button',
component: _Button.Button,
argTypes: {
children: {
description: 'The children to render inside of the button.'
},
onClick: {
description: 'Passed as the `<button>` onClick.'
},
style: {
control: {
type: 'object'
},
description: 'Used for dynamically generated inline styles.'
}
}
var text = 'Hello, Button!';
exports.text = text;
var actions = {
onClick: (0, _addonActions.action)('click')
};
exports.default = _default;
var Template = function Template(args) {
return /*#__PURE__*/_react.default.createElement(_Button.Button, args);
};
var Basic = Template.bind({});
exports.Basic = Basic;
Basic.args = {
children: 'Click me!',
onClick: function onClick() {
alert('The button was clicked!');
},
style: {
fontSize: '1rem',
padding: 8,
border: '1px solid black',
borderRadius: 8,
backgroundColor: 'lightblue'
}
};
exports.actions = actions;
(0, _react2.storiesOf)('Button', module).add('default', function () {
return /*#__PURE__*/_react.default.createElement(_Button.default, {
onClick: actions.onClick
}, text);
});

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

});
exports.Input = void 0;
exports.default = void 0;

@@ -36,2 +36,3 @@ var _react = _interopRequireWildcard(require("react"));

});
exports.Input = Input;
var _default = Input;
exports.default = _default;

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

});
exports.Listbox = void 0;
exports.default = void 0;

@@ -172,2 +172,3 @@ var _react = _interopRequireWildcard(require("react"));

});
exports.Listbox = Listbox;
var _default = Listbox;
exports.default = _default;
{
"name": "a11y-components",
"version": "0.1.2",
"version": "0.2.0",
"description": "A library of accessible React components.",

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

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