opus-toolkit-components 0.8.0 → 0.8.2

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.
@@ -3690,7 +3690,7 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
3690
3690
  className: iconClasses
3691
3691
  })), /*#__PURE__*/external_react_default().createElement("input", {
3692
3692
  ref: ref,
3693
- className: "w-full ".concat(Icon ? iconPosition === 'left' ? 'pl-10' : 'pr-10' : '', " bg-[--color-input-bg] border-none focus:ring-0 focus:outline-none rounded-md p-3"),
3693
+ className: "w-full ".concat(Icon ? iconPosition === 'left' ? 'pl-10' : 'pr-10' : '', " bg-[--color-input-bg] border-none focus:ring-0 focus:outline-none rounded-md py-2 px-3"),
3694
3694
  type: type,
3695
3695
  name: name,
3696
3696
  placeholder: placeholder,
@@ -3901,6 +3901,7 @@ const RadioButton = _ref => {
3901
3901
  label: 'Other'
3902
3902
  }],
3903
3903
  name,
3904
+ value,
3904
3905
  onChange,
3905
3906
  className = '',
3906
3907
  tabIndex = '',
@@ -3911,10 +3912,9 @@ const RadioButton = _ref => {
3911
3912
  dataCy,
3912
3913
  disabled = false
3913
3914
  } = _ref;
3914
- const [selectedValue, setSelectedValue] = (0,external_react_.useState)('');
3915
+ const selectedValue = value;
3915
3916
  const handleChange = item => {
3916
3917
  if (disabled) return;
3917
- setSelectedValue(item.value);
3918
3918
  const event = {
3919
3919
  target: {
3920
3920
  name: name,
@@ -12310,8 +12310,7 @@ function Dropdown(_ref) {
12310
12310
  disabled = false,
12311
12311
  dataCy // optional override
12312
12312
  } = _ref;
12313
- const initialSelectedItem = items.find(item => item.value === value) || null;
12314
- const [selectedItem, setSelectedItem] = (0,external_react_.useState)(initialSelectedItem);
12313
+ const [selectedItem, setSelectedItem] = (0,external_react_.useState)(null);
12315
12314
  const [isOpen, setIsOpen] = (0,external_react_.useState)(false);
12316
12315
  (0,external_react_.useEffect)(() => {
12317
12316
  const newSelectedItem = items.find(item => item.value === value) || null;
@@ -12553,4 +12552,4 @@ const Pill = _ref => {
12553
12552
  /******/ })()
12554
12553
  ;
12555
12554
  });
12556
- //# sourceMappingURL=main.0b2b73d40c9be7ecb7d6.js.map
12555
+ //# sourceMappingURL=main.ac163118cf08b8a8b6fc.js.map