Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/checkbox-group

Package Overview
Dependencies
Maintainers
19
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/checkbox-group - npm Package Compare versions

Comparing version 22.0.0-alpha4 to 22.0.0-alpha5

14

package.json
{
"name": "@vaadin/checkbox-group",
"version": "22.0.0-alpha4",
"version": "22.0.0-alpha5",
"description": "vaadin-checkbox-group",

@@ -29,7 +29,7 @@ "main": "vaadin-checkbox-group.js",

"@polymer/polymer": "^3.0.0",
"@vaadin/checkbox": "^22.0.0-alpha4",
"@vaadin/vaadin-element-mixin": "^22.0.0-alpha4",
"@vaadin/vaadin-lumo-styles": "^22.0.0-alpha4",
"@vaadin/vaadin-material-styles": "^22.0.0-alpha4",
"@vaadin/vaadin-themable-mixin": "^22.0.0-alpha4"
"@vaadin/checkbox": "^22.0.0-alpha5",
"@vaadin/vaadin-element-mixin": "^22.0.0-alpha5",
"@vaadin/vaadin-lumo-styles": "^22.0.0-alpha5",
"@vaadin/vaadin-material-styles": "^22.0.0-alpha5",
"@vaadin/vaadin-themable-mixin": "^22.0.0-alpha5"
},

