@hitachivantara/uikit-react-lab 3.39.5 → 3.39.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.39.6](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.5...@hitachivantara/uikit-react-lab@3.39.6) (2022-02-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tablerenderers:** changing date value to be optional. ([aa109ad](https://github.com/lumada-design/hv-uikit-react/commit/aa109ad802304943c7d91583702bc1c236b6ff97))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.39.5](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.4...@hitachivantara/uikit-react-lab@3.39.5) (2022-02-07)
7
18
 
8
19
  **Note:** Version bump only for package @hitachivantara/uikit-react-lab
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -49,10 +49,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
49
49
  /**
50
50
  * Date to render.
51
51
  */
52
- date: _propTypes.default.string.isRequired,
52
+ date: _propTypes.default.string,
53
53
 
54
54
  /**
55
- * The timezone used to format the date.
55
+ * The date's text representation format.
56
56
  */
57
57
  dateFormat: _propTypes.default.string
58
58
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAG,oBAAQ,YAAM;AAClC,QAAIF,IAAJ,EAAU,OAAO,oBAAMA,IAAN,EAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAHqB,EAGnB,CAACJ,IAAD,EAAOC,UAAP,CAHmB,CAAtB;AAKA,sBAAO,6BAAC,iCAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEM,mBAAUC,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEP,EAAAA,UAAU,EAAEK,mBAAUC;AARK,CAA7B;eAWeR,gB","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","PropTypes","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAG,oBAAQ,YAAM;AAClC,QAAIF,IAAJ,EAAU,OAAO,oBAAMA,IAAN,EAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAHqB,EAGnB,CAACJ,IAAD,EAAOC,UAAP,CAHmB,CAAtB;AAKA,sBAAO,6BAAC,iCAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEM,mBAAUC,MAJW;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEK,mBAAUC;AARK,CAA7B;eAWeR,gB","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -19,10 +19,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
19
19
  /**
20
20
  * Date to render.
21
21
  */
22
- date: PropTypes.string.isRequired,
22
+ date: PropTypes.string,
23
23
 
24
24
  /**
25
- * The timezone used to format the date.
25
+ * The date's text representation format.
26
26
  */
27
27
  dateFormat: PropTypes.string
28
28
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string","isRequired"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAGP,OAAO,CAAC,YAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAGP,OAAO,CAAC,YAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAJW;;AAK3B;AACF;AACA;AACEL,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -20,10 +20,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
20
20
  /**
21
21
  * Date to render.
22
22
  */
23
- date: PropTypes.string.isRequired,
23
+ date: PropTypes.string,
24
24
 
25
25
  /**
26
- * The timezone used to format the date.
26
+ * The date's text representation format.
27
27
  */
28
28
  dateFormat: PropTypes.string
29
29
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string","isRequired"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAAD,KAA0B;AACjD,QAAMC,aAAa,GAAGP,OAAO,CAAC,MAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAAD,KAA0B;AACjD,QAAMC,aAAa,GAAGP,OAAO,CAAC,MAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAJW;;AAK3B;AACF;AACA;AACEL,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "3.39.5",
3
+ "version": "3.39.6",
4
4
  "description": "A collection of contributed React components for the Hitachi Vantara's Design System.",
5
5
  "homepage": "https://github.com/lumada-design/hv-uikit-react",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.16.3",
49
- "@hitachivantara/uikit-react-core": "^3.55.0",
49
+ "@hitachivantara/uikit-react-core": "^3.55.1",
50
50
  "@hitachivantara/uikit-react-icons": "^3.8.0",
51
51
  "@types/react-table": "^7.7.8",
52
52
  "clsx": "^1.1.1",
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "d3894300f3391f85905ca7c5e872bb1ea50e3c99"
86
+ "gitHead": "e5fc10f26f06ed20b9fa4203b5a8f0a0c905391c"
87
87
  }