@axzydev/axzy_ui_system 1.0.162 → 1.0.164

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/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { ReactNode } from 'react';
2
+ import * as React$1 from 'react';
3
+ import React__default, { ReactNode } from 'react';
3
4
  import * as Yup from 'yup';
4
5
 
5
6
  declare const buttonVariants: Record<string, string>;
@@ -167,7 +168,7 @@ interface ITCalendarProps {
167
168
  disabled?: boolean;
168
169
  }
169
170
 
170
- declare const ITCalendar: React$1.FC<ITCalendarProps>;
171
+ declare const ITCalendar: React__default.FC<ITCalendarProps>;
171
172
 
172
173
  interface ITCardProps {
173
174
  onClick?: () => void;
@@ -228,7 +229,7 @@ interface ITDialogProps {
228
229
  useFormHeader?: boolean;
229
230
  }
230
231
 
231
- declare function ITDialog({ isOpen, onClose, children, className, title, useFormHeader, }: ITDialogProps): react_jsx_runtime.JSX.Element;
232
+ declare function ITDialog({ isOpen, onClose, children, className, title, useFormHeader, }: ITDialogProps): React$1.ReactPortal;
232
233
 
233
234
  interface FieldConfig {
234
235
  name: string;
@@ -244,8 +245,8 @@ interface FieldConfig {
244
245
  value: string;
245
246
  label: string;
246
247
  }[];
247
- rightIcon?: React$1.ReactNode;
248
- leftIcon?: React$1.ReactNode;
248
+ rightIcon?: React__default.ReactNode;
249
+ leftIcon?: React__default.ReactNode;
249
250
  valueField?: string;
250
251
  showHintLength?: boolean;
251
252
  labelField?: string;
@@ -294,9 +295,9 @@ interface FieldConfigV2 {
294
295
  }[]>);
295
296
  valueField?: string;
296
297
  labelField?: string;
297
- leftIcon?: React$1.ReactNode;
298
- rightIcon?: React$1.ReactNode;
299
- component?: React$1.ComponentType<any>;
298
+ leftIcon?: React__default.ReactNode;
299
+ rightIcon?: React__default.ReactNode;
300
+ component?: React__default.ComponentType<any>;
300
301
  className?: string;
301
302
  currencyFormat?: boolean;
302
303
  showHintLength?: boolean;
@@ -734,12 +735,12 @@ interface ITDropfileProps {
734
735
  onStatusChange?: (status: UploadStatus) => void;
735
736
  initialPreviewUrl?: string | null;
736
737
  }
737
- declare const ITDropfile: React$1.FC<ITDropfileProps>;
738
+ declare const ITDropfile: React__default.FC<ITDropfileProps>;
738
739
 
739
- type IconType = React$1.ReactNode;
740
+ type IconType = React__default.ReactNode;
740
741
  interface Step {
741
742
  label: string;
742
- content: React$1.ReactNode;
743
+ content: React__default.ReactNode;
743
744
  icon?: IconType;
744
745
  }
745
746
  interface ITStepperProps {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { ReactNode } from 'react';
2
+ import * as React$1 from 'react';
3
+ import React__default, { ReactNode } from 'react';
3
4
  import * as Yup from 'yup';
4
5
 
5
6
  declare const buttonVariants: Record<string, string>;
@@ -167,7 +168,7 @@ interface ITCalendarProps {
167
168
  disabled?: boolean;
168
169
  }
169
170
 
170
- declare const ITCalendar: React$1.FC<ITCalendarProps>;
171
+ declare const ITCalendar: React__default.FC<ITCalendarProps>;
171
172
 
172
173
  interface ITCardProps {
173
174
  onClick?: () => void;
@@ -228,7 +229,7 @@ interface ITDialogProps {
228
229
  useFormHeader?: boolean;
229
230
  }
230
231
 
231
- declare function ITDialog({ isOpen, onClose, children, className, title, useFormHeader, }: ITDialogProps): react_jsx_runtime.JSX.Element;
232
+ declare function ITDialog({ isOpen, onClose, children, className, title, useFormHeader, }: ITDialogProps): React$1.ReactPortal;
232
233
 
233
234
  interface FieldConfig {
234
235
  name: string;
@@ -244,8 +245,8 @@ interface FieldConfig {
244
245
  value: string;
245
246
  label: string;
246
247
  }[];
247
- rightIcon?: React$1.ReactNode;
248
- leftIcon?: React$1.ReactNode;
248
+ rightIcon?: React__default.ReactNode;
249
+ leftIcon?: React__default.ReactNode;
249
250
  valueField?: string;
250
251
  showHintLength?: boolean;
251
252
  labelField?: string;
@@ -294,9 +295,9 @@ interface FieldConfigV2 {
294
295
  }[]>);
295
296
  valueField?: string;
296
297
  labelField?: string;
297
- leftIcon?: React$1.ReactNode;
298
- rightIcon?: React$1.ReactNode;
299
- component?: React$1.ComponentType<any>;
298
+ leftIcon?: React__default.ReactNode;
299
+ rightIcon?: React__default.ReactNode;
300
+ component?: React__default.ComponentType<any>;
300
301
  className?: string;
301
302
  currencyFormat?: boolean;
302
303
  showHintLength?: boolean;
@@ -734,12 +735,12 @@ interface ITDropfileProps {
734
735
  onStatusChange?: (status: UploadStatus) => void;
735
736
  initialPreviewUrl?: string | null;
736
737
  }
737
- declare const ITDropfile: React$1.FC<ITDropfileProps>;
738
+ declare const ITDropfile: React__default.FC<ITDropfileProps>;
738
739
 
739
- type IconType = React$1.ReactNode;
740
+ type IconType = React__default.ReactNode;
740
741
  interface Step {
741
742
  label: string;
742
- content: React$1.ReactNode;
743
+ content: React__default.ReactNode;
743
744
  icon?: IconType;
744
745
  }
745
746
  interface ITStepperProps {
package/dist/index.js CHANGED
@@ -1616,6 +1616,7 @@ function ITDatePicker({
1616
1616
  }
1617
1617
 
1618
1618
  // src/components/dialog/dialog.tsx
1619
+ import { createPortal } from "react-dom";
1619
1620
  import { useEffect as useEffect5, useRef as useRef3 } from "react";
1620
1621
  import { FaRegTimesCircle } from "react-icons/fa";
1621
1622
 
@@ -1684,7 +1685,8 @@ function ITDialog({
1684
1685
  };
1685
1686
  }, [isOpen, onClose]);
1686
1687
  if (!isOpen) return null;
1687
- return /* @__PURE__ */ jsx7("div", { className: "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50", children: /* @__PURE__ */ jsx7(
1688
+ if (typeof document === "undefined") return null;
1689
+ const content = /* @__PURE__ */ jsx7("div", { className: "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-[9999]", children: /* @__PURE__ */ jsx7(
1688
1690
  "div",
1689
1691
  {
1690
1692
  ref: modalRef,
@@ -1693,7 +1695,6 @@ function ITDialog({
1693
1695
  backgroundColor: theme.card.backgroundColor,
1694
1696
  borderRadius: theme.card.borderRadius,
1695
1697
  boxShadow: theme.card.shadow,
1696
- // Border? theme.card.borderWidth?
1697
1698
  borderWidth: theme.card.borderWidth,
1698
1699
  borderColor: theme.card.borderColor,
1699
1700
  borderStyle: "solid"
@@ -1715,6 +1716,7 @@ function ITDialog({
1715
1716
  ] })
1716
1717
  }
1717
1718
  ) });
1719
+ return createPortal(content, document.body);
1718
1720
  }
1719
1721
 
1720
1722
  // src/components/form-builder/formBuilder.tsx
@@ -2748,7 +2750,7 @@ function ITPagination({
2748
2750
  totalPages,
2749
2751
  siblingCount
2750
2752
  });
2751
- if (currentPage === 0 || paginationRange && paginationRange.length < 2) {
2753
+ if (currentPage === 0 || !itemsPerPageOptions && paginationRange && paginationRange.length < 2) {
2752
2754
  return null;
2753
2755
  }
2754
2756
  const isSemantic = color in theme.colors;