@wavelengthusaf/components 3.3.5 → 3.3.6

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/README.md CHANGED
@@ -14,6 +14,11 @@ npm install @wavelengthusaf/components
14
14
 
15
15
  ## Release Notes
16
16
 
17
+ ### 3.3.6
18
+
19
+ - 8/11/2025
20
+ - Updated `WLAutoComplete` to have the outline styling refactored, the component also features a `id` and `name` prop for form handling. Fixed dropdown visibility issues.
21
+
17
22
  ### 3.3.5
18
23
 
19
24
  - 8/08/2025
@@ -8402,9 +8402,6 @@ var OuterContainer = _styledcomponents2.default.div`
8402
8402
  align-items: center;
8403
8403
  justify-content: center;
8404
8404
  border-radius: 5px;
8405
- background-color: ${(props) => props.$primary || "#FFFFFF"};
8406
- height: calc(${(props) => props.$inputheight || "51px"} * 1.45);
8407
- width: calc(${(props) => props.$inputwidth || "320px"} * 1.07);
8408
8405
  `;
8409
8406
  var AutoContainer = _styledcomponents2.default.div`
8410
8407
  position: absolute;
@@ -8420,7 +8417,6 @@ var Label = _styledcomponents2.default.label`
8420
8417
  top: 50%;
8421
8418
  left: 10px;
8422
8419
  transform: translateY(-50%);
8423
- color: ${(props) => props.$primary || "#ccc"};
8424
8420
  font-size: 16px;
8425
8421
  pointer-events: none;
8426
8422
  transition: 0.3s ease all;
@@ -8453,7 +8449,8 @@ var Input = _styledcomponents2.default.input`
8453
8449
  &:focus + ${Label}, &:not(:placeholder-shown) + ${Label} {
8454
8450
  top: 0;
8455
8451
  left: 10px;
8456
- padding: 0 2px;
8452
+
8453
+ padding: 0 5px;
8457
8454
  color: ${(props) => {
8458
8455
  const { $focusedLabelColor, $dropDownVisible, $suggestBoolean } = props;
8459
8456
  if (!$focusedLabelColor) return "#4a90e2";
@@ -8461,7 +8458,12 @@ var Input = _styledcomponents2.default.input`
8461
8458
  if (!$suggestBoolean) return "#FF0000";
8462
8459
  return $focusedLabelColor;
8463
8460
  }};
8464
- background-color: ${(props) => props.$primary || "#FFFFFF"};
8461
+ transform: translate(0%, -50%) scale(0.8);
8462
+ background: linear-gradient(to bottom, transparent 50%, white 0%);
8463
+ }
8464
+
8465
+ &:not(:focus) + ${Label} {
8466
+ color: ${(props) => props.$defaultLabelColor || "#ccc"};
8465
8467
  }
8466
8468
  `;
8467
8469
  var DropDownList = _styledcomponents2.default.ul`
@@ -8478,8 +8480,9 @@ var DropDownList = _styledcomponents2.default.ul`
8478
8480
  max-height: 390px; //neccesary for limiting scroll options, limit to 10 per view
8479
8481
  `;
8480
8482
  var ActiveListItem = _styledcomponents2.default.li`
8483
+ position: relative;
8484
+ z-index: 9999;
8481
8485
  padding: 10px;
8482
- cursor: pointer;
8483
8486
  border-radius: 8px;
8484
8487
  background-color: ${(props) => props.$highlighted ? "#eee" : "white"};
8485
8488
  cursor: pointer;
@@ -8493,6 +8496,8 @@ var ActiveListItem = _styledcomponents2.default.li`
8493
8496
  }
8494
8497
  `;
8495
8498
  var NoHoverListItem = _styledcomponents2.default.li`
8499
+ position: relative;
8500
+ z-index: 9999;
8496
8501
  padding: 10px;
8497
8502
  cursor: pointer;
8498
8503
  background-color: white;
@@ -8518,7 +8523,8 @@ var WLAutoComplete = ({
8518
8523
  autoBackGroundColor,
8519
8524
  labelColor,
8520
8525
  FocusedlabelColor,
8521
- id
8526
+ id,
8527
+ name
8522
8528
  }) => {
8523
8529
  const inputRef = _react.useRef.call(void 0, null);
8524
8530
  const listRef = _react.useRef.call(void 0, null);
@@ -8605,12 +8611,13 @@ var WLAutoComplete = ({
8605
8611
  break;
8606
8612
  }
8607
8613
  };
8608
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: idName, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OuterContainer, { id: `${idName}-outercontain`, $primary: autoBackGroundColor, $inputheight: height2, $inputwidth: width2, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AutoContainer, { id: `${idName}-autocontain`, $primary: autoBackGroundColor, children: [
8609
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputWrapper, { id: `${idName}-inputwrapper`, $primary: autoBackGroundColor, $inputheight: height2, $inputwidth: width2, children: [
8614
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OuterContainer, { id: `${idName}-outercontain`, $primary: autoBackGroundColor, $inputheight: height2, $inputwidth: width2, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AutoContainer, { id: `${idName}-autocontain`, $primary: autoBackGroundColor, children: [
8615
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputWrapper, { id: `${idName}-inputwrapper`, $inputheight: height2, $inputwidth: width2, children: [
8610
8616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8611
8617
  Input,
8612
8618
  {
8613
- id: `${idName}-input`,
8619
+ id: idName,
8620
+ name,
8614
8621
  "data-testid": "InputSearchBar",
8615
8622
  type: "text",
8616
8623
  $primary: autoBackGroundColor,
@@ -8619,16 +8626,18 @@ var WLAutoComplete = ({
8619
8626
  $suggestBoolean: suggestHasItems,
8620
8627
  $dropDownVisible: isDropdownVisible,
8621
8628
  $focusedLabelColor: FocusedlabelColor,
8629
+ $defaultLabelColor: labelColor,
8622
8630
  value: inputValue,
8623
8631
  ref: inputRef,
8624
8632
  onClick: handleInputClick,
8625
8633
  onInput: handleChange,
8626
8634
  onKeyDown: handleKeyDown,
8627
8635
  onBlur: handleBlur,
8628
- placeholder: ""
8636
+ placeholder: "",
8637
+ autoComplete: "off"
8629
8638
  }
8630
8639
  ),
8631
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { id: `${idName}-label`, $primary: labelColor, children: floatLabel })
8640
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
8632
8641
  ] }),
8633
8642
  isDropdownVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropDownList, { id: `${idName}-droplist`, ref: listRef, $inputwidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
8634
8643
  //suggestions length controls showing the suggestions
@@ -8646,7 +8655,7 @@ var WLAutoComplete = ({
8646
8655
  `ActivelistItem-${item}-${index}`
8647
8656
  ))
8648
8657
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
8649
- ] }) }) }) });
8658
+ ] }) }) });
8650
8659
  };
8651
8660
 
8652
8661
  // src/components/inputs/WavelengthInputDatePicketer.tsx