UNPKG

communication-react-19

Version:

React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)

107 lines 2.63 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { concatStyleSets } from '@fluentui/react'; const MINIMUM_TOUCH_TARGET_HEIGHT_REM = 3; /** @private */ export const controlBarContainerStyles = { paddingTop: '0.25rem', paddingBottom: '0.25rem', // @TODO: this should be exposed through a custom CallComposite Theme API that extends the fluent theme with semantic values boxShadow: ` 0px 6.400000095367432px 14.399999618530273px 0px #00000021; 0px 1.2000000476837158px 3.5999999046325684px 0px #0000001A; ` }; /** * @private */ export const groupCallLeaveButtonStyle = { root: { border: '0.125rem', borderRadius: 2, width: '6.5625rem' }, flexContainer: { flexFlow: 'row' } }; /** * @private */ export const groupCallLeaveButtonCompressedStyle = { root: { border: '0', borderRadius: '0.5rem' }, flexContainer: { flexFlow: 'row' } }; /** * Styles that can be applied to ensure flyout items have the minimum touch target size. * * @private */ export const buttonFlyoutIncreasedSizeStyles = { root: { height: `${MINIMUM_TOUCH_TARGET_HEIGHT_REM}rem`, lineHeight: `${MINIMUM_TOUCH_TARGET_HEIGHT_REM}rem`, maxHeight: 'unset', overflow: 'hidden' }, linkContent: { height: `${MINIMUM_TOUCH_TARGET_HEIGHT_REM}rem`, lineHeight: `${MINIMUM_TOUCH_TARGET_HEIGHT_REM}rem`, maxHeight: 'unset' }, icon: { maxHeight: 'unset', textAlign: 'center' }, checkmarkIcon: { lineHeight: '2rem' } }; /** * @private */ export const participantButtonWithIncreasedTouchTargets = { menuStyles: { menuItemStyles: buttonFlyoutIncreasedSizeStyles, participantListStyles: { participantItemStyles: { root: { height: `${MINIMUM_TOUCH_TARGET_HEIGHT_REM}rem` }, participantSubMenuItemsStyles: buttonFlyoutIncreasedSizeStyles } } } }; /** * @private */ export const devicesButtonWithIncreasedTouchTargets = { menuStyles: { menuItemStyles: buttonFlyoutIncreasedSizeStyles } }; /** * @private */ export const controlButtonBaseStyle = { label: { minWidth: '1.25rem' } }; /** * @private */ export const concatButtonBaseStyles = (...styles) => { let result = controlButtonBaseStyle; styles.forEach((style) => { result = concatStyleSets(result, style); }); return result; }; //# sourceMappingURL=Buttons.styles.js.map