hplx-react-elements-dev 1.0.17 → 1.0.19

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.
@@ -6,6 +6,7 @@ export interface DatePickerProps {
6
6
  disabledDates: Date[];
7
7
  selectDate?: Date;
8
8
  dateVar: (val: Date) => void;
9
+ isborderRequired: boolean;
9
10
  }
10
- declare const DatePicker: ({ disabledDates, selectDate, dateVar }: DatePickerProps) => JSX.Element;
11
+ declare const DatePicker: ({ disabledDates, selectDate, dateVar, isborderRequired, }: DatePickerProps) => JSX.Element;
11
12
  export default DatePicker;
package/dist/esm/index.js CHANGED
@@ -200,7 +200,8 @@ var InputField = function InputField(_a) {
200
200
  char_count = _a.char_count,
201
201
  _e = _a.errorMsg,
202
202
  errorMsg = _e === void 0 ? "" : _e,
203
- inputProps = _a.inputProps;
203
+ inputProps = _a.inputProps,
204
+ isborderRequired = _a.isborderRequired;
204
205
  var disabled = (inputProps || {}).disabled;
205
206
  return jsxRuntime.exports.jsxs("div", {
206
207
  children: [jsxRuntime.exports.jsxs("div", __assign({
@@ -231,7 +232,7 @@ var InputField = function InputField(_a) {
231
232
  }, {
232
233
  children: jsxRuntime.exports.jsxs("div", __assign({
233
234
  "data-setid": "error-msg",
234
- className: "flex border-1 overflow-hidden placeholder:text-Gray-500 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg h-10 ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error" : "hover:border-Primary-300 hover:shadow-xs-primary"))
235
+ className: "flex ".concat(isborderRequired ? "border-1" : "", " overflow-hidden placeholder:text-Gray-500 ").concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg h-10 ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error" : " ".concat(isborderRequired ? "hover:border-Primary-300 hover:shadow-xs-primary" : " ")))
235
236
  }, {
236
237
  children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
237
238
  "data-testid": "input-prefix",
@@ -4032,7 +4033,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
4032
4033
  onAnimationEnd: function onAnimationEnd() {
4033
4034
  console.log("onAnimationEnd called");
4034
4035
  },
4035
- className: "".concat(active ? "max-h-[1000px]" : "max-h-0", " ").concat(active ? "p-5" : "p-0", " transition-all duration-500 ease-in-out overflow-auto mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " text-ellipsis")
4036
+ className: "".concat(active ? "max-h-[1000px]" : "max-h-0", " ").concat(active ? "p-5" : "p-0", " transition-all duration-500 ease-in-out overflow-hidden mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " text-ellipsis")
4036
4037
  }, {
4037
4038
  children: [header && jsxRuntime.exports.jsx("div", __assign({
4038
4039
  className: "flex flex-1 m-1 p-4"
@@ -16614,7 +16615,8 @@ DateRangePicker$1.default = _default;
16614
16615
  var DatePicker = function DatePicker(_a) {
16615
16616
  var disabledDates = _a.disabledDates,
16616
16617
  selectDate = _a.selectDate,
16617
- dateVar = _a.dateVar;
16618
+ dateVar = _a.dateVar,
16619
+ isborderRequired = _a.isborderRequired;
16618
16620
 
16619
16621
  var _b = useState(new Date(selectDate ? selectDate : new Date())),
16620
16622
  date = _b[0],
@@ -16642,6 +16644,7 @@ var DatePicker = function DatePicker(_a) {
16642
16644
  className: "relative w-[189px]"
16643
16645
  }, {
16644
16646
  children: jsxRuntime.exports.jsx(InputField, {
16647
+ isborderRequired: isborderRequired,
16645
16648
  start_icon: "hx_calendar",
16646
16649
  inputProps: {
16647
16650
  placeholder: date ? dayjs(date).format("MMM DD, YYYY") : "select dates",
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { InputFieldProps } from "../types";
3
- declare const InputField: ({ label, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, }: InputFieldProps) => JSX.Element;
3
+ declare const InputField: ({ label, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, isborderRequired, }: InputFieldProps) => JSX.Element;
4
4
  export default InputField;
@@ -10,6 +10,7 @@ export interface InputFieldProps {
10
10
  hint_text_icon?: string;
11
11
  char_count?: string;
12
12
  errorMsg?: string;
13
+ isborderRequired?: boolean;
13
14
  inputProps: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
14
15
  }
15
16
  export interface InputFieldSplitProps {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.17",
12
+ "version": "1.0.19",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",