@bbl-digital/snorre 2.4.18 → 2.4.21

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -31291,7 +31291,8 @@
31291
31291
  created,
31292
31292
  updated,
31293
31293
  hasAttachment,
31294
- hasEvent
31294
+ hasEvent,
31295
+ updatedBy
31295
31296
  }) => {
31296
31297
  return /*#__PURE__*/jsxRuntime.jsxs(NoticeMetaWrapper, {
31297
31298
  children: [/*#__PURE__*/jsxRuntime.jsxs(Group, {
@@ -31310,7 +31311,7 @@
31310
31311
  semibold: true,
31311
31312
  size: "14px",
31312
31313
  primary: true,
31313
- children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})`]
31314
+ children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})${updatedBy ? ` av ${updatedBy}` : ''} `]
31314
31315
  })]
31315
31316
  }), (hasAttachment || hasEvent) && /*#__PURE__*/jsxRuntime.jsxs(Group, {
31316
31317
  children: [hasAttachment && /*#__PURE__*/jsxRuntime.jsx(Div$1, {
@@ -10,7 +10,8 @@ const NoticeMetaInfo = ({
10
10
  created,
11
11
  updated,
12
12
  hasAttachment,
13
- hasEvent
13
+ hasEvent,
14
+ updatedBy
14
15
  }) => {
15
16
  return /*#__PURE__*/_jsxs(NoticeMetaWrapper, {
16
17
  children: [/*#__PURE__*/_jsxs(Group, {
@@ -29,7 +30,7 @@ const NoticeMetaInfo = ({
29
30
  semibold: true,
30
31
  size: "14px",
31
32
  primary: true,
32
- children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})`]
33
+ children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})${updatedBy ? ` av ${updatedBy}` : ''} `]
33
34
  })]
34
35
  }), (hasAttachment || hasEvent) && /*#__PURE__*/_jsxs(Group, {
35
36
  children: [hasAttachment && /*#__PURE__*/_jsx(Div, {
@@ -5,6 +5,7 @@ interface IProps {
5
5
  updated: Date;
6
6
  hasAttachment?: boolean;
7
7
  hasEvent?: boolean;
8
+ updatedBy?: string;
8
9
  }
9
10
  declare const NoticeMetaInfo: React.FC<IProps>;
10
11
  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;AAYzB,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,IAAI,CAAA;IACb,OAAO,EAAE,IAAI,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAwCpC,CAAA;AAED,eAAe,cAAc,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;AAYzB,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,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;CACnB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA2CpC,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -10,7 +10,8 @@ const NoticeMetaInfo = ({
10
10
  created,
11
11
  updated,
12
12
  hasAttachment,
13
- hasEvent
13
+ hasEvent,
14
+ updatedBy
14
15
  }) => {
15
16
  return /*#__PURE__*/_jsxs(NoticeMetaWrapper, {
16
17
  children: [/*#__PURE__*/_jsxs(Group, {
@@ -29,7 +30,7 @@ const NoticeMetaInfo = ({
29
30
  semibold: true,
30
31
  size: "14px",
31
32
  primary: true,
32
- children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})`]
33
+ children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})${updatedBy ? ` av ${updatedBy}` : ''} `]
33
34
  })]
34
35
  }), (hasAttachment || hasEvent) && /*#__PURE__*/_jsxs(Group, {
35
36
  children: [hasAttachment && /*#__PURE__*/_jsx(Div, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "2.4.18",
3
+ "version": "2.4.21",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",