Commit 9b87260a authored by Muhammadali's avatar Muhammadali

update version: 0.6.7

parent f32c9408
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.6.6", "version": "0.6.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -2,57 +2,67 @@ ...@@ -2,57 +2,67 @@
import { Menu, Transition } from '@headlessui/react'; import { Menu, Transition } from '@headlessui/react';
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { styled } from 'styled-components';
function classNames(...classes) { function classNames(...classes) {
return classes.filter(Boolean).join(' '); return classes.filter(Boolean).join(' ');
} }
const Container = styled.div`
`;
const DropDownTailwind = ({ reasons, reason, selectFunc }) => { const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
return ( return (
<Menu as='div' className='text-left w-full h-full'> <Container>
<div className='w-full'> <Menu as='div' className='text-left w-full h-full'>
<Menu.Button <div className='w-full'>
style={{ <Menu.Button
backgroundColor: '#5e5e5e', style={{
width: '100%', backgroundColor: '#5e5e5e',
height: '30px', width: '100%',
color: 'white', height: '30px',
display: 'flex', color: 'white',
alignItems: 'center', display: 'flex',
}} alignItems: 'center',
className='inline-flex justify-center rounded-md font-semibold text-gray-900 shadow-sm hover:bg-gray-50 gap-1 border-0 text-sm'> }}
{reason ? reason : 'Nothing'} className='inline-flex justify-center rounded-md font-semibold text-gray-900 shadow-sm hover:bg-gray-50 gap-1 border-0 text-sm'>
</Menu.Button> {reason ? reason : 'Nothing'}
</div> </Menu.Button>
</div>
{reasons && reasons.length && ( {reasons && reasons.length && (
<Transition <Transition
as={Fragment} as={Fragment}
enter='transition ease-out duration-100' enter='transition ease-out duration-100'
enterFrom='transform opacity-0 scale-95' enterFrom='transform opacity-0 scale-95'
enterTo='transform opacity-100 scale-100' enterTo='transform opacity-100 scale-100'
leave='transition ease-in duration-75' leave='transition ease-in duration-75'
leaveFrom='transform opacity-100 scale-100' leaveFrom='transform opacity-100 scale-100'
leaveTo='transform opacity-0 scale-95'> leaveTo='transform opacity-0 scale-95'>
<Menu.Items className='absolute left-1 bottom-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'> <Menu.Items className='absolute left-1 bottom-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'>
<div className='py-3 flex flex-col'> <div className='py-3 flex flex-col'>
{reasons.map((value, index) => ( {reasons.map((value, index) => (
<Menu.Item onClick={() => selectFunc(value)} key={index}> <Menu.Item onClick={() => selectFunc(value)} key={index}>
{({ active }) => ( {({ active }) => (
<p <p
className={classNames( className={classNames(
active ? 'bg-gray-100 text-gray-900' : 'text-gray-700', active
'block px-5 py-1 text-lg', ? 'bg-gray-100 text-gray-900'
)}> : 'text-gray-700',
{value} 'block px-5 py-1 text-lg',
</p> )}>
)} {value}
</Menu.Item> </p>
))} )}
</div> </Menu.Item>
</Menu.Items> ))}
</Transition> </div>
)} </Menu.Items>
</Menu> </Transition>
)}
</Menu>
</Container>
); );
}; };
......
...@@ -167,6 +167,7 @@ const WidjetButton = ({ data, onSetDnd, position }) => { ...@@ -167,6 +167,7 @@ const WidjetButton = ({ data, onSetDnd, position }) => {
return ( return (
<> <>
<WidjetBlock <WidjetBlock
className='tailwindGlobalCss'
id={'responsible-button'} id={'responsible-button'}
onClick={() => { onClick={() => {
phoneModal ? setPhoneModal(false) : setPhoneModal(true); phoneModal ? setPhoneModal(false) : setPhoneModal(true);
......
@tailwind base;
@tailwind components;
@tailwind utilities;
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
\ No newline at end of file
/* @tailwind base;
@tailwind components;
@tailwind utilities; */
\ No newline at end of file
...@@ -528,10 +528,12 @@ export class BoxDialer { ...@@ -528,10 +528,12 @@ export class BoxDialer {
}, },
}); });
} }
closeButtonClick() { closeButtonClick() {
console.log('closeButtonClick'); console.log('closeButtonClick');
this.stopCall(); this.stopCall();
} }
transferButtonClick(number) { transferButtonClick(number) {
if (this.oSipSessionCall) { if (this.oSipSessionCall) {
if (this.oSipSessionCall.transfer(number) != 0) { if (this.oSipSessionCall.transfer(number) != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment