UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 1.86 kB
{"version":3,"file":"index.mjs","sources":["../../../src/checkbox/style/CheckboxStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/checkbox';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ instance, props }) => [\n 'p-checkbox p-component',\n {\n 'p-checkbox-checked': instance.checked,\n 'p-disabled': props.disabled,\n 'p-invalid': instance.$pcCheckboxGroup ? instance.$pcCheckboxGroup.$invalid : instance.$invalid,\n 'p-variant-filled': instance.$variant === 'filled',\n 'p-checkbox-sm p-inputfield-sm': props.size === 'small',\n 'p-checkbox-lg p-inputfield-lg': props.size === 'large'\n }\n ],\n box: 'p-checkbox-box',\n input: 'p-checkbox-input',\n icon: 'p-checkbox-icon'\n};\n\nexport default BaseStyle.extend({\n name: 'checkbox',\n style,\n classes\n});\n"],"names":["classes","root","_ref","instance","props","checked","disabled","$pcCheckboxGroup","$invalid","$variant","size","box","input","icon","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAA,OAAO,CAC3B,wBAAwB,EACxB;MACI,oBAAoB,EAAED,QAAQ,CAACE,OAAO;MACtC,YAAY,EAAED,KAAK,CAACE,QAAQ;AAC5B,MAAA,WAAW,EAAEH,QAAQ,CAACI,gBAAgB,GAAGJ,QAAQ,CAACI,gBAAgB,CAACC,QAAQ,GAAGL,QAAQ,CAACK,QAAQ;AAC/F,MAAA,kBAAkB,EAAEL,QAAQ,CAACM,QAAQ,KAAK,QAAQ;AAClD,MAAA,+BAA+B,EAAEL,KAAK,CAACM,IAAI,KAAK,OAAO;AACvD,MAAA,+BAA+B,EAAEN,KAAK,CAACM,IAAI,KAAK;AACpD,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,GAAG,EAAE,gBAAgB;AACrBC,EAAAA,KAAK,EAAE,kBAAkB;AACzBC,EAAAA,IAAI,EAAE;AACV,CAAC;AAED,oBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,KAAK,EAALA,KAAK;AACLjB,EAAAA,OAAO,EAAPA;AACJ,CAAC,CAAC;;;;"}