@hitachivantara/uikit-react-lab 3.45.11 → 3.46.1

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.
Files changed (91) hide show
  1. package/dist/ProgressBar/ProgressBar.d.ts +2 -8
  2. package/dist/ProgressBar/ProgressBar.js +3 -15
  3. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  4. package/dist/ProgressBar/ProgressBarSimulator.js +0 -2
  5. package/dist/ProgressBar/ProgressBarSimulator.js.map +1 -1
  6. package/dist/ProgressBar/styles.js +0 -5
  7. package/dist/ProgressBar/styles.js.map +1 -1
  8. package/dist/Table/Table.d.ts +5 -1
  9. package/dist/Table/Table.js +20 -5
  10. package/dist/Table/Table.js.map +1 -1
  11. package/dist/Table/TableBody/TableBody.js +33 -5
  12. package/dist/Table/TableBody/TableBody.js.map +1 -1
  13. package/dist/Table/TableBody/styles.js.map +1 -1
  14. package/dist/Table/TableCell/TableCell.d.ts +3 -1
  15. package/dist/Table/TableCell/TableCell.js +22 -2
  16. package/dist/Table/TableCell/TableCell.js.map +1 -1
  17. package/dist/Table/TableCell/styles.js +28 -0
  18. package/dist/Table/TableCell/styles.js.map +1 -1
  19. package/dist/Table/TableHeader/TableHeader.d.ts +1 -0
  20. package/dist/Table/TableHeader/TableHeader.js +6 -1
  21. package/dist/Table/TableHeader/TableHeader.js.map +1 -1
  22. package/dist/Table/TableHeader/styles.js +9 -0
  23. package/dist/Table/TableHeader/styles.js.map +1 -1
  24. package/dist/Table/TableRow/TableRow.d.ts +3 -1
  25. package/dist/Table/TableRow/TableRow.js +16 -2
  26. package/dist/Table/TableRow/TableRow.js.map +1 -1
  27. package/dist/Table/TableRow/styles.js +28 -3
  28. package/dist/Table/TableRow/styles.js.map +1 -1
  29. package/dist/Table/styles.js +5 -0
  30. package/dist/Table/styles.js.map +1 -1
  31. package/dist/legacy/ProgressBar/ProgressBar.d.ts +2 -8
  32. package/dist/legacy/ProgressBar/ProgressBar.js +3 -15
  33. package/dist/legacy/ProgressBar/ProgressBar.js.map +1 -1
  34. package/dist/legacy/ProgressBar/ProgressBarSimulator.js +0 -2
  35. package/dist/legacy/ProgressBar/ProgressBarSimulator.js.map +1 -1
  36. package/dist/legacy/ProgressBar/styles.js +0 -5
  37. package/dist/legacy/ProgressBar/styles.js.map +1 -1
  38. package/dist/legacy/Table/Table.d.ts +5 -1
  39. package/dist/legacy/Table/Table.js +21 -6
  40. package/dist/legacy/Table/Table.js.map +1 -1
  41. package/dist/legacy/Table/TableBody/TableBody.js +31 -6
  42. package/dist/legacy/Table/TableBody/TableBody.js.map +1 -1
  43. package/dist/legacy/Table/TableBody/styles.js.map +1 -1
  44. package/dist/legacy/Table/TableCell/TableCell.d.ts +3 -1
  45. package/dist/legacy/Table/TableCell/TableCell.js +22 -2
  46. package/dist/legacy/Table/TableCell/TableCell.js.map +1 -1
  47. package/dist/legacy/Table/TableCell/styles.js +28 -0
  48. package/dist/legacy/Table/TableCell/styles.js.map +1 -1
  49. package/dist/legacy/Table/TableHeader/TableHeader.d.ts +1 -0
  50. package/dist/legacy/Table/TableHeader/TableHeader.js +6 -1
  51. package/dist/legacy/Table/TableHeader/TableHeader.js.map +1 -1
  52. package/dist/legacy/Table/TableHeader/styles.js +9 -0
  53. package/dist/legacy/Table/TableHeader/styles.js.map +1 -1
  54. package/dist/legacy/Table/TableRow/TableRow.d.ts +3 -1
  55. package/dist/legacy/Table/TableRow/TableRow.js +16 -2
  56. package/dist/legacy/Table/TableRow/TableRow.js.map +1 -1
  57. package/dist/legacy/Table/TableRow/styles.js +27 -3
  58. package/dist/legacy/Table/TableRow/styles.js.map +1 -1
  59. package/dist/legacy/Table/styles.js +5 -0
  60. package/dist/legacy/Table/styles.js.map +1 -1
  61. package/dist/modern/ProgressBar/ProgressBar.d.ts +2 -8
  62. package/dist/modern/ProgressBar/ProgressBar.js +3 -14
  63. package/dist/modern/ProgressBar/ProgressBar.js.map +1 -1
  64. package/dist/modern/ProgressBar/ProgressBarSimulator.js +0 -2
  65. package/dist/modern/ProgressBar/ProgressBarSimulator.js.map +1 -1
  66. package/dist/modern/ProgressBar/styles.js +0 -5
  67. package/dist/modern/ProgressBar/styles.js.map +1 -1
  68. package/dist/modern/Table/Table.d.ts +5 -1
  69. package/dist/modern/Table/Table.js +21 -7
  70. package/dist/modern/Table/Table.js.map +1 -1
  71. package/dist/modern/Table/TableBody/TableBody.js +30 -7
  72. package/dist/modern/Table/TableBody/TableBody.js.map +1 -1
  73. package/dist/modern/Table/TableBody/styles.js.map +1 -1
  74. package/dist/modern/Table/TableCell/TableCell.d.ts +3 -1
  75. package/dist/modern/Table/TableCell/TableCell.js +22 -2
  76. package/dist/modern/Table/TableCell/TableCell.js.map +1 -1
  77. package/dist/modern/Table/TableCell/styles.js +28 -0
  78. package/dist/modern/Table/TableCell/styles.js.map +1 -1
  79. package/dist/modern/Table/TableHeader/TableHeader.d.ts +1 -0
  80. package/dist/modern/Table/TableHeader/TableHeader.js +6 -1
  81. package/dist/modern/Table/TableHeader/TableHeader.js.map +1 -1
  82. package/dist/modern/Table/TableHeader/styles.js +9 -0
  83. package/dist/modern/Table/TableHeader/styles.js.map +1 -1
  84. package/dist/modern/Table/TableRow/TableRow.d.ts +3 -1
  85. package/dist/modern/Table/TableRow/TableRow.js +16 -2
  86. package/dist/modern/Table/TableRow/TableRow.js.map +1 -1
  87. package/dist/modern/Table/TableRow/styles.js +26 -3
  88. package/dist/modern/Table/TableRow/styles.js.map +1 -1
  89. package/dist/modern/Table/styles.js +5 -0
  90. package/dist/modern/Table/styles.js.map +1 -1
  91. package/package.json +3 -3
@@ -9,12 +9,10 @@ export type HvProgressBarClassKey =
9
9
  | "progressBar"
10
10
  | "progressDone"
11
11
  | "progressError"
12
- | "progressBarLabel"
13
- | "progressBarLabelHidden";
12
+ | "progressBarLabel";
14
13
 
15
14
  export interface HvProgressBarProps
