@axzydev/axzy_ui_system 1.3.0 → 1.3.1

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
@@ -884,6 +884,105 @@ interface ITFieldProps {
884
884
  */
885
885
  declare function ITField({ label, htmlFor, required, error, helpText, children, className, labelClassName, contentClassName, }: ITFieldProps): react_jsx_runtime.JSX.Element;
886
886
 
887
+ interface ITMaskedInputProps {
888
+ /** Unique name attribute for the underlying input element. */
889
+ name: string;
890
+ /**
891
+ * Mask pattern. Tokens are filled by the user and everything else is an
892
+ * auto-inserted literal.
893
+ * - `9` — digit
894
+ * - `A` — letter (stored uppercase)
895
+ * - `a` — letter
896
+ * - `x` — alphanumeric
897
+ * - `*` — any character
898
+ * - any other character ( `-`, `/`, `(`, `)`, ` `, `.` ) is a literal separator
899
+ * @example "xxxx-xxxx-xxxx"
900
+ * @example "(999) 999-9999"
901
+ * @example "9999-9999-9999-9999"
902
+ */
903
+ mask: string;
904
+ /** Clean value containing only the useful characters (no separators, no placeholders). */
905
+ value?: string;
906
+ /** Called when the masked value changes. `event.target.value` is the raw value without separators. */
907
+ onChange: (event: {
908
+ target: {
909
+ name: string;
910
+ value: string;
911
+ };
912
+ }) => void;
913
+ /** Called when the input loses focus. */
914
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
915
+ /** Fired when all token slots are filled with valid characters. */
916
+ onComplete?: (value: string) => void;
917
+ /** Optional regex full-matched against the raw value to validate the field (e.g. `/^\\d{16}$/`). */
918
+ pattern?: RegExp;
919
+ /** Character shown for empty token slots. @default "_" */
920
+ placeholderChar?: string;
921
+ /** Color variant matching the design system (ColorsTypes). @default "primary" */
922
+ variant?: ColorsTypes;
923
+ /** Size preset: "sm" | "md" | "lg". @default "md" */
924
+ size?: SizesTypes;
925
+ /** Label displayed above the input. */
926
+ label?: string;
927
+ /** Disables the input. @default false */
928
+ disabled?: boolean;
929
+ /** Marks the field as required. */
930
+ required?: boolean;
931
+ /** Visually indicates the field has been interacted with. */
932
+ touched?: boolean;
933
+ /** Error state — pass a string message or `true` for default styling. */
934
+ error?: string | boolean;
935
+ /** Additional CSS classes for the outer wrapper element. */
936
+ className?: string;
937
+ /** Additional CSS classes for the underlying input container. */
938
+ containerClassName?: string;
939
+ /** Icon element rendered on the left side of the input. */
940
+ iconLeft?: ReactNode;
941
+ /** Icon element rendered on the right side of the input. */
942
+ iconRight?: ReactNode;
943
+ /** Auto-focus the input on mount. @default false */
944
+ autoFocus?: boolean;
945
+ }
946
+
947
+ /**
948
+ * Text input that applies a formatting mask while the user types, exposing only
949
+ * the clean (raw) value through `onChange`.
950
+ *
951
+ * The mask is defined by a pattern string. Tokens are filled by the user and
952
+ * any other character acts as an auto-inserted literal separator. Empty slots
953
+ * are painted with `placeholderChar`, so the mask is always visible.
954
+ *
955
+ * @example
956
+ * ```tsx
957
+ * <ITMaskedInput
958
+ * name="code"
959
+ * mask="xxxx-xxxx-xxxx"
960
+ * label="Código"
961
+ * onChange={(e) => setCode(e.target.value)}
962
+ * />
963
+ * ```
964
+ *
965
+ * @example
966
+ * ```tsx
967
+ * <ITMaskedInput
968
+ * name="phone"
969
+ * mask="(999) 999-9999"
970
+ * pattern={/^\d{10}$/}
971
+ * onChange={(e) => setPhone(e.target.value)}
972
+ * />
973
+ * ```
974
+ *
975
+ * @example
976
+ * ```tsx
977
+ * <ITMaskedInput
978
+ * name="card"
979
+ * mask="9999-9999-9999-9999"
980
+ * onComplete={(card) => validateCard(card)}
981
+ * />
982
+ * ```
983
+ */
984
+ declare function ITMaskedInput({ name, mask, value, onChange, onBlur, onComplete, pattern, placeholderChar, variant, size, label, disabled, required, touched, error, className, containerClassName, iconLeft, iconRight, autoFocus, }: ITMaskedInputProps): react_jsx_runtime.JSX.Element;
985
+
887
986
  /** Represents an option in the multi-select dropdown. */
888
987
  interface ITMultiSelectOption {
889
988
  /** Display label for the option. */
@@ -3695,4 +3794,4 @@ declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette$1, is
3695
3794
  */
3696
3795
  declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette$1, isDarkMode?: boolean) => "text-white" | "text-slate-800";
3697
3796
 
3698
- export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette$1 as ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITTheme, useITThemeSafe, useTableState };
3797
+ export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette$1 as ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITTheme, useITThemeSafe, useTableState };
package/dist/index.d.ts CHANGED
@@ -884,6 +884,105 @@ interface ITFieldProps {
884
884
  */
885
885
  declare function ITField({ label, htmlFor, required, error, helpText, children, className, labelClassName, contentClassName, }: ITFieldProps): react_jsx_runtime.JSX.Element;
886
886
 
887
+ interface ITMaskedInputProps {
888
+ /** Unique name attribute for the underlying input element. */
889
+ name: string;
890
+ /**
891
+ * Mask pattern. Tokens are filled by the user and everything else is an
892
+ * auto-inserted literal.
893
+ * - `9` — digit
894
+ * - `A` — letter (stored uppercase)
895
+ * - `a` — letter
896
+ * - `x` — alphanumeric
897
+ * - `*` — any character
898
+ * - any other character ( `-`, `/`, `(`, `)`, ` `, `.` ) is a literal separator
899
+ * @example "xxxx-xxxx-xxxx"
900
+ * @example "(999) 999-9999"
901
+ * @example "9999-9999-9999-9999"
902
+ */
903
+ mask: string;
904
+ /** Clean value containing only the useful characters (no separators, no placeholders). */
905
+ value?: string;
906
+ /** Called when the masked value changes. `event.target.value` is the raw value without separators. */
907
+ onChange: (event: {
908
+ target: {
909
+ name: string;
910
+ value: string;
911
+ };
912
+ }) => void;
913
+ /** Called when the input loses focus. */
914
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
915
+ /** Fired when all token slots are filled with valid characters. */
916
+ onComplete?: (value: string) => void;
917
+ /** Optional regex full-matched against the raw value to validate the field (e.g. `/^\\d{16}$/`). */
918
+ pattern?: RegExp;
919
+ /** Character shown for empty token slots. @default "_" */
920
+ placeholderChar?: string;
921
+ /** Color variant matching the design system (ColorsTypes). @default "primary" */
922
+ variant?: ColorsTypes;
923
+ /** Size preset: "sm" | "md" | "lg". @default "md" */
924
+ size?: SizesTypes;
925
+ /** Label displayed above the input. */
926
+ label?: string;
927
+ /** Disables the input. @default false */
928
+ disabled?: boolean;
929
+ /** Marks the field as required. */
930
+ required?: boolean;
931
+ /** Visually indicates the field has been interacted with. */
932
+ touched?: boolean;
933
+ /** Error state — pass a string message or `true` for default styling. */
934
+ error?: string | boolean;
935
+ /** Additional CSS classes for the outer wrapper element. */
936
+ className?: string;
937
+ /** Additional CSS classes for the underlying input container. */
938
+ containerClassName?: string;
939
+ /** Icon element rendered on the left side of the input. */
940
+ iconLeft?: ReactNode;
941
+ /** Icon element rendered on the right side of the input. */
942
+ iconRight?: ReactNode;
943
+ /** Auto-focus the input on mount. @default false */
944
+ autoFocus?: boolean;
945
+ }
946
+
947
+ /**
948
+ * Text input that applies a formatting mask while the user types, exposing only
949
+ * the clean (raw) value through `onChange`.
950
+ *
951
+ * The mask is defined by a pattern string. Tokens are filled by the user and
952
+ * any other character acts as an auto-inserted literal separator. Empty slots
953
+ * are painted with `placeholderChar`, so the mask is always visible.
954
+ *
955
+ * @example
956
+ * ```tsx
957
+ * <ITMaskedInput
958
+ * name="code"
959
+ * mask="xxxx-xxxx-xxxx"
960
+ * label="Código"
961
+ * onChange={(e) => setCode(e.target.value)}
962
+ * />
963
+ * ```
964
+ *
965
+ * @example
966
+ * ```tsx
967
+ * <ITMaskedInput
968
+ * name="phone"
969
+ * mask="(999) 999-9999"
970
+ * pattern={/^\d{10}$/}
971
+ * onChange={(e) => setPhone(e.target.value)}
972
+ * />
973
+ * ```
974
+ *
975
+ * @example
976
+ * ```tsx
977
+ * <ITMaskedInput
978
+ * name="card"
979
+ * mask="9999-9999-9999-9999"
980
+ * onComplete={(card) => validateCard(card)}
981
+ * />
982
+ * ```
983
+ */
984
+ declare function ITMaskedInput({ name, mask, value, onChange, onBlur, onComplete, pattern, placeholderChar, variant, size, label, disabled, required, touched, error, className, containerClassName, iconLeft, iconRight, autoFocus, }: ITMaskedInputProps): react_jsx_runtime.JSX.Element;
985
+
887
986
  /** Represents an option in the multi-select dropdown. */
888
987
  interface ITMultiSelectOption {
889
988
  /** Display label for the option. */
@@ -3695,4 +3794,4 @@ declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette$1, is
3695
3794
  */
3696
3795
  declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette$1, isDarkMode?: boolean) => "text-white" | "text-slate-800";
3697
3796
 
3698
- export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette$1 as ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITTheme, useITThemeSafe, useTableState };
3797
+ export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette$1 as ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITTheme, useITThemeSafe, useTableState };