Create wt-odlux directory
[ccsdk/features.git] / sdnr / wt-odlux / odlux / framework / src / components / material-ui / toggleButtonGroup.tsx
1 /**
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt odlux
4  * =================================================================================================
5  * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18 import * as React from 'react';
19 import classNames from 'classnames';
20 import { Theme } from '@mui/material/styles';
21
22 import { WithStyles } from '@mui/styles';
23 import withStyles from '@mui/styles/withStyles';
24 import createStyles from '@mui/styles/createStyles';
25
26 export const styles = (theme: Theme) => createStyles({
27   /* Styles applied to the root element. */
28   root: { 
29     transition: theme.transitions.create('background,box-shadow'),
30     background: 'transparent',
31     borderRadius: 2,
32     overflow: 'hidden',
33   },
34   /* Styles applied to the root element if `selected={true}` or `selected="auto" and `value` set. */
35   selected: {
36     background: theme.palette.background.paper,
37     boxShadow: theme.shadows[2],
38   },
39 });
40