first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
@@ -0,0 +1,9 @@
import * as React from 'react';
import type { IButtonProps } from '../Button.types';
import type { JSXElement } from '@fluentui/utilities';
/**
* {@docCategory MessageBar}
*/
export declare class MessageBarButton extends React.Component<IButtonProps, {}> {
render(): JSXElement;
}
@@ -0,0 +1,24 @@
import { __assign, __decorate, __extends } from "tslib";
import * as React from 'react';
import { DefaultButton } from '../DefaultButton/DefaultButton';
import { customizable, nullRender } from '../../../Utilities';
import { getStyles } from './MessageBarButton.styles';
/**
* {@docCategory MessageBar}
*/
var MessageBarButton = /** @class */ (function (_super) {
__extends(MessageBarButton, _super);
function MessageBarButton() {
return _super !== null && _super.apply(this, arguments) || this;
}
MessageBarButton.prototype.render = function () {
var _a = this.props, styles = _a.styles, theme = _a.theme;
return React.createElement(DefaultButton, __assign({}, this.props, { styles: getStyles(theme, styles), onRenderDescription: nullRender }));
};
MessageBarButton = __decorate([
customizable('MessageBarButton', ['theme', 'styles'], true)
], MessageBarButton);
return MessageBarButton;
}(React.Component));
export { MessageBarButton };
//# sourceMappingURL=MessageBarButton.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MessageBarButton.js","sourceRoot":"../src/","sources":["components/Button/MessageBarButton/MessageBarButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD;;GAEG;AAEH;IAAsC,oCAAiC;IAAvE;;IAMA,CAAC;IALQ,iCAAM,GAAb;QACQ,IAAA,KAAoB,IAAI,CAAC,KAAK,EAA5B,MAAM,YAAA,EAAE,KAAK,WAAe,CAAC;QAErC,OAAO,oBAAC,aAAa,eAAK,IAAI,CAAC,KAAK,IAAE,MAAM,EAAE,SAAS,CAAC,KAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,EAAE,UAAU,IAAI,CAAC;IAC/G,CAAC;IALU,gBAAgB;QAD5B,YAAY,CAAC,kBAAkB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC;OAC/C,gBAAgB,CAM5B;IAAD,uBAAC;CAAA,AAND,CAAsC,KAAK,CAAC,SAAS,GAMpD;SANY,gBAAgB","sourcesContent":["import * as React from 'react';\nimport { DefaultButton } from '../DefaultButton/DefaultButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './MessageBarButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\nimport type { JSXElement } from '@fluentui/utilities';\n\n/**\n * {@docCategory MessageBar}\n */\n@customizable('MessageBarButton', ['theme', 'styles'], true)\nexport class MessageBarButton extends React.Component<IButtonProps, {}> {\n public render(): JSXElement {\n const { styles, theme } = this.props;\n\n return <DefaultButton {...this.props} styles={getStyles(theme!, styles)} onRenderDescription={nullRender} />;\n }\n}\n"]}
@@ -0,0 +1,3 @@
import type { IButtonStyles } from '../Button.types';
import type { ITheme } from '../../../Styling';
export declare const getStyles: (theme: ITheme, customStyles?: IButtonStyles) => IButtonStyles;
@@ -0,0 +1,20 @@
import { concatStyleSets, getFocusStyle } from '../../../Styling';
import { memoizeFunction } from '../../../Utilities';
export var getStyles = memoizeFunction(function (theme, customStyles) {
return concatStyleSets({
root: [
getFocusStyle(theme, {
inset: 1,
highContrastStyle: {
outlineOffset: '-4px',
outline: '1px solid Window',
},
borderColor: 'transparent',
}),
{
height: 24,
},
],
}, customStyles);
});
//# sourceMappingURL=MessageBarButton.styles.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MessageBarButton.styles.js","sourceRoot":"../src/","sources":["components/Button/MessageBarButton/MessageBarButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,MAAM,CAAC,IAAM,SAAS,GAAG,eAAe,CACtC,UAAC,KAAa,EAAE,YAA4B;IAC1C,OAAA,eAAe,CACb;QACE,IAAI,EAAE;YACJ,aAAa,CAAC,KAAK,EAAE;gBACnB,KAAK,EAAE,CAAC;gBACR,iBAAiB,EAAE;oBACjB,aAAa,EAAE,MAAM;oBACrB,OAAO,EAAE,kBAAkB;iBAC5B;gBACD,WAAW,EAAE,aAAa;aAC3B,CAAC;YACF;gBACE,MAAM,EAAE,EAAE;aACX;SACF;KACF,EACD,YAAY,CACb;AAjBD,CAiBC,CACJ,CAAC","sourcesContent":["import { concatStyleSets, getFocusStyle } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nexport const getStyles = memoizeFunction(\n (theme: ITheme, customStyles?: IButtonStyles): IButtonStyles =>\n concatStyleSets(\n {\n root: [\n getFocusStyle(theme, {\n inset: 1,\n highContrastStyle: {\n outlineOffset: '-4px',\n outline: '1px solid Window',\n },\n borderColor: 'transparent',\n }),\n {\n height: 24,\n },\n ],\n },\n customStyles,\n ),\n);\n"]}