bianic-ui 1.16.0-beta.4 → 1.16.0-beta.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.
package/dist/cjs/index.js CHANGED
@@ -1513,7 +1513,7 @@ var stateColorConfig = {
1513
1513
  default: 'enabled:hover:bg-black/10 enabled:focus-visible:border-bia-blue-disabled enabled:focus-visible:outline-2 enabled:focus-visible:-outline-offset-1 enabled:focus-visible:outline-bia-blue-disabled enabled:active:bg-black/15',
1514
1514
  };
1515
1515
 
1516
- var ContextualButton = function (_a) {
1516
+ var ContextualButton = React.forwardRef(function (_a, ref) {
1517
1517
  var actionElement = _a.actionElement, label = _a.label, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, disabled = _a.disabled; _a.isNotified; var _d = _a.isSelected, isSelected = _d === void 0 ? false : _d, props = __rest(_a, ["actionElement", "label", "icon", "variant", "disabled", "isNotified", "isSelected"]);
1518
1518
  var textColor = isSelected
1519
1519
  ? variant === 'dark'
@@ -1521,12 +1521,12 @@ var ContextualButton = function (_a) {
1521
1521
  : 'text-primary-white'
1522
1522
  : textColorConfig[variant];
1523
1523
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1524
- return (React.createElement("button", __assign({ className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1524
+ return (React.createElement("button", __assign({ ref: ref, className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1525
1525
  icon,
1526
1526
  label && (React.createElement("div", { className: "label flex max-h-[46px] items-center px-[5px] text-[12px] leading-none" },
1527
1527
  React.createElement("span", { className: "mr-0.5" }, label),
1528
1528
  actionElement))));
1529
- };
1529
+ });
1530
1530
 
1531
1531
  function Color() {
1532
1532
  var colors = [
@@ -1758,7 +1758,7 @@ var getContextualPopupStyle = function (anchorRef, popupRef, position) {
1758
1758
  break;
1759
1759
  case 'top-right':
1760
1760
  style.top = "".concat(anchorRect.top - popupHeight + window.scrollY - 10, "px");
1761
- style.left = "".concat(anchorRect.left + anchorRect.width - popupWidth + window.scrollX, "px");
1761
+ style.left = "".concat(anchorRect.right - popupWidth + window.scrollX, "px");
1762
1762
  break;
1763
1763
  case 'bottom-left':
1764
1764
  style.top = "".concat(anchorRect.top + anchorRect.height + window.scrollY + 10, "px");
@@ -1766,7 +1766,7 @@ var getContextualPopupStyle = function (anchorRef, popupRef, position) {
1766
1766
  break;
1767
1767
  case 'bottom-right':
1768
1768
  style.top = "".concat(anchorRect.top + anchorRect.height + window.scrollY + 10, "px");
1769
- style.left = "".concat(anchorRect.left + anchorRect.width - popupWidth + window.scrollX, "px");
1769
+ style.left = "".concat(anchorRect.right - popupWidth + window.scrollX, "px");
1770
1770
  break;
1771
1771
  }
1772
1772
  return style;
@@ -1777,11 +1777,21 @@ var getDropdownStyle = function (anchorRef, popupRef) {
1777
1777
  }
1778
1778
  var anchorRect = anchorRef.current.getBoundingClientRect();
1779
1779
  var popupHeight = popupRef.current.offsetHeight;
1780
+ var popupWidth = popupRef.current.offsetWidth;
1780
1781
  var spaceToBottom = window.innerHeight - anchorRect.bottom;
1781
1782
  var spaceToTop = anchorRect.top;
1783
+ var spaceToRight = window.innerWidth - anchorRect.right;
1784
+ var spaceToLeft = anchorRect.left;
1785
+ // Default align left with the anchor
1786
+ var left = anchorRect.left + window.scrollX;
1787
+ // If there's less space to the right than to the left,
1788
+ // align the popup's right edge with the anchor's right edge
1789
+ if (spaceToRight < spaceToLeft) {
1790
+ left = anchorRect.right - popupWidth + window.scrollX;
1791
+ }
1782
1792
  var style = {
1783
1793
  position: 'absolute',
1784
- left: "".concat(anchorRect.left + window.scrollX, "px"),
1794
+ left: "".concat(left, "px"),
1785
1795
  };
1786
1796
  // If space below is less than popup height,
1787
1797
  // AND space above is more than space below
@@ -2070,8 +2080,8 @@ var styleConfig = {
2070
2080
  },
2071
2081
  };
2072
2082
 
2073
- function TextInput(_a) {
2074
- var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? null : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? undefined : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l, _m = _a.maxLength, maxLength = _m === void 0 ? undefined : _m, _o = _a.inputClassName, inputClassName = _o === void 0 ? '' : _o; _a.isFlatRight; var actionElement = _a.actionElement, _q = _a.autoComplete, autoComplete = _q === void 0 ? 'off' : _q, ref = _a.ref, props = __rest(_a, ["descText", "disabled", "icon", "id", "size", "isValid", "label", "placeholder", "readOnly", "required", "variant", "value", "onChange", "maxLength", "inputClassName", "isFlatRight", "actionElement", "autoComplete", "ref"]);
2083
+ var TextInput = React.forwardRef(function (_a, ref) {
2084
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? null : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? undefined : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l, _m = _a.maxLength, maxLength = _m === void 0 ? undefined : _m, _o = _a.inputClassName, inputClassName = _o === void 0 ? '' : _o; _a.isFlatRight; var actionElement = _a.actionElement, _q = _a.autoComplete, autoComplete = _q === void 0 ? 'off' : _q, props = __rest(_a, ["descText", "disabled", "icon", "id", "size", "isValid", "label", "placeholder", "readOnly", "required", "variant", "value", "onChange", "maxLength", "inputClassName", "isFlatRight", "actionElement", "autoComplete"]);
2075
2085
  var isTransparent = variant.includes('transparent');
2076
2086
  var _r = React.useState(false), isShow = _r[0], setIsShow = _r[1];
2077
2087
  var _s = styleConfig[variant], fieldStyle = _s.fieldStyle, iconStyle = _s.iconStyle;
@@ -2121,7 +2131,7 @@ function TextInput(_a) {
2121
2131
  remainWords,
2122
2132
  "/",
2123
2133
  maxLength))))));
2124
- }
2134
+ });
2125
2135
  TextInput.defaultProps = {
2126
2136
  descText: '',
2127
2137
  disabled: false,
@@ -3137,10 +3147,11 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3137
3147
  };
3138
3148
 
3139
3149
  var PickerCalendar = function (_a) {
3140
- var anchorRef = _a.anchorRef, maxDate = _a.maxDate, minDate = _a.minDate, onDateChange = _a.onDateChange; _a.ref; var _b = _a.selectedDate, selectedDate = _b === void 0 ? null : _b, props = __rest(_a, ["anchorRef", "maxDate", "minDate", "onDateChange", "ref", "selectedDate"]);
3150
+ var _b = _a.zIndex, zIndex = _b === void 0 ? 100 : _b, anchorRef = _a.anchorRef, maxDate = _a.maxDate, minDate = _a.minDate, onDateChange = _a.onDateChange; _a.ref; var _c = _a.selectedDate, selectedDate = _c === void 0 ? null : _c, props = __rest(_a, ["zIndex", "anchorRef", "maxDate", "minDate", "onDateChange", "ref", "selectedDate"]);
3141
3151
  // Hooks & States
3142
- var _c = useCalendarLogic(selectedDate, minDate, maxDate), displayDays = _c.displayDays, handleNextDecade = _c.handleNextDecade, handleNextMonth = _c.handleNextMonth, handleNextYear = _c.handleNextYear, handlePickerMode = _c.handlePickerMode, handlePrevDecade = _c.handlePrevDecade, handlePrevMonth = _c.handlePrevMonth, handlePrevYear = _c.handlePrevYear, handleSetSelectedDate = _c.handleSetSelectedDate, isNextDisabled = _c.isNextDisabled, isPrevDisabled = _c.isPrevDisabled, maxDateValue = _c.maxDateValue, minDateValue = _c.minDateValue, pickerMode = _c.pickerMode, setViewMonthValue = _c.setViewMonthValue, setViewYearValue = _c.setViewYearValue, viewMonthValue = _c.viewMonthValue, viewYearValue = _c.viewYearValue, yearDisplayRange = _c.yearDisplayRange;
3152
+ var _d = useCalendarLogic(selectedDate, minDate, maxDate), displayDays = _d.displayDays, handleNextDecade = _d.handleNextDecade, handleNextMonth = _d.handleNextMonth, handleNextYear = _d.handleNextYear, handlePickerMode = _d.handlePickerMode, handlePrevDecade = _d.handlePrevDecade, handlePrevMonth = _d.handlePrevMonth, handlePrevYear = _d.handlePrevYear, handleSetSelectedDate = _d.handleSetSelectedDate, isNextDisabled = _d.isNextDisabled, isPrevDisabled = _d.isPrevDisabled, maxDateValue = _d.maxDateValue, minDateValue = _d.minDateValue, pickerMode = _d.pickerMode, setViewMonthValue = _d.setViewMonthValue, setViewYearValue = _d.setViewYearValue, viewMonthValue = _d.viewMonthValue, viewYearValue = _d.viewYearValue, yearDisplayRange = _d.yearDisplayRange;
3143
3153
  var pickerCalendarRef = React.useRef(null);
3154
+ var style = props.style, className = props.className, restProps = __rest(props, ["style", "className"]);
3144
3155
  var positionStyle = usePopupPosition(anchorRef, pickerCalendarRef)[0];
3145
3156
  // Event Handlers
3146
3157
  var handleDateSelect = function (date) {
@@ -3154,7 +3165,7 @@ var PickerCalendar = function (_a) {
3154
3165
  setViewYearValue(year);
3155
3166
  handlePickerMode('month');
3156
3167
  };
3157
- return (React.createElement("div", __assign({ className: "bianic-datepicker-calendar absolute flex w-[250px] flex-col gap-[15px] rounded-b-radius-sm bg-bia-white px-1.5 pb-[17px] pt-[15px] text-bia-black shadow-md", ref: pickerCalendarRef, style: positionStyle }, props),
3168
+ return reactDom.createPortal(React.createElement("div", __assign({ className: "bianic-datepicker-calendar absolute flex w-[250px] flex-col gap-[15px] rounded-b-radius-sm bg-bia-white px-1.5 pb-[17px] pt-[15px] text-bia-black shadow-md ".concat(className), ref: pickerCalendarRef, style: __assign(__assign({ zIndex: zIndex }, positionStyle), style) }, restProps),
3158
3169
  React.createElement("div", { className: "bianic-datepicker-calendar-controller flex w-full items-center justify-between" },
3159
3170
  React.createElement("button", { className: "bianic-datepicker-calendar-prev-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isPrevDisabled(), onClick: pickerMode === 'date'
3160
3171
  ? handlePrevMonth
@@ -3185,7 +3196,7 @@ var PickerCalendar = function (_a) {
3185
3196
  React.createElement(TbChevronRight, { size: 18 }))),
3186
3197
  pickerMode === 'date' && (React.createElement(DateDisplay, { displayDays: displayDays, maxDateValue: maxDateValue, minDateValue: minDateValue, onDateSelect: handleDateSelect, selectedDate: selectedDate, viewMonthValue: viewMonthValue })),
3187
3198
  pickerMode === 'month' && (React.createElement(MonthDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onMonthSelect: handleMonthSelect, selectedDate: selectedDate, viewMonthValue: viewMonthValue, viewYearValue: viewYearValue })),
3188
- pickerMode === 'year' && (React.createElement(YearDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onYearSelect: handleYearSelect, viewYearValue: viewYearValue, yearDisplayRange: yearDisplayRange }))));
3199
+ pickerMode === 'year' && (React.createElement(YearDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onYearSelect: handleYearSelect, viewYearValue: viewYearValue, yearDisplayRange: yearDisplayRange }))), document.body);
3189
3200
  };
3190
3201
 
3191
3202
  var monthMap = [
@@ -3202,7 +3213,7 @@ var monthMap = [
3202
3213
  'November',
3203
3214
  'December',
3204
3215
  ];
3205
- var DateInputDisplay = function (_a) {
3216
+ var DateInputDisplay = React.forwardRef(function (_a, ref) {
3206
3217
  var value = _a.value, setValue = _a.setValue, _b = _a.placeholder, placeholder = _b === void 0 ? 'YYYY-MM-DD' : _b, label = _a.label, required = _a.required, id = _a.id, _c = _a.size, size = _c === void 0 ? 'sm' : _c, className = _a.className, _d = _a.disabled, disabled = _d === void 0 ? false : _d, buttonAction = _a.buttonAction, nullDisplay = _a.nullDisplay, props = __rest(_a, ["value", "setValue", "placeholder", "label", "required", "id", "size", "className", "disabled", "buttonAction", "nullDisplay"]);
3207
3218
  var _e = React.useState(false), isEditing = _e[0], setIsEditing = _e[1];
3208
3219
  var _f = React.useState(value), dateString = _f[0], setDateString = _f[1];
@@ -3251,8 +3262,8 @@ var DateInputDisplay = function (_a) {
3251
3262
  label && (React.createElement("label", { htmlFor: id, className: "bianic-text-input-label text-xs font-semibold ".concat(labelStatus) },
3252
3263
  label,
3253
3264
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*"))),
3254
- React.createElement("div", { className: "relative w-full" }, input)));
3255
- };
3265
+ React.createElement("div", { className: "relative w-full", ref: ref }, input)));
3266
+ });
3256
3267
  var dateToInputString = function (dateObj) {
3257
3268
  if (!(dateObj instanceof Date) || isNaN(dateObj))
3258
3269
  return ''; // Return empty string for invalid dates
@@ -3267,15 +3278,15 @@ var displayDateFormatter = function (date) {
3267
3278
  };
3268
3279
 
3269
3280
  function DatePicker(_a) {
3270
- var value = _a.value, onChange = _a.onChange, size = _a.size, disabled = _a.disabled; _a.placeholder; var label = _a.label, minDate = _a.minDate, maxDate = _a.maxDate, required = _a.required, nullDisplay = _a.nullDisplay, inputclassName = _a.inputclassName, containerClassName = _a.containerClassName;
3281
+ var _b = _a.zIndexCalendar, zIndexCalendar = _b === void 0 ? 100 : _b, value = _a.value, onChange = _a.onChange, size = _a.size, disabled = _a.disabled; _a.placeholder; var label = _a.label, minDate = _a.minDate, maxDate = _a.maxDate, required = _a.required, nullDisplay = _a.nullDisplay, inputclassName = _a.inputclassName, containerClassName = _a.containerClassName;
3271
3282
  // State and Ref
3272
3283
  var inputRef = React.useRef(null);
3273
3284
  var wrapperRef = React.useRef(null);
3274
- var _c = useDetectOutsideClick(wrapperRef, false), isPickerOpen = _c[0], setIsPickerOpen = _c[1];
3285
+ var _d = useDetectOutsideClick(wrapperRef, false), isPickerOpen = _d[0], setIsPickerOpen = _d[1];
3275
3286
  return (React.createElement("div", { className: "bianic-datepicker-container relative ".concat(containerClassName), ref: wrapperRef },
3276
3287
  React.createElement("div", { className: "bianic-datepicker-field-container" },
3277
3288
  React.createElement(DateInputDisplay, { inputClassName: inputclassName, value: value, setValue: onChange, placeholder: "YYYY-MM-DD", nullDisplay: nullDisplay, size: size, label: label, required: required, buttonAction: function () { return setIsPickerOpen(!isPickerOpen); }, ref: inputRef, disabled: disabled })),
3278
- isPickerOpen && (React.createElement(PickerCalendar, { anchorRef: inputRef, selectedDate: value, onDateChange: onChange, minDate: minDate, maxDate: maxDate }))));
3289
+ isPickerOpen && (React.createElement(PickerCalendar, { zIndex: zIndexCalendar, anchorRef: inputRef, selectedDate: value, onDateChange: onChange, minDate: minDate, maxDate: maxDate }))));
3279
3290
  }
3280
3291
 
3281
3292
  var Node = function (_a) {
@@ -3519,7 +3530,7 @@ function Modal(_a) {
3519
3530
 
3520
3531
  var sizeConfig$2 = {
3521
3532
  md: 'min-w-[38px] h-[40px] text-[14px] font-semibold',
3522
- sm: 'min-w-[29px] h-[30px] mt-1 text-[12px] font-normal',
3533
+ sm: 'min-w-[29px] h-[30px] text-[12px] font-normal',
3523
3534
  };
3524
3535
  var positionConfig = {
3525
3536
  start: 'justify-start',
@@ -3657,7 +3668,7 @@ function Popover(_a) {
3657
3668
  var wrapperRef = React.useRef(null);
3658
3669
  React.useRef(null);
3659
3670
  var _e = useDetectOutsideClick(wrapperRef, false), isOpen = _e[0], setIsOpen = _e[1];
3660
- return (React.createElement("div", { className: "Bianic-popover-Wrapper relative block h-fit w-fit bg-bia-blue", role: "button", ref: wrapperRef, onClick: function () { return setIsOpen(true); } },
3671
+ return (React.createElement("div", { className: "Bianic-popover-Wrapper relative block h-fit w-fit", role: "button", ref: wrapperRef, onClick: function () { return setIsOpen(true); } },
3661
3672
  children,
3662
3673
  isOpen && (React.createElement(PopoverItem, { title: title, content: content, anchorRef: wrapperRef, direction: direction }))));
3663
3674
  }
@@ -7,5 +7,5 @@ interface ContextualButtonProps extends ComponentPropsWithoutRef<'button'> {
7
7
  isNotified?: boolean;
8
8
  isSelected?: boolean;
9
9
  }
10
- declare const ContextualButton: ({ actionElement, label, icon, variant, disabled, isNotified, isSelected, ...props }: ContextualButtonProps) => React.JSX.Element;
10
+ declare const ContextualButton: React.ForwardRefExoticComponent<ContextualButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
11
  export default ContextualButton;
@@ -12,5 +12,5 @@ interface DateInputDisplayProps extends Omit<TextInputProps, 'value'> {
12
12
  disabled: boolean;
13
13
  nullDisplay?: string;
14
14
  }
15
- declare const DateInputDisplay: ({ value, setValue, placeholder, label, required, id, size, className, disabled, buttonAction, nullDisplay, ...props }: DateInputDisplayProps) => React.JSX.Element;
15
+ declare const DateInputDisplay: React.ForwardRefExoticComponent<Omit<DateInputDisplayProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
16
16
  export default DateInputDisplay;
@@ -13,6 +13,7 @@ interface DatePickerProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChan
13
13
  nullDisplay?: string;
14
14
  inputclassName?: string;
15
15
  containerClassName?: string;
16
+ zIndexCalendar?: number;
16
17
  }
17
- declare function DatePicker({ value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React.JSX.Element;
18
+ declare function DatePicker({ zIndexCalendar, value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React.JSX.Element;
18
19
  export default DatePicker;
@@ -1,5 +1,6 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  export interface PickerCalendarProps extends ComponentPropsWithRef<'div'> {
3
+ zIndex?: number | 'auto' | 'inherit';
3
4
  anchorRef: React.RefObject<HTMLDivElement>;
4
5
  minDate?: string;
5
6
  maxDate?: string;
@@ -1,23 +1,5 @@
1
1
  import React from 'react';
2
2
  import TextInputProps from './PropsInterface';
3
3
  import './style.css';
4
- declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, inputClassName, isFlatRight, actionElement, autoComplete, ref, ...props }: TextInputProps): React.JSX.Element;
5
- declare namespace TextInput {
6
- var defaultProps: {
7
- descText: string;
8
- disabled: boolean;
9
- icon: null;
10
- id: string;
11
- size: string;
12
- isValid: null;
13
- label: string;
14
- placeholder: string;
15
- readOnly: boolean;
16
- variant: string;
17
- value: undefined;
18
- onChange: () => void;
19
- inputClassName: string;
20
- isFlatRight: boolean;
21
- };
22
- }
4
+ declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
23
5
  export default TextInput;
@@ -1,8 +1,8 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import { TextInput } from '../../../components';
2
+ import React from 'react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: typeof TextInput;
5
+ component: React.ForwardRefExoticComponent<Omit<import("../../../components/Forms/TextInput/PropsInterface").default, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
package/dist/esm/index.js CHANGED
@@ -1511,7 +1511,7 @@ var stateColorConfig = {
1511
1511
  default: 'enabled:hover:bg-black/10 enabled:focus-visible:border-bia-blue-disabled enabled:focus-visible:outline-2 enabled:focus-visible:-outline-offset-1 enabled:focus-visible:outline-bia-blue-disabled enabled:active:bg-black/15',
1512
1512
  };
1513
1513
 
1514
- var ContextualButton = function (_a) {
1514
+ var ContextualButton = forwardRef(function (_a, ref) {
1515
1515
  var actionElement = _a.actionElement, label = _a.label, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, disabled = _a.disabled; _a.isNotified; var _d = _a.isSelected, isSelected = _d === void 0 ? false : _d, props = __rest(_a, ["actionElement", "label", "icon", "variant", "disabled", "isNotified", "isSelected"]);
1516
1516
  var textColor = isSelected
1517
1517
  ? variant === 'dark'
@@ -1519,12 +1519,12 @@ var ContextualButton = function (_a) {
1519
1519
  : 'text-primary-white'
1520
1520
  : textColorConfig[variant];
1521
1521
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1522
- return (React.createElement("button", __assign({ className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1522
+ return (React.createElement("button", __assign({ ref: ref, className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1523
1523
  icon,
1524
1524
  label && (React.createElement("div", { className: "label flex max-h-[46px] items-center px-[5px] text-[12px] leading-none" },
1525
1525
  React.createElement("span", { className: "mr-0.5" }, label),
1526
1526
  actionElement))));
1527
- };
1527
+ });
1528
1528
 
1529
1529
  function Color() {
1530
1530
  var colors = [
@@ -1756,7 +1756,7 @@ var getContextualPopupStyle = function (anchorRef, popupRef, position) {
1756
1756
  break;
1757
1757
  case 'top-right':
1758
1758
  style.top = "".concat(anchorRect.top - popupHeight + window.scrollY - 10, "px");
1759
- style.left = "".concat(anchorRect.left + anchorRect.width - popupWidth + window.scrollX, "px");
1759
+ style.left = "".concat(anchorRect.right - popupWidth + window.scrollX, "px");
1760
1760
  break;
1761
1761
  case 'bottom-left':
1762
1762
  style.top = "".concat(anchorRect.top + anchorRect.height + window.scrollY + 10, "px");
@@ -1764,7 +1764,7 @@ var getContextualPopupStyle = function (anchorRef, popupRef, position) {
1764
1764
  break;
1765
1765
  case 'bottom-right':
1766
1766
  style.top = "".concat(anchorRect.top + anchorRect.height + window.scrollY + 10, "px");
1767
- style.left = "".concat(anchorRect.left + anchorRect.width - popupWidth + window.scrollX, "px");
1767
+ style.left = "".concat(anchorRect.right - popupWidth + window.scrollX, "px");
1768
1768
  break;
1769
1769
  }
1770
1770
  return style;
@@ -1775,11 +1775,21 @@ var getDropdownStyle = function (anchorRef, popupRef) {
1775
1775
  }
1776
1776
  var anchorRect = anchorRef.current.getBoundingClientRect();
1777
1777
  var popupHeight = popupRef.current.offsetHeight;
1778
+ var popupWidth = popupRef.current.offsetWidth;
1778
1779
  var spaceToBottom = window.innerHeight - anchorRect.bottom;
1779
1780
  var spaceToTop = anchorRect.top;
1781
+ var spaceToRight = window.innerWidth - anchorRect.right;
1782
+ var spaceToLeft = anchorRect.left;
1783
+ // Default align left with the anchor
1784
+ var left = anchorRect.left + window.scrollX;
1785
+ // If there's less space to the right than to the left,
1786
+ // align the popup's right edge with the anchor's right edge
1787
+ if (spaceToRight < spaceToLeft) {
1788
+ left = anchorRect.right - popupWidth + window.scrollX;
1789
+ }
1780
1790
  var style = {
1781
1791
  position: 'absolute',
1782
- left: "".concat(anchorRect.left + window.scrollX, "px"),
1792
+ left: "".concat(left, "px"),
1783
1793
  };
1784
1794
  // If space below is less than popup height,
1785
1795
  // AND space above is more than space below
@@ -2068,8 +2078,8 @@ var styleConfig = {
2068
2078
  },
2069
2079
  };
2070
2080
 
2071
- function TextInput(_a) {
2072
- var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? null : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? undefined : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l, _m = _a.maxLength, maxLength = _m === void 0 ? undefined : _m, _o = _a.inputClassName, inputClassName = _o === void 0 ? '' : _o; _a.isFlatRight; var actionElement = _a.actionElement, _q = _a.autoComplete, autoComplete = _q === void 0 ? 'off' : _q, ref = _a.ref, props = __rest(_a, ["descText", "disabled", "icon", "id", "size", "isValid", "label", "placeholder", "readOnly", "required", "variant", "value", "onChange", "maxLength", "inputClassName", "isFlatRight", "actionElement", "autoComplete", "ref"]);
2081
+ var TextInput = forwardRef(function (_a, ref) {
2082
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? null : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? undefined : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l, _m = _a.maxLength, maxLength = _m === void 0 ? undefined : _m, _o = _a.inputClassName, inputClassName = _o === void 0 ? '' : _o; _a.isFlatRight; var actionElement = _a.actionElement, _q = _a.autoComplete, autoComplete = _q === void 0 ? 'off' : _q, props = __rest(_a, ["descText", "disabled", "icon", "id", "size", "isValid", "label", "placeholder", "readOnly", "required", "variant", "value", "onChange", "maxLength", "inputClassName", "isFlatRight", "actionElement", "autoComplete"]);
2073
2083
  var isTransparent = variant.includes('transparent');
2074
2084
  var _r = useState(false), isShow = _r[0], setIsShow = _r[1];
2075
2085
  var _s = styleConfig[variant], fieldStyle = _s.fieldStyle, iconStyle = _s.iconStyle;
@@ -2119,7 +2129,7 @@ function TextInput(_a) {
2119
2129
  remainWords,
2120
2130
  "/",
2121
2131
  maxLength))))));
2122
- }
2132
+ });
2123
2133
  TextInput.defaultProps = {
2124
2134
  descText: '',
2125
2135
  disabled: false,
@@ -3135,10 +3145,11 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3135
3145
  };
3136
3146
 
3137
3147
  var PickerCalendar = function (_a) {
3138
- var anchorRef = _a.anchorRef, maxDate = _a.maxDate, minDate = _a.minDate, onDateChange = _a.onDateChange; _a.ref; var _b = _a.selectedDate, selectedDate = _b === void 0 ? null : _b, props = __rest(_a, ["anchorRef", "maxDate", "minDate", "onDateChange", "ref", "selectedDate"]);
3148
+ var _b = _a.zIndex, zIndex = _b === void 0 ? 100 : _b, anchorRef = _a.anchorRef, maxDate = _a.maxDate, minDate = _a.minDate, onDateChange = _a.onDateChange; _a.ref; var _c = _a.selectedDate, selectedDate = _c === void 0 ? null : _c, props = __rest(_a, ["zIndex", "anchorRef", "maxDate", "minDate", "onDateChange", "ref", "selectedDate"]);
3139
3149
  // Hooks & States
3140
- var _c = useCalendarLogic(selectedDate, minDate, maxDate), displayDays = _c.displayDays, handleNextDecade = _c.handleNextDecade, handleNextMonth = _c.handleNextMonth, handleNextYear = _c.handleNextYear, handlePickerMode = _c.handlePickerMode, handlePrevDecade = _c.handlePrevDecade, handlePrevMonth = _c.handlePrevMonth, handlePrevYear = _c.handlePrevYear, handleSetSelectedDate = _c.handleSetSelectedDate, isNextDisabled = _c.isNextDisabled, isPrevDisabled = _c.isPrevDisabled, maxDateValue = _c.maxDateValue, minDateValue = _c.minDateValue, pickerMode = _c.pickerMode, setViewMonthValue = _c.setViewMonthValue, setViewYearValue = _c.setViewYearValue, viewMonthValue = _c.viewMonthValue, viewYearValue = _c.viewYearValue, yearDisplayRange = _c.yearDisplayRange;
3150
+ var _d = useCalendarLogic(selectedDate, minDate, maxDate), displayDays = _d.displayDays, handleNextDecade = _d.handleNextDecade, handleNextMonth = _d.handleNextMonth, handleNextYear = _d.handleNextYear, handlePickerMode = _d.handlePickerMode, handlePrevDecade = _d.handlePrevDecade, handlePrevMonth = _d.handlePrevMonth, handlePrevYear = _d.handlePrevYear, handleSetSelectedDate = _d.handleSetSelectedDate, isNextDisabled = _d.isNextDisabled, isPrevDisabled = _d.isPrevDisabled, maxDateValue = _d.maxDateValue, minDateValue = _d.minDateValue, pickerMode = _d.pickerMode, setViewMonthValue = _d.setViewMonthValue, setViewYearValue = _d.setViewYearValue, viewMonthValue = _d.viewMonthValue, viewYearValue = _d.viewYearValue, yearDisplayRange = _d.yearDisplayRange;
3141
3151
  var pickerCalendarRef = useRef(null);
3152
+ var style = props.style, className = props.className, restProps = __rest(props, ["style", "className"]);
3142
3153
  var positionStyle = usePopupPosition(anchorRef, pickerCalendarRef)[0];
3143
3154
  // Event Handlers
3144
3155
  var handleDateSelect = function (date) {
@@ -3152,7 +3163,7 @@ var PickerCalendar = function (_a) {
3152
3163
  setViewYearValue(year);
3153
3164
  handlePickerMode('month');
3154
3165
  };
3155
- return (React.createElement("div", __assign({ className: "bianic-datepicker-calendar absolute flex w-[250px] flex-col gap-[15px] rounded-b-radius-sm bg-bia-white px-1.5 pb-[17px] pt-[15px] text-bia-black shadow-md", ref: pickerCalendarRef, style: positionStyle }, props),
3166
+ return createPortal(React.createElement("div", __assign({ className: "bianic-datepicker-calendar absolute flex w-[250px] flex-col gap-[15px] rounded-b-radius-sm bg-bia-white px-1.5 pb-[17px] pt-[15px] text-bia-black shadow-md ".concat(className), ref: pickerCalendarRef, style: __assign(__assign({ zIndex: zIndex }, positionStyle), style) }, restProps),
3156
3167
  React.createElement("div", { className: "bianic-datepicker-calendar-controller flex w-full items-center justify-between" },
3157
3168
  React.createElement("button", { className: "bianic-datepicker-calendar-prev-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isPrevDisabled(), onClick: pickerMode === 'date'
3158
3169
  ? handlePrevMonth
@@ -3183,7 +3194,7 @@ var PickerCalendar = function (_a) {
3183
3194
  React.createElement(TbChevronRight, { size: 18 }))),
3184
3195
  pickerMode === 'date' && (React.createElement(DateDisplay, { displayDays: displayDays, maxDateValue: maxDateValue, minDateValue: minDateValue, onDateSelect: handleDateSelect, selectedDate: selectedDate, viewMonthValue: viewMonthValue })),
3185
3196
  pickerMode === 'month' && (React.createElement(MonthDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onMonthSelect: handleMonthSelect, selectedDate: selectedDate, viewMonthValue: viewMonthValue, viewYearValue: viewYearValue })),
3186
- pickerMode === 'year' && (React.createElement(YearDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onYearSelect: handleYearSelect, viewYearValue: viewYearValue, yearDisplayRange: yearDisplayRange }))));
3197
+ pickerMode === 'year' && (React.createElement(YearDisplay, { maxDateValue: maxDateValue, minDateValue: minDateValue, onYearSelect: handleYearSelect, viewYearValue: viewYearValue, yearDisplayRange: yearDisplayRange }))), document.body);
3187
3198
  };
3188
3199
 
3189
3200
  var monthMap = [
@@ -3200,7 +3211,7 @@ var monthMap = [
3200
3211
  'November',
3201
3212
  'December',
3202
3213
  ];
3203
- var DateInputDisplay = function (_a) {
3214
+ var DateInputDisplay = forwardRef(function (_a, ref) {
3204
3215
  var value = _a.value, setValue = _a.setValue, _b = _a.placeholder, placeholder = _b === void 0 ? 'YYYY-MM-DD' : _b, label = _a.label, required = _a.required, id = _a.id, _c = _a.size, size = _c === void 0 ? 'sm' : _c, className = _a.className, _d = _a.disabled, disabled = _d === void 0 ? false : _d, buttonAction = _a.buttonAction, nullDisplay = _a.nullDisplay, props = __rest(_a, ["value", "setValue", "placeholder", "label", "required", "id", "size", "className", "disabled", "buttonAction", "nullDisplay"]);
3205
3216
  var _e = useState(false), isEditing = _e[0], setIsEditing = _e[1];
3206
3217
  var _f = useState(value), dateString = _f[0], setDateString = _f[1];
@@ -3249,8 +3260,8 @@ var DateInputDisplay = function (_a) {
3249
3260
  label && (React.createElement("label", { htmlFor: id, className: "bianic-text-input-label text-xs font-semibold ".concat(labelStatus) },
3250
3261
  label,
3251
3262
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*"))),
3252
- React.createElement("div", { className: "relative w-full" }, input)));
3253
- };
3263
+ React.createElement("div", { className: "relative w-full", ref: ref }, input)));
3264
+ });
3254
3265
  var dateToInputString = function (dateObj) {
3255
3266
  if (!(dateObj instanceof Date) || isNaN(dateObj))
3256
3267
  return ''; // Return empty string for invalid dates
@@ -3265,15 +3276,15 @@ var displayDateFormatter = function (date) {
3265
3276
  };
3266
3277
 
3267
3278
  function DatePicker(_a) {
3268
- var value = _a.value, onChange = _a.onChange, size = _a.size, disabled = _a.disabled; _a.placeholder; var label = _a.label, minDate = _a.minDate, maxDate = _a.maxDate, required = _a.required, nullDisplay = _a.nullDisplay, inputclassName = _a.inputclassName, containerClassName = _a.containerClassName;
3279
+ var _b = _a.zIndexCalendar, zIndexCalendar = _b === void 0 ? 100 : _b, value = _a.value, onChange = _a.onChange, size = _a.size, disabled = _a.disabled; _a.placeholder; var label = _a.label, minDate = _a.minDate, maxDate = _a.maxDate, required = _a.required, nullDisplay = _a.nullDisplay, inputclassName = _a.inputclassName, containerClassName = _a.containerClassName;
3269
3280
  // State and Ref
3270
3281
  var inputRef = useRef(null);
3271
3282
  var wrapperRef = useRef(null);
3272
- var _c = useDetectOutsideClick(wrapperRef, false), isPickerOpen = _c[0], setIsPickerOpen = _c[1];
3283
+ var _d = useDetectOutsideClick(wrapperRef, false), isPickerOpen = _d[0], setIsPickerOpen = _d[1];
3273
3284
  return (React.createElement("div", { className: "bianic-datepicker-container relative ".concat(containerClassName), ref: wrapperRef },
3274
3285
  React.createElement("div", { className: "bianic-datepicker-field-container" },
3275
3286
  React.createElement(DateInputDisplay, { inputClassName: inputclassName, value: value, setValue: onChange, placeholder: "YYYY-MM-DD", nullDisplay: nullDisplay, size: size, label: label, required: required, buttonAction: function () { return setIsPickerOpen(!isPickerOpen); }, ref: inputRef, disabled: disabled })),
3276
- isPickerOpen && (React.createElement(PickerCalendar, { anchorRef: inputRef, selectedDate: value, onDateChange: onChange, minDate: minDate, maxDate: maxDate }))));
3287
+ isPickerOpen && (React.createElement(PickerCalendar, { zIndex: zIndexCalendar, anchorRef: inputRef, selectedDate: value, onDateChange: onChange, minDate: minDate, maxDate: maxDate }))));
3277
3288
  }
3278
3289
 
3279
3290
  var Node = function (_a) {
@@ -3517,7 +3528,7 @@ function Modal(_a) {
3517
3528
 
3518
3529
  var sizeConfig$2 = {
3519
3530
  md: 'min-w-[38px] h-[40px] text-[14px] font-semibold',
3520
- sm: 'min-w-[29px] h-[30px] mt-1 text-[12px] font-normal',
3531
+ sm: 'min-w-[29px] h-[30px] text-[12px] font-normal',
3521
3532
  };
3522
3533
  var positionConfig = {
3523
3534
  start: 'justify-start',
@@ -3655,7 +3666,7 @@ function Popover(_a) {
3655
3666
  var wrapperRef = useRef(null);
3656
3667
  useRef(null);
3657
3668
  var _e = useDetectOutsideClick(wrapperRef, false), isOpen = _e[0], setIsOpen = _e[1];
3658
- return (React.createElement("div", { className: "Bianic-popover-Wrapper relative block h-fit w-fit bg-bia-blue", role: "button", ref: wrapperRef, onClick: function () { return setIsOpen(true); } },
3669
+ return (React.createElement("div", { className: "Bianic-popover-Wrapper relative block h-fit w-fit", role: "button", ref: wrapperRef, onClick: function () { return setIsOpen(true); } },
3659
3670
  children,
3660
3671
  isOpen && (React.createElement(PopoverItem, { title: title, content: content, anchorRef: wrapperRef, direction: direction }))));
3661
3672
  }
@@ -7,5 +7,5 @@ interface ContextualButtonProps extends ComponentPropsWithoutRef<'button'> {
7
7
  isNotified?: boolean;
8
8
  isSelected?: boolean;
9
9
  }
10
- declare const ContextualButton: ({ actionElement, label, icon, variant, disabled, isNotified, isSelected, ...props }: ContextualButtonProps) => React.JSX.Element;
10
+ declare const ContextualButton: React.ForwardRefExoticComponent<ContextualButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
11
  export default ContextualButton;
@@ -12,5 +12,5 @@ interface DateInputDisplayProps extends Omit<TextInputProps, 'value'> {
12
12
  disabled: boolean;
13
13
  nullDisplay?: string;
14
14
  }
15
- declare const DateInputDisplay: ({ value, setValue, placeholder, label, required, id, size, className, disabled, buttonAction, nullDisplay, ...props }: DateInputDisplayProps) => React.JSX.Element;
15
+ declare const DateInputDisplay: React.ForwardRefExoticComponent<Omit<DateInputDisplayProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
16
16
  export default DateInputDisplay;
@@ -13,6 +13,7 @@ interface DatePickerProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChan
13
13
  nullDisplay?: string;
14
14
  inputclassName?: string;
15
15
  containerClassName?: string;
16
+ zIndexCalendar?: number;
16
17
  }
17
- declare function DatePicker({ value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React.JSX.Element;
18
+ declare function DatePicker({ zIndexCalendar, value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React.JSX.Element;
18
19
  export default DatePicker;
@@ -1,5 +1,6 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  export interface PickerCalendarProps extends ComponentPropsWithRef<'div'> {
3
+ zIndex?: number | 'auto' | 'inherit';
3
4
  anchorRef: React.RefObject<HTMLDivElement>;
4
5
  minDate?: string;
5
6
  maxDate?: string;
@@ -1,23 +1,5 @@
1
1
  import React from 'react';
2
2
  import TextInputProps from './PropsInterface';
3
3
  import './style.css';
4
- declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, inputClassName, isFlatRight, actionElement, autoComplete, ref, ...props }: TextInputProps): React.JSX.Element;
5
- declare namespace TextInput {
6
- var defaultProps: {
7
- descText: string;
8
- disabled: boolean;
9
- icon: null;
10
- id: string;
11
- size: string;
12
- isValid: null;
13
- label: string;
14
- placeholder: string;
15
- readOnly: boolean;
16
- variant: string;
17
- value: undefined;
18
- onChange: () => void;
19
- inputClassName: string;
20
- isFlatRight: boolean;
21
- };
22
- }
4
+ declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
23
5
  export default TextInput;
@@ -1,8 +1,8 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import { TextInput } from '../../../components';
2
+ import React from 'react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: typeof TextInput;
5
+ component: React.ForwardRefExoticComponent<Omit<import("../../../components/Forms/TextInput/PropsInterface").default, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
package/dist/index.d.ts CHANGED
@@ -119,7 +119,7 @@ interface ContextualButtonProps extends ComponentPropsWithoutRef<'button'> {
119
119
  isNotified?: boolean;
120
120
  isSelected?: boolean;
121
121
  }
122
- declare const ContextualButton: ({ actionElement, label, icon, variant, disabled, isNotified, isSelected, ...props }: ContextualButtonProps) => React$1.JSX.Element;
122
+ declare const ContextualButton: React$1.ForwardRefExoticComponent<ContextualButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
123
123
 
124
124
  declare function Color(): React$1.JSX.Element;
125
125
 
@@ -209,25 +209,7 @@ interface TextInputProps extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
209
209
  actionElement?: React.ReactNode;
210
210
  }
211
211
 
212
- declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, inputClassName, isFlatRight, actionElement, autoComplete, ref, ...props }: TextInputProps): React$1.JSX.Element;
213
- declare namespace TextInput {
214
- var defaultProps: {
215
- descText: string;
216
- disabled: boolean;
217
- icon: null;
218
- id: string;
219
- size: string;
220
- isValid: null;
221
- label: string;
222
- placeholder: string;
223
- readOnly: boolean;
224
- variant: string;
225
- value: undefined;
226
- onChange: () => void;
227
- inputClassName: string;
228
- isFlatRight: boolean;
229
- };
230
- }
212
+ declare const TextInput: React$1.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
231
213
 
232
214
  interface RadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
233
215
  label?: string;
@@ -473,10 +455,12 @@ interface DatePickerProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChan
473
455
  nullDisplay?: string;
474
456
  inputclassName?: string;
475
457
  containerClassName?: string;
458
+ zIndexCalendar?: number;
476
459
  }
477
- declare function DatePicker({ value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React$1.JSX.Element;
460
+ declare function DatePicker({ zIndexCalendar, value, onChange, size, disabled, placeholder, label, minDate, maxDate, required, nullDisplay, inputclassName, containerClassName, }: DatePickerProps): React$1.JSX.Element;
478
461
 
479
462
  interface PickerCalendarProps extends ComponentPropsWithRef<'div'> {
463
+ zIndex?: number | 'auto' | 'inherit';
480
464
  anchorRef: React.RefObject<HTMLDivElement>;
481
465
  minDate?: string;
482
466
  maxDate?: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
5
5
  },
6
- "version": "1.16.0-beta.4",
6
+ "version": "1.16.0-beta.7",
7
7
  "description": "Design Language System develop by BIAENERGI",
8
8
  "scripts": {
9
9
  "rollup": "rollup -c",