| 1 |
import { createContext } from 'react'; |
| 2 |
import globalBreakpointMd from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_md'; |
| 3 |
import globalBreakpointLg from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_lg'; |
| 4 |
import globalBreakpointXl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_xl'; |
| 5 |
import globalBreakpoint2xl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_2xl'; |
| 6 |
export const ToolbarContext = createContext({ |
| 7 |
isExpanded: false, |
| 8 |
toggleIsExpanded: () => { }, |
| 9 |
labelGroupContentRef: null, |
| 10 |
updateNumberFilters: () => { }, |
| 11 |
numberOfFilters: 0, |
| 12 |
clearAllFilters: () => { } |
| 13 |
}); |
| 14 |
export const ToolbarContentContext = createContext({ |
| 15 |
expandableContentRef: null, |
| 16 |
expandableContentId: '', |
| 17 |
labelContainerRef: null, |
| 18 |
clearAllFilters: () => { } |
| 19 |
}); |
| 20 |
export const globalBreakpoints = { |
| 21 |
md: parseInt(globalBreakpointMd.value) * 16, |
| 22 |
lg: parseInt(globalBreakpointLg.value) * 16, |
| 23 |
xl: parseInt(globalBreakpointXl.value) * 16, |
| 24 |
'2xl': parseInt(globalBreakpoint2xl.value) * 16 |
| 25 |
}; |
| 26 |
//# sourceMappingURL=ToolbarUtils.js.map |