hplx-react-elements-dev 1.0.42 → 1.0.43

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.
@@ -2,14 +2,6 @@
2
2
  import "react-date-range/dist/styles.css";
3
3
  import "react-date-range/dist/theme/default.css";
4
4
  import "../datePicker/DatePickerCSS.css";
5
- export interface DatePickerProps {
6
- disabledDates?: Date[];
7
- selectDate?: any;
8
- dateVar: (val: Date) => void;
9
- isborderRequired?: boolean;
10
- minDate?: Date;
11
- maxDate?: Date;
12
- fieldColor?: string;
13
- }
14
- declare const DatePicker: ({ disabledDates, selectDate, dateVar, minDate, maxDate, fieldColor, isborderRequired, }: DatePickerProps) => JSX.Element;
5
+ import { DatePickerProps } from "../types";
6
+ declare const DatePicker: ({ disabledDates, selectDate, dateVar, minDate, maxDate, label, labelColor, labelSize, height, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, suffixInputProps, suffixDropdown, isSuffixEditable, suffixPlaceholder, fieldColor, isborderRequired, }: DatePickerProps) => JSX.Element;
15
7
  export default DatePicker;
package/dist/esm/index.js CHANGED
@@ -5370,7 +5370,7 @@ var AddSuggestion = function AddSuggestion(_a) {
5370
5370
  })
5371
5371
  }), showDropdown && jsxRuntime.exports.jsx("div", __assign({
5372
5372
  ref: wrapperRef,
5373
- className: "hplxt-absolute hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 "
5373
+ className: "hplxt-absolute hplxt-border hplxt-border-Gray-300 hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-Indigo-25 hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 "
5374
5374
  }, {
5375
5375
  children: suggestionArr && suggestionArr.length > 0 && jsxRuntime.exports.jsx("div", {
5376
5376
  children: (suggestionArr === null || suggestionArr === void 0 ? void 0 : suggestionArr.constructor) === Array && suggestionArr.length ? suggestionArr.map(function (option) {
@@ -16929,17 +16929,41 @@ var DatePicker = function DatePicker(_a) {
16929
16929
  dateVar = _a.dateVar,
16930
16930
  minDate = _a.minDate,
16931
16931
  maxDate = _a.maxDate,
16932
+ label = _a.label,
16933
+ labelColor = _a.labelColor,
16934
+ labelSize = _a.labelSize,
16935
+ _c = _a.height,
16936
+ height = _c === void 0 ? "" : _c,
16937
+ _d = _a.start_icon,
16938
+ start_icon = _d === void 0 ? "hx_calendar hplxt-text-4" : _d,
16939
+ _e = _a.end_icon,
16940
+ end_icon = _e === void 0 ? "" : _e,
16941
+ _f = _a.hint_text_icon,
16942
+ hint_text_icon = _f === void 0 ? "" : _f,
16943
+ prefix = _a.prefix,
16944
+ suffixButton = _a.suffixButton,
16945
+ suffix = _a.suffix,
16946
+ hint_text = _a.hint_text,
16947
+ char_count = _a.char_count,
16948
+ _g = _a.errorMsg,
16949
+ errorMsg = _g === void 0 ? "" : _g,
16950
+ // inputProps,
16951
+ suffixInputProps = _a.suffixInputProps,
16952
+ suffixDropdown = _a.suffixDropdown,
16953
+ _h = _a.isSuffixEditable,
16954
+ isSuffixEditable = _h === void 0 ? false : _h,
16955
+ suffixPlaceholder = _a.suffixPlaceholder,
16932
16956
  fieldColor = _a.fieldColor,
16933
- _c = _a.isborderRequired,
16934
- isborderRequired = _c === void 0 ? true : _c;
16957
+ _j = _a.isborderRequired,
16958
+ isborderRequired = _j === void 0 ? true : _j;
16935
16959
 
16936
- var _d = useState(),
16937
- date = _d[0],
16938
- setDate = _d[1];
16960
+ var _k = useState(),
16961
+ date = _k[0],
16962
+ setDate = _k[1];
16939
16963
 
16940
- var _e = useState(false),
16941
- clicked = _e[0],
16942
- setClicked = _e[1];
16964
+ var _l = useState(false),
16965
+ clicked = _l[0],
16966
+ setClicked = _l[1];
16943
16967
 
16944
16968
  var handleSelect = function handleSelect(date) {
16945
16969
  setDate(date);
@@ -16982,8 +17006,24 @@ var DatePicker = function DatePicker(_a) {
16982
17006
  className: "hplxt-relative hplxt-w-[189px]"
16983
17007
  }, {
16984
17008
  children: jsxRuntime.exports.jsx(InputField, {
17009
+ label: label,
17010
+ labelColor: labelColor,
17011
+ labelSize: labelSize,
17012
+ height: height,
17013
+ end_icon: end_icon,
17014
+ hint_text_icon: hint_text_icon,
17015
+ prefix: prefix,
17016
+ suffixButton: suffixButton,
17017
+ suffix: suffix,
17018
+ hint_text: hint_text,
17019
+ char_count: char_count,
17020
+ errorMsg: errorMsg,
17021
+ suffixInputProps: suffixInputProps,
17022
+ suffixDropdown: suffixDropdown,
17023
+ isSuffixEditable: isSuffixEditable,
17024
+ suffixPlaceholder: suffixPlaceholder,
16985
17025
  isborderRequired: isborderRequired,
16986
- start_icon: "hx_calendar hplxt-text-4",
17026
+ start_icon: start_icon,
16987
17027
  inputProps: {
16988
17028
  placeholder: "Select date",
16989
17029
  onClick: inputClick,
@@ -23,6 +23,34 @@ export interface InputFieldProps {
23
23
  isSuffixEditable?: boolean;
24
24
  handleSuffixValChange?: (value: any) => void;
25
25
  }
26
+ export interface DatePickerProps {
27
+ disabledDates?: Date[];
28
+ selectDate?: any;
29
+ dateVar: (val: Date) => void;
30
+ minDate?: Date;
31
+ maxDate?: Date;
32
+ label?: string;
33
+ fieldColor?: string;
34
+ labelSize?: typographyTextType;
35
+ labelColor?: string;
36
+ height?: string;
37
+ prefix?: ReactNode;
38
+ suffixButton?: ReactNode;
39
+ suffix?: ReactNode;
40
+ start_icon?: string;
41
+ end_icon?: string;
42
+ hint_text?: string;
43
+ hint_text_icon?: string;
44
+ char_count?: string;
45
+ errorMsg?: string;
46
+ isborderRequired?: boolean;
47
+ suffixInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
48
+ suffixPlaceholder?: string;
49
+ suffixDropdown?: any;
50
+ handleSuffixClick?: (value: any) => void;
51
+ isSuffixEditable?: boolean;
52
+ handleSuffixValChange?: (value: any) => void;
53
+ }
26
54
  export interface InputFieldSplitProps {
27
55
  label?: string;
28
56
  labelSize?: typographyTextType;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.42",
12
+ "version": "1.0.43",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",