opus-toolkit-components 0.5.1 → 0.5.3

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.
@@ -870,6 +870,7 @@ function DatePicker(_ref) {
870
870
  // Add onChange prop for passing event to parent
871
871
  value,
872
872
  className = '',
873
+ title = '',
873
874
  required = false // Add the required prop
874
875
  } = _ref;
875
876
  const [selectedDate, setSelectedDate] = (0,external_react_.useState)(value || initialDate);
@@ -899,6 +900,8 @@ function DatePicker(_ref) {
899
900
  name: name // Pass the name to identify the input in the event
900
901
  ,
901
902
  value: selectedDate,
903
+ title: title,
904
+ "aria-label": title,
902
905
  onChange: handleDateChange,
903
906
  className: inputClasses,
904
907
  required: required // Apply the required attribute to the input
@@ -1006,22 +1009,26 @@ function Table(_ref) {
1006
1009
  // Array defining columns and rendering logic
1007
1010
  rows = [],
1008
1011
  // Array defining rows
1009
- className = "",
1012
+ className = '',
1013
+ rowClassName = '',
1014
+ cellClassName = '',
1015
+ headRowClassName = '',
1016
+ headCellClassName = '',
1010
1017
  rowKeyExtractor = (row, index) => index // Function to extract unique keys for rows
1011
1018
  } = _ref;
1012
1019
  return /*#__PURE__*/external_react_default().createElement("table", {
1013
1020
  className: "w-full table-auto text-left border-collapse ".concat(className)
1014
1021
  }, /*#__PURE__*/external_react_default().createElement("thead", null, /*#__PURE__*/external_react_default().createElement("tr", {
1015
- className: "bg-greyBaseDark900"
1022
+ className: "bg-greyBaseDark900 ".concat(headRowClassName)
1016
1023
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("th", {
1017
1024
  key: column.key,
1018
- className: "border-b border-gray-300 py-2 px-4 text-sm font-normal text-greyDark1000"
1025
+ className: "border-b border-gray-300 py-2 px-4 text-sm font-normal text-greyDark1000 ".concat(headCellClassName)
1019
1026
  }, column.header)))), /*#__PURE__*/external_react_default().createElement("tbody", null, rows.map((row, index) => /*#__PURE__*/external_react_default().createElement("tr", {
1020
1027
  key: rowKeyExtractor(row, index),
1021
- className: "".concat(index % 2 === 0 ? "bg-greyLight100" : "bg-greyLight50", " hover:bg-greyLight500")
1028
+ className: "".concat(index % 2 === 0 ? "bg-greyLight100" : "bg-greyLight50", " hover:bg-greyLight500 ").concat(rowClassName)
1022
1029
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("td", {
1023
1030
  key: column.key,
1024
- className: "p-4 text-sm text-greyLight700"
1031
+ className: "p-4 text-sm text-greyLight700 ".concat(cellClassName)
1025
1032
  }, column.render ? column.render(row) : row[column.key]))))));
1026
1033
  }
1027
1034
  ;// ./node_modules/@react-aria/utils/dist/platform.mjs
@@ -9496,4 +9503,4 @@ const Modal = _ref => {
9496
9503
  /******/ })()
9497
9504
  ;
9498
9505
  });
9499
- //# sourceMappingURL=main.d2a239456950f848f305.js.map
9506
+ //# sourceMappingURL=main.6da54ee86d2456bdb71c.js.map