hplx-react-elements-dev 1.1.6 → 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;
package/dist/esm/index.js CHANGED
@@ -20515,27 +20515,31 @@ var PopUpModal = function PopUpModal(_a) {
20515
20515
  };
20516
20516
 
20517
20517
  var ImageCarousel = function ImageCarousel(_a) {
20518
- var imageList = _a.imageList,
20519
- _b = _a.isNextPrev,
20520
- isNextPrev = _b === void 0 ? true : _b,
20521
- _c = _a.caroselLeftIcon,
20522
- caroselLeftIcon = _c === void 0 ? 'hx_left' : _c,
20523
- _d = _a.caroselRightIcon,
20524
- caroselRightIcon = _d === void 0 ? 'hx_right' : _d,
20525
- _e = _a.timeInterval,
20526
- timeInterval = _e === void 0 ? 5000 : _e,
20527
- _f = _a.autoPlay,
20528
- autoPlay = _f === void 0 ? true : _f,
20529
- _g = _a.carouselIndicator,
20530
- carouselIndicator = _g === void 0 ? true : _g;
20531
-
20532
- var _h = useState(0),
20533
- current = _h[0],
20534
- setCurrent = _h[1];
20535
-
20536
- var _j = useState(autoPlay),
20537
- isAutoPlay = _j[0],
20538
- setIsAutoPlay = _j[1];
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];
20539
20543
 
20540
20544
  var length = imageList.length;
20541
20545
 
@@ -20583,45 +20587,47 @@ var ImageCarousel = function ImageCarousel(_a) {
20583
20587
  }
20584
20588
 
20585
20589
  var carouselIndicatorDoms = [];
20586
- return jsxRuntime.exports.jsxs("div", __assign({
20587
- className: "slider"
20588
- }, {
20589
- children: [Boolean(caroselLeftIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
20590
- className: "left-arrow"
20590
+ return (//
20591
+ jsxRuntime.exports.jsxs("div", __assign({
20592
+ className: "slider"
20591
20593
  }, {
20592
- children: jsxRuntime.exports.jsx("span", {
20593
- className: caroselLeftIcon,
20594
- onClick: prevSlide
20595
- })
20596
- })), Boolean(caroselRightIcon) && isNextPrev && jsxRuntime.exports.jsx("div", __assign({
20597
- className: "right-arrow "
20598
- }, {
20599
- children: jsxRuntime.exports.jsx("span", {
20600
- className: caroselRightIcon,
20601
- onClick: nextSlide
20602
- })
20603
- })), imageList.map(function (d, index) {
20604
- carouselIndicatorDoms.push(jsxRuntime.exports.jsx("li", {
20605
- className: index === current ? 'active' : '',
20606
- onClick: function onClick() {
20607
- goToSlide(index);
20608
- }
20609
- }));
20610
- return jsxRuntime.exports.jsx("div", __assign({
20611
- 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)
20612
20596
  }, {
20613
- children: index === current && jsxRuntime.exports.jsx("img", {
20614
- src: d,
20615
- alt: d,
20616
- className: 'image'
20597
+ children: jsxRuntime.exports.jsx("span", {
20598
+ className: "".concat(caroselLeftIcon),
20599
+ onClick: prevSlide
20617
20600
  })
20618
- }), index);
20619
- }), carouselIndicator && jsxRuntime.exports.jsx("ul", __assign({
20620
- className: "carousel-indicators"
20621
- }, {
20622
- children: carouselIndicatorDoms
20623
- }))]
20624
- }));
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
+ );
20625
20631
  };
20626
20632
 
20627
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 };
@@ -456,6 +456,8 @@ export interface InputTagProps {
456
456
  getInputValue?: (value: string) => void;
457
457
  }
458
458
  export interface CarouselProps {
459
+ leftIconClassName?: string;
460
+ rightIconClassName?: string;
459
461
  imageList: Array<string>;
460
462
  isNextPrev?: boolean;
461
463
  caroselLeftIcon?: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.1.6",
12
+ "version": "1.1.7",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",