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

@clayui/form

Package Overview
Dependencies
Maintainers
3
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/form - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

CHANGELOG.md

3

lib/Checkbox.js

@@ -54,4 +54,3 @@ "use strict";

},
type: "checkbox",
value: checked ? 'true' : 'false'
type: "checkbox"
})), _react.default.createElement("span", {

@@ -58,0 +57,0 @@ className: "custom-control-label"

import * as React from 'react';
declare const Group: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
interface IGroup extends React.HTMLAttributes<HTMLDivElement> {
small?: boolean;
}
declare const Group: React.ForwardRefExoticComponent<IGroup & React.RefAttributes<HTMLDivElement>>;
declare const Text: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;

@@ -4,0 +7,0 @@ declare const FeedbackGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;

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

var React = _interopRequireWildcard(require("react"));
var _icon = _interopRequireDefault(require("@clayui/icon"));
var _classnames = _interopRequireDefault(require("classnames"));
var _icon = _interopRequireDefault(require("@clayui/icon"));
var React = _interopRequireWildcard(require("react"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -28,6 +28,9 @@

className = _ref.className,
otherProps = _objectWithoutProperties(_ref, ["children", "className"]);
small = _ref.small,
otherProps = _objectWithoutProperties(_ref, ["children", "className", "small"]);
return React.createElement("div", _extends({}, otherProps, {
className: (0, _classnames.default)('form-group', className),
className: (0, _classnames.default)('form-group', {
'form-group-sm': small
}, className),
ref: ref

@@ -34,0 +37,0 @@ }), children);

@@ -24,2 +24,3 @@ import React from 'react';

insetBefore?: boolean;
sizing?: 'lg' | 'sm';
}

@@ -26,0 +27,0 @@ declare type TClayInput = React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLInputElement>> & {

@@ -90,6 +90,7 @@ "use strict";

insetBefore = _ref5.insetBefore,
otherProps = _objectWithoutProperties(_ref5, ["className", "component", "insetAfter", "insetBefore"]);
sizing = _ref5.sizing,
otherProps = _objectWithoutProperties(_ref5, ["className", "component", "insetAfter", "insetBefore", "sizing"]);
return _react.default.createElement(Component, _extends({}, otherProps, {
className: (0, _classnames.default)('form-control', className, (_classNames4 = {}, _defineProperty(_classNames4, 'input-group-inset', insetAfter || insetBefore), _defineProperty(_classNames4, 'input-group-inset-after', insetAfter), _defineProperty(_classNames4, 'input-group-inset-before', insetBefore), _classNames4)),
className: (0, _classnames.default)('form-control', className, (_classNames4 = {}, _defineProperty(_classNames4, "form-control-".concat(sizing), sizing), _defineProperty(_classNames4, 'input-group-inset', insetAfter || insetBefore), _defineProperty(_classNames4, 'input-group-inset-after', insetAfter), _defineProperty(_classNames4, 'input-group-inset-before', insetBefore), _classNames4)),
ref: ref

@@ -96,0 +97,0 @@ }));

{
"name": "@clayui/form",
"version": "3.0.0",
"version": "3.1.0",
"description": "ClayForm component",

@@ -29,3 +29,3 @@ "license": "BSD-3-Clause",

"dependencies": {
"@clayui/icon": "^3.0.0",
"@clayui/icon": "^3.0.1",
"classnames": "^2.2.6"

@@ -40,3 +40,4 @@ },

"extends browserslist-config-clay"
]
],
"gitHead": "93b7745a96e45cd274ba50c4b25d4395a0c566ca"
}

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

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