@bbl-digital/snorre 2.4.16 → 2.4.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -31284,7 +31284,8 @@
31284
31284
  created,
31285
31285
  updated,
31286
31286
  hasAttachment,
31287
- hasEvent
31287
+ hasEvent,
31288
+ updatedBy
31288
31289
  }) => {
31289
31290
  return /*#__PURE__*/jsxRuntime.jsxs(NoticeMetaWrapper, {
31290
31291
  children: [/*#__PURE__*/jsxRuntime.jsxs(Group, {
@@ -31303,7 +31304,7 @@
31303
31304
  semibold: true,
31304
31305
  size: "14px",
31305
31306
  primary: true,
31306
- children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})`]
31307
+ children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})${updatedBy ? ` av ${updatedBy}` : ''} `]
31307
31308
  })]
31308
31309
  }), (hasAttachment || hasEvent) && /*#__PURE__*/jsxRuntime.jsxs(Group, {
31309
31310
  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.16",
3
+ "version": "2.4.20",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",