@wavelengthusaf/components 3.3.8 → 3.3.9

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.9
18
+
19
+ - 8/18/2025
20
+ - Updated `WlAutoComplete` and `WlDatePicker` to be able to accept percentages values for width, as well as fixing the transperancy issues with the floating label.
21
+
17
22
  ### 3.3.8
18
23
 
19
24
  - 8/11/2025
@@ -8396,11 +8396,16 @@ var NestedDataTable = ({ data, columns }) => {
8396
8396
 
8397
8397
 
8398
8398
 
8399
- var InputWrapper = _styledcomponents2.default.div`
8399
+ var AutoContainer = _styledcomponents2.default.div`
8400
+ //position: relative;
8400
8401
  position: relative;
8401
8402
  width: ${(props) => props.$inputwidth || "320px"};
8402
8403
  height: ${(props) => props.$inputheight || "51px"};
8403
8404
  `;
8405
+ var InputWrapper = _styledcomponents2.default.div`
8406
+ width: 100%;
8407
+ height: 100%;
8408
+ `;
8404
8409
  var Label = _styledcomponents2.default.label`
8405
8410
  position: absolute;
8406
8411
  top: 50%;
@@ -8414,8 +8419,8 @@ var Label = _styledcomponents2.default.label`
8414
8419
  background-color: transparent;
8415
8420
  `;
8416
8421
  var Input = _styledcomponents2.default.input`
8417
- width: inherit;
8418
- height: inherit;
8422
+ width: 100%; //this must be 100%, as width inherit inherits the litaral experession, not the value
8423
+ height: 100%;
8419
8424
  padding: 0.5rem 0.75rem;
8420
8425
  border: ${(props) => props.$inputBorderStyling || "2px solid #ccc"};
8421
8426
  border-radius: 4px;
@@ -8448,7 +8453,7 @@ var Input = _styledcomponents2.default.input`
8448
8453
  return $focusedLabelColor;
8449
8454
  }};
8450
8455
  transform: translate(0%, -50%) scale(0.8);
8451
- background: linear-gradient(to bottom, transparent 50%, ${(props) => props.$primary !== null ? props.$primary : "#FFFFFF"} 0%);
8456
+ background: linear-gradient(to bottom, transparent 50%, ${(props) => props.$primary ? props.$primary : "#FFFFFF"} 0%);
8452
8457
  }
8453
8458
 
8454
8459
  &:not(:focus) + ${Label} {
@@ -8458,7 +8463,7 @@ var Input = _styledcomponents2.default.input`
8458
8463
  var DropDownList = _styledcomponents2.default.ul`
8459
8464
  position: absolute;
8460
8465
  z-index: 5;
8461
- width: ${(props) => props.$inputwidth || "320px"};
8466
+ width: 100%;
8462
8467
  background-color: white;
8463
8468
  border: 1px solid #ccc;
8464
8469
  margin-top: 0px;
@@ -8471,6 +8476,7 @@ var DropDownList = _styledcomponents2.default.ul`
8471
8476
  `;
8472
8477
  var ActiveListItem = _styledcomponents2.default.li`
8473
8478
  position: relative;
8479
+ width: 100%;
8474
8480
  z-index: 9999;
8475
8481
  padding: 10px;
8476
8482
  border-radius: 8px;
@@ -8601,7 +8607,7 @@ var WLAutoComplete = ({
8601
8607
  break;
8602
8608
  }
8603
8609
  };
8604
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
8610
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AutoContainer, { $inputheight: height2, $inputwidth: width2, children: [
8605
8611
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputWrapper, { id: `${idName}-inputwrapper`, $inputheight: height2, $inputwidth: width2, children: [
8606
8612
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8607
8613
  Input,
@@ -8716,8 +8722,8 @@ var InputWrapper2 = _styledcomponents2.default.div`
8716
8722
  height: ${(props) => props.$inputheight || "51px"};
8717
8723
 
8718
8724
  input {
8719
- width: inherit;
8720
- height: inherit;
8725
+ width: 100%;
8726
+ height: 100%;
8721
8727
  padding: 0.5rem 0.75rem;
8722
8728
  border: ${(props) => props.$inputBorderStyling || "2px solid #ccc"}; //works
8723
8729
  border-radius: 4px;
@@ -8738,7 +8744,7 @@ var InputWrapper2 = _styledcomponents2.default.div`
8738
8744
  padding: 0 5px;
8739
8745
  color: ${(props) => props.$FocusLabelColor || "#4a90e2"};
8740
8746
  transform: translate(0%, -50%) scale(0.8);
8741
- background: linear-gradient(to bottom, transparent 50%, ${(props) => props.$inputBackGroundColor !== null ? props.$inputBackGroundColor : "#FFFFFF"} 0%);
8747
+ background: linear-gradient(to bottom, transparent 50%, ${(props) => props.$inputBackGroundColor ? props.$inputBackGroundColor : "#FFFFFF"} 0%);
8742
8748
  }
8743
8749
 
8744
8750
  &:not(:focus) + ${Label2} {