opus-toolkit-components 0.5.2 → 0.5.4

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.
@@ -804,6 +804,8 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
804
804
  label,
805
805
  placeholder,
806
806
  type = 'text',
807
+ tabIndex = '',
808
+ title = '',
807
809
  name,
808
810
  isValid = true,
809
811
  errorMessage = "".concat(label, " is required"),
@@ -846,6 +848,9 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
846
848
  placeholder: placeholder,
847
849
  onChange: onChange,
848
850
  value: value,
851
+ title: title,
852
+ tabindex: tabIndex,
853
+ "aria-label": title,
849
854
  required: required // Set HTML required attribute
850
855
  }), Icon && iconPosition === 'right' && /*#__PURE__*/external_react_default().createElement("span", {
851
856
  className: "absolute right-3 flex items-center pointer-events-none"
@@ -870,6 +875,7 @@ function DatePicker(_ref) {
870
875
  // Add onChange prop for passing event to parent
871
876
  value,
872
877
  className = '',
878
+ title = '',
873
879
  required = false // Add the required prop
874
880
  } = _ref;
875
881
  const [selectedDate, setSelectedDate] = (0,external_react_.useState)(value || initialDate);
@@ -899,6 +905,8 @@ function DatePicker(_ref) {
899
905
  name: name // Pass the name to identify the input in the event
900
906
  ,
901
907
  value: selectedDate,
908
+ title: title,
909
+ "aria-label": title,
902
910
  onChange: handleDateChange,
903
911
  className: inputClasses,
904
912
  required: required // Apply the required attribute to the input
@@ -927,6 +935,8 @@ const RadioButton = _ref => {
927
935
  name,
928
936
  onChange,
929
937
  className = '',
938
+ tabIndex = '',
939
+ title = '',
930
940
  isValid = true,
931
941
  errorMessage = "".concat(label, " is required"),
932
942
  required = false
@@ -957,6 +967,9 @@ const RadioButton = _ref => {
957
967
  className: "cursor-pointer py-2 px-4 border rounded-lg ".concat(selectedValue === option.value ? 'bg-greyBaseDark900 text-greyBaseLight border-greyBaseDark900' : "bg-white text-greyLight700 ".concat(!isValid && selectedValue === '' ? 'border-utilRed1000' : 'border-greyLight500'), " transition duration-200")
958
968
  }, /*#__PURE__*/external_react_default().createElement("input", {
959
969
  type: "radio",
970
+ tabindex: tabIndex,
971
+ title: title,
972
+ "aria-label": title,
960
973
  name: name,
961
974
  value: option.value,
962
975
  checked: selectedValue === option.value,
@@ -9278,6 +9291,8 @@ function Dropdown(_ref) {
9278
9291
  placeholder = 'Example Placeholder',
9279
9292
  name,
9280
9293
  className = '',
9294
+ title = '',
9295
+ tabIndex = '',
9281
9296
  onChange,
9282
9297
  value,
9283
9298
  Icon,
@@ -9305,7 +9320,10 @@ function Dropdown(_ref) {
9305
9320
  return /*#__PURE__*/external_react_default().createElement(rn, {
9306
9321
  as: "div",
9307
9322
  className: "".concat(className, " relative inline-block text-left"),
9308
- name: name
9323
+ name: name,
9324
+ title: title,
9325
+ "aria-label": title,
9326
+ tabindex: tabIndex
9309
9327
  }, /*#__PURE__*/external_react_default().createElement("label", {
9310
9328
  className: "flex items-center"
9311
9329
  }, label, required && /*#__PURE__*/external_react_default().createElement("span", {
@@ -9500,4 +9518,4 @@ const Modal = _ref => {
9500
9518
  /******/ })()
9501
9519
  ;
9502
9520
  });
9503
- //# sourceMappingURL=main.06986501865044f51795.js.map
9521
+ //# sourceMappingURL=main.a1d4e70e4f1b11d99ba5.js.map