Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-table/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.js

30 lines
826 B
JavaScript

'use client';
import { makeStyles, mergeClasses } from '@griffel/react';
export const tableCellActionsClassNames = {
root: 'fui-TableCellActions'
};
/**
* Styles for the root slot
*/ const useStyles = makeStyles({
root: {
backgroundColor: 'inherit',
position: 'absolute',
right: '0px',
top: '50%',
transform: 'translateY(-50%)',
opacity: 0,
marginLeft: 'auto'
},
visible: {
opacity: 1
}
});
/**
* Apply styling to the TableCellActions slots based on the state
*/ export const useTableCellActionsStyles_unstable = (state)=>{
'use no memo';
const styles = useStyles();
state.root.className = mergeClasses(tableCellActionsClassNames.root, styles.root, state.visible && styles.visible, state.root.className);
return state;
};