@s-ui/react-form-checkbox
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -10,3 +10,3 @@ # Change Log | ||
* Use new [@s-ui-theme](https://github.com/s-ui-theme) ([75267d1](https://github.com/SUI-Components/schibsted-spain-components/commit/75267d14f337c0bce07da09f8bd8965d86bc8cce)) | ||
* Use new [@s-ui-theme](https://github.com/s-ui-theme) ([75267d1](https://github.com/SUI-Components/adevinta-spain-components/commit/75267d14f337c0bce07da09f8bd8965d86bc8cce)) | ||
@@ -20,3 +20,3 @@ | ||
* Use new [@s-ui](https://github.com/s-ui) org and stop using schibstedspain ([fb2fb69](https://github.com/SUI-Components/schibsted-spain-components/commit/fb2fb6997f2b1c815e99417b72da7e9ba2fb193d)) | ||
* Use new [@s-ui](https://github.com/s-ui) org and stop using schibstedspain ([fb2fb69](https://github.com/SUI-Components/adevinta-spain-components/commit/fb2fb6997f2b1c815e99417b72da7e9ba2fb193d)) | ||
@@ -30,3 +30,3 @@ | ||
* Use new [@s-ui](https://github.com/s-ui) react icons ([1bd9b74](https://github.com/SUI-Components/schibsted-spain-components/commit/1bd9b7427c7c5ba17394a4fcbc0ad70985ea2e51)) | ||
* Use new [@s-ui](https://github.com/s-ui) react icons ([1bd9b74](https://github.com/SUI-Components/adevinta-spain-components/commit/1bd9b7427c7c5ba17394a4fcbc0ad70985ea2e51)) | ||
@@ -40,3 +40,3 @@ | ||
* Remove .npmignore ([13ea547](https://github.com/SUI-Components/schibsted-spain-components/commit/13ea5475e2376375ade5df1d0ae6c2d31a66dd87)) | ||
* Remove .npmignore ([13ea547](https://github.com/SUI-Components/adevinta-spain-components/commit/13ea5475e2376375ade5df1d0ae6c2d31a66dd87)) | ||
@@ -50,3 +50,3 @@ | ||
* use flexbox style to align checkbox label when text is multiline. ([7883e5c](https://github.com/SUI-Components/schibsted-spain-components/commit/7883e5cb3b9e5ab4afa416ec9e1465460d25168e)) | ||
* use flexbox style to align checkbox label when text is multiline. ([7883e5c](https://github.com/SUI-Components/adevinta-spain-components/commit/7883e5cb3b9e5ab4afa416ec9e1465460d25168e)) | ||
@@ -60,3 +60,3 @@ | ||
* prepare component for sui-theme change ([924ce8c](https://github.com/SUI-Components/schibsted-spain-components/commit/924ce8cb00b11adbdb4b8e328e87edd54523ecc2)) | ||
* prepare component for sui-theme change ([924ce8c](https://github.com/SUI-Components/adevinta-spain-components/commit/924ce8cb00b11adbdb4b8e328e87edd54523ecc2)) | ||
@@ -70,3 +70,3 @@ | ||
* Bump version ([bf4f2f2](https://github.com/SUI-Components/schibsted-spain-components/commit/bf4f2f23e0c23ed18c3f932bf8ff64d489e0f553)) | ||
* Bump version ([bf4f2f2](https://github.com/SUI-Components/adevinta-spain-components/commit/bf4f2f23e0c23ed18c3f932bf8ff64d489e0f553)) | ||
@@ -80,3 +80,3 @@ | ||
* add property name, adapt checkbox to sui-theme@8. ([6c0e85b](https://github.com/SUI-Components/schibsted-spain-components/commit/6c0e85b5468a307d17970f0245fa39e453ffad23)) | ||
* add property name, adapt checkbox to sui-theme@8. ([6c0e85b](https://github.com/SUI-Components/adevinta-spain-components/commit/6c0e85b5468a307d17970f0245fa39e453ffad23)) | ||
@@ -90,4 +90,4 @@ | ||
* migrate to PropTypes package ([1e458cf](https://github.com/SUI-Components/schibsted-spain-components/commit/1e458cfaf0a34d1c7d8d28a1dba92b8430e23872)) | ||
* switch to s-ui/component-dependencies and sui-theme@8 ([77b93ea](https://github.com/SUI-Components/schibsted-spain-components/commit/77b93ea5c00723bd365614726a50035ca32739f9)) | ||
* migrate to PropTypes package ([1e458cf](https://github.com/SUI-Components/adevinta-spain-components/commit/1e458cfaf0a34d1c7d8d28a1dba92b8430e23872)) | ||
* switch to s-ui/component-dependencies and sui-theme@8 ([77b93ea](https://github.com/SUI-Components/adevinta-spain-components/commit/77b93ea5c00723bd365614726a50035ca32739f9)) | ||
@@ -101,9 +101,9 @@ | ||
* add comment on README file. ([4cc2d8e](https://github.com/SUI-Components/schibsted-spain-components/commit/4cc2d8ec70b55224efe7de9ca3842f3b9078fd57)) | ||
* first commit of checkbox form element component. ([94d75ef](https://github.com/SUI-Components/schibsted-spain-components/commit/94d75ef001587fcadb4bd5079092f32c24029dcf)) | ||
* remove name property, modify README.md ([f38e93a](https://github.com/SUI-Components/schibsted-spain-components/commit/f38e93a5bf5c18db794ade8d9841d6a917c11060)) | ||
* rename theme-basic for sui-theme import. ([4cd9402](https://github.com/SUI-Components/schibsted-spain-components/commit/4cd94027e759cb9349b1da2dcc5bede415069dd6)) | ||
* retrieve checkbox icons from sui-svgiconset package. ([67b6b8d](https://github.com/SUI-Components/schibsted-spain-components/commit/67b6b8deb091029f0de8380f4d886a8cbe9d1b73)) | ||
* add comment on README file. ([4cc2d8e](https://github.com/SUI-Components/adevinta-spain-components/commit/4cc2d8ec70b55224efe7de9ca3842f3b9078fd57)) | ||
* first commit of checkbox form element component. ([94d75ef](https://github.com/SUI-Components/adevinta-spain-components/commit/94d75ef001587fcadb4bd5079092f32c24029dcf)) | ||
* remove name property, modify README.md ([f38e93a](https://github.com/SUI-Components/adevinta-spain-components/commit/f38e93a5bf5c18db794ade8d9841d6a917c11060)) | ||
* rename theme-basic for sui-theme import. ([4cd9402](https://github.com/SUI-Components/adevinta-spain-components/commit/4cd94027e759cb9349b1da2dcc5bede415069dd6)) | ||
* retrieve checkbox icons from sui-svgiconset package. ([67b6b8d](https://github.com/SUI-Components/adevinta-spain-components/commit/67b6b8deb091029f0de8380f4d886a8cbe9d1b73)) | ||
@@ -1,3 +0,3 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
import CheckboxChecked from '@s-ui/react-icons/lib/Checkboxchecked'; | ||
@@ -28,23 +28,28 @@ import CheckboxUnchecked from '@s-ui/react-icons/lib/Checkboxunchecked'; | ||
var CheckboxIcon = getCheckboxIcon(checked, svgIcons); | ||
return React.createElement("div", { | ||
className: cx('sui-FormCheckbox', className) | ||
}, React.createElement("label", { | ||
className: "sui-FormCheckbox-container" | ||
}, React.createElement("input", { | ||
checked: checked, | ||
className: cx('sui-FormCheckbox-input', { | ||
'is-checked': checked | ||
}), | ||
name: name, | ||
onChange: onChange, | ||
type: "checkbox" | ||
}), React.createElement(CheckboxIcon, { | ||
svgClass: "sui-FormCheckbox-icon" | ||
}), React.createElement("span", { | ||
className: "sui-FormCheckbox-label" | ||
}, label)), errorMessage && React.createElement("div", { | ||
className: "sui-FormCheckbox-errorMessage" | ||
}, React.createElement("span", { | ||
className: "sui-FormCheckbox-errorMessageLabel" | ||
}, errorMessage))); | ||
return /*#__PURE__*/_jsxs("div", { | ||
className: cx('sui-FormCheckbox', className), | ||
children: [/*#__PURE__*/_jsxs("label", { | ||
className: "sui-FormCheckbox-container", | ||
children: [/*#__PURE__*/_jsx("input", { | ||
checked: checked, | ||
className: cx('sui-FormCheckbox-input', { | ||
'is-checked': checked | ||
}), | ||
name: name, | ||
onChange: onChange, | ||
type: "checkbox" | ||
}), /*#__PURE__*/_jsx(CheckboxIcon, { | ||
svgClass: "sui-FormCheckbox-icon" | ||
}), /*#__PURE__*/_jsx("span", { | ||
className: "sui-FormCheckbox-label", | ||
children: label | ||
})] | ||
}), errorMessage && /*#__PURE__*/_jsx("div", { | ||
className: "sui-FormCheckbox-errorMessage", | ||
children: /*#__PURE__*/_jsx("span", { | ||
className: "sui-FormCheckbox-errorMessageLabel", | ||
children: errorMessage | ||
}) | ||
})] | ||
}); | ||
}; | ||
@@ -51,0 +56,0 @@ |
{ | ||
"name": "@s-ui/react-form-checkbox", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import PropTypes from 'prop-types' | ||
import React from 'react' | ||
import CheckboxChecked from '@s-ui/react-icons/lib/Checkboxchecked' | ||
@@ -4,0 +3,0 @@ import CheckboxUnchecked from '@s-ui/react-icons/lib/Checkboxunchecked' |
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
10839
132