@microsoft/sp-component-base 1.22.0-beta.2 → 1.22.0-beta.4
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/dist/467dc675-7cc5-4709-8aac-78e3b71bd2f6.manifest.json +1 -1
- package/lib/BaseComponent.d.ts +115 -0
- package/lib/BaseComponent.d.ts.map +1 -0
- package/lib/BaseComponent.js +162 -0
- package/lib/BaseComponentContext.d.ts +142 -0
- package/lib/BaseComponentContext.d.ts.map +1 -0
- package/lib/BaseComponentContext.js +221 -0
- package/lib/DynamicDataProvider.d.ts +166 -0
- package/lib/DynamicDataProvider.d.ts.map +1 -0
- package/lib/DynamicDataProvider.js +420 -0
- package/lib/DynamicDataSourceManager.d.ts +160 -0
- package/lib/DynamicDataSourceManager.d.ts.map +1 -0
- package/lib/DynamicDataSourceManager.js +382 -0
- package/lib/DynamicProperty.d.ts +204 -0
- package/lib/DynamicProperty.d.ts.map +1 -0
- package/lib/DynamicProperty.js +390 -0
- package/lib/EnsureIsolatedDomainUrl.d.ts +9 -0
- package/lib/EnsureIsolatedDomainUrl.d.ts.map +1 -0
- package/lib/EnsureIsolatedDomainUrl.js +26 -0
- package/lib/IComponentPosition.d.ts +28 -0
- package/lib/IComponentPosition.d.ts.map +1 -0
- package/lib/IComponentPosition.js +2 -0
- package/lib/IComponentPropertyMetadata.d.ts +100 -0
- package/lib/IComponentPropertyMetadata.d.ts.map +1 -0
- package/lib/IComponentPropertyMetadata.js +2 -0
- package/lib/ISerializedServerProcessedData.d.ts +166 -0
- package/lib/ISerializedServerProcessedData.d.ts.map +1 -0
- package/lib/ISerializedServerProcessedData.js +28 -0
- package/lib/LegacyThirdPartyFabricCoreLoader.d.ts +40 -0
- package/lib/LegacyThirdPartyFabricCoreLoader.d.ts.map +1 -0
- package/lib/LegacyThirdPartyFabricCoreLoader.js +90 -0
- package/lib/PropertyMetadataProcessor.d.ts +54 -0
- package/lib/PropertyMetadataProcessor.d.ts.map +1 -0
- package/lib/PropertyMetadataProcessor.js +297 -0
- package/lib/ShimmerFactory.d.ts +17 -0
- package/lib/ShimmerFactory.d.ts.map +1 -0
- package/lib/ShimmerFactory.js +62 -0
- package/lib/chunks/legacy-third-party-fabric-core/FabricLocalFont.d.ts +17 -0
- package/lib/chunks/legacy-third-party-fabric-core/FabricLocalFont.d.ts.map +1 -0
- package/lib/chunks/legacy-third-party-fabric-core/FabricLocalFont.js +17 -0
- package/lib/chunks/legacy-third-party-fabric-core/fabric-core-sass/Fabric.LocalFont.global.scss.css +9247 -0
- package/lib/chunks/legacy-third-party-fabric-core/fabric-core-sass/Fabric.LocalFontKillSwitchActivated.scss.css +11165 -0
- package/lib/chunks/legacy-third-party-fabric-core/fabric-core-shim.global.scss.css +2063 -0
- package/lib/chunks/legacy-third-party-fabric-core/fabric-core-shimKillSwitchActivated.scss.css +2164 -0
- package/lib/chunks/legacy-third-party-fabric-core/iconDefinitions.css +6 -0
- package/lib/common/Flights.d.ts +3 -0
- package/lib/common/Flights.d.ts.map +1 -0
- package/lib/common/Flights.js +10 -0
- package/lib/common/KillSwitches.d.ts +2 -0
- package/lib/common/KillSwitches.d.ts.map +1 -0
- package/lib/common/KillSwitches.js +5 -0
- package/lib/dataCollector/IWebPartLoadData.d.ts +140 -0
- package/lib/dataCollector/IWebPartLoadData.d.ts.map +1 -0
- package/lib/dataCollector/IWebPartLoadData.js +40 -0
- package/lib/dataCollector/WebPartLoadDataCollector.d.ts +14 -0
- package/lib/dataCollector/WebPartLoadDataCollector.d.ts.map +1 -0
- package/lib/dataCollector/WebPartLoadDataCollector.js +137 -0
- package/lib/index.d.ts +34 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +27 -0
- package/lib/loc/Strings.resx.d.ts +44 -0
- package/lib/loc/Strings.resx.json +1 -0
- package/lib/sp-component-base.manifest.json +9 -0
- package/lib/styles/shimmer.module.scss.css +11 -0
- package/lib/teams/DeferredTeamsAppsClient.d.ts +17 -0
- package/lib/teams/DeferredTeamsAppsClient.d.ts.map +1 -0
- package/lib/teams/DeferredTeamsAppsClient.js +39 -0
- package/lib/teams/ITeamsAppCatalog.d.ts +72 -0
- package/lib/teams/ITeamsAppCatalog.d.ts.map +1 -0
- package/lib/teams/ITeamsAppCatalog.js +2 -0
- package/lib/teams/TeamsAppsClient.d.ts +113 -0
- package/lib/teams/TeamsAppsClient.d.ts.map +1 -0
- package/lib/teams/TeamsAppsClient.js +440 -0
- package/lib/test-api/MockComponent.d.ts +8 -0
- package/lib/test-api/MockComponent.d.ts.map +1 -0
- package/lib/test-api/MockComponent.js +31 -0
- package/lib/test-api/MockComponentContext.d.ts +6 -0
- package/lib/test-api/MockComponentContext.d.ts.map +1 -0
- package/lib/test-api/MockComponentContext.js +27 -0
- package/lib/test-api/index.d.ts +3 -0
- package/lib/test-api/index.d.ts.map +1 -0
- package/lib/test-api/index.js +3 -0
- package/lib/themeProvider/ThemeProvider.d.ts +71 -0
- package/lib/themeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/themeProvider/ThemeProvider.js +99 -0
- package/lib/themeProvider/themeInterfaces/IFontStyles.d.ts +26 -0
- package/lib/themeProvider/themeInterfaces/IFontStyles.d.ts.map +1 -0
- package/lib/themeProvider/themeInterfaces/IFontStyles.js +2 -0
- package/lib/themeProvider/themeInterfaces/IPalette.d.ts +7 -0
- package/lib/themeProvider/themeInterfaces/IPalette.d.ts.map +1 -0
- package/lib/themeProvider/themeInterfaces/IPalette.js +2 -0
- package/lib/themeProvider/themeInterfaces/ISemanticColors.d.ts +56 -0
- package/lib/themeProvider/themeInterfaces/ISemanticColors.d.ts.map +1 -0
- package/lib/themeProvider/themeInterfaces/ISemanticColors.js +2 -0
- package/lib/themeProvider/themeInterfaces/ISemanticTextColors.d.ts +7 -0
- package/lib/themeProvider/themeInterfaces/ISemanticTextColors.d.ts.map +1 -0
- package/lib/themeProvider/themeInterfaces/ISemanticTextColors.js +2 -0
- package/lib/themeProvider/themeInterfaces/ITheme.d.ts +16 -0
- package/lib/themeProvider/themeInterfaces/ITheme.d.ts.map +1 -0
- package/lib/themeProvider/themeInterfaces/ITheme.js +2 -0
- package/package.json +15 -15
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ServiceKey, type ServiceScope, SPEvent, SPEventArgs } from '@microsoft/sp-core-library';
|
|
2
|
+
import type { ITheme, IReadonlyTheme } from './themeInterfaces/ITheme';
|
|
3
|
+
import type { Theme } from '@fluentui/react-components';
|
|
4
|
+
/**
|
|
5
|
+
* The object passed when the IThemeProvider.themeChangedEvent is raised.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class ThemeChangedEventArgs extends SPEventArgs {
|
|
10
|
+
/**
|
|
11
|
+
* The new theme. If the value is undefined, then the theme was cleared.
|
|
12
|
+
*/
|
|
13
|
+
readonly theme: ITheme | undefined;
|
|
14
|
+
readonly themeV2: Theme | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The ThemeProvider class provides the capability to get different themes from the Framework. Themes can be provided
|
|
18
|
+
* in different contexts, e.g. Canvas sections may provide a variant of the global theme in some contexts.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare class ThemeProvider {
|
|
23
|
+
/**
|
|
24
|
+
* The service key for ThemeProvider.
|
|
25
|
+
*/
|
|
26
|
+
static readonly serviceKey: ServiceKey<ThemeProvider>;
|
|
27
|
+
private static readonly _themeChangedEventNameLiteral;
|
|
28
|
+
/**
|
|
29
|
+
* Used to register a unique event for each ThemeProvider instance by appending
|
|
30
|
+
* the instance count to themeChangedEventNameLiteral.
|
|
31
|
+
*/
|
|
32
|
+
private static _instanceCount;
|
|
33
|
+
/**
|
|
34
|
+
* Raised when the theme changes with the new theme as an argument.
|
|
35
|
+
*
|
|
36
|
+
* @eventproperty
|
|
37
|
+
*/
|
|
38
|
+
readonly themeChangedEvent: SPEvent<ThemeChangedEventArgs>;
|
|
39
|
+
private readonly _id;
|
|
40
|
+
private _theme;
|
|
41
|
+
private _themeV2;
|
|
42
|
+
/**
|
|
43
|
+
* Construct a new instance of the ThemeProvider class.
|
|
44
|
+
*
|
|
45
|
+
* @param serviceScope - The current service scope.
|
|
46
|
+
* @param theme - Theme to provide.
|
|
47
|
+
*/
|
|
48
|
+
constructor(serviceScope: ServiceScope, theme?: ITheme, themeV2?: Theme);
|
|
49
|
+
private get _themeChangedEventName();
|
|
50
|
+
/**
|
|
51
|
+
* Clear the currently set theme and raise the themeChangedEvent.
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
_clearTheme(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Change the theme and raise the themeChangedEvent.
|
|
58
|
+
*
|
|
59
|
+
* @param theme - The new theme.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
_setTheme(theme: ITheme, themeV2?: Theme): void;
|
|
64
|
+
/**
|
|
65
|
+
* If set, get the current scoped theme.
|
|
66
|
+
*/
|
|
67
|
+
tryGetTheme(): IReadonlyTheme | undefined;
|
|
68
|
+
tryGetThemeV2(): Theme | undefined;
|
|
69
|
+
private _raiseEvent;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/themeProvider/ThemeProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,YAAY,EACjB,OAAO,EACP,WAAW,EAGZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,SAAgB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,SAAgB,OAAO,EAAE,KAAK,GAAG,SAAS,CAAC;CAC5C;AAED;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACH,gBAAuB,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC,CAG1D;IAEF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAA6C;IAElG;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc,CAAa;IAE1C;;;;OAIG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAE7B,OAAO,CAAC,MAAM,CAA6B;IAC3C,OAAO,CAAC,QAAQ,CAAoB;IAEpC;;;;;OAKG;gBACgB,YAAY,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK;IAY9E,OAAO,KAAK,sBAAsB,GAEjC;IAED;;;;OAIG;IACI,WAAW,IAAI,IAAI;IAM1B;;;;;;OAMG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,GAAG,IAAI;IAUtD;;OAEG;IACI,WAAW,IAAI,cAAc,GAAG,SAAS;IAIzC,aAAa,IAAI,KAAK,GAAG,SAAS;IAIzC,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceKey, SPEvent, SPEventArgs, _SPEventManager, Validate } from '@microsoft/sp-core-library';
|
|
3
|
+
/**
|
|
4
|
+
* The object passed when the IThemeProvider.themeChangedEvent is raised.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
var ThemeChangedEventArgs = /** @class */ (function (_super) {
|
|
9
|
+
__extends(ThemeChangedEventArgs, _super);
|
|
10
|
+
function ThemeChangedEventArgs() {
|
|
11
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
+
}
|
|
13
|
+
return ThemeChangedEventArgs;
|
|
14
|
+
}(SPEventArgs));
|
|
15
|
+
export { ThemeChangedEventArgs };
|
|
16
|
+
/**
|
|
17
|
+
* The ThemeProvider class provides the capability to get different themes from the Framework. Themes can be provided
|
|
18
|
+
* in different contexts, e.g. Canvas sections may provide a variant of the global theme in some contexts.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
var ThemeProvider = /** @class */ (function () {
|
|
23
|
+
/**
|
|
24
|
+
* Construct a new instance of the ThemeProvider class.
|
|
25
|
+
*
|
|
26
|
+
* @param serviceScope - The current service scope.
|
|
27
|
+
* @param theme - Theme to provide.
|
|
28
|
+
*/
|
|
29
|
+
function ThemeProvider(serviceScope, theme, themeV2) {
|
|
30
|
+
this._id = ThemeProvider._instanceCount++;
|
|
31
|
+
this.themeChangedEvent = new SPEvent(this._themeChangedEventName);
|
|
32
|
+
if (theme) {
|
|
33
|
+
this._theme = Object.freeze(theme);
|
|
34
|
+
}
|
|
35
|
+
if (themeV2) {
|
|
36
|
+
this._themeV2 = Object.freeze(themeV2);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
Object.defineProperty(ThemeProvider.prototype, "_themeChangedEventName", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return ThemeProvider._themeChangedEventNameLiteral + this._id;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Clear the currently set theme and raise the themeChangedEvent.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
ThemeProvider.prototype._clearTheme = function () {
|
|
52
|
+
this._theme = undefined;
|
|
53
|
+
this._themeV2 = undefined;
|
|
54
|
+
this._raiseEvent();
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Change the theme and raise the themeChangedEvent.
|
|
58
|
+
*
|
|
59
|
+
* @param theme - The new theme.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
ThemeProvider.prototype._setTheme = function (theme, themeV2) {
|
|
64
|
+
Validate.isNotNullOrUndefined(theme, 'theme');
|
|
65
|
+
this._theme = Object.freeze(theme);
|
|
66
|
+
if (themeV2) {
|
|
67
|
+
this._themeV2 = Object.freeze(themeV2);
|
|
68
|
+
}
|
|
69
|
+
this._raiseEvent();
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* If set, get the current scoped theme.
|
|
73
|
+
*/
|
|
74
|
+
ThemeProvider.prototype.tryGetTheme = function () {
|
|
75
|
+
return this._theme;
|
|
76
|
+
};
|
|
77
|
+
ThemeProvider.prototype.tryGetThemeV2 = function () {
|
|
78
|
+
return this._themeV2;
|
|
79
|
+
};
|
|
80
|
+
ThemeProvider.prototype._raiseEvent = function () {
|
|
81
|
+
_SPEventManager.instance.raiseEvent(this._themeChangedEventName, {
|
|
82
|
+
theme: this._theme,
|
|
83
|
+
themeV2: this._themeV2
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The service key for ThemeProvider.
|
|
88
|
+
*/
|
|
89
|
+
ThemeProvider.serviceKey = ServiceKey.create('sp-component-base.ThemeProvider', ThemeProvider);
|
|
90
|
+
ThemeProvider._themeChangedEventNameLiteral = 'ThemeProvider.themeChangedEvent';
|
|
91
|
+
/**
|
|
92
|
+
* Used to register a unique event for each ThemeProvider instance by appending
|
|
93
|
+
* the instance count to themeChangedEventNameLiteral.
|
|
94
|
+
*/
|
|
95
|
+
ThemeProvider._instanceCount = 0;
|
|
96
|
+
return ThemeProvider;
|
|
97
|
+
}());
|
|
98
|
+
export { ThemeProvider };
|
|
99
|
+
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IFontStyles, IRawStyle } from '@fluentui/react';
|
|
2
|
+
/**
|
|
3
|
+
* IStyleObject extends a raw style objects, but allows selectors to be defined
|
|
4
|
+
* under the selectors node.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { IRawStyle };
|
|
9
|
+
/**
|
|
10
|
+
* Font styles for different sizes.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type { IFontStyles };
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type IReadonlyRawStyle = Readonly<IRawStyle>;
|
|
19
|
+
/**
|
|
20
|
+
* {@inheritdoc IFontStyles}
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export interface IReadonlyFontStyles extends Readonly<IFontStyles> {
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=IFontStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFontStyles.d.ts","sourceRoot":"","sources":["../../../src/themeProvider/themeInterfaces/IFontStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;;;GAKG;AACH,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;;;GAIG;AACH,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,QAAQ,CAAC,WAAW,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPalette.d.ts","sourceRoot":"","sources":["../../../src/themeProvider/themeInterfaces/IPalette.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The collection of all semantic slots for colors used in themes.
|
|
3
|
+
*
|
|
4
|
+
* Note: text colors are defined in ISemanticTextColors.ts.
|
|
5
|
+
*
|
|
6
|
+
* ## Naming Convention
|
|
7
|
+
*
|
|
8
|
+
* The name of a semantic slot can quickly tell you how it's meant to be used. It generally follows this format:
|
|
9
|
+
*
|
|
10
|
+
* [category name][element name][checked state][hovered/pressed/disabled state]
|
|
11
|
+
* [category name] - The “family” that this slot belongs to.
|
|
12
|
+
* [element name] - The name of the thing being targeted, such as the background or border.
|
|
13
|
+
* [checked state] - Whether the thing is checked. We assume things are unchecked by default, so no need to
|
|
14
|
+
* specify the unchecked state.
|
|
15
|
+
* (We used “checked” to refer to anything that is on, selected, toggled, highlighted, emphasized, etc.)
|
|
16
|
+
* [hovered/pressed/disabled state] - One of these states, if applicable. Each of these states are mutually exclusive.
|
|
17
|
+
* Pressed styles overwrite hovered styles, and disabled elements cannot be hovered or pressed.
|
|
18
|
+
*
|
|
19
|
+
* ## Base Slots
|
|
20
|
+
*
|
|
21
|
+
* A basic set of slots that provide many default body styles, such as text, subtext, disabled colors, and so on.
|
|
22
|
+
* If a category doesn't provide the slot you're looking for, use one from this category.
|
|
23
|
+
* For example, the placeholder text on a text input field has no corresponding slot in its category,
|
|
24
|
+
* so you'd use the bodySubtextColor from this category.
|
|
25
|
+
*
|
|
26
|
+
* ## Invariants
|
|
27
|
+
*
|
|
28
|
+
* When color has meaning, we do not want to change the color much theme to theme. For example, we
|
|
29
|
+
* will always want errors to be some shade of red, but we will need to tweak the exact shade so it's
|
|
30
|
+
* legible depending on whether it's an inverted theme or not.
|
|
31
|
+
* Invariant colors should almost never be changed by the theme, the defaults should suffice.
|
|
32
|
+
*
|
|
33
|
+
* ## Input Controls
|
|
34
|
+
*
|
|
35
|
+
* This category contains input components commonly used to denote state, including radio buttons,
|
|
36
|
+
* check boxes, toggle switches, sliders, progress bars, and more.
|
|
37
|
+
*
|
|
38
|
+
* ## Buttons
|
|
39
|
+
*
|
|
40
|
+
* Buttons! And all the flavors thereof.
|
|
41
|
+
*
|
|
42
|
+
* ## Menus
|
|
43
|
+
*
|
|
44
|
+
* Any kind of popup menus uses this category.
|
|
45
|
+
*
|
|
46
|
+
* ## Lists
|
|
47
|
+
*
|
|
48
|
+
* Lists differ from menus in that they are designed to show infinite amounts of items, often scroll,
|
|
49
|
+
* and have a large and complex interaction surface.
|
|
50
|
+
* This category covers all kinds of lists, whether they're typical one-item-per-row lists (like DetailsList)
|
|
51
|
+
* or ones with a tiled layout.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export type { ISemanticColors } from '@fluentui/react';
|
|
56
|
+
//# sourceMappingURL=ISemanticColors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISemanticColors.d.ts","sourceRoot":"","sources":["../../../src/themeProvider/themeInterfaces/ISemanticColors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISemanticTextColors.d.ts","sourceRoot":"","sources":["../../../src/themeProvider/themeInterfaces/ISemanticTextColors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IPartialTheme } from '@fluentui/react';
|
|
2
|
+
/**
|
|
3
|
+
* Collection of theme values, which can be used to programatically style components.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ITheme extends IPartialTheme {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Immutable ITheme.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface IReadonlyTheme extends Readonly<ITheme> {
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ITheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITheme.d.ts","sourceRoot":"","sources":["../../../src/themeProvider/themeInterfaces/ITheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,MAAO,SAAQ,aAAa;CAAG;AAEhD;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,QAAQ,CAAC,MAAM,CAAC;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-component-base",
|
|
3
|
-
"version": "1.22.0-beta.
|
|
3
|
+
"version": "1.22.0-beta.4",
|
|
4
4
|
"description": "SharePoint Framework support for building client-side components",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
@@ -11,33 +11,33 @@
|
|
|
11
11
|
"tsdocFlavor": "AEDoc"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rushstack/heft": "
|
|
14
|
+
"@rushstack/heft": "1.1.1",
|
|
15
15
|
"@types/react": "17.0.45",
|
|
16
16
|
"@types/react-dom": "17.0.17",
|
|
17
17
|
"eslint": "8.57.1",
|
|
18
18
|
"react": "17.0.1",
|
|
19
19
|
"react-dom": "17.0.1",
|
|
20
|
-
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
21
20
|
"@msinternal/react-17-bundle": "17.0.1",
|
|
22
|
-
"@
|
|
23
|
-
"@ms/office-ui-fabric-react-bundle": "1.19.46",
|
|
24
|
-
"@msinternal/react-dom-17-profiling-bundle": "17.0.1",
|
|
21
|
+
"@ms/office-ui-fabric-react-bundle": "1.19.50",
|
|
25
22
|
"@msinternal/react-dom-17-bundle": "17.0.1",
|
|
26
|
-
"@msinternal/
|
|
23
|
+
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
24
|
+
"@msinternal/react-dom-17-profiling-bundle": "17.0.1",
|
|
25
|
+
"@msinternal/sp-safehtml": "0.5.2",
|
|
26
|
+
"@msinternal/sp-telemetry": "0.35.55",
|
|
27
27
|
"@msinternal/spfx-internal-web-build-rig": "0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fluentui/react": "^8.123.1",
|
|
31
31
|
"@fluentui/react-components": "^9.66.5",
|
|
32
|
-
"@swc/helpers": "0.5.12",
|
|
32
|
+
"@swc/helpers": "^0.5.12",
|
|
33
33
|
"tslib": "2.3.1",
|
|
34
|
-
"@microsoft/sp-
|
|
35
|
-
"@microsoft/sp-dynamic-data": "1.22.0-beta.
|
|
36
|
-
"@microsoft/sp-http": "1.22.0-beta.
|
|
37
|
-
"@microsoft/sp-
|
|
38
|
-
"@microsoft/sp-
|
|
39
|
-
"@microsoft/sp-
|
|
40
|
-
"@microsoft/sp-
|
|
34
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
35
|
+
"@microsoft/sp-dynamic-data": "1.22.0-beta.4",
|
|
36
|
+
"@microsoft/sp-http": "1.22.0-beta.4",
|
|
37
|
+
"@microsoft/sp-lodash-subset": "1.22.0-beta.4",
|
|
38
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4",
|
|
39
|
+
"@microsoft/sp-page-context": "1.22.0-beta.4",
|
|
40
|
+
"@microsoft/sp-diagnostics": "1.22.0-beta.4"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
|