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 • 4.13 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../src/speeddial/style/SpeedDialStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/speeddial';\nimport BaseStyle from '@primevue/core/base/style';\n\n/* Direction */\nconst inlineStyles = {\n root: ({ props }) => ({\n alignItems: (props.direction === 'up' || props.direction === 'down') && 'center',\n justifyContent: (props.direction === 'left' || props.direction === 'right') && 'center',\n flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null\n }),\n list: ({ props }) => ({\n flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null\n })\n};\n\nconst classes = {\n root: ({ instance, props }) => [\n `p-speeddial p-component p-speeddial-${props.type}`,\n {\n [`p-speeddial-direction-${props.direction}`]: props.type !== 'circle',\n 'p-speeddial-open': instance.d_visible,\n 'p-disabled': props.disabled\n }\n ],\n pcButton: ({ props }) => [\n 'p-speeddial-button',\n {\n 'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon\n }\n ],\n list: 'p-speeddial-list',\n item: 'p-speeddial-item',\n action: 'p-speeddial-action',\n actionIcon: 'p-speeddial-action-icon',\n mask: ({ instance }) => [\n 'p-speeddial-mask',\n {\n 'p-speeddial-mask-visible': instance.d_visible\n }\n ]\n};\n\nexport default BaseStyle.extend({\n name: 'speeddial',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","root","_ref","props","alignItems","direction","justifyContent","flexDirection","list","_ref2","classes","_ref3","instance","concat","type","_defineProperty","d_visible","disabled","pcButton","_ref5","rotateAnimation","hideIcon","item","action","actionIcon","mask","_ref6","BaseStyle","extend","name","style"],"mapp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