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 • 2.31 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../src/rating/style/RatingStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/rating';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ props }) => [\n 'p-rating',\n {\n 'p-readonly': props.readonly,\n 'p-disabled': props.disabled\n }\n ],\n option: ({ instance, value }) => [\n 'p-rating-option',\n {\n 'p-rating-option-active': value <= instance.d_value,\n 'p-focus-visible': value === instance.focusedOptionIndex && instance.isFocusVisibleItem\n }\n ],\n onIcon: ({ instance }) => [\n 'p-rating-icon p-rating-on-icon',\n {\n 'p-invalid': instance.$invalid\n }\n ],\n offIcon: ({ instance }) => [\n 'p-rating-icon p-rating-off-icon',\n {\n 'p-invalid': instance.$invalid\n }\n ]\n};\n\nexport default BaseStyle.extend({\n name: 'rating',\n style,\n classes\n});\n"],"names":["classes","root","_ref","props","readonly","disabled","option","_ref2","instance","value","d_value","focusedOptionIndex","isFocusVisibleItem","onIcon","_ref3","$invalid","offIcon","_ref4","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAA,OAAO,CACjB,UAAU,EACV;MACI,YAAY,EAAEA,KAAK,CAACC,QAAQ;MAC5B,YAAY,EAAED,KAAK,CAACE;AACxB,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,MAAM,EAAE,SAARA,MAAMA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;MAAEC,KAAK,GAAAF,KAAA,CAALE,KAAK;IAAA,OAAO,CAC7B,iBAAiB,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