hplx-react-elements-dev 1.0.55 → 1.0.57

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.
@@ -3,5 +3,5 @@ import "react-date-range/dist/styles.css";
3
3
  import "react-date-range/dist/theme/default.css";
4
4
  import "../datePicker/DatePickerCSS.css";
5
5
  import { DatePickerProps } from "../types";
6
- declare const DatePicker: ({ disabledDates, selectDate, dateVar, minDate, maxDate, label, width, labelColor, labelSize, placeholder, 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;
6
+ declare const DatePicker: ({ disabledDates, selectDate, dateVar, minDate, maxDate, label, width, labelColor, labelSize, placeholder, height, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, showPlaceHolderOnly, char_count, errorMsg, suffixInputProps, suffixDropdown, isSuffixEditable, suffixPlaceholder, fieldColor, isborderRequired, }: DatePickerProps) => JSX.Element;
7
7
  export default DatePicker;
package/dist/esm/index.js CHANGED
@@ -2449,15 +2449,18 @@ var InputField = function InputField(_a) {
2449
2449
  }))
2450
2450
  })), showEmailSuggestions && // This div displays a dropdown of email provider options
2451
2451
  jsxRuntime.exports.jsx("div", __assign({
2452
- className: "hplxt-absolute hplxt-mt-1 hplxt-left-10 hplxt-right-10 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-scroll hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ".concat(showEmailDropdown ? "hplxt-block" : "hplxt-hidden")
2452
+ className: "hplxt-absolute ".concat(showEmailDropdown ? "hplxt-block" : "hplxt-hidden", " hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-border hplxt-border-Blue_gray-200 hplxt-bg-White hplxt-overflow-y-scroll hplxt-shadow-md hplxt-z-10 hplxt-max-h-72 ")
2453
2453
  }, {
2454
- children: emailProviders === null || emailProviders === void 0 ? void 0 : emailProviders.map(function (option) {
2455
- return jsxRuntime.exports.jsx(DropdownItems, {
2456
- label: option,
2457
- onSelect: function onSelect() {
2458
- handleEmailProviderSelection(option);
2459
- }
2460
- }, option);
2454
+ children: jsxRuntime.exports.jsx("div", {
2455
+ children: emailProviders === null || emailProviders === void 0 ? void 0 : emailProviders.map(function (option) {
2456
+ return jsxRuntime.exports.jsx(DropdownItems, {
2457
+ className: "hplxt-text-Primary-700",
2458
+ label: option,
2459
+ onSelect: function onSelect() {
2460
+ handleEmailProviderSelection(option);
2461
+ }
2462
+ }, option);
2463
+ })
2461
2464
  })
2462
2465
  })), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
2463
2466
  className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
@@ -17172,26 +17175,28 @@ var DatePicker = function DatePicker(_a) {
17172
17175
  suffixButton = _a.suffixButton,
17173
17176
  suffix = _a.suffix,
17174
17177
  hint_text = _a.hint_text,
17178
+ _g = _a.showPlaceHolderOnly,
17179
+ showPlaceHolderOnly = _g === void 0 ? false : _g,
17175
17180
  char_count = _a.char_count,
17176
- _g = _a.errorMsg,
17177
- errorMsg = _g === void 0 ? "" : _g,
17181
+ _h = _a.errorMsg,
17182
+ errorMsg = _h === void 0 ? "" : _h,
17178
17183
  // inputProps,
17179
17184
  suffixInputProps = _a.suffixInputProps,
17180
17185
  suffixDropdown = _a.suffixDropdown,
17181
- _h = _a.isSuffixEditable,
17182
- isSuffixEditable = _h === void 0 ? false : _h,
17186
+ _j = _a.isSuffixEditable,
17187
+ isSuffixEditable = _j === void 0 ? false : _j,
17183
17188
  suffixPlaceholder = _a.suffixPlaceholder,
17184
17189
  fieldColor = _a.fieldColor,
17185
- _j = _a.isborderRequired,
17186
- isborderRequired = _j === void 0 ? true : _j;
17190
+ _k = _a.isborderRequired,
17191
+ isborderRequired = _k === void 0 ? true : _k;
17187
17192
 
17188
- var _k = useState(),
17189
- date = _k[0],
17190
- setDate = _k[1];
17193
+ var _l = useState(),
17194
+ date = _l[0],
17195
+ setDate = _l[1];
17191
17196
 
17192
- var _l = useState(false),
17193
- clicked = _l[0],
17194
- setClicked = _l[1];
17197
+ var _m = useState(false),
17198
+ clicked = _m[0],
17199
+ setClicked = _m[1];
17195
17200
 
17196
17201
  var handleSelect = function handleSelect(date) {
17197
17202
  setDate(date);
@@ -17230,10 +17235,10 @@ var DatePicker = function DatePicker(_a) {
17230
17235
  return jsxRuntime.exports.jsxs("div", __assign({
17231
17236
  className: ""
17232
17237
  }, {
17233
- children: [jsxRuntime.exports.jsx("div", __assign({
17238
+ children: [jsxRuntime.exports.jsxs("div", __assign({
17234
17239
  className: "hplxt-relative "
17235
17240
  }, {
17236
- children: jsxRuntime.exports.jsx(InputField, {
17241
+ children: [!showPlaceHolderOnly && jsxRuntime.exports.jsx(InputField, {
17237
17242
  width: width ? width : "8em",
17238
17243
  label: label,
17239
17244
  labelColor: labelColor,
@@ -17260,7 +17265,15 @@ var DatePicker = function DatePicker(_a) {
17260
17265
  value: date ? dayjs(date).format("MMM DD, YYYY") : selectDate === null || selectDate === void 0 ? void 0 : selectDate.toString()
17261
17266
  },
17262
17267
  fieldColor: fieldColor
17263
- })
17268
+ }), showPlaceHolderOnly && jsxRuntime.exports.jsx(Button, {
17269
+ hierarchy: "Secondary-Grey",
17270
+ size: "sm",
17271
+ textField: "Date",
17272
+ icon: "Left",
17273
+ iconFile: "hx_calendar-add hplxt-text-3 ",
17274
+ onClick: inputClick,
17275
+ className: "hplxt-text-Gray-700"
17276
+ })]
17264
17277
  })), jsxRuntime.exports.jsx("div", __assign({
17265
17278
  className: "hplxt-absolute hplxt-mt-1 hplxt-z-10"
17266
17279
  }, {
@@ -36,6 +36,7 @@ export interface DatePickerProps {
36
36
  minDate?: Date;
37
37
  width?: string | number;
38
38
  maxDate?: Date;
39
+ showPlaceHolderOnly?: boolean;
39
40
  label?: string;
40
41
  border?: string;
41
42
  fieldColor?: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.55",
12
+ "version": "1.0.57",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",