@bbl-digital/snorre 4.3.21 → 4.3.22
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/bundle.js +1 -1
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +10 -1
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +24 -11
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +1 -0
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +10 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts +4 -0
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +24 -11
- package/package.json +1 -1
@@ -16,7 +16,8 @@ const NoticeMetaInfo = ({
|
|
16
16
|
hasAttachment,
|
17
17
|
hasEvent,
|
18
18
|
createdBy,
|
19
|
-
variant = 'portal'
|
19
|
+
variant = 'portal',
|
20
|
+
createdByRole = 'board'
|
20
21
|
}) => {
|
21
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NoticeMetaWrapper, {
|
22
23
|
children: [Boolean(createdBy && variant === 'myPage') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
@@ -51,6 +52,14 @@ const NoticeMetaInfo = ({
|
|
51
52
|
size: "18px"
|
52
53
|
})
|
53
54
|
})]
|
55
|
+
}), createdByRole && variant === 'myPage' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.TagWrapper, {
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Tag, {
|
57
|
+
light: true,
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Text, {
|
59
|
+
size: "14px",
|
60
|
+
children: createdByRole === 'board' ? 'Styret' : 'Beboer'
|
61
|
+
})
|
62
|
+
})
|
54
63
|
})]
|
55
64
|
});
|
56
65
|
};
|
@@ -3,27 +3,27 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NoticeMetaWrapper = exports.Group = exports.Div = void 0;
|
6
|
+
exports.TagWrapper = exports.NoticeMetaWrapper = exports.Group = exports.Div = void 0;
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
9
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
10
10
|
const NoticeMetaWrapper = exports.NoticeMetaWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
11
|
-
target: "
|
11
|
+
target: "evjeu6p3"
|
12
12
|
} : {
|
13
|
-
target: "
|
13
|
+
target: "evjeu6p3",
|
14
14
|
label: "NoticeMetaWrapper"
|
15
15
|
})(process.env.NODE_ENV === "production" ? {
|
16
|
-
name: "
|
17
|
-
styles: "display:flex"
|
16
|
+
name: "1hi4meq",
|
17
|
+
styles: "display:flex;position:relative;width:100%"
|
18
18
|
} : {
|
19
|
-
name: "
|
20
|
-
styles: "display:flex",
|
19
|
+
name: "1hi4meq",
|
20
|
+
styles: "display:flex;position:relative;width:100%",
|
21
21
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
22
22
|
});
|
23
23
|
const Group = exports.Group = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
24
|
-
target: "
|
24
|
+
target: "evjeu6p2"
|
25
25
|
} : {
|
26
|
-
target: "
|
26
|
+
target: "evjeu6p2",
|
27
27
|
label: "Group"
|
28
28
|
})(process.env.NODE_ENV === "production" ? {
|
29
29
|
name: "7bcib0",
|
@@ -34,8 +34,21 @@ const Group = exports.Group = /*#__PURE__*/(0, _base.default)("div", process.env
|
|
34
34
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
35
35
|
});
|
36
36
|
const Div = exports.Div = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
37
|
+
target: "evjeu6p1"
|
38
|
+
} : {
|
39
|
+
target: "evjeu6p1",
|
40
|
+
label: "Div"
|
41
|
+
})();
|
42
|
+
const TagWrapper = exports.TagWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
37
43
|
target: "evjeu6p0"
|
38
44
|
} : {
|
39
45
|
target: "evjeu6p0",
|
40
|
-
label: "
|
41
|
-
})(
|
46
|
+
label: "TagWrapper"
|
47
|
+
})(process.env.NODE_ENV === "production" ? {
|
48
|
+
name: "62ofw5",
|
49
|
+
styles: "justify-self:flex-end;margin-left:auto"
|
50
|
+
} : {
|
51
|
+
name: "62ofw5",
|
52
|
+
styles: "justify-self:flex-end;margin-left:auto",
|
53
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
54
|
+
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/core/NoticeCard/privateComponents/NoticeMetaInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/core/NoticeCard/privateComponents/NoticeMetaInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,UAAU,MAAM;IACd,OAAO,EAAE,IAAI,CAAA;IACb,OAAO,EAAE,IAAI,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC5B,aAAa,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;CACrC;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAqDpC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
@@ -16,7 +16,8 @@ const NoticeMetaInfo = ({
|
|
16
16
|
hasAttachment,
|
17
17
|
hasEvent,
|
18
18
|
createdBy,
|
19
|
-
variant = 'portal'
|
19
|
+
variant = 'portal',
|
20
|
+
createdByRole = 'board'
|
20
21
|
}) => {
|
21
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NoticeMetaWrapper, {
|
22
23
|
children: [Boolean(createdBy && variant === 'myPage') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
@@ -51,6 +52,14 @@ const NoticeMetaInfo = ({
|
|
51
52
|
size: "18px"
|
52
53
|
})
|
53
54
|
})]
|
55
|
+
}), createdByRole && variant === 'myPage' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.TagWrapper, {
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Tag, {
|
57
|
+
light: true,
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Text, {
|
59
|
+
size: "14px",
|
60
|
+
children: createdByRole === 'board' ? 'Styret' : 'Beboer'
|
61
|
+
})
|
62
|
+
})
|
54
63
|
})]
|
55
64
|
});
|
56
65
|
};
|
@@ -10,4 +10,8 @@ export declare const Div: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme;
|
11
11
|
as?: React.ElementType;
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
13
|
+
export declare const TagWrapper: import("@emotion/styled").StyledComponent<{
|
14
|
+
theme?: import("@emotion/react").Theme;
|
15
|
+
as?: React.ElementType;
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
13
17
|
//# sourceMappingURL=styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/packages/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/packages/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;SAoBqH,MAAO,WAAW;yGAhBpK,CAAA;AAED,eAAO,MAAM,KAAK;;SAciI,MAAO,WAAW;yGARpK,CAAA;AAED,eAAO,MAAM,GAAG;;SAMmI,MAAO,WAAW;yGANtI,CAAA;AAE/B,eAAO,MAAM,UAAU;;SAI4H,MAAO,WAAW;yGADpK,CAAA"}
|
@@ -3,27 +3,27 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NoticeMetaWrapper = exports.Group = exports.Div = void 0;
|
6
|
+
exports.TagWrapper = exports.NoticeMetaWrapper = exports.Group = exports.Div = void 0;
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
9
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
10
10
|
const NoticeMetaWrapper = exports.NoticeMetaWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
11
|
-
target: "
|
11
|
+
target: "evjeu6p3"
|
12
12
|
} : {
|
13
|
-
target: "
|
13
|
+
target: "evjeu6p3",
|
14
14
|
label: "NoticeMetaWrapper"
|
15
15
|
})(process.env.NODE_ENV === "production" ? {
|
16
|
-
name: "
|
17
|
-
styles: "display:flex"
|
16
|
+
name: "1hi4meq",
|
17
|
+
styles: "display:flex;position:relative;width:100%"
|
18
18
|
} : {
|
19
|
-
name: "
|
20
|
-
styles: "display:flex",
|
19
|
+
name: "1hi4meq",
|
20
|
+
styles: "display:flex;position:relative;width:100%",
|
21
21
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
22
22
|
});
|
23
23
|
const Group = exports.Group = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
24
|
-
target: "
|
24
|
+
target: "evjeu6p2"
|
25
25
|
} : {
|
26
|
-
target: "
|
26
|
+
target: "evjeu6p2",
|
27
27
|
label: "Group"
|
28
28
|
})(process.env.NODE_ENV === "production" ? {
|
29
29
|
name: "7bcib0",
|
@@ -34,8 +34,21 @@ const Group = exports.Group = /*#__PURE__*/(0, _base.default)("div", process.env
|
|
34
34
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
35
35
|
});
|
36
36
|
const Div = exports.Div = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
37
|
+
target: "evjeu6p1"
|
38
|
+
} : {
|
39
|
+
target: "evjeu6p1",
|
40
|
+
label: "Div"
|
41
|
+
})();
|
42
|
+
const TagWrapper = exports.TagWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
37
43
|
target: "evjeu6p0"
|
38
44
|
} : {
|
39
45
|
target: "evjeu6p0",
|
40
|
-
label: "
|
41
|
-
})(
|
46
|
+
label: "TagWrapper"
|
47
|
+
})(process.env.NODE_ENV === "production" ? {
|
48
|
+
name: "62ofw5",
|
49
|
+
styles: "justify-self:flex-end;margin-left:auto"
|
50
|
+
} : {
|
51
|
+
name: "62ofw5",
|
52
|
+
styles: "justify-self:flex-end;margin-left:auto",
|
53
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
54
|
+
});
|