@instructure/ui-tabs 11.7.8 → 11.7.9-pr-snapshot-1792147648392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/es/Tabs/v1/Panel/index.js +78 -119
- package/es/Tabs/v1/Panel/props.js +18 -26
- package/es/Tabs/v1/Panel/styles.js +44 -85
- package/es/Tabs/v1/Panel/theme.js +26 -60
- package/es/Tabs/v1/Tab/index.js +70 -108
- package/es/Tabs/v1/Tab/props.js +13 -26
- package/es/Tabs/v1/Tab/styles.js +93 -139
- package/es/Tabs/v1/Tab/theme.js +27 -61
- package/es/Tabs/v1/index.js +306 -364
- package/es/Tabs/v1/props.js +17 -26
- package/es/Tabs/v1/styles.js +102 -142
- package/es/Tabs/v1/theme.js +14 -49
- package/es/Tabs/v2/Panel/index.js +78 -119
- package/es/Tabs/v2/Panel/props.js +18 -26
- package/es/Tabs/v2/Panel/styles.js +44 -84
- package/es/Tabs/v2/Tab/index.js +70 -108
- package/es/Tabs/v2/Tab/props.js +13 -26
- package/es/Tabs/v2/Tab/styles.js +83 -126
- package/es/Tabs/v2/index.js +306 -364
- package/es/Tabs/v2/props.js +17 -26
- package/es/Tabs/v2/styles.js +104 -143
- package/es/exports/a.js +1 -25
- package/es/exports/b.js +1 -25
- package/package.json +18 -24
- package/tsconfig.build.json +0 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/lib/Tabs/v1/Panel/index.js +0 -133
- package/lib/Tabs/v1/Panel/props.js +0 -31
- package/lib/Tabs/v1/Panel/styles.js +0 -92
- package/lib/Tabs/v1/Panel/theme.js +0 -67
- package/lib/Tabs/v1/Tab/index.js +0 -125
- package/lib/Tabs/v1/Tab/props.js +0 -31
- package/lib/Tabs/v1/Tab/styles.js +0 -152
- package/lib/Tabs/v1/Tab/theme.js +0 -68
- package/lib/Tabs/v1/index.js +0 -417
- package/lib/Tabs/v1/props.js +0 -31
- package/lib/Tabs/v1/styles.js +0 -152
- package/lib/Tabs/v1/theme.js +0 -56
- package/lib/Tabs/v2/Panel/index.js +0 -132
- package/lib/Tabs/v2/Panel/props.js +0 -31
- package/lib/Tabs/v2/Panel/styles.js +0 -91
- package/lib/Tabs/v2/Tab/index.js +0 -124
- package/lib/Tabs/v2/Tab/props.js +0 -31
- package/lib/Tabs/v2/Tab/styles.js +0 -139
- package/lib/Tabs/v2/index.js +0 -416
- package/lib/Tabs/v2/props.js +0 -31
- package/lib/Tabs/v2/styles.js +0 -153
- package/lib/exports/a.js +0 -26
- package/lib/exports/b.js +0 -26
- package/lib/package.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [11.7.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
|
|
7
|
+
|
|
8
|
+
### Build System
|
|
9
|
+
|
|
10
|
+
* **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* **many:** `@instructure/ui-babel-preset` and
|
|
15
|
+
`@instructure/browserslist-config-instui` are removed and will no longer be
|
|
16
|
+
published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @instructure/ui-tabs
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* The MIT License (MIT)
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
|
|
1
|
+
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
|
|
2
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
26
3
|
import { Component } from 'react';
|
|
27
4
|
import { View } from '@instructure/ui-view/v11_6';
|
|
28
5
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
@@ -31,99 +8,81 @@ import { withStyle } from '@instructure/emotion';
|
|
|
31
8
|
import generateStyle from './styles.js';
|
|
32
9
|
import generateComponentTheme from './theme.js';
|
|
33
10
|
import { allowedProps } from './props.js';
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
11
|
+
class Panel extends Component {
|
|
12
|
+
static{
|
|
13
|
+
this.displayName = 'Panel';
|
|
14
|
+
}
|
|
15
|
+
static{
|
|
16
|
+
this.componentId = 'Tabs.Panel';
|
|
17
|
+
}
|
|
18
|
+
static{
|
|
19
|
+
this.allowedProps = allowedProps;
|
|
20
|
+
}
|
|
21
|
+
static{
|
|
22
|
+
this.defaultProps = {
|
|
23
|
+
isDisabled: false,
|
|
24
|
+
textAlign: 'start',
|
|
25
|
+
variant: 'default',
|
|
26
|
+
isSelected: false,
|
|
27
|
+
padding: 'small',
|
|
28
|
+
active: false,
|
|
29
|
+
unmountOnExit: true
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
componentDidMount() {
|
|
33
|
+
this.props.makeStyles?.({
|
|
34
|
+
isHidden: this.isHidden
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
componentDidUpdate() {
|
|
38
|
+
this.props.makeStyles?.({
|
|
39
|
+
isHidden: this.isHidden
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
get isHidden() {
|
|
43
|
+
const { isDisabled, isSelected } = this.props;
|
|
44
|
+
return !isSelected || !!isDisabled;
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const { labelledBy, variant, id, maxHeight, minHeight, padding, textAlign, children, elementRef, isDisabled, isSelected, styles, active, unmountOnExit, tabIndex, ...props } = this.props;
|
|
48
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
49
|
+
...passthroughProps(props),
|
|
50
|
+
css: styles?.panel,
|
|
51
|
+
role: "tabpanel",
|
|
52
|
+
id: id,
|
|
53
|
+
"aria-labelledby": labelledBy,
|
|
54
|
+
"aria-hidden": this.isHidden ? 'true' : undefined,
|
|
55
|
+
tabIndex: this.isHidden ? undefined : tabIndex,
|
|
56
|
+
ref: this.handleRef,
|
|
57
|
+
children: /*#__PURE__*/ _jsx(Transition, {
|
|
58
|
+
type: "fade",
|
|
59
|
+
in: !this.isHidden,
|
|
60
|
+
unmountOnExit: unmountOnExit,
|
|
61
|
+
transitionExit: false,
|
|
62
|
+
children: /*#__PURE__*/ _jsx(View, {
|
|
63
|
+
css: styles?.content,
|
|
64
|
+
maxHeight: maxHeight,
|
|
65
|
+
minHeight: minHeight,
|
|
66
|
+
as: "div",
|
|
67
|
+
padding: padding,
|
|
68
|
+
textAlign: textAlign,
|
|
69
|
+
children: children
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
constructor(...args){
|
|
75
|
+
super(...args), this.ref = null, this.handleRef = (el)=>{
|
|
76
|
+
const { elementRef } = this.props;
|
|
77
|
+
this.ref = el;
|
|
78
|
+
if (typeof elementRef === 'function') {
|
|
79
|
+
elementRef(el);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
80
82
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
variant,
|
|
86
|
-
id,
|
|
87
|
-
maxHeight,
|
|
88
|
-
minHeight,
|
|
89
|
-
padding,
|
|
90
|
-
textAlign,
|
|
91
|
-
children,
|
|
92
|
-
elementRef,
|
|
93
|
-
isDisabled,
|
|
94
|
-
isSelected,
|
|
95
|
-
styles,
|
|
96
|
-
active,
|
|
97
|
-
unmountOnExit,
|
|
98
|
-
tabIndex,
|
|
99
|
-
...props
|
|
100
|
-
} = this.props;
|
|
101
|
-
return _jsx("div", {
|
|
102
|
-
...passthroughProps(props),
|
|
103
|
-
css: styles?.panel,
|
|
104
|
-
role: "tabpanel",
|
|
105
|
-
id: id,
|
|
106
|
-
"aria-labelledby": labelledBy,
|
|
107
|
-
"aria-hidden": this.isHidden ? 'true' : undefined,
|
|
108
|
-
tabIndex: this.isHidden ? undefined : tabIndex,
|
|
109
|
-
ref: this.handleRef,
|
|
110
|
-
children: _jsx(Transition, {
|
|
111
|
-
type: "fade",
|
|
112
|
-
in: !this.isHidden,
|
|
113
|
-
unmountOnExit: unmountOnExit,
|
|
114
|
-
transitionExit: false,
|
|
115
|
-
children: _jsx(View, {
|
|
116
|
-
css: styles?.content,
|
|
117
|
-
maxHeight: maxHeight,
|
|
118
|
-
minHeight: minHeight,
|
|
119
|
-
as: "div",
|
|
120
|
-
padding: padding,
|
|
121
|
-
textAlign: textAlign,
|
|
122
|
-
children: children
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}) || _class);
|
|
83
|
+
}
|
|
84
|
+
Panel = _ts_decorate([
|
|
85
|
+
withStyle(generateStyle, generateComponentTheme)
|
|
86
|
+
], Panel);
|
|
128
87
|
export default Panel;
|
|
129
|
-
export { Panel };
|
|
88
|
+
export { Panel };
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
const allowedProps = ['renderTitle', 'children', 'variant', 'isSelected', 'isDisabled', 'maxHeight', 'minHeight', 'id', 'labelledBy', 'padding', 'textAlign', 'elementRef', 'active', 'unmountOnExit', 'tabIndex'];
|
|
26
|
-
export { allowedProps };
|
|
1
|
+
const allowedProps = [
|
|
2
|
+
'renderTitle',
|
|
3
|
+
'children',
|
|
4
|
+
'variant',
|
|
5
|
+
'isSelected',
|
|
6
|
+
'isDisabled',
|
|
7
|
+
'maxHeight',
|
|
8
|
+
'minHeight',
|
|
9
|
+
'id',
|
|
10
|
+
'labelledBy',
|
|
11
|
+
'padding',
|
|
12
|
+
'textAlign',
|
|
13
|
+
'elementRef',
|
|
14
|
+
'active',
|
|
15
|
+
'unmountOnExit',
|
|
16
|
+
'tabIndex'
|
|
17
|
+
];
|
|
18
|
+
export { allowedProps };
|
|
@@ -1,86 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
panel: {
|
|
45
|
-
label: 'panel',
|
|
46
|
-
boxSizing: 'border-box',
|
|
47
|
-
flexShrink: 0,
|
|
48
|
-
flexGrow: 0,
|
|
49
|
-
fontFamily: componentTheme.fontFamily,
|
|
50
|
-
fontWeight: componentTheme.fontWeight,
|
|
51
|
-
lineHeight: componentTheme.lineHeight,
|
|
52
|
-
fontSize: componentTheme.fontSize,
|
|
53
|
-
...(isSelected && {
|
|
54
|
-
flexGrow: 1,
|
|
55
|
-
height: '100%'
|
|
56
|
-
}),
|
|
57
|
-
...(isHidden && {
|
|
58
|
-
display: 'none'
|
|
59
|
-
}),
|
|
60
|
-
'&:focus': {
|
|
61
|
-
outlineColor: componentTheme.focusOutlineColor
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
content: {
|
|
65
|
-
label: 'panel__content',
|
|
66
|
-
boxSizing: 'border-box',
|
|
67
|
-
width: '100%',
|
|
68
|
-
height: '100%',
|
|
69
|
-
borderWidth: componentTheme.borderWidth,
|
|
70
|
-
borderStyle: componentTheme.borderStyle,
|
|
71
|
-
background: componentTheme.background,
|
|
72
|
-
borderColor: componentTheme.borderColor,
|
|
73
|
-
color: componentTheme.color,
|
|
74
|
-
borderLeft: 'none',
|
|
75
|
-
borderRight: 'none',
|
|
76
|
-
borderBottom: 'none',
|
|
77
|
-
// we exposed this so in some use cases it can be set to "visible",
|
|
78
|
-
// e.g. when a 100% width button's focus ring would get cropped
|
|
79
|
-
overflowY: componentTheme.defaultOverflowY,
|
|
80
|
-
...(maxHeight && {
|
|
81
|
-
overflow: 'auto'
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
};
|
|
1
|
+
const generateStyle = (componentTheme, props, state)=>{
|
|
2
|
+
const { maxHeight, isSelected } = props;
|
|
3
|
+
const { isHidden } = state;
|
|
4
|
+
return {
|
|
5
|
+
panel: {
|
|
6
|
+
label: 'panel',
|
|
7
|
+
boxSizing: 'border-box',
|
|
8
|
+
flexShrink: 0,
|
|
9
|
+
flexGrow: 0,
|
|
10
|
+
fontFamily: componentTheme.fontFamily,
|
|
11
|
+
fontWeight: componentTheme.fontWeight,
|
|
12
|
+
lineHeight: componentTheme.lineHeight,
|
|
13
|
+
fontSize: componentTheme.fontSize,
|
|
14
|
+
...isSelected && {
|
|
15
|
+
flexGrow: 1,
|
|
16
|
+
height: '100%'
|
|
17
|
+
},
|
|
18
|
+
...isHidden && {
|
|
19
|
+
display: 'none'
|
|
20
|
+
},
|
|
21
|
+
'&:focus': {
|
|
22
|
+
outlineColor: componentTheme.focusOutlineColor
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
content: {
|
|
26
|
+
label: 'panel__content',
|
|
27
|
+
boxSizing: 'border-box',
|
|
28
|
+
width: '100%',
|
|
29
|
+
height: '100%',
|
|
30
|
+
borderWidth: componentTheme.borderWidth,
|
|
31
|
+
borderStyle: componentTheme.borderStyle,
|
|
32
|
+
background: componentTheme.background,
|
|
33
|
+
borderColor: componentTheme.borderColor,
|
|
34
|
+
color: componentTheme.color,
|
|
35
|
+
borderLeft: 'none',
|
|
36
|
+
borderRight: 'none',
|
|
37
|
+
borderBottom: 'none',
|
|
38
|
+
overflowY: componentTheme.defaultOverflowY,
|
|
39
|
+
...maxHeight && {
|
|
40
|
+
overflow: 'auto'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
85
44
|
};
|
|
86
|
-
export default generateStyle;
|
|
45
|
+
export default generateStyle;
|
|
@@ -1,61 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* Generates the theme object for the component from the theme and provided additional information
|
|
27
|
-
* @param {Object} theme The actual theme object.
|
|
28
|
-
* @return {Object} The final theme object with the overrides and component variables
|
|
29
|
-
*/
|
|
30
|
-
const generateComponentTheme = theme => {
|
|
31
|
-
const {
|
|
32
|
-
typography,
|
|
33
|
-
colors,
|
|
34
|
-
borders,
|
|
35
|
-
key: themeName
|
|
36
|
-
} = theme;
|
|
37
|
-
const themeSpecificStyle = {
|
|
38
|
-
canvas: {
|
|
39
|
-
color: theme['ic-brand-font-color-dark'],
|
|
40
|
-
focusOutlineColor: theme['ic-brand-primary']
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const componentVariables = {
|
|
44
|
-
fontSize: typography?.fontSizeMedium,
|
|
45
|
-
fontFamily: typography?.fontFamily,
|
|
46
|
-
fontWeight: typography?.fontWeightNormal,
|
|
47
|
-
lineHeight: typography?.lineHeight,
|
|
48
|
-
color: colors?.contrasts?.grey125125,
|
|
49
|
-
background: colors?.contrasts?.white1010,
|
|
50
|
-
borderColor: colors?.contrasts?.grey3045,
|
|
51
|
-
borderWidth: borders?.widthSmall,
|
|
52
|
-
borderStyle: borders?.style,
|
|
53
|
-
defaultOverflowY: 'auto',
|
|
54
|
-
focusOutlineColor: colors.contrasts.blue4570
|
|
55
|
-
};
|
|
56
|
-
return {
|
|
57
|
-
...componentVariables,
|
|
58
|
-
...themeSpecificStyle[themeName]
|
|
59
|
-
};
|
|
1
|
+
const generateComponentTheme = (theme)=>{
|
|
2
|
+
const { typography, colors, borders, key: themeName } = theme;
|
|
3
|
+
const themeSpecificStyle = {
|
|
4
|
+
canvas: {
|
|
5
|
+
color: theme['ic-brand-font-color-dark'],
|
|
6
|
+
focusOutlineColor: theme['ic-brand-primary']
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const componentVariables = {
|
|
10
|
+
fontSize: typography?.fontSizeMedium,
|
|
11
|
+
fontFamily: typography?.fontFamily,
|
|
12
|
+
fontWeight: typography?.fontWeightNormal,
|
|
13
|
+
lineHeight: typography?.lineHeight,
|
|
14
|
+
color: colors?.contrasts?.grey125125,
|
|
15
|
+
background: colors?.contrasts?.white1010,
|
|
16
|
+
borderColor: colors?.contrasts?.grey3045,
|
|
17
|
+
borderWidth: borders?.widthSmall,
|
|
18
|
+
borderStyle: borders?.style,
|
|
19
|
+
defaultOverflowY: 'auto',
|
|
20
|
+
focusOutlineColor: colors.contrasts.blue4570
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
...componentVariables,
|
|
24
|
+
...themeSpecificStyle[themeName]
|
|
25
|
+
};
|
|
60
26
|
};
|
|
61
|
-
export default generateComponentTheme;
|
|
27
|
+
export default generateComponentTheme;
|