@s-ui/react-form-checkbox
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -1,5 +0,21 @@ | ||
# Change Log | ||
# CHANGELOG | ||
All notable changes to this project will be documented in this file. | ||
# 1.12.0 (2022-10-27) | ||
### Features | ||
* **card/collapsible:** rename vars ([9aa2296](https://github.com/SUI-Components/adevinta-spain-components/commit/9aa22964f5de372f1214b44f1fa5d7184e9d042b)) | ||
# 1.11.0 (2020-11-24) | ||
### Features | ||
* **form/checkbox:** Use new jsx runtime ([0ead8be](https://github.com/SUI-Components/adevinta-spain-components/commit/0ead8be85ecd3b169b75e28083fbcb1ef7693080)) | ||
# 1.10.0 (2020-03-09) | ||
@@ -10,3 +26,3 @@ | ||
* Use new [@s-ui-theme](https://github.com/s-ui-theme) ([75267d1](https://github.com/SUI-Components/adevinta-spain-components/commit/75267d14f337c0bce07da09f8bd8965d86bc8cce)) | ||
* **form/checkbox:** Use new [@s-ui-theme](https://github.com/s-ui-theme) ([75267d1](https://github.com/SUI-Components/adevinta-spain-components/commit/75267d14f337c0bce07da09f8bd8965d86bc8cce)) | ||
@@ -20,3 +36,3 @@ | ||
* 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)) | ||
* **form/checkbox:** 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 +46,3 @@ | ||
* Use new [@s-ui](https://github.com/s-ui) react icons ([1bd9b74](https://github.com/SUI-Components/adevinta-spain-components/commit/1bd9b7427c7c5ba17394a4fcbc0ad70985ea2e51)) | ||
* **form/checkbox:** Use new [@s-ui](https://github.com/s-ui) react icons ([1bd9b74](https://github.com/SUI-Components/adevinta-spain-components/commit/1bd9b7427c7c5ba17394a4fcbc0ad70985ea2e51)) | ||
@@ -40,3 +56,3 @@ | ||
* Remove .npmignore ([13ea547](https://github.com/SUI-Components/adevinta-spain-components/commit/13ea5475e2376375ade5df1d0ae6c2d31a66dd87)) | ||
* **form/checkbox:** Remove .npmignore ([13ea547](https://github.com/SUI-Components/adevinta-spain-components/commit/13ea5475e2376375ade5df1d0ae6c2d31a66dd87)) | ||
@@ -50,3 +66,3 @@ | ||
* use flexbox style to align checkbox label when text is multiline. ([7883e5c](https://github.com/SUI-Components/adevinta-spain-components/commit/7883e5cb3b9e5ab4afa416ec9e1465460d25168e)) | ||
* **form/checkbox:** use flexbox style to align checkbox label when text is multiline. ([7883e5c](https://github.com/SUI-Components/adevinta-spain-components/commit/7883e5cb3b9e5ab4afa416ec9e1465460d25168e)) | ||
@@ -60,3 +76,3 @@ | ||
* prepare component for sui-theme change ([924ce8c](https://github.com/SUI-Components/adevinta-spain-components/commit/924ce8cb00b11adbdb4b8e328e87edd54523ecc2)) | ||
* **form/checkbox:** prepare component for sui-theme change ([924ce8c](https://github.com/SUI-Components/adevinta-spain-components/commit/924ce8cb00b11adbdb4b8e328e87edd54523ecc2)) | ||
@@ -70,3 +86,3 @@ | ||
* Bump version ([bf4f2f2](https://github.com/SUI-Components/adevinta-spain-components/commit/bf4f2f23e0c23ed18c3f932bf8ff64d489e0f553)) | ||
* **form/checkbox:** Bump version ([bf4f2f2](https://github.com/SUI-Components/adevinta-spain-components/commit/bf4f2f23e0c23ed18c3f932bf8ff64d489e0f553)) | ||
@@ -80,3 +96,3 @@ | ||
* add property name, adapt checkbox to sui-theme@8. ([6c0e85b](https://github.com/SUI-Components/adevinta-spain-components/commit/6c0e85b5468a307d17970f0245fa39e453ffad23)) | ||
* **form/checkbox:** add property name, adapt checkbox to sui-theme@8. ([6c0e85b](https://github.com/SUI-Components/adevinta-spain-components/commit/6c0e85b5468a307d17970f0245fa39e453ffad23)) | ||
@@ -90,4 +106,4 @@ | ||
* 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)) | ||
* **form/checkbox:** migrate to PropTypes package ([1e458cf](https://github.com/SUI-Components/adevinta-spain-components/commit/1e458cfaf0a34d1c7d8d28a1dba92b8430e23872)) | ||
* **form/checkbox:** switch to s-ui/component-dependencies and sui-theme@8 ([77b93ea](https://github.com/SUI-Components/adevinta-spain-components/commit/77b93ea5c00723bd365614726a50035ca32739f9)) | ||
@@ -101,9 +117,9 @@ | ||
* 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)) | ||
* **form/checkbox:** add comment on README file. ([4cc2d8e](https://github.com/SUI-Components/adevinta-spain-components/commit/4cc2d8ec70b55224efe7de9ca3842f3b9078fd57)) | ||
* **form/checkbox:** first commit of checkbox form element component. ([94d75ef](https://github.com/SUI-Components/adevinta-spain-components/commit/94d75ef001587fcadb4bd5079092f32c24029dcf)) | ||
* **form/checkbox:** remove name property, modify README.md ([f38e93a](https://github.com/SUI-Components/adevinta-spain-components/commit/f38e93a5bf5c18db794ade8d9841d6a917c11060)) | ||
* **form/checkbox:** rename theme-basic for sui-theme import. ([4cd9402](https://github.com/SUI-Components/adevinta-spain-components/commit/4cd94027e759cb9349b1da2dcc5bede415069dd6)) | ||
* **form/checkbox:** retrieve checkbox icons from sui-svgiconset package. ([67b6b8d](https://github.com/SUI-Components/adevinta-spain-components/commit/67b6b8deb091029f0de8380f4d886a8cbe9d1b73)) | ||
@@ -0,10 +1,9 @@ | ||
import cx from 'classnames'; | ||
import PropTypes from 'prop-types'; | ||
import CheckboxChecked from '@s-ui/react-icons/lib/Checkboxchecked'; | ||
import CheckboxUnchecked from '@s-ui/react-icons/lib/Checkboxunchecked'; | ||
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'; | ||
import CheckboxUnchecked from '@s-ui/react-icons/lib/Checkboxunchecked'; | ||
import cx from 'classnames'; | ||
var getCheckboxIcon = function getCheckboxIcon(checked, customIcons) { | ||
var icon; | ||
if (checked) { | ||
@@ -15,14 +14,12 @@ icon = customIcons ? customIcons.checked : CheckboxChecked; | ||
} | ||
return icon; | ||
}; | ||
var FormCheckbox = function FormCheckbox(_ref) { | ||
var checked = _ref.checked, | ||
className = _ref.className, | ||
errorMessage = _ref.errorMessage, | ||
label = _ref.label, | ||
name = _ref.name, | ||
onChange = _ref.onChange, | ||
svgIcons = _ref.svgIcons; | ||
className = _ref.className, | ||
errorMessage = _ref.errorMessage, | ||
label = _ref.label, | ||
name = _ref.name, | ||
onChange = _ref.onChange, | ||
svgIcons = _ref.svgIcons; | ||
var CheckboxIcon = getCheckboxIcon(checked, svgIcons); | ||
@@ -56,4 +53,3 @@ return /*#__PURE__*/_jsxs("div", { | ||
}; | ||
FormCheckbox.displayName = 'FormCheckbox'; | ||
export default FormCheckbox; |
{ | ||
"name": "@s-ui/react-form-checkbox", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "rm -Rf ./lib && mkdir -p ./lib && npm run build:js && npm run build:styles", | ||
"build:js": "../../../node_modules/.bin/babel --presets sui ./src --out-dir ./lib", | ||
"build:styles": "../../../node_modules/.bin/cpx './src/**/*.scss' ./lib" | ||
"prepublishOnly": "rm -Rf ./lib && mkdir -p ./lib && npm run build:js && npm run build:styles", | ||
"build:js": "babel --presets sui ./src --out-dir ./lib", | ||
"build:styles": "cpx './src/**/*.scss' ./lib" | ||
}, | ||
"dependencies": { | ||
"@s-ui/react-icons": "1", | ||
"@s-ui/component-dependencies": "1" | ||
"@s-ui/component-dependencies": "1", | ||
"@s-ui/react-icons": "1" | ||
}, | ||
@@ -15,0 +15,0 @@ "keywords": [], |
@@ -0,5 +1,6 @@ | ||
import cx from 'classnames' | ||
import PropTypes from 'prop-types' | ||
import CheckboxChecked from '@s-ui/react-icons/lib/Checkboxchecked' | ||
import CheckboxUnchecked from '@s-ui/react-icons/lib/Checkboxunchecked' | ||
import cx from 'classnames' | ||
@@ -6,0 +7,0 @@ const getCheckboxIcon = (checked, customIcons) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
13329
9
150