16
- extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvProgressBarClassKey>,
17
- HvProgressBarProps {
15
+ extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvProgressBarClassKey> {
18
16
  /**
19
17
  * The value of the progress bar.
20
18
  */
@@ -27,10 +25,6 @@ export interface HvProgressBarProps
27
25
  * When uncontrolled and unspecified it will default to "inProgress".
28
26
  */
29
27
  status?: string;
30
- /**
31
- * If `true` the progress bar will not show the percentage label.
32
- */
33
- undeterminate?: boolean;
34
28
  /**
35
29
  * Aria Properties passed on to the progress bar.
36
30
  */
@@ -27,7 +27,7 @@ var _core = require("@material-ui/core");
27
27
 
28
28
  var _styles = _interopRequireDefault(require("./styles"));
29
29
 
30
- var _excluded = ["className", "classes", "value", "status", "undeterminate", "labelProps"];
30
+ var _excluded = ["className", "classes", "value", "status", "labelProps"];
31
31
  var statusCategories = Object.freeze({
32
32
  inProgress: "inProgress",
33
33
  completed: "completed",
@@ -44,8 +44,6 @@ var HvProgressBar = function HvProgressBar(props) {
44
44
  value = _props$value === void 0 ? 0 : _props$value,
45
45
  _props$status = props.status,
46
46
  status = _props$status === void 0 ? statusCategories.inProgress : _props$status,
47
- _props$undeterminate = props.undeterminate,
48
- undeterminate = _props$undeterminate === void 0 ? false : _props$undeterminate,
49
47
  labelProps = props.labelProps,
50
48
  others = (0, _objectWithoutProperties2.default)(props, _excluded);
51
49
  var clampedValue = (0, _clamp.default)(value, 0, 100);
@@ -62,7 +60,7 @@ var HvProgressBar = function HvProgressBar(props) {
62
60
  style: {
63
61
  width: "".concat(clampedValue, "%")
64
62
  },
65
- className: (0, _clsx.default)(classes.progressBarLabel, status === statusCategories.completed && classes.progressDone, undeterminate && classes.progressBarLabelHidden)
63
+ className: (0, _clsx.default)(classes.progressBarLabel, status === statusCategories.completed && classes.progressDone)
66
64
  }, labelProps), "".concat(clampedValue, "%")), /*#__PURE__*/_react.default.createElement("div", {
67
65
  className: classes.progressBarContainer
68
66
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -121,12 +119,7 @@ process.env.NODE_ENV !== "production" ? HvProgressBar.propTypes = {
121
119
  /**
122
120
  * Style applied to the progress bar label.
123
121
  */
124
- progressBarLabel: _propTypes.default.string,
125
-
126
- /**
127
- * Style applied to the progress bar label.
128
- */
129
- progressBarLabelHidden: _propTypes.default.string
122
+ progressBarLabel: _propTypes.default.string
130
123
  }).isRequired,
131
124
 
132
125
  /**
@@ -143,11 +136,6 @@ process.env.NODE_ENV !== "production" ? HvProgressBar.propTypes = {
143
136
  */
144
137
  status: _propTypes.default.oneOf([statusCategories.inProgress, statusCategories.completed, statusCategories.error]),
145
138
 
146
- /**
147
- * If `true` the progress bar will not show the percentage label.
148
- */
149
- undeterminate: _propTypes.default.bool,
150
-
151
139
  /**
152
140
  * Aria Properties passed on to the progress bar.
153
141
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","names":["statusCategories","Object","freeze","inProgress","completed","error","HvProgressBar","props","className","classes","value","status","undeterminate","labelProps","others","clampedValue","root","progress","progressContainer","width","progressBarLabel","progressDone","progressBarLabelHidden","progressBarContainer","progressBar","progressError","propTypes","PropTypes","string","shape","isRequired","number","oneOf","bool","instanceOf","styles","name"],"sources":["../../src/ProgressBar/ProgressBar.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport clamp from \"lodash/clamp\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport styles from \"./styles\";\n\nconst statusCategories = Object.freeze({\n inProgress: \"inProgress\",\n completed: \"completed\",\n error: \"error\",\n});\n\n/**\n * ProgressBar provides feedback about a process that is taking place in the application.\n */\nconst HvProgressBar = (props) => {\n const {\n className,\n classes,\n value = 0,\n status = statusCategories.inProgress,\n undeterminate = false,\n labelProps,\n ...others\n } = props;\n\n const clampedValue = clamp(value, 0, 100);\n\n return (\n <div\n className={clsx(className, classes.root, classes.progress)}\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow={clampedValue}\n {...others}\n >\n <div className={classes.progressContainer}>\n <HvTypography\n variant=\"vizText\"\n style={{ width: `${clampedValue}%` }}\n className={clsx(\n classes.progressBarLabel,\n status === statusCategories.completed && classes.progressDone,\n undeterminate && classes.progressBarLabelHidden\n )}\n {...labelProps}\n >\n {`${clampedValue}%`}\n </HvTypography>\n <div className={classes.progressBarContainer}>\n <div\n style={{ width: `${clampedValue}%` }}\n className={clsx(\n classes.progressBar,\n status === statusCategories.completed && classes.progressDone,\n status === statusCategories.error && classes.progressError\n )}\n />\n </div>\n </div>\n </div>\n );\n};\n\nHvProgressBar.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n\n /**\n * Style applied to the overall container when in progress mode.\n */\n progress: PropTypes.string,\n /**\n * Style applied to the specifc container when in progress mode.\n */\n progressContainer: PropTypes.string,\n /**\n * Style applied to progress bar container.\n */\n progressBarContainer: PropTypes.string,\n /**\n * Style applied to the progress bar.\n */\n progressBar: PropTypes.string,\n /**\n * Style applied to the progress bar when the loading is done.\n */\n progressDone: PropTypes.string,\n /**\n * Style applied to the progress bar when an error occurs.\n */\n progressError: PropTypes.string,\n /**\n * Style applied to the progress bar label.\n */\n progressBarLabel: PropTypes.string,\n /**\n * Style applied to the progress bar label.\n */\n progressBarLabelHidden: PropTypes.string,\n }).isRequired,\n /**\n * The value of the progress bar.\n */\n value: PropTypes.number,\n /**\n * The status of the progress bar.\n *\n * inProgress is black, error is red and completed is green.\n *\n * When uncontrolled and unspecified it will default to \"inProgress\".\n */\n status: PropTypes.oneOf([\n statusCategories.inProgress,\n statusCategories.completed,\n statusCategories.error,\n ]),\n /**\n * If `true` the progress bar will not show the percentage label.\n */\n undeterminate: PropTypes.bool,\n /**\n * Aria Properties passed on to the progress bar.\n */\n labelProps: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles, { name: \"Hv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AACG,UADK,EAEtBH,gBAAgB,CAACI,SAFK,EAGtBJ,gBAAgB,CAACK,KAHK,CAAhB,CA1DgB;;EA+DxB;AACF;AACA;EACEO,aAAa,EAAEe,mBAAUM,IAlED;;EAmExB;AACF;AACA;EACEpB,UAAU,EAAEc,mBAAUO,UAAV,CAAqBjC,MAArB;AAtEY,CAA1B;;eAyEe,sBAAWkC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA8C9B,aAA9C,C"}
1
+ {"version":3,"file":"ProgressBar.js","names":["statusCategories","Object","freeze","inProgress","completed","error","HvProgressBar","props","className","classes","value","status","labelProps","others","clampedValue","root","progress","progressContainer","width","progressBarLabel","progressDone","progressBarContainer","progressBar","progressError","propTypes","PropTypes","string","shape","isRequired","number","oneOf","instanceOf","styles","name"],"sources":["../../src/ProgressBar/ProgressBar.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport clamp from \"lodash/clamp\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport styles from \"./styles\";\n\nconst statusCategories = Object.freeze({\n inProgress: \"inProgress\",\n completed: \"completed\",\n error: \"error\",\n});\n\n/**\n * ProgressBar provides feedback about a process that is taking place in the application.\n */\nconst HvProgressBar = (props) => {\n const {\n className,\n classes,\n value = 0,\n status = statusCategories.inProgress,\n labelProps,\n ...others\n } = props;\n\n const clampedValue = clamp(value, 0, 100);\n\n return (\n <div\n className={clsx(className, classes.root, classes.progress)}\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow={clampedValue}\n {...others}\n >\n <div className={classes.progressContainer}>\n <HvTypography\n variant=\"vizText\"\n style={{ width: `${clampedValue}%` }}\n className={clsx(\n classes.progressBarLabel,\n status === statusCategories.completed && classes.progressDone\n )}\n {...labelProps}\n >\n {`${clampedValue}%`}\n </HvTypography>\n <div className={classes.progressBarContainer}>\n <div\n style={{ width: `${clampedValue}%` }}\n className={clsx(\n classes.progressBar,\n status === statusCategories.completed && classes.progressDone,\n status === statusCategories.error && classes.progressError\n )}\n />\n </div>\n </div>\n </div>\n );\n};\n\nHvProgressBar.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n\n /**\n * Style applied to the overall container when in progress mode.\n */\n progress: PropTypes.string,\n /**\n * Style applied to the specifc container when in progress mode.\n */\n progressContainer: PropTypes.string,\n /**\n * Style applied to progress bar container.\n */\n progressBarContainer: PropTypes.string,\n /**\n * Style applied to the progress bar.\n */\n progressBar: PropTypes.string,\n /**\n * Style applied to the progress bar when the loading is done.\n */\n progressDone: PropTypes.string,\n /**\n * Style applied to the progress bar when an error occurs.\n */\n progressError: PropTypes.string,\n /**\n * Style applied to the progress bar label.\n */\n progressBarLabel: PropTypes.string,\n }).isRequired,\n /**\n * The value of the progress bar.\n */\n value: PropTypes.number,\n /**\n * The status of the progress bar.\n *\n * inProgress is black, error is red and completed is green.\n *\n * When uncontrolled and unspecified it will default to \"inProgress\".\n */\n status: PropTypes.oneOf([\n statusCategories.inProgress,\n statusCategories.completed,\n statusCategories.error,\n ]),\n /**\n * Aria Properties passed on to the progress bar.\n */\n labelProps: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles, { name: \"HvProgressBar\" })(HvProgressBar);\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AAEA;;;AAEA,IAAMA,gBAAgB,GAAGC,MAAM,CAACC,MAAP,CAAc;EACrCC,UAAU,EAAE,YADyB;EAErCC,SAAS,EAAE,WAF0B;EAGrCC,KAAK,EAAE;AAH8B,CAAd,CAAzB;AAMA;AACA;AACA;;AACA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAACC,KAAD,EAAW;EAC/B,IAC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B,SAAd,GAA0B;EACxB;AACF;AACA;EACEhB,SAAS,EAAEiB,mBAAUC,MAJG;;EAKxB;AACF;AACA;EACEjB,OAAO,EAAEgB,mBAAUE,KAAV,CAAgB;IACvB;AACJ;AACA;IACIZ,IAAI,EAAEU,mBAAUC,MAJO;;IAMvB;AACJ;AACA;IACIV,QAAQ,EAAES,mBAAUC,MATG;;IAUvB;AACJ;AACA;IACIT,iBAAiB,EAAEQ,mBAAUC,MAbN;;IAcvB;AACJ;AACA;IACIL,oBAAoB,EAAEI,mBAAUC,MAjBT;;IAkBvB;AACJ;AACA;IACIJ,WAAW,EAAEG,mBAAUC,MArBA;;IAsBvB;AACJ;AACA;IACIN,YAAY,EAAEK,mBAAUC,MAzBD;;IA0BvB;AACJ;AACA;IACIH,aAAa,EAAEE,mBAAUC,MA7BF;;IA8BvB;AACJ;AACA;IACIP,gBAAgB,EAAEM,mBAAUC;EAjCL,CAAhB,EAkCNE,UA1CqB;;EA2CxB;AACF;AACA;EACElB,KAAK,EAAEe,mBAAUI,MA9CO;;EA+CxB;AACF;AACA;AACA;AACA;AACA;AACA;EACElB,MAAM,EAAEc,mBAAUK,KAAV,CAAgB,CACtB9B,gBAAgB,CAACG,UADK,EAEtBH,gBAAgB,CAACI,SAFK,EAGtBJ,gBAAgB,CAACK,KAHK,CAAhB,CAtDgB;;EA2DxB;AACF;AACA;EACEO,UAAU,EAAEa,mBAAUM,UAAV,CAAqB9B,MAArB;AA9DY,CAA1B;;eAiEe,sBAAW+B,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA8C3B,aAA9C,C"}
@@ -37,7 +37,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
37
37
  var ProgressBarSimulator = function ProgressBarSimulator(_ref) {
38
38
  var inc = _ref.inc,
39
39
  error = _ref.error,
40
- undeterminate = _ref.undeterminate,
41
40
  ariaLabel = _ref.ariaLabel,
42
41
  ariaLive = _ref.ariaLive;
43
42
 
@@ -88,7 +87,6 @@ var ProgressBarSimulator = function ProgressBarSimulator(_ref) {
88
87
  }, /*#__PURE__*/_react.default.createElement(_.HvProgressBar, {
89
88
  value: value,
90
89
  status: status,
91
- undeterminate: undeterminate,
92
90
  labelProps: {
93
91
  "aria-label": ariaLabel,
94
92
  "aria-busy": false,
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBarSimulator.js","names":["ProgressBarSimulator","inc","error","undeterminate","ariaLabel","ariaLive","status","setStatus","value","setValue","run","setRun","interval","setInterval","clearInterval","reset","start","width","marginTop","marginLeft"],"sources":["../../src/ProgressBar/ProgressBarSimulator.js"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\n\nimport { HvButton } from \"@hitachivantara/uikit-react-core\";\n\nimport { HvProgressBar } from \"..\";\n\n// eslint-disable-next-line react/prop-types\nexport const ProgressBarSimulator = ({ inc, error, undeterminate, ariaLabel, ariaLive }) => {\n const [status, setStatus] = useState(\"inProgress\");\n const [value, setValue] = useState(0);\n const [run, setRun] = useState(false);\n\n useEffect(() => {\n const interval = setInterval(() => {\n if (value === 100) {\n setRun(false);\n clearInterval(interval);\n setStatus(\"completed\");\n } else if (error && value === error) {\n clearInterval(interval);\n setStatus(\"error\");\n } else if (run) setValue(inc);\n }, 150);\n return () => clearInterval(interval);\n }, [inc, value, run, error]);\n\n const reset = () => {\n setValue(0);\n setStatus(\"inProgress\");\n };\n\n const start = () => {\n setRun(true);\n };\n\n return (\n <div style={{ width: 400 }}>\n <HvProgressBar\n value={value}\n status={status}\n undeterminate={undeterminate}\n labelProps={{\n \"aria-label\": ariaLabel,\n \"aria-busy\": false,\n \"aria-live\": ariaLive,\n }}\n />\n <div style={{ marginTop: 10 }}>\n <HvButton onClick={start}>Start</HvButton>\n <HvButton style={{ marginLeft: 10 }} onClick={reset}>\n Reset\n </HvButton>\n </div>\n </div>\n );\n};\n\nexport { ProgressBarSimulator as default };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAE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CAAN;EACD,CAFD;;EAIA,oBACE;IAAK,KAAK,EAAE;MAAEM,KAAK,EAAE;IAAT;EAAZ,gBACE,6BAAC,eAAD;IACE,KAAK,EAAET,KADT;IAEE,MAAM,EAAEF,MAFV;IAGE,aAAa,EAAEH,aAHjB;IAIE,UAAU,EAAE;MACV,cAAcC,SADJ;MAEV,aAAa,KAFH;MAGV,aAAaC;IAHH;EAJd,EADF,eAWE;IAAK,KAAK,EAAE;MAAEa,SAAS,EAAE;IAAb;EAAZ,gBACE,6BAAC,wBAAD;IAAU,OAAO,EAAEF;EAAnB,WADF,eAEE,6BAAC,wBAAD;IAAU,KAAK,EAAE;MAAEG,UAAU,EAAE;IAAd,CAAjB;IAAqC,OAAO,EAAEJ;EAA9C,WAFF,CAXF,CADF;AAoBD,CAhDM"}
1
+ {"version":3,"file":"ProgressBarSimulator.js","names":["ProgressBarSimulator","inc","error","ariaLabel","ariaLive","status","setStatus","value","setValue","run","setRun","interval","setInterval","clearInterval","reset","start","width","marginTop","marginLeft"],"sources":["../../src/ProgressBar/ProgressBarSimulator.js"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\n\nimport { HvButton } from \"@hitachivantara/uikit-react-core\";\n\nimport { HvProgressBar } from \"..\";\n\n// eslint-disable-next-line react/prop-types\nexport const ProgressBarSimulator = ({ inc, error, ariaLabel, ariaLive }) => {\n const [status, setStatus] = useState(\"inProgress\");\n const [value, setValue] = useState(0);\n const [run, setRun] = useState(false);\n\n useEffect(() => {\n const interval = setInterval(() => {\n if (value === 100) {\n setRun(false);\n clearInterval(interval);\n setStatus(\"completed\");\n } else if (error && value === error) {\n clearInterval(interval);\n setStatus(\"error\");\n } else if (run) setValue(inc);\n }, 150);\n return () => clearInterval(interval);\n }, [inc, value, run, error]);\n\n const reset = () => {\n setValue(0);\n setStatus(\"inProgress\");\n };\n\n const start = () => {\n setRun(true);\n };\n\n return (\n <div style={{ width: 400 }}>\n <HvProgressBar\n value={value}\n status={status}\n labelProps={{\n \"aria-label\": ariaLabel,\n \"aria-busy\": false,\n \"aria-live\": ariaLive,\n }}\n />\n <div style={{ marginTop: 10 }}>\n <HvButton onClick={start}>Start</HvButton>\n <HvButton style={{ marginLeft: 10 }} onClick={reset}>\n Reset\n </HvButton>\n </div>\n </div>\n );\n};\n\nexport { ProgressBarSimulator as default };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;;;;;;AAEA;AACO,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,OAAyC;EAAA,IAAtCC,GAAsC,QAAtCA,GAAsC;EAAA,IAAjCC,KAAiC,QAAjCA,KAAiC;EAAA,IAA1BC,SAA0B,QAA1BA,SAA0B;EAAA,IAAfC,QAAe,QAAfA,QAAe;;EAC3E,gBAA4B,qBAAS,YAAT,CAA5B;EAAA;EAAA,IAAOC,MAAP;EAAA,IAAeC,SAAf;;EACA,iBAA0B,qBAAS,CAAT,CAA1B;EAAA;EAAA,IAAOC,KAAP;EAAA,IAAcC,QAAd;;EACA,iBAAsB,qBAAS,KAAT,CAAtB;EAAA;EAAA,IAAOC,GAAP;EAAA,IAAYC,MAAZ;;EAEA,sBAAU,YAAM;IACd,IAAMC,QAAQ,GAAGC,WAAW,CAAC,YAAM;MACjC,IAAIL,KAAK,KAAK,GAAd,EAAmB;QACjBG,MAAM,CAAC,KAAD,CAAN;QACAG,aAAa,CAACF,QAAD,CAAb;QACAL,SAAS,CAAC,WAAD,CAAT;MACD,CAJD,MAIO,IAAIJ,KAAK,IAAIK,KAAK,KAAKL,KAAvB,EAA8B;QACnCW,aAAa,CAACF,QAAD,CAAb;QACAL,SAAS,CAAC,OAAD,CAAT;MACD,CAHM,MAGA,IAAIG,GAAJ,EAASD,QAAQ,CAACP,GAAD,CAAR;IACjB,CAT2B,EASzB,GATyB,CAA5B;IAUA,OAAO;MAAA,OAAMY,aAAa,CAACF,QAAD,CAAnB;IAAA,CAAP;EACD,CAZD,EAYG,CAACV,GAAD,EAAMM,KAAN,EAAaE,GAAb,EAAkBP,KAAlB,CAZH;;EAcA,IAAMY,KAAK,GAAG,SAARA,KAAQ,GAAM;IAClBN,QAAQ,CAAC,CAAD,CAAR;IACAF,SAAS,CAAC,YAAD,CAAT;EACD,CAHD;;EAKA,IAAMS,KAAK,GAAG,SAARA,KAAQ,GAAM;IAClBL,MAAM,CAAC,IAAD,CAAN;EACD,CAFD;;EAIA,oBACE;IAAK,KAAK,EAAE;MAAEM,KAAK,EAAE;IAAT;EAAZ,gBACE,6BAAC,eAAD;IACE,KAAK,EAAET,KADT;IAEE,MAAM,EAAEF,MAFV;IAGE,UAAU,EAAE;MACV,cAAcF,SADJ;MAEV,aAAa,KAFH;MAGV,aAAaC;IAHH;EAHd,EADF,eAUE;IAAK,KAAK,EAAE;MAAEa,SAAS,EAAE;IAAb;EAAZ,gBACE,6BAAC,wBAAD;IAAU,OAAO,EAAEF;EAAnB,WADF,eAEE,6BAAC,wBAAD;IAAU,KAAK,EAAE;MAAEG,UAAU,EAAE;IAAd,CAAjB;IAAqC,OAAO,EAAEJ;EAA9C,WAFF,CAVF,CADF;AAmBD,CA/CM"}
@@ -39,11 +39,6 @@ var styles = function styles(theme) {
39
39
  backgroundColor: "transparent",
40
40
  display: "flex",
41
41
  justifyContent: "end"
42
- },
43
- progressBarLabelHidden: {
44
- width: "1px",
45
- height: "1px",
46
- overflow: "hidden"
47
42
  }
48
43
  };
49
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","root","display","flexDirection","alignItems","justifyContent","progress","width","progressContainer","progressBarContainer","height","backgroundColor","hv","palette","atmosphere","atmo4","progressBar","progressDone","semantic","sema1","progressError","sema4","progressBarLabel","progressBarLabelHidden","overflow"],"sources":["../../src/ProgressBar/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n\n progress: {\n width: \"100%\",\n },\n\n progressContainer: {\n width: \"100%\",\n },\n\n progressBarContainer: {\n display: \"flex\",\n width: \"100%\",\n height: 4,\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n progressBar: {\n backgroundColor: \"#000\",\n height: 4,\n },\n\n progressDone: {\n backgroundColor: theme.hv.palette.semantic.sema1,\n },\n\n progressError: {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n\n progressBarLabel: {\n backgroundColor: \"transparent\",\n display: \"flex\",\n justifyContent: \"end\",\n },\n\n progressBarLabelHidden: {\n width: \"1px\",\n height: \"1px\",\n overflow: \"hidden\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,MADL;MAEJC,aAAa,EAAE,QAFX;MAGJC,UAAU,EAAE,QAHR;MAIJC,cAAc,EAAE;IAJZ,CADmB;IAQzBC,QAAQ,EAAE;MACRC,KAAK,EAAE;IADC,CARe;IAYzBC,iBAAiB,EAAE;MACjBD,KAAK,EAAE;IADU,CAZM;IAgBzBE,oBAAoB,EAAE;MACpBP,OAAO,EAAE,MADW;MAEpBK,KAAK,EAAE,MAFa;MAGpBG,MAAM,EAAE,CAHY;MAIpBC,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC;IAJzB,CAhBG;IAuBzBC,WAAW,EAAE;MACXL,eAAe,EAAE,MADN;MAEXD,MAAM,EAAE;IAFG,CAvBY;IA4BzBO,YAAY,EAAE;MACZN,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBK,QAAjB,CAA0BC;IAD/B,CA5BW;IAgCzBC,aAAa,EAAE;MACbT,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBK,QAAjB,CAA0BG;IAD9B,CAhCU;IAoCzBC,gBAAgB,EAAE;MAChBX,eAAe,EAAE,aADD;MAEhBT,OAAO,EAAE,MAFO;MAGhBG,cAAc,EAAE;IAHA,CApCO;IA0CzBkB,sBAAsB,EAAE;MACtBhB,KAAK,EAAE,KADe;MAEtBG,MAAM,EAAE,KAFc;MAGtBc,QAAQ,EAAE;IAHY;EA1CC,CAAZ;AAAA,CAAf;;eAiDezB,M"}
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","display","flexDirection","alignItems","justifyContent","progress","width","progressContainer","progressBarContainer","height","backgroundColor","hv","palette","atmosphere","atmo4","progressBar","progressDone","semantic","sema1","progressError","sema4","progressBarLabel"],"sources":["../../src/ProgressBar/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n\n progress: {\n width: \"100%\",\n },\n\n progressContainer: {\n width: \"100%\",\n },\n\n progressBarContainer: {\n display: \"flex\",\n width: \"100%\",\n height: 4,\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n progressBar: {\n backgroundColor: \"#000\",\n height: 4,\n },\n\n progressDone: {\n backgroundColor: theme.hv.palette.semantic.sema1,\n },\n\n progressError: {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n\n progressBarLabel: {\n backgroundColor: \"transparent\",\n display: \"flex\",\n justifyContent: \"end\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,MADL;MAEJC,aAAa,EAAE,QAFX;MAGJC,UAAU,EAAE,QAHR;MAIJC,cAAc,EAAE;IAJZ,CADmB;IAQzBC,QAAQ,EAAE;MACRC,KAAK,EAAE;IADC,CARe;IAYzBC,iBAAiB,EAAE;MACjBD,KAAK,EAAE;IADU,CAZM;IAgBzBE,oBAAoB,EAAE;MACpBP,OAAO,EAAE,MADW;MAEpBK,KAAK,EAAE,MAFa;MAGpBG,MAAM,EAAE,CAHY;MAIpBC,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC;IAJzB,CAhBG;IAuBzBC,WAAW,EAAE;MACXL,eAAe,EAAE,MADN;MAEXD,MAAM,EAAE;IAFG,CAvBY;IA4BzBO,YAAY,EAAE;MACZN,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBK,QAAjB,CAA0BC;IAD/B,CA5BW;IAgCzBC,aAAa,EAAE;MACbT,eAAe,EAAEX,KAAK,CAACY,EAAN,CAASC,OAAT,CAAiBK,QAAjB,CAA0BG;IAD9B,CAhCU;IAoCzBC,gBAAgB,EAAE;MAChBX,eAAe,EAAE,aADD;MAEhBT,OAAO,EAAE,MAFO;MAGhBG,cAAc,EAAE;IAHA;EApCO,CAAZ;AAAA,CAAf;;eA2CeN,M"}
@@ -1,6 +1,6 @@
1
1
  import { StandardProps } from "@material-ui/core";
2
2
 
3
- export type HvTableClassKey = "root" | "stickyHeader" | "stickyColumns";
3
+ export type HvTableClassKey = "root" | "stickyHeader" | "stickyColumns" | "listRow";
4
4
 
5
5
  export interface HvTableProps
6
6
  extends StandardProps<React.TableHTMLAttributes<HTMLTableElement>, HvTableClassKey> {
@@ -20,6 +20,10 @@ export interface HvTableProps
20
20
  * Whether the `HvTable` has sticky columns.
21
21
  */
22
22
  stickyColumns?: boolean;
23
+ /**
24
+ * Variant of table.
25
+ */
26
+ variant?: "listrow" | "default";
23
27
  }
24
28
 
25
29
  export default function HvTable(props: HvTableProps): JSX.Element | null;
@@ -37,7 +37,7 @@ var _TableContext = _interopRequireDefault(require("./TableContext"));
37
37
 
38
38
  var _styles = _interopRequireDefault(require("./styles"));
39
39
 
40
- var _excluded = ["classes", "className", "component", "stickyHeader", "stickyColumns"];
40
+ var _excluded = ["classes", "className", "component", "stickyHeader", "stickyColumns", "variant"];
41
41
 
42
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
43
43
 
@@ -90,21 +90,26 @@ var HvTable = /*#__PURE__*/(0, _react.forwardRef)(function HvTable(props, ref) {
90
90
  stickyHeader = _props$stickyHeader === void 0 ? false : _props$stickyHeader,
91
91
  _props$stickyColumns = props.stickyColumns,
92
92
  stickyColumns = _props$stickyColumns === void 0 ? false : _props$stickyColumns,
93
+ _props$variant = props.variant,
94
+ variant = _props$variant === void 0 ? "default" : _props$variant,
93
95
  others = (0, _objectWithoutProperties2.default)(props, _excluded);
96
+ var containerRef = (0, _react.useRef)(ref);
94
97
  var components = (0, _react.useMemo)(function () {
95
98
  return computeTablePartComponents(component);
96
99
  }, [component]);
97
100
  var tableContext = (0, _react.useMemo)(function () {
98
101
  return {
99
- components: components
102
+ components: components,
103
+ variant: variant,
104
+ containerRef: containerRef
100
105
  };
101
- }, [components]);
106
+ }, [components, variant, containerRef]);
102
107
  return /*#__PURE__*/_react.default.createElement(_TableContext.default.Provider, {
103
108
  value: tableContext
104
109
  }, /*#__PURE__*/_react.default.createElement(components.Table, (0, _extends2.default)({
105
110
  ref: ref,
106
111
  role: component === defaultComponent ? null : "table",
107
- className: (0, _clsx.default)(classes.root, className, stickyHeader && classes.stickyHeader, stickyColumns && classes.stickyColumns)
112
+ className: (0, _clsx.default)(classes.root, className, stickyHeader && classes.stickyHeader, stickyColumns && classes.stickyColumns, variant !== "default" && classes.listRow)
108
113
  }, others)));
109
114
  });
110
115
  process.env.NODE_ENV !== "production" ? HvTable.propTypes = {
@@ -136,6 +141,11 @@ process.env.NODE_ENV !== "production" ? HvTable.propTypes = {
136
141
  */
137
142
  stickyColumns: _propTypes.default.bool,
138
143
 
144
+ /**
145
+ * Whether the `HvTable` has the list row styles or the default.
146
+ */
147
+ variant: _propTypes.default.oneOf(["listrow", "default"]),
148
+
139
149
  /**
140
150
  * A Jss Object used to override or extend the styles applied.
141
151
  */
@@ -153,7 +163,12 @@ process.env.NODE_ENV !== "production" ? HvTable.propTypes = {
153
163
  /**
154
164
  * Styles applied to the component root class when it has sticky columns.
155
165
  */
156
- stickyColumns: _propTypes.default.string
166
+ stickyColumns: _propTypes.default.string,
167
+
168
+ /**
169
+ * Styles applied to the component root class when it has sticky columns.
170
+ */
171
+ listRow: _propTypes.default.string
157
172
  }).isRequired
158
173
  } : void 0;
159
174
 
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","names":["defaultComponent","computeTablePartComponents","rootComponent","Table","THead","TBody","Tr","Th","Td","HvTable","props","ref","classes","className","component","stickyHeader","stickyColumns","others","components","tableContext","root","propTypes","PropTypes","elementType","children","node","isRequired","string","bool","shape","styles","name"],"sources":["../../src/Table/Table.js"],"sourcesContent":["import React, { forwardRef, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"./TableContext\";\nimport styles from \"./styles\";\n\nconst defaultComponent = \"table\";\n\nconst computeTablePartComponents = (rootComponent) => {\n if (rootComponent === \"table\") {\n return {\n Table: \"table\",\n THead: \"thead\",\n TBody: \"tbody\",\n Tr: \"tr\",\n Th: \"th\",\n Td: \"td\",\n };\n }\n\n return {\n Table: rootComponent,\n THead: rootComponent,\n TBody: rootComponent,\n Tr: rootComponent,\n Th: rootComponent,\n Td: rootComponent,\n };\n};\n\n/**\n * A Table gathers relational data, it displays values arranged to allow quick numerical analysis\n * like comparison and sorting.\n *\n * **HvTable** component offers a set of HTML-equivalent elements, **styled to Design System's specification**,\n * for building tables.\n * You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.\n *\n * For better data handling and **advanced features** we recommend the use of the utility hooks collection .\n * See the <a href=\"?id=lab-table-hooks--main&viewMode=docs\" target=\"_self\">Table Hooks documentation</a> for more details.\n *\n * **PLEASE NOTE**: This Table implementation is still a WIP. There might be breaking changes.\n */\nconst HvTable = forwardRef(function HvTable(props, ref) {\n const {\n classes,\n className,\n component = defaultComponent,\n stickyHeader = false,\n stickyColumns = false,\n ...others\n } = props;\n\n const components = useMemo(() => computeTablePartComponents(component), [component]);\n\n const tableContext = useMemo(() => ({ components }), [components]);\n\n return (\n <TableContext.Provider value={tableContext}>\n <components.Table\n ref={ref}\n role={component === defaultComponent ? null : \"table\"}\n className={clsx(\n classes.root,\n {\n [classes.stickyHeader]: stickyHeader,\n [classes.stickyColumns]: stickyColumns,\n },\n className\n )}\n {...others}\n />\n </TableContext.Provider>\n );\n});\n\nHvTable.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `table`.\n *\n * When using non-table elements, layout is up to the developer using the component.\n */\n component: PropTypes.elementType,\n\n /**\n * Content to be rendered\n */\n children: PropTypes.node.isRequired,\n\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n\n /**\n * Whether the `HvTable` has a sticky header row.\n */\n stickyHeader: PropTypes.bool,\n /**\n * Whether the `HvTable` has sticky columns.\n */\n stickyColumns: PropTypes.bool,\n\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when it has a sticky header.\n */\n stickyHeader: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n stickyColumns: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTable\" })(HvTable);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,OAAzB;;AAEA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,CAACC,aAAD,EAAmB;EACpD,IAAIA,aAAa,KAAK,OAAtB,EAA+B;IAC7B,OAAO;MACLC,KAAK,EAAE,OADF;MAELC,KAAK,EAAE,OAFF;MAGLC,KAAK,E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MTP,SANS,EAGiBE,YAHjB,IAGNH,OAAO,CAACG,YAHF,EAIkBC,aAJlB,IAINJ,OAAO,CAACI,aAJF;EAHb,GAWMC,MAXN,EADF,CADF;AAiBD,CA/Be,CAAhB;AAiCA,wCAAAR,OAAO,CAACY,SAAR,GAAoB;EAClB;AACF;AACA;AACA;AACA;AACA;EACEP,SAAS,EAAEQ,mBAAUC,WAPH;;EASlB;AACF;AACA;EACEC,QAAQ,EAAEF,mBAAUG,IAAV,CAAeC,UAZP;;EAclB;AACF;AACA;EACEb,SAAS,EAAES,mBAAUK,MAjBH;;EAmBlB;AACF;AACA;EACEZ,YAAY,EAAEO,mBAAUM,IAtBN;;EAuBlB;AACF;AACA;EACEZ,aAAa,EAAEM,mBAAUM,IA1BP;;EA4BlB;AACF;AACA;EACEhB,OAAO,EAAEU,mBAAUO,KAAV,CAAgB;IACvB;AACJ;AACA;IACIT,IAAI,EAAEE,mBAAUK,MAJO;;IAKvB;AACJ;AACA;IACIZ,YAAY,EAAEO,mBAAUK,MARD;;IASvB;AACJ;AACA;IACIX,aAAa,EAAEM,mBAAUK;EAZF,CAAhB,EAaND;AA5Ce,CAApB;;eA+Ce,sBAAWI,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAwCtB,OAAxC,C"}
1
+ {"version":3,"file":"Table.js","names":["defaultComponent","computeTablePartComponents","rootComponent","Table","THead","TBody","Tr","Th","Td","HvTable","props","ref","classes","className","component","stickyHeader","stickyColumns","variant","others","containerRef","components","tableContext","root","listRow","propTypes","PropTypes","elementType","children","node","isRequired","string","bool","oneOf","shape","styles","name"],"sources":["../../src/Table/Table.js"],"sourcesContent":["import React, { useRef, forwardRef, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"./TableContext\";\nimport styles from \"./styles\";\n\nconst defaultComponent = \"table\";\n\nconst computeTablePartComponents = (rootComponent) => {\n if (rootComponent === \"table\") {\n return {\n Table: \"table\",\n THead: \"thead\",\n TBody: \"tbody\",\n Tr: \"tr\",\n Th: \"th\",\n Td: \"td\",\n };\n }\n\n return {\n Table: rootComponent,\n THead: rootComponent,\n TBody: rootComponent,\n Tr: rootComponent,\n Th: rootComponent,\n Td: rootComponent,\n };\n};\n\n/**\n * A Table gathers relational data, it displays values arranged to allow quick numerical analysis\n * like comparison and sorting.\n *\n * **HvTable** component offers a set of HTML-equivalent elements, **styled to Design System's specification**,\n * for building tables.\n * You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.\n *\n * For better data handling and **advanced features** we recommend the use of the utility hooks collection .\n * See the <a href=\"?id=lab-table-hooks--main&viewMode=docs\" target=\"_self\">Table Hooks documentation</a> for more details.\n *\n * **PLEASE NOTE**: This Table implementation is still a WIP. There might be breaking changes.\n */\nconst HvTable = forwardRef(function HvTable(props, ref) {\n const {\n classes,\n className,\n component = defaultComponent,\n stickyHeader = false,\n stickyColumns = false,\n variant = \"default\",\n ...others\n } = props;\n\n const containerRef = useRef(ref);\n\n const components = useMemo(() => computeTablePartComponents(component), [component]);\n\n const tableContext = useMemo(\n () => ({ components, variant, containerRef }),\n [components, variant, containerRef]\n );\n\n return (\n <TableContext.Provider value={tableContext}>\n <components.Table\n ref={ref}\n role={component === defaultComponent ? null : \"table\"}\n className={clsx(\n classes.root,\n {\n [classes.stickyHeader]: stickyHeader,\n [classes.stickyColumns]: stickyColumns,\n [classes.listRow]: variant === \"listrow\",\n },\n className\n )}\n {...others}\n />\n </TableContext.Provider>\n );\n});\n\nHvTable.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `table`.\n *\n * When using non-table elements, layout is up to the developer using the component.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node.isRequired,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Whether the `HvTable` has a sticky header row.\n */\n stickyHeader: PropTypes.bool,\n /**\n * Whether the `HvTable` has sticky columns.\n */\n stickyColumns: PropTypes.bool,\n /**\n * Whether the `HvTable` has the list row styles or the default.\n */\n variant: PropTypes.oneOf([\"listrow\", \"default\"]),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when it has a sticky header.\n */\n stickyHeader: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n stickyColumns: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n listRow: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTable\" })(HvTable);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,OAAzB;;AAEA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,CAACC,aAAD,EAAmB;EACpD,IAAIA,aAAa,KAAK,OAAtB,EAA+B;IAC7B,OAAO;MACLC,KAAK,EAAE,OADF;MAELC,KAAK,EAAE,OAFF;MAGLC,KAAK,EAAE,OAHF;MAILC,EAAE,EAAE,IAJC;MAKLC,EAAE,EAAE,IALC;MAMLC,EAAE,EAAE;IANC,CAAP;EAQD;;EAED,OAAO;IACLL,KAAK,EAAED,aADF;IAELE,KAAK,EAAEF,aAFF;IAGLG,KAAK,EAAEH,aAHF;IAILI,EAAE,EAAEJ,aAJC;IAKLK,EAAE,EAAEL,aALC;IAMLM,EAAE,EAAEN;EANC,CAAP;AAQD,CApBD;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMO,OAAO,gBAAG,uBAAW,SAASA,OAAT,CAAiBC,KAAjB,EAAwBC,GAAxB,EAA6B;EACtD,IACEC,OADF,GAQIF,KARJ,CACEE,OADF;EAAA,IAEEC,SAFF,GAQIH,KARJ,CAEE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,EAAEF,mBAAUG,IAAV,CAAeC,UAXP;;EAYlB;AACF;AACA;EACEhB,SAAS,EAAEY,mBAAUK,MAfH;;EAgBlB;AACF;AACA;EACEf,YAAY,EAAEU,mBAAUM,IAnBN;;EAoBlB;AACF;AACA;EACEf,aAAa,EAAES,mBAAUM,IAvBP;;EAwBlB;AACF;AACA;EACEd,OAAO,EAAEQ,mBAAUO,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,CAAhB,CA3BS;;EA4BlB;AACF;AACA;EACEpB,OAAO,EAAEa,mBAAUQ,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEG,mBAAUK,MAJO;;IAKvB;AACJ;AACA;IACIf,YAAY,EAAEU,mBAAUK,MARD;;IASvB;AACJ;AACA;IACId,aAAa,EAAES,mBAAUK,MAZF;;IAavB;AACJ;AACA;IACIP,OAAO,EAAEE,mBAAUK;EAhBI,CAAhB,EAiBND;AAhDe,CAApB;;eAmDe,sBAAWK,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAwC1B,OAAxC,C"}
@@ -21,6 +21,8 @@ Object.defineProperty(exports, "__esModule", {
21
21
  });
22
22
  exports.default = void 0;
23
23
 
24
+ require("core-js/modules/es.array.map.js");
25
+
24
26
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
25
27
 
26
28
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
@@ -33,20 +35,25 @@ var _clsx = _interopRequireDefault(require("clsx"));
33
35
 
34
36
  var _core = require("@material-ui/core");
35
37
 
38
+ var _uikitReactCore = require("@hitachivantara/uikit-react-core");
39
+
40
+ var _Focus = _interopRequireDefault(require("@hitachivantara/uikit-react-core/dist/Focus"));
41
+
36
42
  var _TableContext = _interopRequireDefault(require("../TableContext"));
37
43
 
38
44
  var _TableSectionContext = _interopRequireDefault(require("../TableSectionContext"));
39
45
 
40
46
  var _styles = _interopRequireDefault(require("./styles"));
41
47
 
42
- var _excluded = ["classes", "className", "component"];
48
+ var _excluded = ["classes", "className", "component", "children", "withNavigation"];
43
49
 
44
50
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
45
51
 
46
52
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
53
 
48
54
  var tableSectionContext = {
49
- type: "body"
55
+ type: "body",
56
+ filterClassName: "grid"
50
57
  };
51
58
  var defaultComponent = "tbody";
52
59
  /**
@@ -54,22 +61,38 @@ var defaultComponent = "tbody";
54
61
  * `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles
55
62
  */
56
63
 
57
- var HvTableBody = /*#__PURE__*/(0, _react.forwardRef)(function HvTableBody(props, ref) {
64
+ var HvTableBody = /*#__PURE__*/(0, _react.forwardRef)(function HvTableBody(props, externalRef) {
58
65
  var _tableContext$compone;
59
66
 
60
67
  var classes = props.classes,
61
68
  className = props.className,
62
69
  component = props.component,
70
+ children = props.children,
71
+ _props$withNavigation = props.withNavigation,
72
+ withNavigation = _props$withNavigation === void 0 ? false : _props$withNavigation,
63
73
  others = (0, _objectWithoutProperties2.default)(props, _excluded);
64
74
  var tableContext = (0, _react.useContext)(_TableContext.default);
75
+ var bodyRef = (0, _react.useRef)(null);
76
+ var handleRef = (0, _uikitReactCore.useForkRef)(externalRef, bodyRef);
65
77
  var Component = component || (tableContext === null || tableContext === void 0 ? void 0 : (_tableContext$compone = tableContext.components) === null || _tableContext$compone === void 0 ? void 0 : _tableContext$compone.TBody) || defaultComponent;
66
78
  return /*#__PURE__*/_react.default.createElement(_TableSectionContext.default.Provider, {
67
79
  value: tableSectionContext
68
80
  }, /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
69
81
  className: (0, _clsx.default)(classes.root, className),
70
- ref: ref,
82
+ ref: handleRef,
71
83
  role: Component === defaultComponent ? null : "rowgroup"
72
- }, others)));
84
+ }, others), withNavigation ? children.map(function (element) {
85
+ return /*#__PURE__*/_react.default.createElement(_Focus.default, {
86
+ rootRef: bodyRef,
87
+ key: "row-".concat(element.key),
88
+ strategy: "grid",
89
+ useArrows: "true",
90
+ filterClass: tableSectionContext.filterClassName,
91
+ navigationJump: 1,
92
+ focusDisabled: false,
93
+ selected: element.props.selected
94
+ }, element);
95
+ }) : children));
73
96
  });
74
97
  process.env.NODE_ENV !== "production" ? HvTableBody.propTypes = {
75
98
  /**
@@ -88,6 +111,11 @@ process.env.NODE_ENV !== "production" ? HvTableBody.propTypes = {
88
111
  */
89
112
  component: _propTypes.default.elementType,
90
113
 
114
+ /**
115
+ * Sets whether or not there should be arrow navigation between the table rows
116
+ */
117
+ withNavigation: _propTypes.default.bool,
118
+
91
119
  /**
92
120
  * A Jss Object used to override or extend the styles applied.
93
121
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.js","names":["tableSectionContext","type","defaultComponent","HvTableBody","props","ref","classes","className","component","others","tableContext","TableContext","Component","components","TBody","root","propTypes","PropTypes","string","children","node","elementType","shape","isRequired","styles","name"],"sources":["../../../src/Table/TableBody/TableBody.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"body\",\n};\n\nconst defaultComponent = \"tbody\";\n\n/**\n * HvTableBody acts as a `tbody` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles\n */\nconst HvTableBody = forwardRef(function HvTableBody(props, ref) {\n const { classes, className, component, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const Component = component || tableContext?.components?.TBody || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, className)}\n ref={ref}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n />\n </TableSectionContext.Provider>\n );\n});\n\nHvTableBody.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tbody.\n */\n component: PropTypes.elementType,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableBody\" })(HvTableBody);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG;EAC1BC,IAAI,EAAE;AADoB,CAA5B;AAIA,IAAMC,gBAAgB,GAAG,OAAzB;AAEA;AACA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,uBAAW,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,GAA5B,EAAiC;EAAA;;EAC9D,IAAQC,OAAR,GAAqDF,KAArD,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAqDH,KAArD,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAqDJ,KAArD,CAA4BI,SAA5B;EAAA,IAA0CC,MAA1C,0CAAqDL,KAArD;EAEA,IAAMM,YAAY,GAAG,uBAAWC,qBAAX,CAArB;EAEA,IAAMC,SAAS,GAAGJ,SAAS,KAAIE,YAAJ,aAAIA,YAAJ,gDAAIA,YAAY,CAAEG,UAAlB,0DAAI,sBAA0BC,KAA9B,CAAT,IAAgDZ,gBAAlE;EAEA,oBACE,6BAAC,4BAAD,CAAqB,QAArB;IAA8B,KAAK,EAAEF;EAArC,gBACE,6BAAC,SAAD;IACE,SAAS,EAAE,mBAAKM,OAAO,CAACS,IAAb,EAAmBR,SAAnB,CADb;IAEE,GAAG,EAAEF,GAFP;IAGE,IAAI,EAAEO,SAAS,KAAKV,gBAAd,GAAiC,IAAjC,GAAwC;EAHhD,GAIMO,MAJN,EADF,CADF;AAUD,CAjBmB,CAApB;AAmBA,wCAAAN,WAAW,CAACa,SAAZ,GAAwB;EACtB;AACF;AACA;EACET,SAAS,EAAEU,mBAAUC,MAJC;;EAKtB;AACF;AACA;EACEC,QAAQ,EAAEF,mBAAUG,IARE;;EAStB;AACF;AACA;AACA;EACEZ,SAAS,EAAES,mBAAUI,WAbC;;EActB;AACF;AACA;EACEf,OAAO,EAAEW,mBAAUK,KAAV,CAAgB;IACvB;AACJ;AACA;IACIP,IAAI,EAAEE,mBAAUC;EAJO,CAAhB,EAKNK;AAtBmB,CAAxB;;eAyBe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4CtB,WAA5C,C"}
1
+ {"version":3,"file":"TableBody.js","names":["tableSectionContext","type","filterClassName","defaultComponent","HvTableBody","props","externalRef","classes","className","component","children","withNavigation","others","tableContext","TableContext","bodyRef","handleRef","Component","components","TBody","root","map","element","key","selected","propTypes","PropTypes","string","node","elementType","bool","shape","isRequired","styles","name"],"sources":["../../../src/Table/TableBody/TableBody.js"],"sourcesContent":["import React, { forwardRef, useContext, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport { useForkRef } from \"@hitachivantara/uikit-react-core\";\n\nimport Focus from \"@hitachivantara/uikit-react-core/dist/Focus\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"body\",\n filterClassName: \"grid\",\n};\n\nconst defaultComponent = \"tbody\";\n\n/**\n * HvTableBody acts as a `tbody` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles\n */\nconst HvTableBody = forwardRef(function HvTableBody(props, externalRef) {\n const { classes, className, component, children, withNavigation = false, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const bodyRef = useRef(null);\n\n const handleRef = useForkRef(externalRef, bodyRef);\n\n const Component = component || tableContext?.components?.TBody || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, className)}\n ref={handleRef}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n >\n {withNavigation\n ? children.map((element) => {\n return (\n <Focus\n rootRef={bodyRef}\n key={`row-${element.key}`}\n strategy=\"grid\"\n useArrows=\"true\"\n filterClass={tableSectionContext.filterClassName}\n navigationJump={1}\n focusDisabled={false}\n selected={element.props.selected}\n >\n {element}\n </Focus>\n );\n })\n : children}\n </Component>\n </TableSectionContext.Provider>\n );\n});\n\nHvTableBody.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tbody.\n */\n component: PropTypes.elementType,\n /**\n * Sets whether or not there should be arrow navigation between the table rows\n */\n withNavigation: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default with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EAHhD,GAIMS,MAJN,GAMGD,cAAc,GACXD,QAAQ,CAACW,GAAT,CAAa,UAACC,OAAD,EAAa;IACxB,oBACE,6BAAC,cAAD;MACE,OAAO,EAAEP,OADX;MAEE,GAAG,gBAASO,OAAO,CAACC,GAAjB,CAFL;MAGE,QAAQ,EAAC,MAHX;MAIE,SAAS,EAAC,MAJZ;MAKE,WAAW,EAAEvB,mBAAmB,CAACE,eALnC;MAME,cAAc,EAAE,CANlB;MAOE,aAAa,EAAE,KAPjB;MAQE,QAAQ,EAAEoB,OAAO,CAACjB,KAAR,CAAcmB;IAR1B,GAUGF,OAVH,CADF;EAcD,CAfD,CADW,GAiBXZ,QAvBN,CADF,CADF;AA6BD,CAxCmB,CAApB;AA0CA,wCAAAN,WAAW,CAACqB,SAAZ,GAAwB;EACtB;AACF;AACA;EACEjB,SAAS,EAAEkB,mBAAUC,MAJC;;EAKtB;AACF;AACA;EACEjB,QAAQ,EAAEgB,mBAAUE,IARE;;EAStB;AACF;AACA;AACA;EACEnB,SAAS,EAAEiB,mBAAUG,WAbC;;EActB;AACF;AACA;EACElB,cAAc,EAAEe,mBAAUI,IAjBJ;;EAkBtB;AACF;AACA;EACEvB,OAAO,EAAEmB,mBAAUK,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEM,mBAAUC;EAJO,CAAhB,EAKNK;AA1BmB,CAAxB;;eA6Be,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4C9B,WAA5C,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","root","backgroundColor","position","zIndex"],"sources":["../../../src/Table/TableBody/styles.js"],"sourcesContent":["const styles = () => ({\n root: {\n backgroundColor: \"inherit\",\n\n position: \"relative\",\n zIndex: 0,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS;EAAA,OAAO;IACpBC,IAAI,EAAE;MACJC,eAAe,EAAE,SADb;MAGJC,QAAQ,EAAE,UAHN;MAIJC,MAAM,EAAE;IAJJ;EADc,CAAP;AAAA,CAAf;;eASeJ,M"}
1
+ {"version":3,"file":"styles.js","names":["styles","root","backgroundColor","position","zIndex"],"sources":["../../../src/Table/TableBody/styles.js"],"sourcesContent":["const styles = () => ({\n root: {\n backgroundColor: \"inherit\",\n position: \"relative\",\n zIndex: 0,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS;EAAA,OAAO;IACpBC,IAAI,EAAE;MACJC,eAAe,EAAE,SADb;MAEJC,QAAQ,EAAE,UAFN;MAGJC,MAAM,EAAE;IAHJ;EADc,CAAP;AAAA,CAAf;;eAQeJ,M"}
@@ -15,6 +15,8 @@ export type HvTableCellClassKey =
15
15
  | "variantCheckbox"
16
16
  | "variantExpand"
17
17
  | "variantActions"
18
+ | "variantListactions"
19
+ | "variantListcheckbox"
18
20
  | "variantNone"
19
21
  | "resizable"
20
22
  | "resizing";
@@ -38,7 +40,7 @@ export interface HvTableCellProps
38
40
  /**
39
41
  * Sets the cell's variant.
40
42
  */
41
- variant?: "checkbox" | "expand" | "actions" | "default" | "none";
43
+ variant?: "checkbox" | "expand" | "actions" | "default" | "listcheckbox" | "listactions" | "none";
42
44
 
43
45
  /**
44
46
  * Specify the cell type.
@@ -90,7 +90,7 @@ var HvTableCell = /*#__PURE__*/(0, _react.forwardRef)(function HvTableCell(props
90
90
  ref: ref,
91
91
  role: Component === defaultComponent ? null : "cell",
92
92
  style: style,
93
- className: (0, _clsx.default)(classes.root, classes[type], className, align !== "inherit" && classes["align".concat((0, _capitalize.default)(align))], variant !== "default" && classes["variant".concat((0, _capitalize.default)(variant))], sorted && classes.sorted, stickyColumn && classes.stickyColumn, stickyColumnMostLeft && classes.stickyColumnMostLeft, stickyColumnLeastRight && classes.stickyColumnLeastRight, groupColumnMostLeft && classes.groupColumnMostLeft, groupColumnMostRight && classes.groupColumnMostRight, resizable && classes.resizable, resizing && classes.resizing)
93
+ className: (0, _clsx.default)(classes.root, classes[type], className, align !== "inherit" && classes["align".concat((0, _capitalize.default)(align))], variant !== "default" && classes["variant".concat((0, _capitalize.default)(variant))], sorted && classes.sorted, stickyColumn && classes.stickyColumn, stickyColumnMostLeft && classes.stickyColumnMostLeft, stickyColumnLeastRight && classes.stickyColumnLeastRight, groupColumnMostLeft && classes.groupColumnMostLeft, groupColumnMostRight && classes.groupColumnMostRight, resizable && classes.resizable, resizing && classes.resizing, tableContext.variant === "listrow" && [classes.variantList, type !== "body" && classes.variantListHead])
94
94
  }, others), children);
95
95
  });
