UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

1,119 lines (1,086 loc) 146 kB
'use strict'; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var Tailwind = { directives: { ripple: { root: { "class": ['block absolute bg-white bg-opacity-50 rounded-full transform scale-0 pointer-events-none'] } } }, //PANELS panel: { header: function header(_ref) { var props = _ref.props; return { "class": ['flex items-center justify-between', // flex and alignments 'border border-gray-300 bg-gray-100 text-gray-700 rounded-tl-lg rounded-tr-lg', // borders and colors 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80', // Dark mode { 'p-5': !props.toggleable, 'py-3 px-5': props.toggleable } // condition ] }; }, title: { "class": ['leading-none font-bold'] }, toggler: { "class": ['inline-flex items-center justify-center overflow-hidden relative no-underline', // alignments 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out', // widths, borders, and transitions 'hover:text-gray-900 hover:border-transparent hover:bg-gray-200 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // hover 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]' // focus ] }, togglerIcon: { "class": ['inline-block'] }, content: { "class": ['p-5 border border-gray-300 bg-white text-gray-700 border-t-0 last:rounded-br-lg last:rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode ] // padding, borders, and colors } }, accordion: { root: { "class": ['mb-1'] }, tab: { header: function header(_ref2) { var props = _ref2.props; return { "class": [{ 'select-none pointer-events-none cursor-default opacity-60': props === null || props === void 0 ? void 0 : props.disabled } // Condition ] }; }, headerAction: function headerAction(_ref3) { var tab = _ref3.tab; return { "class": ['flex items-center cursor-pointer relative no-underline select-none', // Alignments 'p-5 transition duration-200 ease-in-out rounded-t-md font-bold transition-shadow duration-200', // Padding and transition 'border border-gray-300 bg-gray-100 text-gray-600', // Borders and colors 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Dark mode 'hover:border-gray-300 hover:bg-gray-200 hover:text-gray-800', // Hover 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)]', // Focus { 'rounded-br-md rounded-bl-md': !tab.context.active, 'rounded-br-0 rounded-bl-0 text-gray-800': tab.context.active } // Condition ] }; }, headerIcon: { "class": ['inline-block mr-2'] }, headerTitle: { "class": ['leading-none'] }, content: { "class": ['p-5 border border-gray-300 bg-white text-gray-700 border-t-0 rounded-tl-none rounded-tr-none rounded-br-lg rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode ] } } }, card: { root: { "class": ['bg-white text-gray-700 shadow-md rounded-md', // Background, text color, box shadow, and border radius. 'dark:bg-gray-900 dark:text-white ' //dark ] }, body: { "class": 'p-5' // Padding. }, title: { "class": 'text-2xl font-bold mb-2' // Font size, font weight, and margin bottom. }, subtitle: { "class": ['font-normal mb-2 text-gray-600', // Font weight, margin bottom, and text color. 'dark:text-white/60 ' //dark ] }, content: { "class": 'py-5' // Vertical padding. }, footer: { "class": 'pt-5' // Top padding. } }, divider: { root: function root(_ref4) { var props = _ref4.props; return { "class": ['flex relative', // alignments. { 'w-full my-5 mx-0 py-0 px-5 before:block before:left-0 before:absolute before:top-1/2 before:w-full before:border-t before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'horizontal', // Padding and borders for horizontal layout. 'justify-center min-h-full mx-4 md:mx-5 py-5 before:block before:min-h-full before:absolute before:left-1/2 before:top-0 before:transform before:-translate-x-1/2 before:border-l before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'vertical' // Padding and borders for vertical layout. }, { 'before:border-solid': props.type == 'solid', 'before:border-dotted': props.type == 'dotted', 'before:border-dashed': props.type == 'dashed' }, // Border type condition. { 'justify-center items-center': props.align == 'center' || props.align == null, // Alignment condition for center or default alignment. 'justify-end items-center': props.align == 'right', // Alignment condition for right alignment. 'justify-start items-center': props.align == 'left', // Alignment condition for left alignment. 'items-start': props.align == 'top', // Alignment condition for top alignment. 'items-end': props.align == 'bottom' // Alignment condition for bottom alignment. }] }; }, content: { "class": 'px-1 bg-white z-10 dark:bg-gray-900' // Padding and background color. } }, fieldset: { root: { "class": ['border border-gray-300 bg-white text-gray-700 rounded-md block mx-2 my-0.5 pl-4 pr-5 inline-size-min', // Borders, background, text color, spacing, and inline size. 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //dark ] }, legend: function legend(_ref5) { var props = _ref5.props; return { "class": ['border border-gray-300 text-gray-700 bg-gray-50 font-bold rounded-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ', //dark { 'p-0 transition-none hover:bg-gray-100 hover:border-gray-300 hover:text-gray-900 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable, 'p-5': !props.toggleable }] }; }, toggler: function toggler(_ref6) { var props = _ref6.props; return { "class": ['flex items-center justify-center', { 'p-5 text-gray-700 rounded-md transition-none cursor-pointer overflow-hidden relative select-none hover:text-gray-900 focus:focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:text-white/80 dark:hover:text-white/80 dark:hover:bg-gray-800/60 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable }] }; }, togglerIcon: { "class": 'mr-2 inline-block' // Margin and display style. }, legendTitle: { "class": 'flex items-center justify-center leading-none' // alignments, and leading style. }, content: { "class": 'p-5' // Padding. } }, scrollpanel: { wrapper: { "class": 'float-left h-full overflow-hidden relative w-full z-10' }, content: { "class": 'box-border h-[calc(100% + 18px)] overflow-scroll pr-18 pb-18 relative scrollbar-none w-[calc(100% + 18px)] [&::-webkit-scrollbar]:hidden' }, barX: { "class": 'bg-gray-50 border-0 transition-none invisible absolute bottom-0 h-3 z-2 rounded cursor-pointer opacity-0 relative' }, barY: { "class": 'bg-gray-50 border-0 transition-none top-0 w-3 h-full z-2 rounded cursor-pointer opacity-0 relative' } }, tabview: { navContainer: function navContainer(_ref7) { var props = _ref7.props; _ref7.context; _ref7.parent; return { "class": ['relative', // Relative positioning. { 'overflow-hidden': props.scrollable } // Overflow condition. ] }; }, navContent: { "class": ['overflow-y-hidden overscroll-contain overscroll-auto scroll-smooth [&::-webkit-scrollbar]:hidden'] // Overflow and scrollbar styles. }, previousButton: { "class": ['h-full flex items-center justify-center absolute top-0 z-20', 'left-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ]'] // Flex and absolute positioning styles. }, nextButton: { "class": ['h-full flex items-center justify-center absolute top-0 z-20', 'right-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 '] // Flex and absolute positioning styles. }, nav: { "class": ['flex flex-1 list-none m-0 p-0', 'bg-white border border-gray-300 border-0 border-b-2', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 '] // Flex, list, margin, padding, and border styles. }, tab: { header: function header(_ref8) { var _tab$props; var tab = _ref8.tab; return { "class": ['mr-0', { 'cursor-default pointer-events-none select-none user-select-none opacity-60': (_tab$props = tab.props) === null || _tab$props === void 0 ? void 0 : _tab$props.disabled }] // Margin and condition-based styles. }; }, headerAction: function headerAction(_ref9) { var tab = _ref9.tab; return { "class": ['items-center cursor-pointer flex overflow-hidden relative select-none text-decoration-none user-select-none', // Flex and overflow styles. 'border-b-2 p-5 font-bold rounded-t-lg transition-shadow duration-200 m-0', // Border, padding, font, and transition styles. 'transition-colors duration-200', // Transition duration style. 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Focus styles. { 'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80': tab.parent.state.d_activeIndex !== tab.context.index, // Condition-based hover styles. 'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': tab.parent.state.d_activeIndex === tab.context.index // Condition-based active styles. }], style: 'margin-bottom:-2px' // Negative margin style. }; }, headerTitle: { "class": ['leading-none whitespace-nowrap'] // Leading and whitespace styles. }, content: { "class": ['bg-white p-5 border-0 text-gray-700 rounded-bl-2xl rounded-br-2xl', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80'] // Background, padding, border, and text styles. } } }, splitter: { root: { "class": ['border border-solid border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 rounded-lg text-gray-700 dark:text-white/80'] }, gutter: function gutter(_ref10) { var props = _ref10.props; return { "class": ['flex items-center justify-center flex-shrink-0', 'transition-all duration-200 bg-gray-100 dark:bg-gray-800', { 'cursor-col-resize': props.layout == 'horizontal', 'cursor-row-resize': props.layout !== 'horizontal' }] }; }, gutterhandler: function gutterhandler(_ref11) { var props = _ref11.props; return { "class": ['bg-gray-300 dark:bg-gray-600 transition-all duration-200', { 'h-7': props.layout == 'horizontal', 'w-7 h-2': props.layout !== 'horizontal' }] }; } }, splitterpanel: { root: function root(_ref12) { _ref12.props; return { "class": ['flex-grow', 'flex justify-center items-center'] }; } }, dialog: { root: function root(_ref13) { _ref13.props; _ref13.state; return { "class": ['rounded-lg shadow-lg border-0', 'flex flex-col max-h-90 transform scale-100', 'm-0 w-[50vw] z-40 relative', '', 'dark:border dark:border-blue-900/40'] }; }, header: { "class": ['flex items-center justify-between flex-shrink-0', 'bg-white text-gray-800 border-t-0 rounded-tl-lg rounded-tr-lg p-6', 'dark:bg-gray-900 dark:text-white/80'] }, headerTitle: { "class": ['font-bold text-lg'] }, headerIcons: { "class": ['flex items-center'] }, closeButton: { "class": ['flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus 'dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'] }, closeButtonIcon: { "class": ['w-4 h-4 inline-block'] }, content: { "class": ['overflow-y-auto', 'bg-white text-gray-700 px-6 pb-8 pt-0', 'rounded-bl-lg rounded-br-lg', 'dark:bg-gray-900 dark:text-white/80 '] }, footer: { "class": ['flex-shrink-0 ', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80'] }, mask: { "class": ['fixed top-0 left-0 w-full h-full flex items-center justify-center pointer-events-auto', 'bg-black bg-opacity-40 transition duration-200 z-20'] } }, confirmpopup: { root: function root(_ref14) { _ref14.props; _ref14.state; return { "class": ['bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'mt-10 absolute left-0 top-0 ', // 'before:absolute before:bottom-0 before:left-1/2 before:transform before:-translate-x-1/2 before:w-0 before:h-0 before:border-t-[10px] before:border-l-[5px] before:border-r-[5px] before:border-transparent before:border-b-[10px] before:border-t-[0] before:border-l-[5px] before:border-r-[5px] before:border-b-[0] before:border-red-500', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }; }, content: { "class": ['p-5 items-center flex'] }, icon: { "class": ['text-2xl'] }, message: { "class": ['ml-4'] }, footer: { "class": ['text-right px-5 py-5 pt-0 '] } // rejectButton: { // class: ['bg-transparent text-blue-500 border-transparent', 'text-sm px-2 py-1.5 ml-0 mr-2 w-auto', 'flex items-center cursor-pointer inline-flex overflow-hidden relative text-center select-none user-select-none align-bottom'] // }, // acceptButton: { // class: ['text-white bg-blue-500 border-2 border-blue-500', 'text-sm px-2 py-1.5 ml-0 mr-2 w-auto', 'flex items-center cursor-pointer inline-flex overflow-hidden relative text-center select-none user-select-none align-bottom'] // } }, overlaypanel: { root: function root(_ref15) { _ref15.props; _ref15.state; return { "class": ['bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'mt-10 absolute left-0 top-0 ', // 'before:absolute before:bottom-0 before:left-1/2 before:transform before:-translate-x-1/2 before:w-0 before:h-0 before:border-t-[10px] before:border-l-[5px] before:border-r-[5px] before:border-transparent before:border-b-[10px] before:border-t-[0] before:border-l-[5px] before:border-r-[5px] before:border-b-[0] before:border-red-500', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }; }, content: { "class": ['p-5 items-center flex'] } }, sidebar: { root: function root(_ref16) { var props = _ref16.props; _ref16.state; return { "class": ['flex flex-col pointer-events-auto relative transform translate-x-0 translate-y-0 translate-z-0 relative transition-transform duration-300', 'bg-white text-gray-700 border-0 shadow-lg', { 'h-full w-80': props.position == 'left' || props.position == 'right', 'h-40 w-full': props.position == 'top' || props.position == 'bottom' }, 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }; }, header: { "class": ['flex items-center justify-end', 'p-5'] }, closeButton: { "class": ['flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus 'dark:hover:text-white/80 dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'] }, closeButtonIcon: { "class": ['w-4 h-4 inline-block'] }, content: { "class": ['p-5 pt-0 h-full w-full', 'flex-grow overflow-y-auto'] }, mask: function mask(_ref17) { var props = _ref17.props; _ref17.state; return { "class": ['fixed top-0 left-0 w-full h-full flex pointer-events-auto', 'bg-black bg-opacity-40 transition duration-200 z-20 transition-colors', { 'justify-end': props.position == 'right', 'items-start': props.position == 'top', 'items-end': props.position == 'bottom' }] }; } }, toolbar: { root: { "class": ['flex items-center justify-between flex-wrap', 'bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-blue-900/40 p-5 rounded-md gap-2'] }, start: { "class": ['flex items-center'] }, center: { "class": ['flex items-center'] }, end: { "class": ['flex items-center'] } }, //UPLOAD fileupload: { input: { "class": ['hidden'] }, buttonbar: { "class": ['flex flex-wrap', 'bg-gray-50 dark:bg-gray-800 p-5 border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-tr-lg rounded-tl-lg gap-2 border-b-0'] }, chooseButton: { "class": ['text-white bg-blue-500 border border-blue-500 p-3 px-5 rounded-md text-base', 'overflow-hidden relative'] }, chooseIcon: { "class": ['mr-2 inline-block'] }, chooseButtonLabel: { "class": ['flex-1 font-bold'] }, content: function content(_ref18) { _ref18.props; return { "class": ['relative', 'bg-white dark:bg-gray-900 p-8 border border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-b-lg'] }; }, file: { "class": ['flex items-center flex-wrap', 'p-4 border border-gray-300 dark:border-blue-900/40 rounded gap-2 mb-2', 'last:mb-0'] }, thumbnail: { "class": ['flex-shrink-0'] }, fileName: { "class": ['mb-2'] }, fileSize: { "class": ['mr-2'] } }, //Messages message: { root: function root(_ref19) { var props = _ref19.props; _ref19.context; return { "class": ['my-4 rounded-md', { 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.severity == 'info', 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.severity == 'success', 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.severity == 'warn', 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.severity == 'error' }] }; }, wrapper: { "class": ['flex items-center py-5 px-7'] }, icon: { "class": ['w-6 h-6', 'text-lg mr-2'] }, text: { "class": ['text-base font-normal'] }, button: { "class": ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30'] } }, inlinemessage: { root: function root(_ref20) { var props = _ref20.props; _ref20.context; return { "class": ['inline-flex items-center justify-center align-top', 'p-3 m-0 rounded-md', { 'bg-blue-100 border-0 text-blue-700': props.severity == 'info', 'bg-green-100 border-0 text-green-700': props.severity == 'success', 'bg-orange-100 border-0 text-orange-700': props.severity == 'warn', 'bg-red-100 border-0 text-red-700': props.severity == 'error' }] }; }, icon: { "class": ['text-base mr-2'] } }, toast: { root: function root(_ref21) { _ref21.props; _ref21.context; return { "class": ['w-96', 'opacity-90'] }; }, container: function container(_ref22) { var props = _ref22.props; _ref22.context; return { "class": ['my-4 rounded-md w-full', { 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.message.severity == 'info', 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.message.severity == 'success', 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.message.severity == 'warn', 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.message.severity == 'error' }] }; }, content: { "class": ['flex items-center py-5 px-7'] }, icon: { "class": ['w-6 h-6', 'text-lg mr-2'] }, text: { "class": ['text-base font-normal flex flex-col flex-1 flex-grow-1 flex-shrink-1 ml-4'] }, summary: { "class": ['font-bold block'] }, detail: { "class": ['mt-1 block'] }, closebutton: { "class": ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30'] } }, //BUTTONS button: { root: function root(_ref23) { var _ref24, _ref25; var props = _ref23.props; _ref23.context; return { "class": ['items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom', 'transition duration-200 ease-in-out', { 'text-white bg-blue-500 border border-blue-500 hover:bg-blue-600 hover:border-blue-600': !props.link && props.severity == null && !props.text && !props.outlined && !props.plain, 'text-blue-600 bg-transparent border-transparent': props.link }, { 'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.severity == 'secondary' && !props.text && !props.outlined && !props.plain, 'text-white bg-green-500 border border-green-500 hover:bg-green-600 hover:border-green-600': props.severity == 'success' && !props.text && !props.outlined && !props.plain, 'text-white bg-blue-500 border border-blue-500 hover:bg-blue-600 hover:border-blue-600': props.severity == 'info' && !props.text && !props.outlined && !props.plain, 'text-white bg-orange-500 border border-orange-500 hover:bg-orange-600 hover:border-orange-600': props.severity == 'warning' && !props.text && !props.outlined && !props.plain, 'text-white bg-purple-500 border border-purple-500 hover:bg-purple-600 hover:border-purple-600': props.severity == 'help' && !props.text && !props.outlined && !props.plain, 'text-white bg-red-500 border border-red-500 hover:bg-red-600 hover:border-red-600': props.severity == 'danger' && !props.text && !props.outlined && !props.plain }, { 'shadow-lg': props.raised }, { 'rounded-md': !props.rounded, 'rounded-full': props.rounded }, (_ref24 = { 'bg-transparent border-transparent': props.text && !props.plain, 'text-blue-500 hover:bg-blue-300/20': props.text && props.severity == null && !props.plain, 'text-gray-500 hover:bg-gray-300/20': props.text && props.severity == 'secondary' && !props.plain, 'text-green-500 hover:bg-green-300/20': props.text && props.severity == 'success' && !props.plain }, _defineProperty(_ref24, "text-blue-500 hover:bg-blue-300/20", props.text && props.severity == 'info' && !props.plain), _defineProperty(_ref24, 'text-orange-500 hover:bg-orange-300/20', props.text && props.severity == 'warning' && !props.plain), _defineProperty(_ref24, 'text-purple-500 hover:bg-purple-300/20', props.text && props.severity == 'help' && !props.plain), _defineProperty(_ref24, 'text-red-500 hover:bg-red-300/20', props.text && props.severity == 'danger' && !props.plain), _ref24), { 'shadow-lg': props.raised && props.text }, { 'text-gray-500 hover:bg-gray-300/20': props.plain & props.text, 'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.plain & props.outlined, 'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.plain & !props.outlined & !props.text }, (_ref25 = { 'bg-transparent border': props.outlined && !props.plain, 'text-blue-500 border border-blue-500 hover:bg-blue-300/20': props.outlined && props.severity == null && !props.plain, 'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.outlined && props.severity == 'secondary' && !props.plain, 'text-green-500 border border-green-500 hover:bg-green-300/20': props.outlined && props.severity == 'success' && !props.plain }, _defineProperty(_ref25, "text-blue-500 border border-blue-500 hover:bg-blue-300/20", props.outlined && props.severity == 'info' && !props.plain), _defineProperty(_ref25, 'text-orange-500 border border-orange-500 hover:bg-orange-300/20', props.outlined && props.severity == 'warning' && !props.plain), _defineProperty(_ref25, 'text-purple-500 border border-purple-500 hover:bg-purple-300/20', props.outlined && props.severity == 'help' && !props.plain), _defineProperty(_ref25, 'text-red-500 border border-red-500 hover:bg-red-300/20', props.outlined && props.severity == 'danger' && !props.plain), _ref25), { 'px-4 py-3 text-base': props.size == null, 'text-xs py-2 px-3': props.size == 'small', 'text-xl py-3 px-4': props.size == 'large' }] }; }, label: function label(_ref26) { var props = _ref26.props; return { "class": ['flex-1', 'duration-200', 'font-bold', { 'hover:underline': props.link }] }; }, icon: function icon(_ref27) { var props = _ref27.props; return { "class": ['mx-0', { 'mr-2': props.iconPos == 'left' && props.label != null, 'ml-2': props.iconPos == 'right' && props.label != null, 'mb-2': props.iconPos == 'top' && props.label != null, 'mt-2': props.iconPos == 'bottom' && props.label != null }] }; }, badge: function badge(_ref28) { var props = _ref28.props; return { "class": [{ 'ml-2 w-4 h-4 leading-none': props.badge }] }; } }, speeddial: { root: function root(_ref29) { var props = _ref29.props; _ref29.state; return { "class": ['absolute flex', { 'items-center flex-col-reverse': props.direction == 'up', 'items-center flex-col': props.direction == 'down', 'justify-center flex-row-reverse': props.direction == 'left', 'justify-center flex-row': props.direction == 'right' }] }; }, button: { root: { "class": ['w-16 h-16'] } }, menu: function menu(_ref30) { var props = _ref30.props; _ref30.context; return { "class": ['m-0 p-0 list-none flex items-center justify-center transition delay-200 pointer-events-none z-2', { 'flex-col-reverse': props.direction == 'up', 'flex-col': props.direction == 'down', 'flex-row-reverse': props.direction == 'left', 'flex-row': props.direction == 'right' }] }; }, menuitem: function menuitem(_ref31) { var props = _ref31.props; _ref31.context; return { "class": ['transform scale-0 opacity-0 transition-transform duration-200 ease-out delay-0 transition-opacity duration-800', { 'my-1 first:mb-2': props.direction == 'up', 'my-1 first:mt-2': props.direction == 'down', 'mx-1 first:mr-2': props.direction == 'left', 'mx-1 first:ml-2': props.direction == 'right' }] }; }, action: { "class": ['flex items-center justify-center rounded-full relative overflow-hidden', 'w-12 h-12 bg-gray-700 text-white'] } }, splitbutton: { root: { "class": ['inline-flex relative', 'rounded-md'] }, button: function button(_ref32) { _ref32.props; _ref32.context; return { root: { "class": ['first:flex-1 first:rounded-r-none first:border-r-0', 'border-r-0'] } }; } }, //FORMS inputtext: { root: function root(_ref33) { var props = _ref33.props, context = _ref33.context; return { "class": ['m-0', 'font-sans text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', { 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled, 'opacity-60 select-none pointer-events-none cursor-default': context.disabled }, { 'text-lg px-4 py-4': props.size == 'large', 'text-xs px-2 py-2': props.size == 'small', 'p-3 text-base': props.size == null }] }; } }, knob: { root: function root(_ref34) { var props = _ref34.props; return { "class": ['focus:outline-none focus:outline-offset-0 focus:shadow-0', { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, range: { "class": ['stroke-current transition duration-100 ease-in stroke-gray-200 dark:stroke-gray-700 fill-none'] }, value: { "class": ['animate-dash-frame stroke-blue-500 fill-none'] }, label: { "class": ['text-center text-xl'] } }, inputswitch: { root: function root(_ref35) { var props = _ref35.props; return { "class": ['inline-block relative', 'w-12 h-7', { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, slider: function slider(_ref36) { var props = _ref36.props; return { "class": ['absolute cursor-pointer top-0 left-0 right-0 bottom-0 border border-transparent', 'transition-colors duration-200 rounded-2xl', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', "before:absolute before:content-'' before:top-1/2 before:bg-white before:dark:bg-gray-900 before:w-5 before:h-5 before:left-1 before:-mt-2.5 before:rounded-full before:transition-duration-200", { 'bg-gray-200 dark:bg-gray-800 hover:bg-gray-300 hover:dark:bg-gray-700 ': !props.modelValue, 'bg-blue-500 before:transform before:translate-x-5': props.modelValue }] }; } }, rating: { root: function root(_ref37) { var props = _ref37.props; return { "class": ['relative flex items-center', 'gap-2', { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, cancelitem: { "class": ['inline-flex items-center cursor-pointer'] }, cancelicon: { "class": ['text-red-500', 'w-5 h-5', 'transition duration-200 ease-in'] }, item: function item(_ref38) { var props = _ref38.props; return { "class": ['inline-flex items-center', { 'cursor-pointer': !props.readonly, 'cursor-default': props.readonly }] }; }, officon: { "class": ['text-gray-700 hover:text-blue-400', 'w-5 h-5', 'transition duration-200 ease-in'] }, onicon: { "class": ['text-blue-500', 'w-5 h-5', 'transition duration-200 ease-in'] } }, selectbutton: { root: function root(_ref39) { var props = _ref39.props; return { "class": [{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, button: function button(_ref40) { var context = _ref40.context; _ref40.props; return { "class": ['inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative', 'px-4 py-3', 'transition duration-200 border border-r-0', 'first:rounded-l-md first:rounded-tr-none first:rounded-br-none last:border-r last:rounded-tl-none last:rounded-bl-none last:rounded-r-md', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', { 'bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-gray-300 dark:border-blue-900/40 hover:bg-gray-50 dark:hover:bg-gray-800/80 ': !context.active, 'bg-blue-500 border-blue-500 text-white hover:bg-blue-600': context.active, 'opacity-60 select-none pointer-events-none cursor-default': context.disabled }] }; }, label: { "class": ['font-bold'] } }, slider: { root: function root(_ref41) { var props = _ref41.props; return { "class": ['relative', 'bg-gray-100 dark:bg-gray-800 border-0 rounded-6', { 'h-1 w-56': props.orientation == 'horizontal', 'w-1 h-56': props.orientation == 'vertical' }, { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, range: function range(_ref42) { var props = _ref42.props; return { "class": ['bg-blue-500', 'block absolute', { 'top-0 left-0 h-full': props.orientation == 'horizontal', 'bottom-0 left-0 w-full': props.orientation == 'vertical' }] }; }, handle: function handle(_ref43) { var props = _ref43.props; return { "class": ['h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', { 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal', 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical' }] }; }, starthandler: function starthandler(_ref44) { var props = _ref44.props; return { "class": ['h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', { 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal', 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical' }] }; }, endhandler: function endhandler(_ref45) { var props = _ref45.props; return { "class": ['h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', { 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal', 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical' }] }; } }, password: { root: function root(_ref46) { var props = _ref46.props; return { "class": ['inline-flex relative', { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, panel: { "class": ['p-5 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 shadow-md rounded-md'] }, meter: { "class": ['mb-2 bg-gray-300 dark:bg-gray-700 h-3'] }, meterlabel: function meterlabel(_ref47) { var _instance$meter, _instance$meter2, _instance$meter3; var instance = _ref47.instance, props = _ref47.props; return { "class": ['transition-width duration-1000 ease-in-out h-full', { 'bg-red-500': (instance === null || instance === void 0 || (_instance$meter = instance.meter) === null || _instance$meter === void 0 ? void 0 : _instance$meter.strength) == 'weak', 'bg-orange-500': (instance === null || instance === void 0 || (_instance$meter2 = instance.meter) === null || _instance$meter2 === void 0 ? void 0 : _instance$meter2.strength) == 'medium', 'bg-green-500': (instance === null || instance === void 0 || (_instance$meter3 = instance.meter) === null || _instance$meter3 === void 0 ? void 0 : _instance$meter3.strength) == 'strong' }, { 'pr-[2.5rem] ': props.toggleMask }] }; }, showicon: { "class": ['absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70'] }, hideicon: { "class": ['absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70'] } }, togglebutton: { root: function root(_ref48) { var props = _ref48.props; return { "class": ['inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative', 'px-4 py-3 rounded-md text-base w-36', 'border transition duration-200 ease-in-out', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', { 'bg-white dark:bg-gray-900 border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 hover:bg-gray-100 dark:hover:bg-gray-800/80 hover:border-gray-300 dark:hover:bg-gray-800/70 hover:text-gray-700 dark:hover:text-white/80': !props.modelValue, 'bg-blue-500 border-blue-500 text-white hover:bg-blue-600 hover:border-blue-600': props.modelValue }, { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, label: { "class": ['font-bold text-center w-full'] }, icon: function icon(_ref49) { var props = _ref49.props; return { "class": [' mr-2', { 'text-gray-600 dark:text-white/70': !props.modelValue, 'text-white': props.modelValue }] }; } }, tristatecheckbox: { root: { "class": ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6'] }, checkbox: function checkbox(_ref50) { var props = _ref50.props; return { "class": ['flex items-center justify-center', 'border-2 w-6 h-6 rounded-lg transition-colors duration-200', { 'border-blue-500 bg-blue-500 text-white dark:border-blue-400 dark:bg-blue-400': props.modelValue || !props.modelValue, 'border-gray-300 text-gray-600 bg-white dark:border-blue-900/40 dark:bg-gray-900': props.modelValue == null }, { 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled, 'cursor-default opacity-60': props.disabled }] }; } }, checkbox: { root: function root(_ref51) { _ref51.props; return { "class": ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6'] }; }, input: function input(_ref52) { var props = _ref52.props, context = _ref52.context; return { "class": ['flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200', { 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked, 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked }, { 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled, 'cursor-default opacity-60': props.disabled }] }; }, icon: { "class": ['w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900'] } }, radiobutton: { root: function root(_ref53) { _ref53.props; return { "class": ['relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6'] }; }, input: function input(_ref54) { var props = _ref54.props; return { "class": ['flex justify-center items-center', 'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out', { 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': props.value !== props.modelValue, 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': props.value == props.modelValue }, { 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled, 'cursor-default opacity-60': props.disabled }] }; }, icon: function icon(_ref55) { var props = _ref55.props; return { "class": ['transform rounded-full', 'block w-3 h-3 transition duration-200 bg-white dark:bg-gray-900', { 'backface-hidden scale-10 invisible': props.value !== props.modelValue, 'transform scale-100 visible': props.value == props.modelValue }] }; } }, dropdown: { root: function root(_ref56) { var props = _ref56.props; return { "class": ['cursor-pointer inline-flex relative select-none', 'bg-white border border-gray-400 transition-colors duration-200 ease-in-out rounded-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300', 'w-full md:w-56', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }] }; }, input: function input(_ref57) { var props = _ref57.props; return { "class": ['cursor-pointer block flex flex-auto overflow-hidden overflow-ellipsis whitespace-nowrap relative', 'bg-transparent border-0 text-gray-800', 'dark:text-white/80', 'p-3 transition duration-200 bg-transparent rounded appearance-none font-sans text-base', 'focus:outline-none focus:shadow-none', { 'pr-7': props.showClear }] }; }, trigger: { "class": ['flex items-center justify-center flex-shrink-0', 'bg-transparent text-gray-500 w-12 rounded-tr-lg rounded-br-lg'] }, wrapper: { "class": ['max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80'] }, list: { "class": ['py-3 list-none m-0'] }, item: function item(_ref58) { var context = _ref58.context; return { "class": ['cursor-pointer font-normal overflow-hidden relative whitespace-nowrap', 'm-0 p-3 border-0 transition-shadow duration-200 rounded-none', 'dark:text-white/80 dark:hover:bg-gray-800', 'hover:text-gray-700 hover:bg-gray-200', { 'text-gray-700 bg-transparent': !context.selected, 'text-blue-600 bg-blue-50 hover:text-blue-600 hover:bg-blue-100 dark:text-white dark:bg-gray-700 dark:hover:bg-gray-700': context.selected }] }; }, itemgroup: { "class": ['m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto'] }, header: { "class": ['p-3 border-b border-gray-300 text-gray-700 bg-gray-100 mt-0 rounded-tl-lg rounded-tr-lg', 'dark:bg-gray-800 dark:text-white/80 dark:border-blue-900/40'] }, filtercontainer: { "class": ['relative'] }, filterinput: { "class": ['pr-7 -mr-7', 'w-full', 'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'] }, filtericon: { "class": ['-mt-2 absolute top-1/2'] }, clearicon: { "class": ['text-gray-500 right-12 -mt-2 absolute top-1/2'] } }, calendar: { root: { "class": ['inline-flex max-w-full relative'] }, input: { "class": ['font-sans text-base text-gray-600 bg-white p-3 border border-gray-300 transition-colors duration-200 appearance-none rounded-lg', 'hover:border-blue-500 '] }, panel: { "class": ['bg-white border-0 shadow-md', 'absolute min-w-[350px]'] }, header: { "class": ['flex items-center justify-between', 'p-2 text-gray-700 bg-white font-semibold m-0 border-b border-gray-300 rounded-t-lg'] }, previousbutton: { "class": ['flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200'] }, title: { "class": ['leading-8 mx-auto'] }, monthTitle: { "class": ['text-gray-700 transition duration-200 font-semibold p-2', 'mr-2', 'hover:text-blue-500'] }, yearTitle: { "class": ['text-gray-700 transition duration-200 font-semibold p-2', 'hover:text-blue-500'] }, nextbutton: { "class": ['flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200'] }, table: { "class": ['border-collapse w-full', 'my-2'] }, tableheadercell: { "class": ['p-2'] }, day: { "class": ['p-2'] }, daylabel: { "class": ['w-10 h-10 rounded-full transition-shadow duration-200 border-transparent border', 'flex items-center cursor-pointer justify-center mx-auto overflow-hidden relative'] } }, listbox: { root: function root(_ref59) { _ref59.props; return { "class": ['bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md', 'w-full md:w-56'] }; }, wrapper: { "class": ['overflow-auto'] }, list: { "class": ['py-3 list-none m-0'] }, item: function item(_ref60) { var context = _ref60.context; return { "class": ['cursor-pointer font-normal ov