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.
- package/dist/esm/datePicker/DatePicker.d.ts +1 -1
- package/dist/esm/index.js +36 -23
- package/dist/esm/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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-
|
|
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:
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
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
|
-
|
|
17177
|
-
errorMsg =
|
|
17181
|
+
_h = _a.errorMsg,
|
|
17182
|
+
errorMsg = _h === void 0 ? "" : _h,
|
|
17178
17183
|
// inputProps,
|
|
17179
17184
|
suffixInputProps = _a.suffixInputProps,
|
|
17180
17185
|
suffixDropdown = _a.suffixDropdown,
|
|
17181
|
-
|
|
17182
|
-
isSuffixEditable =
|
|
17186
|
+
_j = _a.isSuffixEditable,
|
|
17187
|
+
isSuffixEditable = _j === void 0 ? false : _j,
|
|
17183
17188
|
suffixPlaceholder = _a.suffixPlaceholder,
|
|
17184
17189
|
fieldColor = _a.fieldColor,
|
|
17185
|
-
|
|
17186
|
-
isborderRequired =
|
|
17190
|
+
_k = _a.isborderRequired,
|
|
17191
|
+
isborderRequired = _k === void 0 ? true : _k;
|
|
17187
17192
|
|
|
17188
|
-
var
|
|
17189
|
-
date =
|
|
17190
|
-
setDate =
|
|
17193
|
+
var _l = useState(),
|
|
17194
|
+
date = _l[0],
|
|
17195
|
+
setDate = _l[1];
|
|
17191
17196
|
|
|
17192
|
-
var
|
|
17193
|
-
clicked =
|
|
17194
|
-
setClicked =
|
|
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.
|
|
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
|
}, {
|
package/dist/esm/types.d.ts
CHANGED