hplx-react-elements-dev 1.1.5 → 1.1.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CarouselProps } from "../types";
|
|
3
3
|
import "../carousel/imageCarousel.css";
|
|
4
|
-
declare const ImageCarousel: ({ imageList, isNextPrev, caroselLeftIcon, caroselRightIcon, timeInterval, autoPlay, carouselIndicator }: CarouselProps) => JSX.Element;
|
|
4
|
+
declare const ImageCarousel: ({ leftIconClassName, rightIconClassName, imageList, isNextPrev, caroselLeftIcon, caroselRightIcon, timeInterval, autoPlay, carouselIndicator }: CarouselProps) => JSX.Element;
|
|
5
5
|
export default ImageCarousel;
|
|
@@ -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, showPlaceHolderOnly, 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, disable, suffixInputProps, suffixDropdown, isSuffixEditable, suffixPlaceholder, fieldColor, isborderRequired, }: DatePickerProps) => JSX.Element;
|
|
7
7
|
export default DatePicker;
|
package/dist/esm/index.js
CHANGED
|
@@ -17354,23 +17354,25 @@ var DatePicker = function DatePicker(_a) {
|
|
|
17354
17354
|
char_count = _a.char_count,
|
|
17355
17355
|
_h = _a.errorMsg,
|
|
17356
17356
|
errorMsg = _h === void 0 ? "" : _h,
|
|
17357
|
+
_j = _a.disable,
|
|
17358
|
+
disable = _j === void 0 ? false : _j,
|
|
17357
17359
|
// inputProps,
|
|
17358
17360
|
suffixInputProps = _a.suffixInputProps,
|
|
17359
17361
|
suffixDropdown = _a.suffixDropdown,
|
|
17360
|
-
|
|
17361
|
-
isSuffixEditable =
|
|
17362
|
+
_k = _a.isSuffixEditable,
|
|
17363
|
+
isSuffixEditable = _k === void 0 ? false : _k,
|
|
17362
17364
|
suffixPlaceholder = _a.suffixPlaceholder,
|
|
17363
17365
|
fieldColor = _a.fieldColor,
|
|
17364
|
-
|
|
17365
|
-
isborderRequired =
|
|
17366
|
+
_l = _a.isborderRequired,
|
|
17367
|
+
isborderRequired = _l === void 0 ? true : _l;
|
|
17366
17368
|
|
|
17367
|
-
var
|
|
17368
|
-
date =
|
|
17369
|
-
setDate =
|
|
17369
|
+
var _m = useState(),
|
|
17370
|
+
date = _m[0],
|
|
17371
|
+
setDate = _m[1];
|
|
17370
17372
|
|
|
17371
|
-
var
|
|
17372
|
-
clicked =
|
|
17373
|
-
setClicked =
|
|
17373
|
+
var _o = useState(false),
|
|
17374
|
+
clicked = _o[0],
|
|
17375
|
+
setClicked = _o[1];
|
|
17374
17376
|
|
|
17375
17377
|
var handleSelect = function handleSelect(date) {
|
|
17376
17378
|
setDate(date);
|
|
@@ -17433,6 +17435,7 @@ var DatePicker = function DatePicker(_a) {
|
|
|
17433
17435
|
isborderRequired: isborderRequired,
|
|
17434
17436
|
start_icon: start_icon,
|
|
17435
17437
|
inputProps: {
|
|
17438
|
+
disabled: disable,
|
|
17436
17439
|
placeholder: placeholder ? placeholder : "select date",
|
|
17437
17440
|
onClick: inputClick,
|
|
17438
17441
|
onFocus: inputFocus,
|
|
@@ -20512,27 +20515,31 @@ var PopUpModal = function PopUpModal(_a) {
|
|
|
20512
20515
|
};
|
|
20513
20516
|
|
|
20514
20517
|
var ImageCarousel = function ImageCarousel(_a) {
|
|
20515
|
-
var
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
_d = _a.
|
|
20521
|
-
|
|
20522
|
-
_e = _a.
|
|
20523
|
-
|
|
20524
|
-
_f = _a.
|
|
20525
|
-
|
|
20526
|
-
_g = _a.
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
var
|
|
20534
|
-
|
|
20535
|
-
|
|
20518
|
+
var _b = _a.leftIconClassName,
|
|
20519
|
+
leftIconClassName = _b === void 0 ? '' : _b,
|
|
20520
|
+
_c = _a.rightIconClassName,
|
|
20521
|
+
rightIconClassName = _c === void 0 ? '' : _c,
|
|
20522
|
+
imageList = _a.imageList,
|
|
20523
|
+
_d = _a.isNextPrev,
|
|
20524
|
+
isNextPrev = _d === void 0 ? true : _d,
|
|
20525
|
+
_e = _a.caroselLeftIcon,
|
|
20526
|
+
caroselLeftIcon = _e === void 0 ? 'hx_left' : _e,
|
|
20527
|
+
_f = _a.caroselRightIcon,
|
|
20528
|
+
caroselRightIcon = _f === void 0 ? 'hx_right' : _f,
|
|
20529
|
+
_g = _a.timeInterval,
|
|
20530
|
+
timeInterval = _g === void 0 ? 5000 : _g,
|
|
20531
|
+
_h = _a.autoPlay,
|
|
20532
|
+
autoPlay = _h === void 0 ? true : _h,
|
|
20533
|
+
_j = _a.carouselIndicator,
|
|
20534
|
+
carouselIndicator = _j === void 0 ? true : _j;
|
|
20535
|
+
|
|
20536
|
+
var _k = useState(0),
|
|
20537
|
+
current = _k[0],
|
|
20538
|
+
setCurrent = _k[1];
|
|
20539
|
+
|
|
20540
|
+
var _l = useState(autoPlay),
|
|
20541
|
+
isAutoPlay = _l[0],
|
|
20542
|
+
setIsAutoPlay = _l[1];
|
|
20536
20543
|
|
|
20537
20544
|
var length = imageList.length;
|
|
20538
20545
|
|
|
@@ -20580,45 +20587,47 @@ var ImageCarousel = function ImageCarousel(_a) {
|
|
|
20580
20587
|
}
|
|
20581
20588
|
|
|
20582
20589
|
var carouselIndicatorDoms = [];
|
|
20583
|
-
return
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
children: [Boolean(caroselLeftIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
|
|
20587
|
-
className: "left-arrow"
|
|
20588
|
-
}, {
|
|
20589
|
-
children: jsxRuntime.exports.jsx("span", {
|
|
20590
|
-
className: caroselLeftIcon,
|
|
20591
|
-
onClick: prevSlide
|
|
20592
|
-
})
|
|
20593
|
-
})), Boolean(caroselRightIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
|
|
20594
|
-
className: "right-arrow "
|
|
20590
|
+
return (//
|
|
20591
|
+
jsxRuntime.exports.jsxs("div", __assign({
|
|
20592
|
+
className: "slider"
|
|
20595
20593
|
}, {
|
|
20596
|
-
children: jsxRuntime.exports.jsx("
|
|
20597
|
-
className:
|
|
20598
|
-
onClick: nextSlide
|
|
20599
|
-
})
|
|
20600
|
-
})), imageList.map(function (d, index) {
|
|
20601
|
-
carouselIndicatorDoms.push(jsxRuntime.exports.jsx("li", {
|
|
20602
|
-
className: index === current ? 'active' : '',
|
|
20603
|
-
onClick: function onClick() {
|
|
20604
|
-
goToSlide(index);
|
|
20605
|
-
}
|
|
20606
|
-
}));
|
|
20607
|
-
return jsxRuntime.exports.jsx("div", __assign({
|
|
20608
|
-
className: index === current ? 'slide active ' : 'slide'
|
|
20594
|
+
children: [Boolean(caroselLeftIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
|
|
20595
|
+
className: "left-arrow hplxt-flex hplxt-items-center hplxt-justify-center ".concat(leftIconClassName)
|
|
20609
20596
|
}, {
|
|
20610
|
-
children:
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
className: 'image'
|
|
20597
|
+
children: jsxRuntime.exports.jsx("span", {
|
|
20598
|
+
className: "".concat(caroselLeftIcon),
|
|
20599
|
+
onClick: prevSlide
|
|
20614
20600
|
})
|
|
20615
|
-
}),
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20601
|
+
})), Boolean(caroselRightIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
|
|
20602
|
+
className: "right-arrow hplxt-flex hplxt-items-center hplxt-justify-center ".concat(rightIconClassName)
|
|
20603
|
+
}, {
|
|
20604
|
+
children: jsxRuntime.exports.jsx("span", {
|
|
20605
|
+
className: "".concat(caroselRightIcon),
|
|
20606
|
+
onClick: nextSlide
|
|
20607
|
+
})
|
|
20608
|
+
})), imageList.map(function (d, index) {
|
|
20609
|
+
carouselIndicatorDoms.push(jsxRuntime.exports.jsx("li", {
|
|
20610
|
+
className: index === current ? 'active' : '',
|
|
20611
|
+
onClick: function onClick() {
|
|
20612
|
+
goToSlide(index);
|
|
20613
|
+
}
|
|
20614
|
+
}));
|
|
20615
|
+
return jsxRuntime.exports.jsx("div", __assign({
|
|
20616
|
+
className: index === current ? 'slide active ' : 'slide'
|
|
20617
|
+
}, {
|
|
20618
|
+
children: index === current && jsxRuntime.exports.jsx("img", {
|
|
20619
|
+
src: d,
|
|
20620
|
+
alt: d,
|
|
20621
|
+
className: 'image'
|
|
20622
|
+
})
|
|
20623
|
+
}), index);
|
|
20624
|
+
}), carouselIndicator && jsxRuntime.exports.jsx("ul", __assign({
|
|
20625
|
+
className: "carousel-indicators"
|
|
20626
|
+
}, {
|
|
20627
|
+
children: carouselIndicatorDoms
|
|
20628
|
+
}))]
|
|
20629
|
+
}))
|
|
20630
|
+
);
|
|
20622
20631
|
};
|
|
20623
20632
|
|
|
20624
20633
|
export { AddSuggestion, Avatar, Badge, BadgeGroup, Button, ButtonGroups, CalendarView, Card, Checkbox, CheckboxGroup, CheckboxGroupItem, CollapsibleCard, DatePicker, DoubleInput, DropdownField, DropdownItems as DropdownItem, ImageCarousel, InputField, InputFieldSplit, InputTag, InputTagDropdownItem, MessageToast, NestedDropdown, OtpField, PopUpModal, ProgressBar, ProgressCircle, RadioBtn, Slider, TextAreaField, ToggleSwitch, Tooltip, Typography };
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface InputFieldProps {
|
|
|
29
29
|
showEmailSuggestions?: boolean;
|
|
30
30
|
}
|
|
31
31
|
export interface DatePickerProps {
|
|
32
|
+
disable?: boolean;
|
|
32
33
|
placeholder?: string;
|
|
33
34
|
disabledDates?: Date[];
|
|
34
35
|
selectDate?: any;
|
|
@@ -455,6 +456,8 @@ export interface InputTagProps {
|
|
|
455
456
|
getInputValue?: (value: string) => void;
|
|
456
457
|
}
|
|
457
458
|
export interface CarouselProps {
|
|
459
|
+
leftIconClassName?: string;
|
|
460
|
+
rightIconClassName?: string;
|
|
458
461
|
imageList: Array<string>;
|
|
459
462
|
isNextPrev?: boolean;
|
|
460
463
|
caroselLeftIcon?: string;
|