@elvia/elvis-accordion
Advanced tools
Comparing version 2.0.4 to 2.0.5
# Elvia Accordion Changelog | ||
## 2.0.5 (30.11.21) | ||
### Patch | ||
- Now using elvis-colors package for colors. | ||
## 2.0.4 (30.11.21) | ||
@@ -11,2 +17,3 @@ | ||
## 2.0.3 (17.11.21) | ||
@@ -13,0 +20,0 @@ |
declare module '*.css'; | ||
declare module '*.scss'; | ||
declare module '@elvia/elvis-typography'; | ||
declare module '@elvia/elvis-colors'; |
@@ -8,6 +8,5 @@ /* | ||
import styled from 'styled-components'; | ||
const ElviaColors = { | ||
green: '#29d305', | ||
white: '#ffffff', | ||
black: '#000000' | ||
import { getColor } from '@elvia/elvis-colors'; | ||
const colors = { | ||
elviaBlack: getColor('black') | ||
}; | ||
@@ -59,3 +58,3 @@ const AccordionArea = styled.div.withConfig({ | ||
componentId: "sc-84n38j-2" | ||
})(["border:none;background:transparent;display:flex;padding:0;font-family:'Red Hat Display',Verdana,sans-serif;font-weight:500;font-size:", ";line-height:", ";text-align:left;cursor:pointer;color:", ";&:hover{i{background-image:url(\"data:image/svg+xml,%3csvg viewBox='0 0 24 24' aria-hidden='true' width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12z' fill='%2329D305'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3c/svg%3e\");}}i{margin-left:", ";border:none;border-radius:50%;background-size:contain;background-position:center;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml,%3csvg viewBox='0 0 24 24' aria-hidden='true' width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z' fill='%2329D305'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3c/svg%3e\");background-color:transparent;display:inline-block;height:", ";width:", ";transition:transform 300ms;transform:", ";}"], props => decideButtonFontSize(props.size), props => props.size === 'small' ? '16px' : '24px', ElviaColors.black, props => { | ||
})(["border:none;background:transparent;display:flex;padding:0;font-family:'Red Hat Display',Verdana,sans-serif;font-weight:500;font-size:", ";line-height:", ";text-align:left;cursor:pointer;color:", ";&:hover{i{background-image:url(\"data:image/svg+xml,%3csvg viewBox='0 0 24 24' aria-hidden='true' width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12z' fill='%2329D305'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3c/svg%3e\");}}i{margin-left:", ";border:none;border-radius:50%;background-size:contain;background-position:center;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml,%3csvg viewBox='0 0 24 24' aria-hidden='true' width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z' fill='%2329D305'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.813 15.393a1.149 1.149 0 01-1.626 0L6.95 11.157A.853.853 0 118.157 9.95L12 13.793l3.843-3.843a.853.853 0 011.207 1.207l-4.237 4.236z' fill='black'/%3e%3c/svg%3e\");background-color:transparent;display:inline-block;height:", ";width:", ";transition:transform 300ms;transform:", ";}"], props => decideButtonFontSize(props.size), props => props.size === 'small' ? '16px' : '24px', colors.elviaBlack, props => { | ||
if (props.openLabel !== undefined || props.closeLabel !== undefined) { | ||
@@ -62,0 +61,0 @@ return '8px;'; |
{ | ||
"name": "@elvia/elvis-accordion", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "", | ||
@@ -14,4 +14,5 @@ "main": "web_component.js", | ||
"@elvia/elvis-toolbox": "^1.2.0", | ||
"@elvia/elvis-colors": "^1.1.0", | ||
"styled-components": "^5.3.3" | ||
} | ||
} |
export { default as Accordion } from './dist/react/js/elvia-accordion'; |
@@ -0,0 +0,0 @@ # Elvia Accordion |
declare module '*.css'; | ||
declare module '*.scss'; | ||
declare module '@elvia/elvis-typography'; | ||
declare module '@elvia/elvis-colors'; |
@@ -0,0 +0,0 @@ import 'jsdom-global/register'; |
export { default as Accordion } from './dist/web_component/js/elvia-accordion'; |
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
24120
4
12
632
+ Added@elvia/elvis-colors@^1.1.0
+ Added@elvia/elvis-colors@1.8.0(transitive)
+ Addedelectron-to-chromium@1.5.64(transitive)
- Removedelectron-to-chromium@1.5.67(transitive)