@@ -44,3 +44,3 @@ "devDependencies": {

},
"gitHead": "86c025abd605d5a4a3c0ae36eb07c34704cee1f2"
"gitHead": "012f658db6f81375be8889f63ee15e3f660fe9ec"
}
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
import '@vaadin/vaadin-lumo-styles/color.js';
import '@vaadin/vaadin-lumo-styles/mixins/required-field.js';
import { requiredField } from '@vaadin/vaadin-lumo-styles/mixins/required-field.js';
registerStyles(
'vaadin-checkbox-group',
css`
:host {
color: var(--lumo-body-text-color);
font-size: var(--lumo-font-size-m);
font-family: var(--lumo-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
padding: var(--lumo-space-xs) 0;
}
const checkboxGroup = css`
:host {
color: var(--lumo-body-text-color);
font-size: var(--lumo-font-size-m);
font-family: var(--lumo-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
padding: var(--lumo-space-xs) 0;
}
:host::before {
height: var(--lumo-size-m);
box-sizing: border-box;
display: inline-flex;
align-items: center;
}
:host::before {
height: var(--lumo-size-m);
box-sizing: border-box;
display: inline-flex;
align-items: center;
}
:host([theme~='vertical']) [part='group-field'] {
display: flex;
flex-direction: column;
}
:host([theme~='vertical']) [part='group-field'] {
display: flex;
flex-direction: column;
}
[part='label'] {
padding-bottom: 0.7em;
}
[part='label'] {
padding-bottom: 0.7em;
}
:host([disabled]) [part='label'] {
color: var(--lumo-disabled-text-color);
-webkit-text-fill-color: var(--lumo-disabled-text-color);
}
:host([disabled]) [part='label'] {
color: var(--lumo-disabled-text-color);
-webkit-text-fill-color: var(--lumo-disabled-text-color);
}
:host([focused]:not([disabled])) [part='label'] {
color: var(--lumo-primary-text-color);
}
:host([focused]:not([disabled])) [part='label'] {
color: var(--lumo-primary-text-color);
}
:host(:hover:not([disabled]):not([focused])) [part='label'],
:host(:hover:not([disabled]):not([focused])) [part='helper-text'],
:host(:hover:not([disabled]):not([focused])) [part='helper-text'] ::slotted(*) {
color: var(--lumo-body-text-color);
}
:host(:hover:not([disabled]):not([focused])) [part='label'],
:host(:hover:not([disabled]):not([focused])) [part='helper-text'],
:host(:hover:not([disabled]):not([focused])) [part='helper-text'] ::slotted(*) {
color: var(--lumo-body-text-color);
}
:host([has-helper]) [part='helper-text']::before {
content: '';
display: block;
height: 0.4em;
}
:host([has-helper]) [part='helper-text']::before {
content: '';
display: block;
height: 0.4em;
}
[part='helper-text'],
[part='helper-text'] ::slotted(*) {
display: block;
color: var(--lumo-secondary-text-color);
font-size: var(--lumo-font-size-xs);
line-height: var(--lumo-line-height-xs);
margin-left: calc(var(--lumo-border-radius-m) / 4);
transition: color 0.2s;
}
[part='helper-text'],
[part='helper-text'] ::slotted(*) {
display: block;
color: var(--lumo-secondary-text-color);
font-size: var(--lumo-font-size-xs);
line-height: var(--lumo-line-height-xs);
margin-left: calc(var(--lumo-border-radius-m) / 4);
transition: color 0.2s;
}
/* helper-text position */
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
display: none;
}
/* helper-text position */
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
display: none;
}
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
content: '';
display: block;
height: 0.4em;
}
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
content: '';
display: block;
height: 0.4em;
}
:host([has-helper][theme~='helper-above-field']) [part='label'] {
order: 0;
padding-bottom: 0.4em;
}
:host([has-helper][theme~='helper-above-field']) [part='label'] {
order: 0;
padding-bottom: 0.4em;
}
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
order: 1;
}
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
order: 1;
}
:host([has-helper][theme~='helper-above-field']) [part='group-field'] {
order: 2;
}
:host([has-helper][theme~='helper-above-field']) [part='group-field'] {
order: 2;
}
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
order: 3;
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
order: 3;
}
/* Touch device adjustment */
@media (pointer: coarse) {
:host(:hover:not([disabled]):not([focused])) [part='label'] {
color: var(--lumo-secondary-text-color);
}
}
`;
/* Touch device adjustment */
@media (pointer: coarse) {
:host(:hover:not([disabled]):not([focused])) [part='label'] {
color: var(--lumo-secondary-text-color);
}
}
`,
{ moduleId: 'lumo-checkbox-group', include: ['lumo-required-field'] }
);
registerStyles('vaadin-checkbox-group', [requiredField, checkboxGroup], {
moduleId: 'lumo-checkbox-group'
});
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
import '@vaadin/vaadin-material-styles/color.js';
import '@vaadin/vaadin-material-styles/mixins/required-field.js';
import { requiredField } from '@vaadin/vaadin-material-styles/mixins/required-field.js';
registerStyles(
'vaadin-checkbox-group',
css`
:host {
display: inline-flex;
position: relative;
padding-top: 8px;
margin-bottom: 8px;
outline: none;
color: var(--material-body-text-color);
font-size: var(--material-body-font-size);
line-height: 24px;
font-family: var(--material-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
const checkboxGroup = css`
:host {
display: inline-flex;
position: relative;
padding-top: 8px;
margin-bottom: 8px;
outline: none;
color: var(--material-body-text-color);
font-size: var(--material-body-font-size);
line-height: 24px;
font-family: var(--material-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:host::before {
line-height: 32px;
}
:host::before {
line-height: 32px;
}
:host([has-label]) {
padding-top: 24px;
}
:host([has-label]) {
padding-top: 24px;
}
[part='label']:empty {
display: none;
}
[part='label']:empty {
display: none;
}
[part='label']:empty::before {
content: '\\00a0';
position: absolute;
}
[part='label']:empty::before {
content: '\\00a0';
position: absolute;
}
:host([theme~='vertical']) [part='group-field'] {
display: flex;
flex-direction: column;
}
:host([theme~='vertical']) [part='group-field'] {
display: flex;
flex-direction: column;
}
:host([disabled]) [part='label'] {
color: var(--material-disabled-text-color);
-webkit-text-fill-color: var(--material-disabled-text-color);
}
:host([disabled]) [part='label'] {
color: var(--material-disabled-text-color);
-webkit-text-fill-color: var(--material-disabled-text-color);
}
:host([focused]:not([invalid])) [part='label'] {
color: var(--material-primary-text-color);
}
:host([focused]:not([invalid])) [part='label'] {
color: var(--material-primary-text-color);
}
/* According to material theme guidelines, helper text should be hidden when error message is set and input is invalid */
:host([has-helper][invalid][has-error-message]) [part='helper-text'] {
display: none;
}
/* According to material theme guidelines, helper text should be hidden when error message is set and input is invalid */
:host([has-helper][invalid][has-error-message]) [part='helper-text'] {
display: none;
}
:host([has-helper]) [part='helper-text']::before {
content: '';
display: block;
height: 6px;
}
:host([has-helper]) [part='helper-text']::before {
content: '';
display: block;
height: 6px;
}
[part='helper-text'],
[part='helper-text'] ::slotted(*) {
font-size: 0.75rem;
line-height: 1;
color: var(--material-secondary-text-color);
}
`,
{ moduleId: 'material-checkbox-group', include: ['material-required-field'] }
);
[part='helper-text'],
[part='helper-text'] ::slotted(*) {
font-size: 0.75rem;
line-height: 1;
color: var(--material-secondary-text-color);
}
`;
registerStyles('vaadin-checkbox-group', [requiredField, checkboxGroup], {
moduleId: 'material-checkbox-group'
});
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