@agility/plenum-ui 1.3.26 → 1.3.29

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/lib/index.esm.js CHANGED
@@ -12507,10 +12507,10 @@ var InputCta = function (_a) {
12507
12507
  var handleClick = function () {
12508
12508
  onClickHandler && onClickHandler();
12509
12509
  };
12510
- var buttonStyle = cn('relative z-10 inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium focus:outline-none focus:ring-1 focus:ring-purple-500 focus:border-purple-500', {
12510
+ var buttonStyle = cn('relative inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium focus:outline-none focus:ring-1 focus:ring-purple-500 focus:border-purple-500', {
12511
12511
  'rounded-r text-gray-700 -ml-px': align === 'right'
12512
12512
  }, {
12513
- 'rounded-l text-gray-500 -mr-px focus-within:z-10': align === 'left'
12513
+ 'rounded-l text-gray-500 -mr-px': align === 'left'
12514
12514
  }, {
12515
12515
  'cursor-default': !onClickHandler
12516
12516
  }, {
@@ -12576,7 +12576,7 @@ var TextInputAddon = function (_a, ref) {
12576
12576
  label && (React__default.createElement(InputLabel, { label: label, isRequired: isRequired, id: id, isError: isError, isDisabled: isDisabled })),
12577
12577
  React__default.createElement("div", { className: "flex" },
12578
12578
  (leadIcon || leadLabel) && (React__default.createElement(InputCta, { icon: leadIcon, ctaLabel: leadLabel, align: "left", isClear: clearCta === "left" || clearCta === "both" })),
12579
- React__default.createElement("div", { className: "relative flex-grow focus-within:z-20" },
12579
+ React__default.createElement("div", { className: "relative flex-grow" },
12580
12580
  inlineIcon && (React__default.createElement("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3" },
12581
12581
  React__default.createElement(DynamicIcons, { icon: inlineIcon, className: "h-5 w-5 text-gray-400", outline: false }))),
12582
12582
  React__default.createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: ref, type: type, name: name, id: id, className: cn("w-full rounded border border-gray-300 py-2 px-3 text-sm font-normal leading-5 outline-purple-500 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 ", {
@@ -12726,6 +12726,12 @@ var Textarea = function (_a, ref) {
12726
12726
  setValue(targetValue);
12727
12727
  };
12728
12728
  var discriptionStyles = cn("text-sm mt-1 block", { "text-gray-500": !isError }, { "text-red-500": isError });
12729
+ useEffect(function () {
12730
+ //if the external value is updated by the parent component, reset the value in here...
12731
+ if (externalValue !== undefined && externalValue !== null) {
12732
+ setValue(externalValue);
12733
+ }
12734
+ }, [externalValue]);
12729
12735
  if (!id)
12730
12736
  id = "ta-".concat(uniqueID);
12731
12737
  return (React__default.createElement("div", { className: cn({ "opacity-50": isDisabled }) },
@@ -12733,7 +12739,7 @@ var Textarea = function (_a, ref) {
12733
12739
  React__default.createElement("div", null,
12734
12740
  React__default.createElement("textarea", { ref: ref, maxLength: maxLength, onChange: handleOnchange, rows: rows, name: name, id: id, className: cn("block w-full rounded focus:border-purple-500 focus:ring-purple-500 sm:text-sm", { "border-gray-300 ": !isError }, {
12735
12741
  "border-red-500 outline-red-500 focus:ring-red-500": isError
12736
- }, className), defaultValue: defaultValue, value: value, placeholder: placeholder })),
12742
+ }, className), disabled: isDisabled, defaultValue: defaultValue, value: value, placeholder: placeholder })),
12737
12743
  React__default.createElement("div", { className: "flex flex-row space-x-3" },
12738
12744
  React__default.createElement("div", { className: "grow" }, message && (React__default.createElement("span", { className: discriptionStyles }, message))),
12739
12745
  isShowCounter && (React__default.createElement("div", { className: "shrink-0" },