@sap-ux/ui-components 1.0.13 → 1.0.15
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/components/UIPersona/UIPersona.d.ts +28 -0
- package/dist/components/UIPersona/UIPersona.d.ts.map +1 -0
- package/dist/components/UIPersona/UIPersona.js +49 -0
- package/dist/components/UIPersona/UIPersona.js.map +1 -0
- package/dist/components/UIPersona/index.d.ts +2 -0
- package/dist/components/UIPersona/index.d.ts.map +1 -0
- package/dist/components/UIPersona/index.js +14 -0
- package/dist/components/UIPersona/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/package.json +3 -3
- package/storybook/iframe.html +1 -1
- package/storybook/{main.ec4ea9cc.iframe.bundle.js → main.d69c2f94.iframe.bundle.js} +8 -8
- package/storybook/project.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IPersonaProps } from '@fluentui/react';
|
|
3
|
+
import { PersonaSize, PersonaPresence } from '@fluentui/react';
|
|
4
|
+
export { PersonaSize as UIPersonaSize };
|
|
5
|
+
export { PersonaPresence as UIPersonaPresence };
|
|
6
|
+
export declare type UIPersonaProps = IPersonaProps;
|
|
7
|
+
/**
|
|
8
|
+
* UIPersona component
|
|
9
|
+
* based on https://developer.microsoft.com/en-us/fluentui#/controls/web/persona
|
|
10
|
+
*
|
|
11
|
+
* @exports
|
|
12
|
+
* @class UIPersona
|
|
13
|
+
* @extends {React.Component<IPersonaProps, {}>}
|
|
14
|
+
*/
|
|
15
|
+
export declare class UIPersona extends React.Component<IPersonaProps, {}> {
|
|
16
|
+
/**
|
|
17
|
+
* Initializes component properties.
|
|
18
|
+
*
|
|
19
|
+
* @param props
|
|
20
|
+
*/
|
|
21
|
+
constructor(props: IPersonaProps);
|
|
22
|
+
private personaStyles;
|
|
23
|
+
/**
|
|
24
|
+
* @returns {JSX.Element}
|
|
25
|
+
*/
|
|
26
|
+
render(): JSX.Element;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=UIPersona.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UIPersona.d.ts","sourceRoot":"","sources":["../../../src/components/UIPersona/UIPersona.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAsC,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAW,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAExE,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,CAAC;AACxC,OAAO,EAAE,eAAe,IAAI,iBAAiB,EAAE,CAAC;AAChD,oBAAY,cAAc,GAAG,aAAa,CAAC;AAE3C;;;;;;;GAOG;AACH,qBAAa,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE,CAAC;IAC7D;;;;OAIG;gBACgB,KAAK,EAAE,aAAa;IAIvC,OAAO,CAAC,aAAa,CAYnB;IAEF;;OAEG;IACH,MAAM,IAAI,GAAG,CAAC,OAAO;CAGxB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UIPersona = exports.UIPersonaPresence = exports.UIPersonaSize = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const react_2 = require("@fluentui/react");
|
|
9
|
+
Object.defineProperty(exports, "UIPersonaSize", { enumerable: true, get: function () { return react_2.PersonaSize; } });
|
|
10
|
+
Object.defineProperty(exports, "UIPersonaPresence", { enumerable: true, get: function () { return react_2.PersonaPresence; } });
|
|
11
|
+
/**
|
|
12
|
+
* UIPersona component
|
|
13
|
+
* based on https://developer.microsoft.com/en-us/fluentui#/controls/web/persona
|
|
14
|
+
*
|
|
15
|
+
* @exports
|
|
16
|
+
* @class UIPersona
|
|
17
|
+
* @extends {React.Component<IPersonaProps, {}>}
|
|
18
|
+
*/
|
|
19
|
+
class UIPersona extends react_1.default.Component {
|
|
20
|
+
/**
|
|
21
|
+
* Initializes component properties.
|
|
22
|
+
*
|
|
23
|
+
* @param props
|
|
24
|
+
*/
|
|
25
|
+
constructor(props) {
|
|
26
|
+
super(props);
|
|
27
|
+
this.personaStyles = (_props) => {
|
|
28
|
+
return {
|
|
29
|
+
...{
|
|
30
|
+
root: {},
|
|
31
|
+
details: {},
|
|
32
|
+
primaryText: {},
|
|
33
|
+
secondaryText: {},
|
|
34
|
+
tertiaryText: {},
|
|
35
|
+
optionalText: {},
|
|
36
|
+
textContent: {}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @returns {JSX.Element}
|
|
43
|
+
*/
|
|
44
|
+
render() {
|
|
45
|
+
return react_1.default.createElement(react_2.Persona, { ...this.props, styles: this.personaStyles });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.UIPersona = UIPersona;
|
|
49
|
+
//# sourceMappingURL=UIPersona.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UIPersona.js","sourceRoot":"","sources":["../../../src/components/UIPersona/UIPersona.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,2CAAwE;AAEhD,8FAFN,mBAAW,OAEQ;AACT,kGAHG,uBAAe,OAGD;AAG7C;;;;;;;GAOG;AACH,MAAa,SAAU,SAAQ,eAAK,CAAC,SAA4B;IAC7D;;;;OAIG;IACH,YAAmB,KAAoB;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;QAGT,kBAAa,GAAG,CAAC,MAA0B,EAA2B,EAAE;YAC5E,OAAO;gBACH,GAAG;oBACC,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,EAAE;oBACf,aAAa,EAAE,EAAE;oBACjB,YAAY,EAAE,EAAE;oBAChB,YAAY,EAAE,EAAE;oBAChB,WAAW,EAAE,EAAE;iBAClB;aACJ,CAAC;QACN,CAAC,CAAC;IAdF,CAAC;IAgBD;;OAEG;IACH,MAAM;QACF,OAAO,8BAAC,eAAO,OAAK,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,GAAI,CAAC;IACnE,CAAC;CACJ;AA9BD,8BA8BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UIPersona/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./UIPersona"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UIPersona/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./UILoader"), exports);
|
|
|
31
31
|
__exportStar(require("./UIMessageBar"), exports);
|
|
32
32
|
__exportStar(require("./UIModal"), exports);
|
|
33
33
|
__exportStar(require("./UIOverlay"), exports);
|
|
34
|
+
__exportStar(require("./UIPersona"), exports);
|
|
34
35
|
__exportStar(require("./UISearchBox"), exports);
|
|
35
36
|
__exportStar(require("./UISection"), exports);
|
|
36
37
|
__exportStar(require("./UITable"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B;AAC7B,kDAAgC;AAChC,+CAA6B;AAC7B,qDAAmC;AACnC,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B;AAC5B,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAC3B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B;AAC7B,kDAAgC;AAChC,+CAA6B;AAC7B,qDAAmC;AACnC,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B;AAC5B,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B;AAC5B,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAC3B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,iDAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "SAP UI Components Library",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"uuid": "3.4.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"react": "
|
|
30
|
-
"react-dom": "
|
|
29
|
+
"react": ">=16.14.0",
|
|
30
|
+
"react-dom": ">=16.14.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"storybook-addon-turbo-build": "1.1.0",
|
package/storybook/iframe.html
CHANGED
|
@@ -377,4 +377,4 @@
|
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"*.story.tsx","importPathMatcher":"^\\.[\\\\/](?:stories\\/(?!\\.)(?=.)[^/]*?\\.story\\.tsx)$"}];</script><script src="runtime~main.3e35adfa.iframe.bundle.js"></script><script src="93.546e1b61.iframe.bundle.js"></script><script src="main.
|
|
380
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"*.story.tsx","importPathMatcher":"^\\.[\\\\/](?:stories\\/(?!\\.)(?=.)[^/]*?\\.story\\.tsx)$"}];</script><script src="runtime~main.3e35adfa.iframe.bundle.js"></script><script src="93.546e1b61.iframe.bundle.js"></script><script src="main.d69c2f94.iframe.bundle.js"></script></body></html>
|