@fluentui/react-migration-v8-v9 9.2.1 → 9.2.2
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/.swcrc +30 -0
- package/CHANGELOG.json +52 -1
- package/CHANGELOG.md +17 -2
- package/lib/components/Button/ActionButtonShim.js.map +1 -1
- package/lib/components/Button/ButtonShim.js +4 -8
- package/lib/components/Button/ButtonShim.js.map +1 -1
- package/lib/components/Button/CommandButtonShim.js +1 -2
- package/lib/components/Button/CommandButtonShim.js.map +1 -1
- package/lib/components/Button/CompoundButtonShim.js +2 -2
- package/lib/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib/components/Button/MenuButtonShim.js +4 -10
- package/lib/components/Button/MenuButtonShim.js.map +1 -1
- package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/shimButtonProps.js +3 -5
- package/lib/components/Button/shimButtonProps.js.map +1 -1
- package/lib/components/Menu/MenuShim.js +12 -23
- package/lib/components/Menu/MenuShim.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/shimMenuProps.js +3 -5
- package/lib/components/Menu/shimMenuProps.js.map +1 -1
- package/lib/components/Stack/StackItemShim.js.map +1 -1
- package/lib/components/Stack/StackShim.js.map +1 -1
- package/lib/components/Stack/index.js.map +1 -1
- package/lib/components/Stack/stackUtils.js.map +1 -1
- package/lib/components/Theme/index.js.map +1 -1
- package/lib/components/Theme/themeDuplicates.js +1 -2
- package/lib/components/Theme/themeDuplicates.js.map +1 -1
- package/lib/components/Theme/v8ThemeShim.js +0 -12
- package/lib/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Button/ActionButtonShim.js +21 -20
- package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ButtonShim.js +25 -25
- package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CommandButtonShim.js +9 -12
- package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CompoundButtonShim.js +24 -23
- package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/DefaultButtonShim.js +14 -13
- package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/MenuButtonShim.js +24 -27
- package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/PrimaryButtonShim.js +15 -14
- package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ToggleButtonShim.js +24 -23
- package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +13 -12
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/shimButtonProps.js +33 -28
- package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
- package/lib-commonjs/components/Menu/MenuShim.js +42 -52
- package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js +6 -5
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/shimMenuProps.js +44 -38
- package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
- package/lib-commonjs/components/Stack/StackItemShim.js +195 -157
- package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
- package/lib-commonjs/components/Stack/StackShim.js +273 -230
- package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
- package/lib-commonjs/components/Stack/index.js +6 -5
- package/lib-commonjs/components/Stack/index.js.map +1 -1
- package/lib-commonjs/components/Stack/stackUtils.js +145 -151
- package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
- package/lib-commonjs/components/Theme/index.js +8 -7
- package/lib-commonjs/components/Theme/index.js.map +1 -1
- package/lib-commonjs/components/Theme/themeDuplicates.js +810 -786
- package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
- package/lib-commonjs/components/Theme/v8ThemeShim.js +285 -307
- package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js +56 -61
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9ThemeShim.js +183 -188
- package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib-commonjs/index.js +48 -200
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +11 -10
package/lib-commonjs/index.js
CHANGED
|
@@ -1,203 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
get: function () {
|
|
53
|
-
return index_1.shimButtonProps;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "ToggleButtonShim", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () {
|
|
59
|
-
return index_1.ToggleButtonShim;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var index_2 = /*#__PURE__*/require("./components/Menu/index");
|
|
63
|
-
Object.defineProperty(exports, "MenuItemShim", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () {
|
|
66
|
-
return index_2.MenuItemShim;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "shimMenuProps", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () {
|
|
72
|
-
return index_2.shimMenuProps;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
var index_3 = /*#__PURE__*/require("./components/Stack/index");
|
|
76
|
-
Object.defineProperty(exports, "StackItemShim", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return index_3.StackItemShim;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "StackShim", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () {
|
|
85
|
-
return index_3.StackShim;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
var index_4 = /*#__PURE__*/require("./components/Theme/index");
|
|
89
|
-
Object.defineProperty(exports, "black", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () {
|
|
92
|
-
return index_4.black;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "blackAlpha", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () {
|
|
98
|
-
return index_4.blackAlpha;
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, "brandWeb", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () {
|
|
104
|
-
return index_4.brandWeb;
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, "createBrandVariants", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () {
|
|
110
|
-
return index_4.createBrandVariants;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(exports, "createV8Theme", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
get: function () {
|
|
116
|
-
return index_4.createV8Theme;
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(exports, "createV9Theme", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () {
|
|
122
|
-
return index_4.createV9Theme;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
Object.defineProperty(exports, "grey", {
|
|
126
|
-
enumerable: true,
|
|
127
|
-
get: function () {
|
|
128
|
-
return index_4.grey;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(exports, "grey14Alpha", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return index_4.grey14Alpha;
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(exports, "hcButtonFace", {
|
|
138
|
-
enumerable: true,
|
|
139
|
-
get: function () {
|
|
140
|
-
return index_4.hcButtonFace;
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, "hcButtonText", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () {
|
|
146
|
-
return index_4.hcButtonText;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
Object.defineProperty(exports, "hcCanvas", {
|
|
150
|
-
enumerable: true,
|
|
151
|
-
get: function () {
|
|
152
|
-
return index_4.hcCanvas;
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(exports, "hcCanvasText", {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () {
|
|
158
|
-
return index_4.hcCanvasText;
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(exports, "hcDisabled", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () {
|
|
164
|
-
return index_4.hcDisabled;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(exports, "hcHighlight", {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
get: function () {
|
|
170
|
-
return index_4.hcHighlight;
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, "hcHighlightText", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () {
|
|
176
|
-
return index_4.hcHighlightText;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(exports, "hcHyperlink", {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
get: function () {
|
|
182
|
-
return index_4.hcHyperlink;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
Object.defineProperty(exports, "sharedColors", {
|
|
186
|
-
enumerable: true,
|
|
187
|
-
get: function () {
|
|
188
|
-
return index_4.sharedColors;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
Object.defineProperty(exports, "white", {
|
|
192
|
-
enumerable: true,
|
|
193
|
-
get: function () {
|
|
194
|
-
return index_4.white;
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(exports, "whiteAlpha", {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () {
|
|
200
|
-
return index_4.whiteAlpha;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
ActionButtonShim: ()=>_index.ActionButtonShim,
|
|
13
|
+
ButtonShim: ()=>_index.ButtonShim,
|
|
14
|
+
CommandButtonShim: ()=>_index.CommandButtonShim,
|
|
15
|
+
CompoundButtonShim: ()=>_index.CompoundButtonShim,
|
|
16
|
+
DefaultButtonShim: ()=>_index.DefaultButtonShim,
|
|
17
|
+
MenuButtonShim: ()=>_index.MenuButtonShim,
|
|
18
|
+
PrimaryButtonShim: ()=>_index.PrimaryButtonShim,
|
|
19
|
+
shimButtonProps: ()=>_index.shimButtonProps,
|
|
20
|
+
ToggleButtonShim: ()=>_index.ToggleButtonShim,
|
|
21
|
+
MenuItemShim: ()=>_index1.MenuItemShim,
|
|
22
|
+
shimMenuProps: ()=>_index1.shimMenuProps,
|
|
23
|
+
StackItemShim: ()=>_index2.StackItemShim,
|
|
24
|
+
StackShim: ()=>_index2.StackShim,
|
|
25
|
+
black: ()=>_index3.black,
|
|
26
|
+
blackAlpha: ()=>_index3.blackAlpha,
|
|
27
|
+
brandWeb: ()=>_index3.brandWeb,
|
|
28
|
+
createBrandVariants: ()=>_index3.createBrandVariants,
|
|
29
|
+
createV8Theme: ()=>_index3.createV8Theme,
|
|
30
|
+
createV9Theme: ()=>_index3.createV9Theme,
|
|
31
|
+
grey: ()=>_index3.grey,
|
|
32
|
+
grey14Alpha: ()=>_index3.grey14Alpha,
|
|
33
|
+
hcButtonFace: ()=>_index3.hcButtonFace,
|
|
34
|
+
hcButtonText: ()=>_index3.hcButtonText,
|
|
35
|
+
hcCanvas: ()=>_index3.hcCanvas,
|
|
36
|
+
hcCanvasText: ()=>_index3.hcCanvasText,
|
|
37
|
+
hcDisabled: ()=>_index3.hcDisabled,
|
|
38
|
+
hcHighlight: ()=>_index3.hcHighlight,
|
|
39
|
+
hcHighlightText: ()=>_index3.hcHighlightText,
|
|
40
|
+
hcHyperlink: ()=>_index3.hcHyperlink,
|
|
41
|
+
sharedColors: ()=>_index3.sharedColors,
|
|
42
|
+
white: ()=>_index3.white,
|
|
43
|
+
whiteAlpha: ()=>_index3.whiteAlpha
|
|
44
|
+
});
|
|
45
|
+
const _index = require("./components/Button/index");
|
|
46
|
+
const _index1 = require("./components/Menu/index");
|
|
47
|
+
const _index2 = require("./components/Stack/index");
|
|
48
|
+
const _index3 = require("./components/Theme/index");
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
50
|
+
|
|
203
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { ActionButtonShim, ButtonShim, CommandButtonShim, CompoundButtonShim, DefaultButtonShim, MenuButtonShim, PrimaryButtonShim, shimButtonProps, ToggleButtonShim } from './components/Button/index';\nexport { MenuItemShim, shimMenuProps } from './components/Menu/index';\nexport { StackItemShim, StackShim } from './components/Stack/index';\nexport { black, blackAlpha, brandWeb, createBrandVariants, createV8Theme, createV9Theme, grey, grey14Alpha, hcButtonFace, hcButtonText, hcCanvas, hcCanvasText, hcDisabled, hcHighlight, hcHighlightText, hcHyperlink, sharedColors, white, whiteAlpha } from './components/Theme/index';\n//# sourceMappingURL=index.js.map"],"names":["ActionButtonShim","ButtonShim","CommandButtonShim","CompoundButtonShim","DefaultButtonShim","MenuButtonShim","PrimaryButtonShim","shimButtonProps","ToggleButtonShim","MenuItemShim","shimMenuProps","StackItemShim","StackShim","black","blackAlpha","brandWeb","createBrandVariants","createV8Theme","createV9Theme","grey","grey14Alpha","hcButtonFace","hcButtonText","hcCanvas","hcCanvasText","hcDisabled","hcHighlight","hcHighlightText","hcHyperlink","sharedColors","white","whiteAlpha"],"mappings":";;;;;;;;;;;IAASA,gBAAgB,MAAhBA,uBAAgB;IAAEC,UAAU,MAAVA,iBAAU;IAAEC,iBAAiB,MAAjBA,wBAAiB;IAAEC,kBAAkB,MAAlBA,yBAAkB;IAAEC,iBAAiB,MAAjBA,wBAAiB;IAAEC,cAAc,MAAdA,qBAAc;IAAEC,iBAAiB,MAAjBA,wBAAiB;IAAEC,eAAe,MAAfA,sBAAe;IAAEC,gBAAgB,MAAhBA,uBAAgB;IAC5JC,YAAY,MAAZA,oBAAY;IAAEC,aAAa,MAAbA,qBAAa;IAC3BC,aAAa,MAAbA,qBAAa;IAAEC,SAAS,MAATA,iBAAS;IACxBC,KAAK,MAALA,aAAK;IAAEC,UAAU,MAAVA,kBAAU;IAAEC,QAAQ,MAARA,gBAAQ;IAAEC,mBAAmB,MAAnBA,2BAAmB;IAAEC,aAAa,MAAbA,qBAAa;IAAEC,aAAa,MAAbA,qBAAa;IAAEC,IAAI,MAAJA,YAAI;IAAEC,WAAW,MAAXA,mBAAW;IAAEC,YAAY,MAAZA,oBAAY;IAAEC,YAAY,MAAZA,oBAAY;IAAEC,QAAQ,MAARA,gBAAQ;IAAEC,YAAY,MAAZA,oBAAY;IAAEC,UAAU,MAAVA,kBAAU;IAAEC,WAAW,MAAXA,mBAAW;IAAEC,eAAe,MAAfA,uBAAe;IAAEC,WAAW,MAAXA,mBAAW;IAAEC,YAAY,MAAZA,oBAAY;IAAEC,KAAK,MAALA,aAAK;IAAEC,UAAU,MAAVA,kBAAU;;uBAHzE;wBACjI;wBACH;wBACqN;CAC9P,iCAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-migration-v8-v9",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"description": "Migration shim components and methods for hybrid v8/v9 applications building on Fluent UI React.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -19,27 +19,27 @@
|
|
|
19
19
|
"lint": "just-scripts lint",
|
|
20
20
|
"test": "jest --passWithNoTests",
|
|
21
21
|
"type-check": "tsc -b tsconfig.json",
|
|
22
|
-
"generate-api": "
|
|
22
|
+
"generate-api": "just-scripts generate-api",
|
|
23
23
|
"storybook": "start-storybook",
|
|
24
24
|
"start": "yarn storybook"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluentui/eslint-plugin": "*",
|
|
28
28
|
"@fluentui/react-conformance": "*",
|
|
29
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
|
29
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.20",
|
|
30
30
|
"@fluentui/scripts-api-extractor": "*",
|
|
31
31
|
"@fluentui/scripts-tasks": "*"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ctrl/tinycolor": "3.3.4",
|
|
35
|
-
"@fluentui/fluent2-theme": "^8.106.
|
|
36
|
-
"@fluentui/react": "^8.106.
|
|
37
|
-
"@fluentui/react-components": "^9.18.
|
|
38
|
-
"@fluentui/react-icons": "^2.0.
|
|
39
|
-
"@fluentui/react-theme": "^9.1.
|
|
40
|
-
"@fluentui/react-utilities": "^9.7.
|
|
35
|
+
"@fluentui/fluent2-theme": "^8.106.2",
|
|
36
|
+
"@fluentui/react": "^8.106.7",
|
|
37
|
+
"@fluentui/react-components": "^9.18.3",
|
|
38
|
+
"@fluentui/react-icons": "^2.0.196",
|
|
39
|
+
"@fluentui/react-theme": "^9.1.7",
|
|
40
|
+
"@fluentui/react-utilities": "^9.7.2",
|
|
41
41
|
"@griffel/react": "^1.5.2",
|
|
42
|
-
"
|
|
42
|
+
"@swc/helpers": "^0.4.14"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@types/react": ">=16.8.0 <19.0.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"exports": {
|
|
56
56
|
".": {
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
58
|
+
"node": "./lib-commonjs/index.js",
|
|
58
59
|
"import": "./lib/index.js",
|
|
59
60
|
"require": "./lib-commonjs/index.js"
|
|
60
61
|
},
|