a11y-components
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -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; |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19684
245