@fluentui/react-tabs 1.0.0-beta.17 → 1.0.0-beta.173
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.json +3135 -0
- package/CHANGELOG.md +1338 -1
- package/config/tests.js +0 -4
- package/dist/react-tabs.d.ts +68 -122
- package/etc/react-tabs.api.md +47 -64
- package/lib/{next/Tabs.d.ts → Tabs.d.ts} +0 -0
- package/lib/{next/Tabs.js → Tabs.js} +0 -0
- package/lib/Tabs.js.map +1 -0
- package/lib/common/isConformant.d.ts +4 -2
- package/lib/common/isConformant.js.map +1 -1
- package/{lib-commonjs/next → lib}/components/Tabs/TabItem.d.ts +1 -1
- package/lib/{next/components → components}/Tabs/TabItem.js +0 -0
- package/lib/components/Tabs/TabItem.js.map +1 -0
- package/{lib-commonjs/next → lib}/components/Tabs/TabItem.types.d.ts +3 -6
- package/lib/components/Tabs/TabItem.types.js +2 -0
- package/lib/components/Tabs/TabItem.types.js.map +1 -0
- package/{lib-amd/next → lib}/components/Tabs/Tabs.base.d.ts +1 -1
- package/lib/{next/components → components}/Tabs/Tabs.base.js +5 -5
- package/lib/components/Tabs/Tabs.base.js.map +1 -0
- package/{lib-commonjs/next → lib}/components/Tabs/Tabs.d.ts +1 -1
- package/lib/{next/components → components}/Tabs/Tabs.js +0 -0
- package/lib/components/Tabs/Tabs.js.map +1 -0
- package/lib/{next/components → components}/Tabs/Tabs.styles.d.ts +1 -1
- package/lib/{next/components → components}/Tabs/Tabs.styles.js +3 -8
- package/lib/components/Tabs/Tabs.styles.js.map +1 -0
- package/{lib-amd/next → lib}/components/Tabs/Tabs.types.d.ts +2 -16
- package/lib/components/Tabs/Tabs.types.js +2 -0
- package/lib/components/Tabs/Tabs.types.js.map +1 -0
- package/lib/{next/components → components}/Tabs/index.d.ts +0 -0
- package/lib/components/Tabs/index.js +6 -0
- package/lib/components/Tabs/index.js.map +1 -0
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/utilities/observeResize.d.ts +1 -1
- package/lib/utilities/useOverflow.d.ts +1 -1
- package/lib/utilities/useOverflow.js +1 -0
- package/lib/utilities/useOverflow.js.map +1 -1
- package/lib-amd/{next/Tabs.d.ts → Tabs.d.ts} +0 -0
- package/lib-amd/{next/Tabs.js → Tabs.js} +0 -0
- package/lib-amd/Tabs.js.map +1 -0
- package/lib-amd/common/isConformant.d.ts +4 -2
- package/lib-amd/common/isConformant.js +1 -0
- package/lib-amd/common/isConformant.js.map +1 -1
- package/{lib/next → lib-amd}/components/Tabs/TabItem.d.ts +1 -1
- package/lib-amd/{next/components → components}/Tabs/TabItem.js +1 -0
- package/lib-amd/components/Tabs/TabItem.js.map +1 -0
- package/{lib/next → lib-amd}/components/Tabs/TabItem.types.d.ts +3 -6
- package/lib-amd/{next/components → components}/Tabs/TabItem.types.js +0 -0
- package/lib-amd/components/Tabs/TabItem.types.js.map +1 -0
- package/{lib/next → lib-amd}/components/Tabs/Tabs.base.d.ts +1 -1
- package/lib-amd/{next/components → components}/Tabs/Tabs.base.js +7 -6
- package/lib-amd/components/Tabs/Tabs.base.js.map +1 -0
- package/{lib/next → lib-amd}/components/Tabs/Tabs.d.ts +1 -1
- package/lib-amd/{next/components → components}/Tabs/Tabs.js +1 -0
- package/lib-amd/components/Tabs/Tabs.js.map +1 -0
- package/lib-amd/{next/components → components}/Tabs/Tabs.styles.d.ts +1 -1
- package/lib-amd/{next/components → components}/Tabs/Tabs.styles.js +4 -7
- package/lib-amd/components/Tabs/Tabs.styles.js.map +1 -0
- package/{lib/next → lib-amd}/components/Tabs/Tabs.types.d.ts +2 -16
- package/lib-amd/{next/components → components}/Tabs/Tabs.types.js +0 -0
- package/lib-amd/components/Tabs/Tabs.types.js.map +1 -0
- package/lib-amd/{next/components → components}/Tabs/index.d.ts +0 -0
- package/lib-amd/components/Tabs/index.js +11 -0
- package/lib-amd/components/Tabs/index.js.map +1 -0
- package/lib-amd/index.d.ts +1 -3
- package/lib-amd/index.js +2 -3
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/utilities/observeResize.d.ts +1 -1
- package/lib-amd/utilities/observeResize.js +3 -1
- package/lib-amd/utilities/observeResize.js.map +1 -1
- package/lib-amd/utilities/useOverflow.d.ts +1 -1
- package/lib-amd/utilities/useOverflow.js +4 -1
- package/lib-amd/utilities/useOverflow.js.map +1 -1
- package/lib-commonjs/{next/Tabs.d.ts → Tabs.d.ts} +0 -0
- package/lib-commonjs/{next/Tabs.js → Tabs.js} +0 -0
- package/lib-commonjs/Tabs.js.map +1 -0
- package/lib-commonjs/common/isConformant.d.ts +4 -2
- package/lib-commonjs/common/isConformant.js +1 -0
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/{lib-amd/next → lib-commonjs}/components/Tabs/TabItem.d.ts +1 -1
- package/lib-commonjs/{next/components → components}/Tabs/TabItem.js +1 -0
- package/lib-commonjs/components/Tabs/TabItem.js.map +1 -0
- package/{lib-amd/next → lib-commonjs}/components/Tabs/TabItem.types.d.ts +3 -6
- package/lib-commonjs/{next/components → components}/Tabs/TabItem.types.js +0 -0
- package/lib-commonjs/components/Tabs/TabItem.types.js.map +1 -0
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.base.d.ts +1 -1
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.base.js +9 -8
- package/lib-commonjs/components/Tabs/Tabs.base.js.map +1 -0
- package/{lib-amd/next → lib-commonjs}/components/Tabs/Tabs.d.ts +1 -1
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.js +1 -0
- package/lib-commonjs/components/Tabs/Tabs.js.map +1 -0
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.styles.d.ts +1 -1
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.styles.js +4 -7
- package/lib-commonjs/components/Tabs/Tabs.styles.js.map +1 -0
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.types.d.ts +2 -16
- package/lib-commonjs/{next/components → components}/Tabs/Tabs.types.js +0 -0
- package/lib-commonjs/components/Tabs/Tabs.types.js.map +1 -0
- package/lib-commonjs/{next/components → components}/Tabs/index.d.ts +0 -0
- package/lib-commonjs/components/Tabs/index.js +11 -0
- package/lib-commonjs/components/Tabs/index.js.map +1 -0
- package/lib-commonjs/index.d.ts +1 -3
- package/lib-commonjs/index.js +1 -3
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utilities/observeResize.d.ts +1 -1
- package/lib-commonjs/utilities/observeResize.js +3 -1
- package/lib-commonjs/utilities/observeResize.js.map +1 -1
- package/lib-commonjs/utilities/useOverflow.d.ts +1 -1
- package/lib-commonjs/utilities/useOverflow.js +4 -1
- package/lib-commonjs/utilities/useOverflow.js.map +1 -1
- package/package.json +24 -26
- package/src/{next/components → components}/Tabs/TabItem.types.ts +3 -6
- package/src/{next/components → components}/Tabs/Tabs.types.ts +2 -16
- package/lib/Pivot.d.ts +0 -1
- package/lib/Pivot.js +0 -2
- package/lib/Pivot.js.map +0 -1
- package/lib/components/Pivot/Pivot.base.d.ts +0 -3
- package/lib/components/Pivot/Pivot.base.js +0 -183
- package/lib/components/Pivot/Pivot.base.js.map +0 -1
- package/lib/components/Pivot/Pivot.d.ts +0 -8
- package/lib/components/Pivot/Pivot.js +0 -12
- package/lib/components/Pivot/Pivot.js.map +0 -1
- package/lib/components/Pivot/Pivot.styles.d.ts +0 -2
- package/lib/components/Pivot/Pivot.styles.js +0 -269
- package/lib/components/Pivot/Pivot.styles.js.map +0 -1
- package/lib/components/Pivot/Pivot.types.d.ts +0 -141
- package/lib/components/Pivot/Pivot.types.js +0 -31
- package/lib/components/Pivot/Pivot.types.js.map +0 -1
- package/lib/components/Pivot/PivotItem.d.ts +0 -6
- package/lib/components/Pivot/PivotItem.js +0 -21
- package/lib/components/Pivot/PivotItem.js.map +0 -1
- package/lib/components/Pivot/PivotItem.types.d.ts +0 -66
- package/lib/components/Pivot/PivotItem.types.js +0 -1
- package/lib/components/Pivot/PivotItem.types.js.map +0 -1
- package/lib/components/Pivot/index.d.ts +0 -5
- package/lib/components/Pivot/index.js +0 -5
- package/lib/components/Pivot/index.js.map +0 -1
- package/lib/next/Tabs.js.map +0 -1
- package/lib/next/components/Tabs/TabItem.js.map +0 -1
- package/lib/next/components/Tabs/TabItem.types.js +0 -1
- package/lib/next/components/Tabs/TabItem.types.js.map +0 -1
- package/lib/next/components/Tabs/Tabs.base.js.map +0 -1
- package/lib/next/components/Tabs/Tabs.js.map +0 -1
- package/lib/next/components/Tabs/Tabs.styles.js.map +0 -1
- package/lib/next/components/Tabs/Tabs.types.js +0 -1
- package/lib/next/components/Tabs/Tabs.types.js.map +0 -1
- package/lib/next/components/Tabs/index.js +0 -4
- package/lib/next/components/Tabs/index.js.map +0 -1
- package/lib/next/index.d.ts +0 -2
- package/lib/next/index.js +0 -3
- package/lib/next/index.js.map +0 -1
- package/lib/next.d.ts +0 -1
- package/lib/next.js +0 -2
- package/lib/next.js.map +0 -1
- package/lib/version.d.ts +0 -1
- package/lib/version.js +0 -5
- package/lib/version.js.map +0 -1
- package/lib-amd/Pivot.d.ts +0 -1
- package/lib-amd/Pivot.js +0 -6
- package/lib-amd/Pivot.js.map +0 -1
- package/lib-amd/components/Pivot/Pivot.base.d.ts +0 -3
- package/lib-amd/components/Pivot/Pivot.base.js +0 -179
- package/lib-amd/components/Pivot/Pivot.base.js.map +0 -1
- package/lib-amd/components/Pivot/Pivot.d.ts +0 -8
- package/lib-amd/components/Pivot/Pivot.js +0 -13
- package/lib-amd/components/Pivot/Pivot.js.map +0 -1
- package/lib-amd/components/Pivot/Pivot.styles.d.ts +0 -2
- package/lib-amd/components/Pivot/Pivot.styles.js +0 -270
- package/lib-amd/components/Pivot/Pivot.styles.js.map +0 -1
- package/lib-amd/components/Pivot/Pivot.types.d.ts +0 -141
- package/lib-amd/components/Pivot/Pivot.types.js +0 -35
- package/lib-amd/components/Pivot/Pivot.types.js.map +0 -1
- package/lib-amd/components/Pivot/PivotItem.d.ts +0 -6
- package/lib-amd/components/Pivot/PivotItem.js +0 -22
- package/lib-amd/components/Pivot/PivotItem.js.map +0 -1
- package/lib-amd/components/Pivot/PivotItem.types.d.ts +0 -66
- package/lib-amd/components/Pivot/PivotItem.types.js +0 -5
- package/lib-amd/components/Pivot/PivotItem.types.js.map +0 -1
- package/lib-amd/components/Pivot/index.d.ts +0 -5
- package/lib-amd/components/Pivot/index.js +0 -9
- package/lib-amd/components/Pivot/index.js.map +0 -1
- package/lib-amd/next/Tabs.js.map +0 -1
- package/lib-amd/next/components/Tabs/TabItem.js.map +0 -1
- package/lib-amd/next/components/Tabs/TabItem.types.js.map +0 -1
- package/lib-amd/next/components/Tabs/Tabs.base.js.map +0 -1
- package/lib-amd/next/components/Tabs/Tabs.js.map +0 -1
- package/lib-amd/next/components/Tabs/Tabs.styles.js.map +0 -1
- package/lib-amd/next/components/Tabs/Tabs.types.js.map +0 -1
- package/lib-amd/next/components/Tabs/index.js +0 -8
- package/lib-amd/next/components/Tabs/index.js.map +0 -1
- package/lib-amd/next/index.d.ts +0 -2
- package/lib-amd/next/index.js +0 -7
- package/lib-amd/next/index.js.map +0 -1
- package/lib-amd/next.d.ts +0 -1
- package/lib-amd/next.js +0 -6
- package/lib-amd/next.js.map +0 -1
- package/lib-amd/version.d.ts +0 -1
- package/lib-amd/version.js +0 -6
- package/lib-amd/version.js.map +0 -1
- package/lib-commonjs/Pivot.d.ts +0 -1
- package/lib-commonjs/Pivot.js +0 -5
- package/lib-commonjs/Pivot.js.map +0 -1
- package/lib-commonjs/components/Pivot/Pivot.base.d.ts +0 -3
- package/lib-commonjs/components/Pivot/Pivot.base.js +0 -185
- package/lib-commonjs/components/Pivot/Pivot.base.js.map +0 -1
- package/lib-commonjs/components/Pivot/Pivot.d.ts +0 -8
- package/lib-commonjs/components/Pivot/Pivot.js +0 -14
- package/lib-commonjs/components/Pivot/Pivot.js.map +0 -1
- package/lib-commonjs/components/Pivot/Pivot.styles.d.ts +0 -2
- package/lib-commonjs/components/Pivot/Pivot.styles.js +0 -271
- package/lib-commonjs/components/Pivot/Pivot.styles.js.map +0 -1
- package/lib-commonjs/components/Pivot/Pivot.types.d.ts +0 -141
- package/lib-commonjs/components/Pivot/Pivot.types.js +0 -33
- package/lib-commonjs/components/Pivot/Pivot.types.js.map +0 -1
- package/lib-commonjs/components/Pivot/PivotItem.d.ts +0 -6
- package/lib-commonjs/components/Pivot/PivotItem.js +0 -23
- package/lib-commonjs/components/Pivot/PivotItem.js.map +0 -1
- package/lib-commonjs/components/Pivot/PivotItem.types.d.ts +0 -66
- package/lib-commonjs/components/Pivot/PivotItem.types.js +0 -3
- package/lib-commonjs/components/Pivot/PivotItem.types.js.map +0 -1
- package/lib-commonjs/components/Pivot/index.d.ts +0 -5
- package/lib-commonjs/components/Pivot/index.js +0 -9
- package/lib-commonjs/components/Pivot/index.js.map +0 -1
- package/lib-commonjs/next/Tabs.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/TabItem.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/TabItem.types.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/Tabs.base.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/Tabs.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/Tabs.styles.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/Tabs.types.js.map +0 -1
- package/lib-commonjs/next/components/Tabs/index.js +0 -8
- package/lib-commonjs/next/components/Tabs/index.js.map +0 -1
- package/lib-commonjs/next/index.d.ts +0 -2
- package/lib-commonjs/next/index.js +0 -6
- package/lib-commonjs/next/index.js.map +0 -1
- package/lib-commonjs/next.d.ts +0 -1
- package/lib-commonjs/next.js +0 -5
- package/lib-commonjs/next.js.map +0 -1
- package/lib-commonjs/version.d.ts +0 -1
- package/lib-commonjs/version.js +0 -7
- package/lib-commonjs/version.js.map +0 -1
- package/src/components/Pivot/Pivot.types.ts +0 -166
- package/src/components/Pivot/PivotItem.types.ts +0 -76
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "@fluentui/style-utilities", "@fluentui/utilities"], function (require, exports, tslib_1, style_utilities_1, utilities_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var globalClassNames = {
|
|
5
|
-
count: 'ms-Pivot-count',
|
|
6
|
-
icon: 'ms-Pivot-icon',
|
|
7
|
-
linkIsSelected: 'is-selected',
|
|
8
|
-
link: 'ms-Pivot-link',
|
|
9
|
-
linkContent: 'ms-Pivot-linkContent',
|
|
10
|
-
root: 'ms-Pivot',
|
|
11
|
-
rootIsLarge: 'ms-Pivot--large',
|
|
12
|
-
rootIsTabs: 'ms-Pivot--tabs',
|
|
13
|
-
text: 'ms-Pivot-text',
|
|
14
|
-
linkInMenu: 'ms-Pivot-linkInMenu',
|
|
15
|
-
overflowMenuButton: 'ms-Pivot-overflowMenuButton',
|
|
16
|
-
};
|
|
17
|
-
var getLinkStyles = function (props, classNames, isLinkInOverflowMenu) {
|
|
18
|
-
var _a, _b, _c;
|
|
19
|
-
if (isLinkInOverflowMenu === void 0) { isLinkInOverflowMenu = false; }
|
|
20
|
-
var linkSize = props.linkSize, linkFormat = props.linkFormat;
|
|
21
|
-
var _d = props.theme, semanticColors = _d.semanticColors, fonts = _d.fonts;
|
|
22
|
-
var rootIsLarge = linkSize === 'large';
|
|
23
|
-
var rootIsTabs = linkFormat === 'tabs';
|
|
24
|
-
return [
|
|
25
|
-
fonts.medium,
|
|
26
|
-
{
|
|
27
|
-
color: semanticColors.actionLink,
|
|
28
|
-
padding: '0 8px',
|
|
29
|
-
position: 'relative',
|
|
30
|
-
backgroundColor: 'transparent',
|
|
31
|
-
border: 0,
|
|
32
|
-
borderRadius: 0,
|
|
33
|
-
selectors: (_a = {
|
|
34
|
-
':hover': {
|
|
35
|
-
backgroundColor: semanticColors.buttonBackgroundHovered,
|
|
36
|
-
color: semanticColors.buttonTextHovered,
|
|
37
|
-
cursor: 'pointer',
|
|
38
|
-
},
|
|
39
|
-
':active': {
|
|
40
|
-
backgroundColor: semanticColors.buttonBackgroundPressed,
|
|
41
|
-
color: semanticColors.buttonTextHovered,
|
|
42
|
-
},
|
|
43
|
-
':focus': {
|
|
44
|
-
outline: 'none',
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
_a["." + utilities_1.IsFocusVisibleClassName + " &:focus"] = {
|
|
48
|
-
outline: "1px solid " + semanticColors.focusBorder,
|
|
49
|
-
},
|
|
50
|
-
_a["." + utilities_1.IsFocusVisibleClassName + " &:focus:after"] = {
|
|
51
|
-
content: 'attr(data-content)',
|
|
52
|
-
position: 'relative',
|
|
53
|
-
border: 0,
|
|
54
|
-
},
|
|
55
|
-
_a),
|
|
56
|
-
},
|
|
57
|
-
!isLinkInOverflowMenu && [
|
|
58
|
-
{
|
|
59
|
-
display: 'inline-block',
|
|
60
|
-
lineHeight: 44,
|
|
61
|
-
height: 44,
|
|
62
|
-
marginRight: 8,
|
|
63
|
-
textAlign: 'center',
|
|
64
|
-
selectors: {
|
|
65
|
-
':before': {
|
|
66
|
-
backgroundColor: 'transparent',
|
|
67
|
-
bottom: 0,
|
|
68
|
-
content: '""',
|
|
69
|
-
height: 2,
|
|
70
|
-
left: 8,
|
|
71
|
-
position: 'absolute',
|
|
72
|
-
right: 8,
|
|
73
|
-
transition: "left " + style_utilities_1.AnimationVariables.durationValue2 + " " + style_utilities_1.AnimationVariables.easeFunction2 + ",\n right " + style_utilities_1.AnimationVariables.durationValue2 + " " + style_utilities_1.AnimationVariables.easeFunction2,
|
|
74
|
-
},
|
|
75
|
-
':after': {
|
|
76
|
-
color: 'transparent',
|
|
77
|
-
content: 'attr(data-content)',
|
|
78
|
-
display: 'block',
|
|
79
|
-
fontWeight: style_utilities_1.FontWeights.bold,
|
|
80
|
-
height: 1,
|
|
81
|
-
overflow: 'hidden',
|
|
82
|
-
visibility: 'hidden',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
rootIsLarge && {
|
|
87
|
-
fontSize: fonts.large.fontSize,
|
|
88
|
-
},
|
|
89
|
-
rootIsTabs && [
|
|
90
|
-
{
|
|
91
|
-
marginRight: 0,
|
|
92
|
-
height: 44,
|
|
93
|
-
lineHeight: 44,
|
|
94
|
-
backgroundColor: semanticColors.buttonBackground,
|
|
95
|
-
padding: '0 10px',
|
|
96
|
-
verticalAlign: 'top',
|
|
97
|
-
selectors: (_b = {
|
|
98
|
-
':focus': {
|
|
99
|
-
outlineOffset: '-1px',
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
_b["." + utilities_1.IsFocusVisibleClassName + " &:focus::before"] = {
|
|
103
|
-
height: 'auto',
|
|
104
|
-
background: 'transparent',
|
|
105
|
-
transition: 'none',
|
|
106
|
-
},
|
|
107
|
-
_b['&:hover, &:focus'] = {
|
|
108
|
-
color: semanticColors.buttonTextCheckedHovered,
|
|
109
|
-
},
|
|
110
|
-
_b['&:active, &:hover'] = {
|
|
111
|
-
color: semanticColors.primaryButtonText,
|
|
112
|
-
backgroundColor: semanticColors.primaryButtonBackground,
|
|
113
|
-
},
|
|
114
|
-
_b["&." + classNames.linkIsSelected] = {
|
|
115
|
-
backgroundColor: semanticColors.primaryButtonBackground,
|
|
116
|
-
color: semanticColors.primaryButtonText,
|
|
117
|
-
fontWeight: style_utilities_1.FontWeights.regular,
|
|
118
|
-
selectors: (_c = {
|
|
119
|
-
':before': {
|
|
120
|
-
backgroundColor: 'transparent',
|
|
121
|
-
transition: 'none',
|
|
122
|
-
position: 'absolute',
|
|
123
|
-
top: 0,
|
|
124
|
-
left: 0,
|
|
125
|
-
right: 0,
|
|
126
|
-
bottom: 0,
|
|
127
|
-
content: '""',
|
|
128
|
-
height: 0,
|
|
129
|
-
},
|
|
130
|
-
':hover': {
|
|
131
|
-
backgroundColor: semanticColors.primaryButtonBackgroundHovered,
|
|
132
|
-
color: semanticColors.primaryButtonText,
|
|
133
|
-
},
|
|
134
|
-
'&:active': {
|
|
135
|
-
backgroundColor: semanticColors.primaryButtonBackgroundPressed,
|
|
136
|
-
color: semanticColors.primaryButtonText,
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
_c[style_utilities_1.HighContrastSelector] = {
|
|
140
|
-
fontWeight: style_utilities_1.FontWeights.semibold,
|
|
141
|
-
color: 'HighlightText',
|
|
142
|
-
background: 'Highlight',
|
|
143
|
-
MsHighContrastAdjust: 'none',
|
|
144
|
-
},
|
|
145
|
-
_c),
|
|
146
|
-
},
|
|
147
|
-
_b),
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
],
|
|
151
|
-
];
|
|
152
|
-
};
|
|
153
|
-
exports.getStyles = function (props) {
|
|
154
|
-
var _a, _b, _c, _d;
|
|
155
|
-
var className = props.className, linkSize = props.linkSize, linkFormat = props.linkFormat, theme = props.theme;
|
|
156
|
-
var semanticColors = theme.semanticColors, fonts = theme.fonts;
|
|
157
|
-
var classNames = style_utilities_1.getGlobalClassNames(globalClassNames, theme);
|
|
158
|
-
var rootIsLarge = linkSize === 'large';
|
|
159
|
-
var rootIsTabs = linkFormat === 'tabs';
|
|
160
|
-
return {
|
|
161
|
-
root: [
|
|
162
|
-
classNames.root,
|
|
163
|
-
fonts.medium,
|
|
164
|
-
style_utilities_1.normalize,
|
|
165
|
-
{
|
|
166
|
-
position: 'relative',
|
|
167
|
-
color: semanticColors.link,
|
|
168
|
-
whiteSpace: 'nowrap',
|
|
169
|
-
},
|
|
170
|
-
rootIsLarge && classNames.rootIsLarge,
|
|
171
|
-
rootIsTabs && classNames.rootIsTabs,
|
|
172
|
-
className,
|
|
173
|
-
],
|
|
174
|
-
itemContainer: {
|
|
175
|
-
selectors: {
|
|
176
|
-
'&[hidden]': {
|
|
177
|
-
display: 'none',
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
link: tslib_1.__spreadArrays([
|
|
182
|
-
classNames.link
|
|
183
|
-
], getLinkStyles(props, classNames), [
|
|
184
|
-
(_a = {},
|
|
185
|
-
_a["&[data-is-overflowing='true']"] = {
|
|
186
|
-
display: 'none',
|
|
187
|
-
},
|
|
188
|
-
_a),
|
|
189
|
-
]),
|
|
190
|
-
overflowMenuButton: [
|
|
191
|
-
classNames.overflowMenuButton,
|
|
192
|
-
(_b = {
|
|
193
|
-
visibility: 'hidden',
|
|
194
|
-
position: 'absolute',
|
|
195
|
-
right: 0
|
|
196
|
-
},
|
|
197
|
-
_b["." + classNames.link + "[data-is-overflowing='true'] ~ &"] = {
|
|
198
|
-
visibility: 'visible',
|
|
199
|
-
position: 'relative',
|
|
200
|
-
},
|
|
201
|
-
_b),
|
|
202
|
-
],
|
|
203
|
-
linkInMenu: tslib_1.__spreadArrays([
|
|
204
|
-
classNames.linkInMenu
|
|
205
|
-
], getLinkStyles(props, classNames, true), [
|
|
206
|
-
{
|
|
207
|
-
textAlign: 'left',
|
|
208
|
-
width: '100%',
|
|
209
|
-
height: 36,
|
|
210
|
-
lineHeight: 36,
|
|
211
|
-
},
|
|
212
|
-
]),
|
|
213
|
-
linkIsSelected: [
|
|
214
|
-
classNames.link,
|
|
215
|
-
classNames.linkIsSelected,
|
|
216
|
-
{
|
|
217
|
-
fontWeight: style_utilities_1.FontWeights.semibold,
|
|
218
|
-
selectors: (_c = {
|
|
219
|
-
':before': {
|
|
220
|
-
backgroundColor: semanticColors.inputBackgroundChecked,
|
|
221
|
-
selectors: (_d = {},
|
|
222
|
-
_d[style_utilities_1.HighContrastSelector] = {
|
|
223
|
-
backgroundColor: 'Highlight',
|
|
224
|
-
},
|
|
225
|
-
_d),
|
|
226
|
-
},
|
|
227
|
-
':hover::before': {
|
|
228
|
-
left: 0,
|
|
229
|
-
right: 0,
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
_c[style_utilities_1.HighContrastSelector] = {
|
|
233
|
-
color: 'Highlight',
|
|
234
|
-
},
|
|
235
|
-
_c),
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
linkContent: [
|
|
239
|
-
classNames.linkContent,
|
|
240
|
-
{
|
|
241
|
-
flex: '0 1 100%',
|
|
242
|
-
selectors: {
|
|
243
|
-
'& > * ': {
|
|
244
|
-
marginLeft: 4,
|
|
245
|
-
},
|
|
246
|
-
'& > *:first-child': {
|
|
247
|
-
marginLeft: 0,
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
text: [
|
|
253
|
-
classNames.text,
|
|
254
|
-
{
|
|
255
|
-
display: 'inline-block',
|
|
256
|
-
verticalAlign: 'top',
|
|
257
|
-
},
|
|
258
|
-
],
|
|
259
|
-
count: [
|
|
260
|
-
classNames.count,
|
|
261
|
-
{
|
|
262
|
-
display: 'inline-block',
|
|
263
|
-
verticalAlign: 'top',
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
icon: classNames.icon,
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
});
|
|
270
|
-
//# sourceMappingURL=Pivot.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pivot.styles.js","sourceRoot":"../src/","sources":["components/Pivot/Pivot.styles.ts"],"names":[],"mappings":";;;IAWA,IAAM,gBAAgB,GAAG;QACvB,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,eAAe;QACrB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,iBAAiB;QAC9B,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,eAAe;QACrB,UAAU,EAAE,qBAAqB;QACjC,kBAAkB,EAAE,6BAA6B;KAClD,CAAC;IAEF,IAAM,aAAa,GAAG,UACpB,KAAuB,EACvB,UAAqC,EACrC,oBAAqC;;QAArC,qCAAA,EAAA,4BAAqC;QAE7B,IAAA,yBAAQ,EAAE,6BAAU,CAAW;QACjC,IAAA,gBA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CAAC;yBACd;wBACD,mBAAmB,EAAE;4BACnB,UAAU,EAAE,CAAC;yBACd;qBACF;iBACF;aACF;YACD,IAAI,EAAE;gBACJ,UAAU,CAAC,IAAI;gBACf;oBACE,OAAO,EAAE,cAAc;oBACvB,aAAa,EAAE,KAAK;iBACrB;aACF;YACD,KAAK,EAAE;gBACL,UAAU,CAAC,KAAK;gBAChB;oBACE,OAAO,EAAE,cAAc;oBACvB,aAAa,EAAE,KAAK;iBACrB;aACF;YACD,IAAI,EAAE,UAAU,CAAC,IAAI;SACtB,CAAC;IACJ,CAAC,CAAC","sourcesContent":["import { IPivotStyleProps, IPivotStyles } from './Pivot.types';\nimport {\n AnimationVariables,\n getGlobalClassNames,\n HighContrastSelector,\n IStyle,\n normalize,\n FontWeights,\n} from '@fluentui/style-utilities';\nimport { IsFocusVisibleClassName } from '@fluentui/utilities';\n\nconst globalClassNames = {\n count: 'ms-Pivot-count',\n icon: 'ms-Pivot-icon',\n linkIsSelected: 'is-selected',\n link: 'ms-Pivot-link',\n linkContent: 'ms-Pivot-linkContent',\n root: 'ms-Pivot',\n rootIsLarge: 'ms-Pivot--large',\n rootIsTabs: 'ms-Pivot--tabs',\n text: 'ms-Pivot-text',\n linkInMenu: 'ms-Pivot-linkInMenu',\n overflowMenuButton: 'ms-Pivot-overflowMenuButton',\n};\n\nconst getLinkStyles = (\n props: IPivotStyleProps,\n classNames: { [key: string]: string },\n isLinkInOverflowMenu: boolean = false,\n): IStyle[] => {\n const { linkSize, linkFormat } = props;\n const { semanticColors, fonts } = props.theme;\n const rootIsLarge = linkSize === 'large';\n const rootIsTabs = linkFormat === 'tabs';\n\n return [\n fonts.medium,\n {\n color: semanticColors.actionLink,\n padding: '0 8px',\n position: 'relative',\n backgroundColor: 'transparent',\n border: 0,\n borderRadius: 0,\n selectors: {\n ':hover': {\n backgroundColor: semanticColors.buttonBackgroundHovered,\n color: semanticColors.buttonTextHovered,\n cursor: 'pointer',\n },\n ':active': {\n backgroundColor: semanticColors.buttonBackgroundPressed,\n color: semanticColors.buttonTextHovered,\n },\n ':focus': {\n outline: 'none',\n },\n [`.${IsFocusVisibleClassName} &:focus`]: {\n outline: `1px solid ${semanticColors.focusBorder}`,\n },\n [`.${IsFocusVisibleClassName} &:focus:after`]: {\n content: 'attr(data-content)',\n position: 'relative',\n border: 0,\n },\n },\n },\n !isLinkInOverflowMenu && [\n {\n display: 'inline-block',\n lineHeight: 44,\n height: 44,\n marginRight: 8,\n textAlign: 'center',\n selectors: {\n ':before': {\n backgroundColor: 'transparent',\n bottom: 0,\n content: '\"\"',\n height: 2,\n left: 8,\n position: 'absolute',\n right: 8,\n transition: `left ${AnimationVariables.durationValue2} ${AnimationVariables.easeFunction2},\n right ${AnimationVariables.durationValue2} ${AnimationVariables.easeFunction2}`,\n },\n ':after': {\n color: 'transparent',\n content: 'attr(data-content)',\n display: 'block',\n fontWeight: FontWeights.bold,\n height: 1,\n overflow: 'hidden',\n visibility: 'hidden',\n },\n },\n },\n rootIsLarge && {\n fontSize: fonts.large.fontSize,\n },\n rootIsTabs && [\n {\n marginRight: 0,\n height: 44,\n lineHeight: 44,\n backgroundColor: semanticColors.buttonBackground,\n padding: '0 10px',\n verticalAlign: 'top',\n\n selectors: {\n ':focus': {\n outlineOffset: '-1px',\n },\n [`.${IsFocusVisibleClassName} &:focus::before`]: {\n height: 'auto',\n background: 'transparent',\n transition: 'none',\n },\n '&:hover, &:focus': {\n color: semanticColors.buttonTextCheckedHovered,\n },\n '&:active, &:hover': {\n color: semanticColors.primaryButtonText,\n backgroundColor: semanticColors.primaryButtonBackground,\n },\n [`&.${classNames.linkIsSelected}`]: {\n backgroundColor: semanticColors.primaryButtonBackground,\n color: semanticColors.primaryButtonText,\n fontWeight: FontWeights.regular,\n selectors: {\n ':before': {\n backgroundColor: 'transparent',\n transition: 'none',\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n content: '\"\"',\n height: 0,\n },\n ':hover': {\n backgroundColor: semanticColors.primaryButtonBackgroundHovered,\n color: semanticColors.primaryButtonText,\n },\n '&:active': {\n backgroundColor: semanticColors.primaryButtonBackgroundPressed,\n color: semanticColors.primaryButtonText,\n },\n [HighContrastSelector]: {\n fontWeight: FontWeights.semibold,\n color: 'HighlightText',\n background: 'Highlight',\n MsHighContrastAdjust: 'none',\n },\n },\n },\n },\n },\n ],\n ],\n ];\n};\n\nexport const getStyles = (props: IPivotStyleProps): IPivotStyles => {\n const { className, linkSize, linkFormat, theme } = props;\n const { semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(globalClassNames, theme);\n\n const rootIsLarge = linkSize === 'large';\n const rootIsTabs = linkFormat === 'tabs';\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n normalize,\n {\n position: 'relative',\n color: semanticColors.link,\n whiteSpace: 'nowrap',\n },\n rootIsLarge && classNames.rootIsLarge,\n rootIsTabs && classNames.rootIsTabs,\n className,\n ],\n itemContainer: {\n selectors: {\n '&[hidden]': {\n display: 'none',\n },\n },\n },\n link: [\n classNames.link,\n ...getLinkStyles(props, classNames),\n {\n [`&[data-is-overflowing='true']`]: {\n display: 'none',\n },\n },\n ],\n overflowMenuButton: [\n classNames.overflowMenuButton,\n {\n visibility: 'hidden',\n position: 'absolute',\n right: 0,\n [`.${classNames.link}[data-is-overflowing='true'] ~ &`]: {\n visibility: 'visible',\n position: 'relative',\n },\n },\n ],\n linkInMenu: [\n classNames.linkInMenu,\n ...getLinkStyles(props, classNames, true),\n {\n textAlign: 'left',\n width: '100%',\n height: 36,\n lineHeight: 36,\n },\n ],\n linkIsSelected: [\n classNames.link,\n classNames.linkIsSelected,\n {\n fontWeight: FontWeights.semibold,\n selectors: {\n ':before': {\n backgroundColor: semanticColors.inputBackgroundChecked,\n selectors: {\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n },\n },\n },\n ':hover::before': {\n left: 0,\n right: 0,\n },\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n },\n ],\n linkContent: [\n classNames.linkContent,\n {\n flex: '0 1 100%',\n selectors: {\n '& > * ': {\n marginLeft: 4,\n },\n '& > *:first-child': {\n marginLeft: 0,\n },\n },\n },\n ],\n text: [\n classNames.text,\n {\n display: 'inline-block',\n verticalAlign: 'top',\n },\n ],\n count: [\n classNames.count,\n {\n display: 'inline-block',\n verticalAlign: 'top',\n },\n ],\n icon: classNames.icon,\n };\n};\n"]}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IStyle, ITheme } from '@fluentui/style-utilities';
|
|
3
|
-
import { IStyleFunctionOrObject } from '@fluentui/utilities';
|
|
4
|
-
import { PivotItem } from './PivotItem';
|
|
5
|
-
/**
|
|
6
|
-
* {@docCategory Pivot}
|
|
7
|
-
*/
|
|
8
|
-
export interface IPivot {
|
|
9
|
-
/**
|
|
10
|
-
* Sets focus to the first pivot tab.
|
|
11
|
-
*/
|
|
12
|
-
focus(): void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* {@docCategory Pivot}
|
|
16
|
-
*/
|
|
17
|
-
export interface IPivotProps extends React.HTMLAttributes<HTMLDivElement>, React.RefAttributes<HTMLDivElement> {
|
|
18
|
-
/**
|
|
19
|
-
* Optional callback to access the IPivot interface. Use this instead of ref for accessing
|
|
20
|
-
* the public methods and properties of the component.
|
|
21
|
-
*/
|
|
22
|
-
componentRef?: React.RefObject<IPivot>;
|
|
23
|
-
/**
|
|
24
|
-
* Call to provide customized styling that will layer on top of the variant rules.
|
|
25
|
-
*/
|
|
26
|
-
styles?: IStyleFunctionOrObject<IPivotStyleProps, IPivotStyles>;
|
|
27
|
-
/**
|
|
28
|
-
* Theme provided by High-Order Component.
|
|
29
|
-
*/
|
|
30
|
-
theme?: ITheme;
|
|
31
|
-
/**
|
|
32
|
-
* Additional css class to apply to the Pivot
|
|
33
|
-
* @defaultvalue undefined
|
|
34
|
-
*/
|
|
35
|
-
className?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Default selected key for the pivot. Only provide this if the pivot is an uncontrolled component;
|
|
38
|
-
* otherwise, use the `selectedKey` property.
|
|
39
|
-
*/
|
|
40
|
-
defaultSelectedKey?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Key of the selected pivot item. Updating this will override the Pivot's selected item state.
|
|
43
|
-
* Only provide this if the pivot is a controlled component where you are maintaining the
|
|
44
|
-
* current state; otherwise, use `defaultSelectedKey`.
|
|
45
|
-
*/
|
|
46
|
-
selectedKey?: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* Callback for when the selected pivot item is changed.
|
|
49
|
-
*/
|
|
50
|
-
onLinkClick?: (item?: PivotItem, ev?: React.MouseEvent<HTMLElement>) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Link size (normal, large)
|
|
53
|
-
*/
|
|
54
|
-
linkSize?: PivotLinkSizeType;
|
|
55
|
-
/**
|
|
56
|
-
* Link format (links, tabs)
|
|
57
|
-
*/
|
|
58
|
-
linkFormat?: PivotLinkFormatType;
|
|
59
|
-
/**
|
|
60
|
-
* Overflow behavior when there is not enough room to display all of the links/tabs
|
|
61
|
-
* * none: Pivot links will overflow the container and may not be visible
|
|
62
|
-
* * menu: Display an overflow menu that contains the tabs that don't fit
|
|
63
|
-
*
|
|
64
|
-
* @default none
|
|
65
|
-
*/
|
|
66
|
-
overflowBehavior?: 'none' | 'menu';
|
|
67
|
-
/**
|
|
68
|
-
* Whether to skip rendering the tabpanel with the content of the selected tab.
|
|
69
|
-
* Use this prop if you plan to separately render the tab content
|
|
70
|
-
* and don't want to leave an empty tabpanel in the page that may confuse Screen Readers.
|
|
71
|
-
*/
|
|
72
|
-
headersOnly?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Callback to customize how IDs are generated for each tab header.
|
|
75
|
-
* Useful if you're rendering content outside and need to connect aria-labelledby.
|
|
76
|
-
*/
|
|
77
|
-
getTabId?: (itemKey: string, index: number) => string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* {@docCategory Pivot}
|
|
81
|
-
*/
|
|
82
|
-
export declare type IPivotStyleProps = Required<Pick<IPivotProps, 'theme'>> & Pick<IPivotProps, 'className'> & {
|
|
83
|
-
linkSize?: PivotLinkSizeType;
|
|
84
|
-
linkFormat?: PivotLinkFormatType;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* {@docCategory Pivot}
|
|
88
|
-
*/
|
|
89
|
-
export interface IPivotStyles {
|
|
90
|
-
/**
|
|
91
|
-
* Style for the root element.
|
|
92
|
-
*/
|
|
93
|
-
root: IStyle;
|
|
94
|
-
link: IStyle;
|
|
95
|
-
linkIsSelected: IStyle;
|
|
96
|
-
linkContent: IStyle;
|
|
97
|
-
text: IStyle;
|
|
98
|
-
count: IStyle;
|
|
99
|
-
icon: IStyle;
|
|
100
|
-
linkInMenu: IStyle;
|
|
101
|
-
overflowMenuButton: IStyle;
|
|
102
|
-
itemContainer?: IStyle;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* {@docCategory Pivot}
|
|
106
|
-
* Display mode for the pivot links/tabs
|
|
107
|
-
*/
|
|
108
|
-
export declare type PivotLinkFormatType = 'links' | 'tabs';
|
|
109
|
-
/**
|
|
110
|
-
* {@docCategory Pivot}
|
|
111
|
-
* Size of the pivot links/tabs
|
|
112
|
-
*/
|
|
113
|
-
export declare type PivotLinkSizeType = 'normal' | 'large';
|
|
114
|
-
/**
|
|
115
|
-
* {@docCategory Pivot}
|
|
116
|
-
* @deprecated Use strings 'links' or 'tabs' instead of this enum
|
|
117
|
-
*/
|
|
118
|
-
export declare const enum PivotLinkFormat {
|
|
119
|
-
/**
|
|
120
|
-
* Display Pivot Links as links
|
|
121
|
-
*/
|
|
122
|
-
links = "links",
|
|
123
|
-
/**
|
|
124
|
-
* Display Pivot Links as Tabs
|
|
125
|
-
*/
|
|
126
|
-
tabs = "tabs"
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* {@docCategory Pivot}
|
|
130
|
-
* @deprecated Use strings 'normal' or 'large' instead of this enum
|
|
131
|
-
*/
|
|
132
|
-
export declare const enum PivotLinkSize {
|
|
133
|
-
/**
|
|
134
|
-
* Display Link using normal font size
|
|
135
|
-
*/
|
|
136
|
-
normal = "normal",
|
|
137
|
-
/**
|
|
138
|
-
* Display links using large font size
|
|
139
|
-
*/
|
|
140
|
-
large = "large"
|
|
141
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
/**
|
|
5
|
-
* {@docCategory Pivot}
|
|
6
|
-
* @deprecated Use strings 'links' or 'tabs' instead of this enum
|
|
7
|
-
*/
|
|
8
|
-
var PivotLinkFormat;
|
|
9
|
-
(function (PivotLinkFormat) {
|
|
10
|
-
/**
|
|
11
|
-
* Display Pivot Links as links
|
|
12
|
-
*/
|
|
13
|
-
PivotLinkFormat["links"] = "links";
|
|
14
|
-
/**
|
|
15
|
-
* Display Pivot Links as Tabs
|
|
16
|
-
*/
|
|
17
|
-
PivotLinkFormat["tabs"] = "tabs";
|
|
18
|
-
})(PivotLinkFormat = exports.PivotLinkFormat || (exports.PivotLinkFormat = {}));
|
|
19
|
-
/**
|
|
20
|
-
* {@docCategory Pivot}
|
|
21
|
-
* @deprecated Use strings 'normal' or 'large' instead of this enum
|
|
22
|
-
*/
|
|
23
|
-
var PivotLinkSize;
|
|
24
|
-
(function (PivotLinkSize) {
|
|
25
|
-
/**
|
|
26
|
-
* Display Link using normal font size
|
|
27
|
-
*/
|
|
28
|
-
PivotLinkSize["normal"] = "normal";
|
|
29
|
-
/**
|
|
30
|
-
* Display links using large font size
|
|
31
|
-
*/
|
|
32
|
-
PivotLinkSize["large"] = "large";
|
|
33
|
-
})(PivotLinkSize = exports.PivotLinkSize || (exports.PivotLinkSize = {}));
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=Pivot.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pivot.types.js","sourceRoot":"../src/","sources":["components/Pivot/Pivot.types.ts"],"names":[],"mappings":";;;IAuIA;;;OAGG;IACH,IAAkB,eAUjB;IAVD,WAAkB,eAAe;QAC/B;;WAEG;QACH,kCAAe,CAAA;QAEf;;WAEG;QACH,gCAAa,CAAA;IACf,CAAC,EAViB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAUhC;IAED;;;OAGG;IACH,IAAkB,aAUjB;IAVD,WAAkB,aAAa;QAC7B;;WAEG;QACH,kCAAiB,CAAA;QAEjB;;WAEG;QACH,gCAAe,CAAA;IACjB,CAAC,EAViB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAU9B","sourcesContent":["import * as React from 'react';\nimport { IStyle, ITheme } from '@fluentui/style-utilities';\nimport { IStyleFunctionOrObject } from '@fluentui/utilities';\nimport { PivotItem } from './PivotItem';\n\n/**\n * {@docCategory Pivot}\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface IPivot {\n /**\n * Sets focus to the first pivot tab.\n */\n focus(): void;\n}\n\n/**\n * {@docCategory Pivot}\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface IPivotProps extends React.HTMLAttributes<HTMLDivElement>, React.RefAttributes<HTMLDivElement> {\n /**\n * Optional callback to access the IPivot interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: React.RefObject<IPivot>;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IPivotStyleProps, IPivotStyles>;\n\n /**\n * Theme provided by High-Order Component.\n */\n theme?: ITheme;\n\n /**\n * Additional css class to apply to the Pivot\n * @defaultvalue undefined\n */\n className?: string;\n\n /**\n * Default selected key for the pivot. Only provide this if the pivot is an uncontrolled component;\n * otherwise, use the `selectedKey` property.\n */\n defaultSelectedKey?: string;\n\n /**\n * Key of the selected pivot item. Updating this will override the Pivot's selected item state.\n * Only provide this if the pivot is a controlled component where you are maintaining the\n * current state; otherwise, use `defaultSelectedKey`.\n */\n selectedKey?: string | null;\n\n /**\n * Callback for when the selected pivot item is changed.\n */\n onLinkClick?: (item?: PivotItem, ev?: React.MouseEvent<HTMLElement>) => void;\n\n /**\n * Link size (normal, large)\n */\n linkSize?: PivotLinkSizeType;\n\n /**\n * Link format (links, tabs)\n */\n linkFormat?: PivotLinkFormatType;\n\n /**\n * Overflow behavior when there is not enough room to display all of the links/tabs\n * * none: Pivot links will overflow the container and may not be visible\n * * menu: Display an overflow menu that contains the tabs that don't fit\n *\n * @default none\n */\n overflowBehavior?: 'none' | 'menu';\n\n /**\n * Whether to skip rendering the tabpanel with the content of the selected tab.\n * Use this prop if you plan to separately render the tab content\n * and don't want to leave an empty tabpanel in the page that may confuse Screen Readers.\n */\n headersOnly?: boolean;\n\n /**\n * Callback to customize how IDs are generated for each tab header.\n * Useful if you're rendering content outside and need to connect aria-labelledby.\n */\n getTabId?: (itemKey: string, index: number) => string;\n}\n\n/**\n * {@docCategory Pivot}\n */\nexport type IPivotStyleProps = Required<Pick<IPivotProps, 'theme'>> &\n Pick<IPivotProps, 'className'> & {\n linkSize?: PivotLinkSizeType;\n linkFormat?: PivotLinkFormatType;\n };\n\n/**\n * {@docCategory Pivot}\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface IPivotStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n link: IStyle;\n linkIsSelected: IStyle;\n linkContent: IStyle;\n text: IStyle;\n count: IStyle;\n icon: IStyle;\n linkInMenu: IStyle;\n overflowMenuButton: IStyle;\n itemContainer?: IStyle;\n}\n\n/**\n * {@docCategory Pivot}\n * Display mode for the pivot links/tabs\n */\nexport type PivotLinkFormatType = 'links' | 'tabs';\n\n/**\n * {@docCategory Pivot}\n * Size of the pivot links/tabs\n */\nexport type PivotLinkSizeType = 'normal' | 'large';\n\n/**\n * {@docCategory Pivot}\n * @deprecated Use strings 'links' or 'tabs' instead of this enum\n */\nexport const enum PivotLinkFormat {\n /**\n * Display Pivot Links as links\n */\n links = 'links',\n\n /**\n * Display Pivot Links as Tabs\n */\n tabs = 'tabs',\n}\n\n/**\n * {@docCategory Pivot}\n * @deprecated Use strings 'normal' or 'large' instead of this enum\n */\nexport const enum PivotLinkSize {\n /**\n * Display Link using normal font size\n */\n normal = 'normal',\n\n /**\n * Display links using large font size\n */\n large = 'large',\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "react", "@fluentui/utilities"], function (require, exports, tslib_1, React, utilities_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var COMPONENT_NAME = 'PivotItem';
|
|
5
|
-
var PivotItem = /** @class */ (function (_super) {
|
|
6
|
-
tslib_1.__extends(PivotItem, _super);
|
|
7
|
-
function PivotItem(props) {
|
|
8
|
-
var _this = _super.call(this, props) || this;
|
|
9
|
-
utilities_1.initializeComponentRef(_this);
|
|
10
|
-
utilities_1.warnDeprecations(COMPONENT_NAME, props, {
|
|
11
|
-
linkText: 'headerText',
|
|
12
|
-
});
|
|
13
|
-
return _this;
|
|
14
|
-
}
|
|
15
|
-
PivotItem.prototype.render = function () {
|
|
16
|
-
return React.createElement("div", tslib_1.__assign({}, utilities_1.getNativeProps(this.props, utilities_1.divProperties)), this.props.children);
|
|
17
|
-
};
|
|
18
|
-
return PivotItem;
|
|
19
|
-
}(React.Component));
|
|
20
|
-
exports.PivotItem = PivotItem;
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=PivotItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PivotItem.js","sourceRoot":"../src/","sources":["components/Pivot/PivotItem.tsx"],"names":[],"mappings":";;;IAIA,IAAM,cAAc,GAAG,WAAW,CAAC;IAEnC;QAA+B,qCAAoC;QACjE,mBAAY,KAAsB;YAAlC,YACE,kBAAM,KAAK,CAAC,SAMb;YAJC,kCAAsB,CAAC,KAAI,CAAC,CAAC;YAC7B,4BAAgB,CAAC,cAAc,EAAE,KAAK,EAAE;gBACtC,QAAQ,EAAE,YAAY;aACvB,CAAC,CAAC;;QACL,CAAC;QAEM,0BAAM,GAAb;YACE,OAAO,gDAAS,0BAAc,CAAC,IAAI,CAAC,KAAK,EAAE,yBAAa,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAO,CAAC;QACzF,CAAC;QACH,gBAAC;IAAD,CAAC,AAbD,CAA+B,KAAK,CAAC,SAAS,GAa7C;IAbY,8BAAS","sourcesContent":["import * as React from 'react';\nimport { getNativeProps, divProperties, initializeComponentRef, warnDeprecations } from '@fluentui/utilities';\nimport { IPivotItemProps } from './PivotItem.types';\n\nconst COMPONENT_NAME = 'PivotItem';\n\nexport class PivotItem extends React.Component<IPivotItemProps, {}> {\n constructor(props: IPivotItemProps) {\n super(props);\n\n initializeComponentRef(this);\n warnDeprecations(COMPONENT_NAME, props, {\n linkText: 'headerText',\n });\n }\n\n public render(): JSX.Element {\n return <div {...getNativeProps(this.props, divProperties)}>{this.props.children}</div>;\n }\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IKeytipProps } from '@fluentui/react-internal';
|
|
3
|
-
import { IButtonProps } from '@fluentui/react-internal/lib/compat/Button';
|
|
4
|
-
import { IRefObject, IRenderFunction } from '@fluentui/utilities';
|
|
5
|
-
/**
|
|
6
|
-
* {@docCategory Pivot}
|
|
7
|
-
*/
|
|
8
|
-
export interface IPivotItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
/**
|
|
10
|
-
* Gets the component ref.
|
|
11
|
-
*/
|
|
12
|
-
componentRef?: IRefObject<{}>;
|
|
13
|
-
/**
|
|
14
|
-
* The text displayed of each pivot link - renaming to `headerText`.
|
|
15
|
-
* @deprecated Use `headerText` instead.
|
|
16
|
-
*/
|
|
17
|
-
linkText?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The text displayed of each pivot link.
|
|
20
|
-
*/
|
|
21
|
-
headerText?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Props for the header command button. This provides a way to pass in native props, such as data-* and aria-*,
|
|
24
|
-
* for each pivot header/link element.
|
|
25
|
-
*/
|
|
26
|
-
headerButtonProps?: IButtonProps | {
|
|
27
|
-
[key: string]: string | number | boolean;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* An required key to uniquely identify a pivot item.
|
|
31
|
-
*
|
|
32
|
-
* Note: The 'key' from react props cannot be used inside component.
|
|
33
|
-
*/
|
|
34
|
-
itemKey?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The aria label of each pivot link which will read by screen reader instead of linkText.
|
|
37
|
-
*
|
|
38
|
-
* Note that unless you have compelling requirements you should not override aria-label.
|
|
39
|
-
*/
|
|
40
|
-
ariaLabel?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Defines an optional item count displayed in parentheses just after the `linkText`.
|
|
43
|
-
*
|
|
44
|
-
* Examples: completed (4), Unread (99+)
|
|
45
|
-
*/
|
|
46
|
-
itemCount?: number | string;
|
|
47
|
-
/**
|
|
48
|
-
* An optional icon to show next to the pivot link.
|
|
49
|
-
*/
|
|
50
|
-
itemIcon?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Optional custom renderer for the pivot item link
|
|
53
|
-
*/
|
|
54
|
-
onRenderItemLink?: IRenderFunction<IPivotItemProps>;
|
|
55
|
-
/**
|
|
56
|
-
* Optional keytip for this PivotItem
|
|
57
|
-
*/
|
|
58
|
-
keytipProps?: IKeytipProps;
|
|
59
|
-
/**
|
|
60
|
-
* Defines whether to always render the pivot item (regardless of whether it is selected or not).
|
|
61
|
-
* Useful if you're rendering content that is expensive to mount.
|
|
62
|
-
*
|
|
63
|
-
* @defaultvalue false
|
|
64
|
-
*/
|
|
65
|
-
alwaysRender?: boolean;
|
|
66
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PivotItem.types.js","sourceRoot":"../src/","sources":["components/Pivot/PivotItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { IKeytipProps } from '@fluentui/react-internal';\nimport { IButtonProps } from '@fluentui/react-internal/lib/compat/Button';\nimport { IRefObject, IRenderFunction } from '@fluentui/utilities';\n\n/**\n * {@docCategory Pivot}\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface IPivotItemProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Gets the component ref.\n */\n componentRef?: IRefObject<{}>;\n\n /**\n * The text displayed of each pivot link - renaming to `headerText`.\n * @deprecated Use `headerText` instead.\n */\n linkText?: string;\n\n /**\n * The text displayed of each pivot link.\n */\n headerText?: string;\n\n /**\n * Props for the header command button. This provides a way to pass in native props, such as data-* and aria-*,\n * for each pivot header/link element.\n */\n headerButtonProps?: IButtonProps | { [key: string]: string | number | boolean };\n\n /**\n * An required key to uniquely identify a pivot item.\n *\n * Note: The 'key' from react props cannot be used inside component.\n */\n itemKey?: string;\n\n /**\n * The aria label of each pivot link which will read by screen reader instead of linkText.\n *\n * Note that unless you have compelling requirements you should not override aria-label.\n */\n ariaLabel?: string;\n\n /**\n * Defines an optional item count displayed in parentheses just after the `linkText`.\n *\n * Examples: completed (4), Unread (99+)\n */\n itemCount?: number | string;\n\n /**\n * An optional icon to show next to the pivot link.\n */\n itemIcon?: string;\n\n /**\n * Optional custom renderer for the pivot item link\n */\n onRenderItemLink?: IRenderFunction<IPivotItemProps>;\n\n /**\n * Optional keytip for this PivotItem\n */\n keytipProps?: IKeytipProps;\n\n /**\n * Defines whether to always render the pivot item (regardless of whether it is selected or not).\n * Useful if you're rendering content that is expensive to mount.\n *\n * @defaultvalue false\n */\n alwaysRender?: boolean;\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./Pivot", "./Pivot.base", "./PivotItem", "./Pivot.types"], function (require, exports, tslib_1, Pivot_1, Pivot_base_1, PivotItem_1, Pivot_types_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(Pivot_1, exports);
|
|
5
|
-
tslib_1.__exportStar(Pivot_base_1, exports);
|
|
6
|
-
exports.PivotItem = PivotItem_1.PivotItem;
|
|
7
|
-
tslib_1.__exportStar(Pivot_types_1, exports);
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Pivot/index.ts"],"names":[],"mappings":";;;IAAA,uCAAwB;IACxB,4CAA6B;IACpB,gCAAA,SAAS,CAAA;IAClB,6CAA8B","sourcesContent":["export * from './Pivot';\nexport * from './Pivot.base';\nexport { PivotItem } from './PivotItem';\nexport * from './Pivot.types';\nexport * from './PivotItem.types';\n"]}
|
package/lib-amd/next/Tabs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"../src/","sources":["next/Tabs.ts"],"names":[],"mappings":";;;IAAA,uCAAwC","sourcesContent":["export * from './components/Tabs/index';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.js","sourceRoot":"../src/","sources":["next/components/Tabs/TabItem.tsx"],"names":[],"mappings":";;;IAIA,oCAAoC;IAEpC;QAA6B,mCAAiC;QAC5D,iBAAY,KAAmB;YAA/B,YACE,kBAAM,KAAK,CAAC,SAGb;YADC,kCAAsB,CAAC,KAAI,CAAC,CAAC;;QAC/B,CAAC;QAEM,wBAAM,GAAb;YACE,OAAO,gDAAS,0BAAc,CAAC,IAAI,CAAC,KAAK,EAAE,yBAAa,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAO,CAAC;QACzF,CAAC;QACH,cAAC;IAAD,CAAC,AAVD,CAA6B,KAAK,CAAC,SAAS,GAU3C;IAVY,0BAAO","sourcesContent":["import * as React from 'react';\nimport { getNativeProps, divProperties, initializeComponentRef } from '@fluentui/utilities';\nimport { TabItemProps } from './TabItem.types';\n\n// const COMPONENT_NAME = 'TabItem';\n\nexport class TabItem extends React.Component<TabItemProps, {}> {\n constructor(props: TabItemProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render(): JSX.Element {\n return <div {...getNativeProps(this.props, divProperties)}>{this.props.children}</div>;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.types.js","sourceRoot":"../src/","sources":["next/components/Tabs/TabItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { IKeytipProps } from '@fluentui/react-internal';\nimport { IButtonProps } from '@fluentui/react-internal/lib/compat/Button';\nimport { IRefObject, IRenderFunction } from '@fluentui/utilities';\n\n/**\n * {@docCategory Tabs}\n */\nexport interface TabItemProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Gets the component ref.\n */\n componentRef?: IRefObject<{}>;\n\n /**\n * The text displayed of each tab.\n */\n headerText?: string;\n\n /**\n * Props for the header command button. This provides a way to pass in native props, such as data-* and aria-*,\n * for each tab element.\n */\n headerButtonProps?: IButtonProps | { [key: string]: string | number | boolean };\n\n /**\n * An required key to uniquely identify a tab item.\n *\n * Note: The 'key' from react props cannot be used inside component.\n */\n itemKey?: string;\n\n /**\n * The aria label of each tab which will read by screen reader instead of headerText.\n *\n * Note that unless you have compelling requirements you should not override aria-label.\n */\n ariaLabel?: string;\n\n /**\n * Defines an optional item count displayed in parentheses just after the `headerText`.\n *\n * Examples: completed (4), Unread (99+)\n */\n itemCount?: number | string;\n\n /**\n * An optional icon to show next to the tab.\n */\n itemIcon?: string;\n\n /**\n * Optional custom renderer for the tab\n */\n onRenderTab?: IRenderFunction<TabItemProps>;\n\n /**\n * Optional keytip for this TabItem\n */\n keytipProps?: IKeytipProps;\n\n /**\n * Defines whether to always render the tab item (regardless of whether it is selected or not).\n * Useful if you're rendering content that is expensive to mount.\n *\n * @defaultvalue false\n */\n alwaysRender?: boolean;\n}\n"]}
|