96
96
  process.env.NODE_ENV !== "production" ? HvTableCell.propTypes = {
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" ? HvTableCell.propTypes = {
123
123
  /**
124
124
  * Sets the cell's variant.
125
125
  */
126
- variant: _propTypes.default.oneOf(["checkbox", "expand", "actions", "default", "none"]),
126
+ variant: _propTypes.default.oneOf(["checkbox", "expand", "actions", "default", "listcheckbox", "listactions", "none"]),
127
127
 
128
128
  /**
129
129
  * Specify the cell's type.
@@ -266,6 +266,26 @@ process.env.NODE_ENV !== "production" ? HvTableCell.propTypes = {
266
266
  */
267
267
  variantNone: _propTypes.default.string,
268
268
 
269
+ /**
270
+ * Styles applied to the component root when its variant is list
271
+ */
272
+ variantList: _propTypes.default.string,
273
+
274
+ /**
275
+ * Styles applied to the cell when its variant is list and actions.
276
+ */
277
+ variantListactions: _propTypes.default.string,
278
+
279
+ /**
280
+ * Styles applied to the cell when its variant is list and checkbox.
281
+ */
282
+ variantListcheckbox: _propTypes.default.string,
283
+
284
+ /**
285
+ * Styles applied to the cell when its variant is list and the type is head .
286
+ */
287
+ variantListHead: _propTypes.default.string,
288
+
269
289
  /**
270
290
  * Styles applied to the cell when it's part of a resizable column.
271
291
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.js","names":["defaultComponent","HvTableCell","props","ref","children","component","className","style","classes","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sorted","resizable","resizing","others","tableContext","TableContext","tableSectionContext","TableSectionContext","Component","components","Td","root","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","shape","head","body","footer","sortIcon","alignLeft","alignRight","alignCenter","alignJustify","variantCheckbox","variantExpand","variantActions","variantNone","isRequired","styles","name"],"sources":["../../../src/Table/TableCell/TableCell.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"td\";\n\n/**\n * `HvTableCell` acts as a `td` element and inherits styles from its context\n */\nconst HvTableCell = forwardRef(function HvTableCell(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n align = \"inherit\",\n variant = \"default\",\n\n type: typeProp,\n\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n\n sorted = false,\n\n resizable = false,\n resizing = false,\n\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n\n const Component = component || tableContext?.components?.Td || defaultComponent;\n\n return (\n <Component\n ref={ref}\n role={Component === defaultComponent ? null : \"cell\"}\n style={style}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n\n [classes.sorted]: sorted,\n\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n {...others}\n >\n {children}\n </Component>\n );\n});\n\nHvTableCell.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to td.\n */\n component: PropTypes.elementType,\n\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Inline styles to be applied to the root element.\n */\n style: PropTypes.instanceOf(Object),\n\n /**\n * Set the text-align on the table cell content.\n */\n align: PropTypes.oneOf([\"center\", \"inherit\", \"justify\", \"left\", \"right\"]),\n /**\n * Sets the cell's variant.\n */\n variant: PropTypes.oneOf([\"checkbox\", \"expand\", \"actions\", \"default\", \"none\"]),\n\n /**\n * Specify the cell's type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n type: PropTypes.oneOf([\"body\", \"footer\", \"head\"]),\n\n /**\n * Whether or not the cell is part of a sorted column.\n */\n sorted: PropTypes.bool,\n\n /**\n * The cell is part of a sticky column.\n */\n stickyColumn: PropTypes.bool,\n /**\n * The cell is part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the first sticky to the right column.\n */\n stickyColumnLeastRight: PropTypes.bool,\n\n /**\n * The cell is part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.bool,\n\n /**\n * Whether or not the cell is resizable\n */\n resizable: PropTypes.bool,\n /**\n * Whether or not the cell is being resized\n */\n resizing: PropTypes.bool,\n\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n\n /**\n * Styles applied to the cell when it's in the table head.\n */\n head: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table body.\n */\n body: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table footer.\n */\n footer: PropTypes.string,\n\n /**\n * Styles applied to the cell when it's part of a sticky column.\n */\n stickyColumn: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first right sticky column.\n */\n stickyColumnLeastRight: PropTypes.string,\n\n /**\n * Styles applied to the cell when it's part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.string,\n\n /**\n * Styles applied to the cell when it's part of a sorted column.\n */\n sorted: PropTypes.string,\n\n sortIcon: PropTypes.string,\n\n /**\n * Styles applied to the component root when it is left aligned\n */\n alignLeft: PropTypes.string,\n /**\n * Styles applied to the component root when it is right aligned\n */\n alignRight: PropTypes.string,\n /**\n * Styles applied to the component root when it is center aligned\n */\n alignCenter: PropTypes.string,\n /**\n * Styles applied to the component root when it is justified\n */\n alignJustify: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is checkbox\n */\n variantCheckbox: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is expand\n */\n variantExpand: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is actions\n */\n variantActions: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is none\n */\n variantNone: PropTypes.string,\n\n /**\n * Styles applied to the cell when it's part of a resizable column.\n */\n resizable: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizing column.\n */\n resizing: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableCell\" })(HvTableCell);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,uBAAW,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,GAA5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AY,EAAEkB,mBAAUG,MAtBD;;IAuBvB;AACJ;AACA;IACIpB,oBAAoB,EAAEiB,mBAAUG,MA1BT;;IA2BvB;AACJ;AACA;IACInB,sBAAsB,EAAEgB,mBAAUG,MA9BX;;IAgCvB;AACJ;AACA;IACIlB,mBAAmB,EAAEe,mBAAUG,MAnCR;;IAoCvB;AACJ;AACA;IACIjB,oBAAoB,EAAEc,mBAAUG,MAvCT;;IAyCvB;AACJ;AACA;IACIhB,MAAM,EAAEa,mBAAUG,MA5CK;IA8CvBS,QAAQ,EAAEZ,mBAAUG,MA9CG;;IAgDvB;AACJ;AACA;IACIU,SAAS,EAAEb,mBAAUG,MAnDE;;IAoDvB;AACJ;AACA;IACIW,UAAU,EAAEd,mBAAUG,MAvDC;;IAwDvB;AACJ;AACA;IACIY,WAAW,EAAEf,mBAAUG,MA3DA;;IA4DvB;AACJ;AACA;IACIa,YAAY,EAAEhB,mBAAUG,MA/DD;;IAgEvB;AACJ;AACA;IACIc,eAAe,EAAEjB,mBAAUG,MAnEJ;;IAoEvB;AACJ;AACA;IACIe,aAAa,EAAElB,mBAAUG,MAvEF;;IAwEvB;AACJ;AACA;IACIgB,cAAc,EAAEnB,mBAAUG,MA3EH;;IA4EvB;AACJ;AACA;IACIiB,WAAW,EAAEpB,mBAAUG,MA/EA;;IAiFvB;AACJ;AACA;IACIf,SAAS,EAAEY,mBAAUG,MApFE;;IAqFvB;AACJ;AACA;IACId,QAAQ,EAAEW,mBAAUG;EAxFG,CAAhB,EAyFNkB;AApKmB,CAAxB;;eAuKe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4CrD,WAA5C,C"}
1
+ {"version":3,"file":"TableCell.js","names":["defaultComponent","HvTableCell","props","ref","children","component","className","style","classes","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sorted","resizable","resizing","others","tableContext","TableContext","tableSectionContext","TableSectionContext","Component","components","Td","root","variantList","variantListHead","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","shape","head","body","footer","sortIcon","alignLeft","alignRight","alignCenter","alignJustify","variantCheckbox","variantExpand","variantActions","variantNone","variantListactions","variantListcheckbox","isRequired","styles","name"],"sources":["../../../src/Table/TableCell/TableCell.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"td\";\n\n/**\n * `HvTableCell` acts as a `td` element and inherits styles from its context\n */\nconst HvTableCell = forwardRef(function HvTableCell(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n align = \"inherit\",\n variant = \"default\",\n\n type: typeProp,\n\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n\n sorted = false,\n\n resizable = false,\n resizing = false,\n\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n\n const Component = component || tableContext?.components?.Td || defaultComponent;\n\n return (\n <Component\n ref={ref}\n role={Component === defaultComponent ? null : \"cell\"}\n style={style}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n [classes.variantList]: tableContext.variant === \"listrow\",\n [classes.variantListHead]: tableContext.variant === \"listrow\" && type !== \"body\",\n [classes.sorted]: sorted,\n\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n {...others}\n >\n {children}\n </Component>\n );\n});\n\nHvTableCell.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to td.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Inline styles to be applied to the root element.\n */\n style: PropTypes.instanceOf(Object),\n /**\n * Set the text-align on the table cell content.\n */\n align: PropTypes.oneOf([\"center\", \"inherit\", \"justify\", \"left\", \"right\"]),\n /**\n * Sets the cell's variant.\n */\n variant: PropTypes.oneOf([\n \"checkbox\",\n \"expand\",\n \"actions\",\n \"default\",\n \"listcheckbox\",\n \"listactions\",\n \"none\",\n ]),\n /**\n * Specify the cell's type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n type: PropTypes.oneOf([\"body\", \"footer\", \"head\"]),\n /**\n * Whether or not the cell is part of a sorted column.\n */\n sorted: PropTypes.bool,\n /**\n * The cell is part of a sticky column.\n */\n stickyColumn: PropTypes.bool,\n /**\n * The cell is part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the first sticky to the right column.\n */\n stickyColumnLeastRight: PropTypes.bool,\n /**\n * The cell is part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.bool,\n /**\n * Whether or not the cell is resizable\n */\n resizable: PropTypes.bool,\n /**\n * Whether or not the cell is being resized\n */\n resizing: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table head.\n */\n head: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table body.\n */\n body: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table footer.\n */\n footer: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sticky column.\n */\n stickyColumn: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first right sticky column.\n */\n stickyColumnLeastRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sorted column.\n */\n sorted: PropTypes.string,\n\n sortIcon: PropTypes.string,\n /**\n * Styles applied to the component root when it is left aligned\n */\n alignLeft: PropTypes.string,\n /**\n * Styles applied to the component root when it is right aligned\n */\n alignRight: PropTypes.string,\n /**\n * Styles applied to the component root when it is center aligned\n */\n alignCenter: PropTypes.string,\n /**\n * Styles applied to the component root when it is justified\n */\n alignJustify: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is checkbox\n */\n variantCheckbox: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is expand\n */\n variantExpand: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is actions\n */\n variantActions: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is none\n */\n variantNone: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is list\n */\n variantList: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and actions.\n */\n variantListactions: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and checkbox.\n */\n variantListcheckbox: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and the type is head .\n */\n variantListHead: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizable column.\n */\n resizable: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizing column.\n */\n resizing: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableCell\" })(HvTableCell);\n"],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A9EA;;IA+EvB;AACJ;AACA;IACIkB,kBAAkB,EAAErB,mBAAUG,MAlFP;;IAmFvB;AACJ;AACA;IACImB,mBAAmB,EAAEtB,mBAAUG,MAtFR;;IAuFvB;AACJ;AACA;IACIL,eAAe,EAAEE,mBAAUG,MA1FJ;;IA2FvB;AACJ;AACA;IACIjB,SAAS,EAAEc,mBAAUG,MA9FE;;IA+FvB;AACJ;AACA;IACIhB,QAAQ,EAAEa,mBAAUG;EAlGG,CAAhB,EAmGNoB;AA7KmB,CAAxB;;eAgLe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4CzD,WAA5C,C"}
@@ -94,6 +94,34 @@ var styles = function styles(theme) {
94
94
  paddingTop: 0,
95
95
  paddingBottom: 0
96
96
  },
97
+ variantList: {
98
+ minHeight: 52,
99
+ "td&": {
100
+ height: 52
101
+ },
102
+ padding: "0, 0, 0, 32px",
103
+ border: 0
104
+ },
105
+ variantListHead: {
106
+ backgroundColor: "inherit",
107
+ "td&": {
108
+ height: 16
109
+ }
110
+ },
111
+ variantListactions: {
112
+ borderLeft: "solid 2px ".concat(theme.hv.palette.atmosphere.atmo2),
113
+ paddingLeft: "0",
114
+ textAlign: "center",
115
+ width: 130,
116
+ maxWidth: 130
117
+ },
118
+ variantListcheckbox: {
119
+ borderRight: "solid 2px ".concat(theme.hv.palette.atmosphere.atmo2),
120
+ padding: 0,
121
+ textAlign: "center",
122
+ width: 34,
123
+ maxWidth: 34
124
+ },
97
125
  stickyColumn: {
98
126
  position: "sticky",
99
127
  zIndex: 2,