opus-toolkit-components 0.5.0 → 0.5.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.
@@ -716,6 +716,7 @@ function Button(_ref) {
716
716
  // Optional animation for icon hover
717
717
  className = '',
718
718
  // Accepts additional custom class
719
+ title = '',
719
720
  onClick
720
721
  } = _ref;
721
722
  // Define styles for button ranks
@@ -737,6 +738,8 @@ function Button(_ref) {
737
738
  const classNames = "\n ".concat(state === 'disabled' ? disabledStyles : rankStyles[rank] || rankStyles.primary, "\n group\n transition \n ease-in-out \n duration-700 \n rounded-lg \n px-6 \n py-2 \n text-").concat(size, " \n flex \n items-center\n justify-center\n whitespace-nowrap // Prevents text wrapping\n ").concat(isFullWidth ? 'w-full' : '', "\n ").concat(className, "\n ");
738
739
  return /*#__PURE__*/external_react_default().createElement("button", {
739
740
  type: type,
741
+ title: title,
742
+ "aria-label": title,
740
743
  className: classNames,
741
744
  onClick: state === 'disabled' ? null : onClick,
742
745
  disabled: state === 'disabled'
@@ -9493,4 +9496,4 @@ const Modal = _ref => {
9493
9496
  /******/ })()
9494
9497
  ;
9495
9498
  });
9496
- //# sourceMappingURL=main.a19a73517a94be49c0dc.js.map
9499
+ //# sourceMappingURL=main.d2a239456950f848f305.js.map