@bbl-digital/snorre 4.3.20 → 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/NoticeCard.stories.js +6 -3
- package/esm/core/NoticeCard/index.js +5 -2
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +22 -2
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +24 -11
- package/lib/core/NoticeCard/NoticeCard.stories.d.ts.map +1 -1
- package/lib/core/NoticeCard/NoticeCard.stories.js +6 -3
- package/lib/core/NoticeCard/index.d.ts +2 -0
- package/lib/core/NoticeCard/index.d.ts.map +1 -1
- package/lib/core/NoticeCard/index.js +5 -2
- package/lib/core/NoticeCard/models.d.ts +1 -0
- package/lib/core/NoticeCard/models.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +3 -0
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +22 -2
- 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
@@ -44,11 +44,13 @@ const dummyNotice = {
|
|
44
44
|
isCancelled: false,
|
45
45
|
isRead: true,
|
46
46
|
title: 'Dugnad',
|
47
|
-
updatedDate: new Date(2022, 6, 5)
|
47
|
+
updatedDate: new Date(2022, 6, 5),
|
48
|
+
createdBy: 'John Doe'
|
48
49
|
};
|
49
50
|
const Default = exports.Default = {
|
50
51
|
render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
51
|
-
notice: dummyNotice
|
52
|
+
notice: dummyNotice,
|
53
|
+
variant: "myPage"
|
52
54
|
}),
|
53
55
|
name: 'Default'
|
54
56
|
};
|
@@ -59,7 +61,8 @@ const Modal = exports.Modal = {
|
|
59
61
|
isModal: true,
|
60
62
|
onModalClose: () => console.log('close'),
|
61
63
|
onEventDownload: () => console.log('event download'),
|
62
|
-
onAttachmentDownload: e => console.log('file download', e)
|
64
|
+
onAttachmentDownload: e => console.log('file download', e),
|
65
|
+
variant: "myPage"
|
63
66
|
}),
|
64
67
|
name: 'NoticeCard in modal'
|
65
68
|
};
|
@@ -30,7 +30,8 @@ const NoticeCard = ({
|
|
30
30
|
showAllContent,
|
31
31
|
onAttachmentDownload,
|
32
32
|
onEventDownload,
|
33
|
-
onModalClose
|
33
|
+
onModalClose,
|
34
|
+
variant = 'portal'
|
34
35
|
}) => {
|
35
36
|
const [open, setOpen] = (0, _react2.useState)(!!showAllContent);
|
36
37
|
const theme = (0, _react.useTheme)();
|
@@ -50,7 +51,9 @@ const NoticeCard = ({
|
|
50
51
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Div, {
|
51
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoticeMetaInfo.default, {
|
52
53
|
created: notice.createdDate,
|
53
|
-
updated: notice.updatedDate
|
54
|
+
updated: notice.updatedDate,
|
55
|
+
createdBy: notice.createdBy,
|
56
|
+
variant: variant
|
54
57
|
})
|
55
58
|
}), notice.bodyHtml && notice.bodyHtml.length <= 2000 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Div, {
|
56
59
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Html.default, {
|
@@ -14,10 +14,22 @@ const NoticeMetaInfo = ({
|
|
14
14
|
created,
|
15
15
|
updated,
|
16
16
|
hasAttachment,
|
17
|
-
hasEvent
|
17
|
+
hasEvent,
|
18
|
+
createdBy,
|
19
|
+
variant = 'portal',
|
20
|
+
createdByRole = 'board'
|
18
21
|
}) => {
|
19
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NoticeMetaWrapper, {
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
23
|
+
children: [Boolean(createdBy && variant === 'myPage') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
24
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.IconUser, {
|
25
|
+
primary: true
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Text, {
|
27
|
+
semibold: true,
|
28
|
+
size: "14px",
|
29
|
+
primary: true,
|
30
|
+
children: createdBy || 'Ukjent bruker'
|
31
|
+
})]
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
21
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.IconHistory, {
|
22
34
|
primary: true
|
23
35
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.Text, {
|
@@ -40,6 +52,14 @@ const NoticeMetaInfo = ({
|
|
40
52
|
size: "18px"
|
41
53
|
})
|
42
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
|
+
})
|
43
63
|
})]
|
44
64
|
});
|
45
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":"NoticeCard.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/NoticeCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;wBAgBlC,IAAI;AAZT,wBAYS;
|
1
|
+
{"version":3,"file":"NoticeCard.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/NoticeCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;wBAgBlC,IAAI;AAZT,wBAYS;AAmCT,eAAO,MAAM,OAAO;;;CAGnB,CAAA;AAED,eAAO,MAAM,KAAK;;;CAcjB,CAAA"}
|
@@ -44,11 +44,13 @@ const dummyNotice = {
|
|
44
44
|
isCancelled: false,
|
45
45
|
isRead: true,
|
46
46
|
title: 'Dugnad',
|
47
|
-
updatedDate: new Date(2022, 6, 5)
|
47
|
+
updatedDate: new Date(2022, 6, 5),
|
48
|
+
createdBy: 'John Doe'
|
48
49
|
};
|
49
50
|
const Default = exports.Default = {
|
50
51
|
render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
51
|
-
notice: dummyNotice
|
52
|
+
notice: dummyNotice,
|
53
|
+
variant: "myPage"
|
52
54
|
}),
|
53
55
|
name: 'Default'
|
54
56
|
};
|
@@ -59,7 +61,8 @@ const Modal = exports.Modal = {
|
|
59
61
|
isModal: true,
|
60
62
|
onModalClose: () => console.log('close'),
|
61
63
|
onEventDownload: () => console.log('event download'),
|
62
|
-
onAttachmentDownload: e => console.log('file download', e)
|
64
|
+
onAttachmentDownload: e => console.log('file download', e),
|
65
|
+
variant: "myPage"
|
63
66
|
}),
|
64
67
|
name: 'NoticeCard in modal'
|
65
68
|
};
|
@@ -17,6 +17,8 @@ interface IProps {
|
|
17
17
|
onEventDownload?: () => void;
|
18
18
|
/** CB on file download */
|
19
19
|
onAttachmentDownload?: (attachment: INoticeAttachment) => void;
|
20
|
+
/** Variant of the notice */
|
21
|
+
variant?: 'portal' | 'myPage';
|
20
22
|
}
|
21
23
|
declare const NoticeCard: FC<IProps>;
|
22
24
|
export default NoticeCard;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAQ3C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAOrD,UAAU,MAAM;IACd,iBAAiB;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAA;IAC7C,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,0BAA0B;IAC1B,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAQ3C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAOrD,UAAU,MAAM;IACd,iBAAiB;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAA;IAC7C,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,0BAA0B;IAC1B,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC9D,4BAA4B;IAC5B,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC9B;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,MAAM,CAqG1B,CAAA;AAED,eAAe,UAAU,CAAA"}
|
@@ -30,7 +30,8 @@ const NoticeCard = ({
|
|
30
30
|
showAllContent,
|
31
31
|
onAttachmentDownload,
|
32
32
|
onEventDownload,
|
33
|
-
onModalClose
|
33
|
+
onModalClose,
|
34
|
+
variant = 'portal'
|
34
35
|
}) => {
|
35
36
|
const [open, setOpen] = (0, _react2.useState)(!!showAllContent);
|
36
37
|
const theme = (0, _react.useTheme)();
|
@@ -50,7 +51,9 @@ const NoticeCard = ({
|
|
50
51
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Div, {
|
51
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoticeMetaInfo.default, {
|
52
53
|
created: notice.createdDate,
|
53
|
-
updated: notice.updatedDate
|
54
|
+
updated: notice.updatedDate,
|
55
|
+
createdBy: notice.createdBy,
|
56
|
+
variant: variant
|
54
57
|
})
|
55
58
|
}), notice.bodyHtml && notice.bodyHtml.length <= 2000 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Div, {
|
56
59
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Html.default, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,IAAI,CAAA;IACpB,YAAY,EAAE,IAAI,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,QAAQ,EAAE,IAAI,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,IAAI,CAAA;IACjB,WAAW,EAAE,iBAAiB,EAAE,CAAA;
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/packages/core/NoticeCard/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,IAAI,CAAA;IACpB,YAAY,EAAE,IAAI,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,QAAQ,EAAE,IAAI,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,IAAI,CAAA;IACjB,WAAW,EAAE,iBAAiB,EAAE,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,IAAI,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
@@ -4,6 +4,9 @@ interface IProps {
|
|
4
4
|
updated: Date;
|
5
5
|
hasAttachment?: boolean;
|
6
6
|
hasEvent?: boolean;
|
7
|
+
createdBy?: string;
|
8
|
+
variant: 'portal' | 'myPage';
|
9
|
+
createdByRole?: 'resident' | 'board';
|
7
10
|
}
|
8
11
|
declare const NoticeMetaInfo: React.FC<IProps>;
|
9
12
|
export default NoticeMetaInfo;
|
@@ -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"}
|
@@ -14,10 +14,22 @@ const NoticeMetaInfo = ({
|
|
14
14
|
created,
|
15
15
|
updated,
|
16
16
|
hasAttachment,
|
17
|
-
hasEvent
|
17
|
+
hasEvent,
|
18
|
+
createdBy,
|
19
|
+
variant = 'portal',
|
20
|
+
createdByRole = 'board'
|
18
21
|
}) => {
|
19
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NoticeMetaWrapper, {
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
23
|
+
children: [Boolean(createdBy && variant === 'myPage') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
24
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.IconUser, {
|
25
|
+
primary: true
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Text, {
|
27
|
+
semibold: true,
|
28
|
+
size: "14px",
|
29
|
+
primary: true,
|
30
|
+
children: createdBy || 'Ukjent bruker'
|
31
|
+
})]
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Group, {
|
21
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.IconHistory, {
|
22
34
|
primary: true
|
23
35
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.Text, {
|
@@ -40,6 +52,14 @@ const NoticeMetaInfo = ({
|
|
40
52
|
size: "18px"
|
41
53
|
})
|
42
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
|
+
})
|
43
63
|
})]
|
44
64
|
});
|
45
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
|
+
});
|