nexaas-ui-components 1.0.102 → 1.0.104

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.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
- import React__default, { JSX, ComponentType, AnchorHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, HTMLInputTypeAttribute, ReactNode, KeyboardEventHandler, MutableRefObject, TextareaHTMLAttributes } from 'react';
3
+ import React__default, { JSX, AnchorHTMLAttributes, ComponentType, DetailedHTMLProps, InputHTMLAttributes, HTMLInputTypeAttribute, ReactNode, KeyboardEventHandler, MutableRefObject, TextareaHTMLAttributes } from 'react';
3
4
  import { UseFormRegisterReturn, Merge, FieldError, FieldErrorsImpl, Control } from 'react-hook-form';
4
5
  import { Table as Table$1 } from '@tanstack/react-table';
5
6
  import { ValueContainerProps } from 'react-select';
@@ -111,7 +112,7 @@ declare const variants$3: {
111
112
  text: string;
112
113
  };
113
114
  };
114
- declare const Button: ({ variant, size, hotkey, hotkeyPosition, ...props }: ButtonProps) => JSX.Element;
115
+ declare const Button: ({ variant, size, hotkey, hotkeyPosition, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
115
116
 
116
117
  type LinkProp = AnchorHTMLAttributes<HTMLAnchorElement> & {
117
118
  icon?: JSX.Element;
@@ -224,7 +225,7 @@ type InputFieldProps$1 = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>
224
225
  onClear?: () => void;
225
226
  hideInput?: boolean;
226
227
  };
227
- declare const Input: ({ label, type, registration, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, onChange, ref, }: InputFieldProps$1) => JSX.Element;
228
+ declare const Input: ({ label, type, registration, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, onChange, ref, }: InputFieldProps$1) => react_jsx_runtime.JSX.Element;
228
229
 
229
230
  declare const Logo: React__default.FC<{
230
231
  className?: string;
@@ -277,7 +278,7 @@ declare const variants$1: {
277
278
  outline: string;
278
279
  "dark-gray": string;
279
280
  };
280
- declare const Badge: ({ variant, children, className, style, }: BadgeProps) => JSX.Element;
281
+ declare const Badge: ({ variant, children, className, style, }: BadgeProps) => react_jsx_runtime.JSX.Element;
281
282
 
282
283
  interface Props$7 {
283
284
  registration?: UseFormRegisterReturn;
@@ -291,7 +292,7 @@ interface Props$7 {
291
292
  maxDate?: Date;
292
293
  singleMonth?: boolean;
293
294
  }
294
- declare const Calendar: ({ registration, error, control, name, rangeCalendar, shortcutsChange, selectedShortcut, setSelectedShortcut, maxDate, singleMonth, }: Props$7) => React__default.JSX.Element;
295
+ declare const Calendar: ({ registration, error, control, name, rangeCalendar, shortcutsChange, selectedShortcut, setSelectedShortcut, maxDate, singleMonth, }: Props$7) => react_jsx_runtime.JSX.Element;
295
296
 
296
297
  type CheckboxProps = {
297
298
  key?: string;
@@ -299,7 +300,7 @@ type CheckboxProps = {
299
300
  registration?: UseFormRegisterReturn;
300
301
  disabled?: boolean;
301
302
  };
302
- declare const Checkbox: ({ key, label, registration, disabled, }: CheckboxProps) => React__default.JSX.Element;
303
+ declare const Checkbox: ({ key, label, registration, disabled, }: CheckboxProps) => react_jsx_runtime.JSX.Element;
303
304
 
304
305
  interface Props$6 {
305
306
  icon?: JSX.Element;
@@ -318,7 +319,7 @@ interface Props$6 {
318
319
  /** Mostra o botão de limpar (X) no chip fechado, sobre o filtro já selecionado. Padrão: true. */
319
320
  clearButton?: boolean;
320
321
  }
321
- declare const FilterCalendar: ({ icon, label, onApply, onClear, control, name, rangeCalendar, defaultShortcut, shortcutsChange, singleMonth, maxDate, labelClassName, clearButton, }: Props$6) => JSX.Element;
322
+ declare const FilterCalendar: ({ icon, label, onApply, onClear, control, name, rangeCalendar, defaultShortcut, shortcutsChange, singleMonth, maxDate, labelClassName, clearButton, }: Props$6) => react_jsx_runtime.JSX.Element;
322
323
 
323
324
  interface Options {
324
325
  id: any;
@@ -359,7 +360,7 @@ interface Props$5 {
359
360
  clearLabel?: string;
360
361
  selectAllLabel?: string;
361
362
  }
362
- declare const FilterOptions: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, }: Props$5) => JSX.Element;
363
+ declare const FilterOptions: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, }: Props$5) => react_jsx_runtime.JSX.Element;
363
364
 
364
365
  interface Props$4 {
365
366
  icon?: JSX.Element;
@@ -408,7 +409,7 @@ interface Props$4 {
408
409
  */
409
410
  preloadOptions?: boolean;
410
411
  }
411
- declare const FilterSelect: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, clearButton, preloadOptions, }: Props$4) => JSX.Element;
412
+ declare const FilterSelect: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, clearButton, preloadOptions, }: Props$4) => react_jsx_runtime.JSX.Element;
412
413
 
413
414
  type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
414
415
  label?: string;
@@ -425,7 +426,7 @@ type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
425
426
  isWeightField?: boolean;
426
427
  minFractionDigits?: number;
427
428
  };
428
- declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps): JSX.Element;
429
+ declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps): react_jsx_runtime.JSX.Element;
429
430
  declare namespace InputMoney {
430
431
  var displayName: string;
431
432
  }
@@ -447,7 +448,7 @@ type InputNumberProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
447
448
  showZero?: boolean;
448
449
  maxValue?: number;
449
450
  };
450
- declare function InputNumber({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, hideArrows, maxLength, onlyNumbers, showZero, maxValue, }: InputNumberProps): JSX.Element;
451
+ declare function InputNumber({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, hideArrows, maxLength, onlyNumbers, showZero, maxValue, }: InputNumberProps): react_jsx_runtime.JSX.Element;
451
452
  declare namespace InputNumber {
452
453
  var displayName: string;
453
454
  }
@@ -467,7 +468,7 @@ type InputPercentageProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputEleme
467
468
  minFractionDigits?: number;
468
469
  onChangeValue?: (e: any) => void;
469
470
  };
470
- declare function InputPercentage({ label, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, placeholder, control, defaultValue, minFractionDigits, onChangeValue, maxLength, }: InputPercentageProps): JSX.Element;
471
+ declare function InputPercentage({ label, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, placeholder, control, defaultValue, minFractionDigits, onChangeValue, maxLength, }: InputPercentageProps): react_jsx_runtime.JSX.Element;
471
472
  declare namespace InputPercentage {
472
473
  var displayName: string;
473
474
  }
@@ -487,7 +488,7 @@ type MaskedInputProps = {
487
488
  defaultValue?: any;
488
489
  disabled?: boolean;
489
490
  };
490
- declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) => React__default.JSX.Element;
491
+ declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) => react_jsx_runtime.JSX.Element;
491
492
 
492
493
  type ModalProps = {
493
494
  open?: boolean;
@@ -524,14 +525,14 @@ declare const sizes: {
524
525
  lg: string;
525
526
  null: string;
526
527
  };
527
- declare const ModalDialog: ({ open, onOpen, onClose, onCancel, triggerButton, confirmButton, title, cancelButton, icon, alertType, size, info, description, children, showFooter, showHeader, headerBorder, closeOnOverlayClick, }: ModalProps) => JSX.Element;
528
+ declare const ModalDialog: ({ open, onOpen, onClose, onCancel, triggerButton, confirmButton, title, cancelButton, icon, alertType, size, info, description, children, showFooter, showHeader, headerBorder, closeOnOverlayClick, }: ModalProps) => react_jsx_runtime.JSX.Element;
528
529
 
529
530
  interface Props$3 {
530
531
  id: string;
531
532
  displayArrow?: boolean;
532
533
  openOnClick?: boolean;
533
534
  }
534
- declare const Popover: ({ id, displayArrow, openOnClick, }: Props$3) => React__default.JSX.Element;
535
+ declare const Popover: ({ id, displayArrow, openOnClick, }: Props$3) => react_jsx_runtime.JSX.Element;
535
536
 
536
537
  type OptionType$3 = {
537
538
  value: number | string;
@@ -567,7 +568,7 @@ type SelectFieldProps$3 = {
567
568
  menuIsEverOpen?: boolean;
568
569
  showArrow?: boolean;
569
570
  };
570
- declare const SelectField: ({ name, error, label, defaultValue, control, placeholder, isSearchable, isClearable, onChange, required, debounce, filterOptions, optionsList, disabled, onChangeValue, resize, optionStyle, valueStyle, icon, emptyMessage, small, initialMessage, menuIsEverOpen, clearOnBlur, onMenuClose, clearOnMenuClose, showArrow, }: SelectFieldProps$3) => JSX.Element;
571
+ declare const SelectField: ({ name, error, label, defaultValue, control, placeholder, isSearchable, isClearable, onChange, required, debounce, filterOptions, optionsList, disabled, onChangeValue, resize, optionStyle, valueStyle, icon, emptyMessage, small, initialMessage, menuIsEverOpen, clearOnBlur, onMenuClose, clearOnMenuClose, showArrow, }: SelectFieldProps$3) => react_jsx_runtime.JSX.Element;
571
572
 
572
573
  type FieldWrapperProps = {
573
574
  label?: string;
@@ -621,7 +622,7 @@ interface Props$2 {
621
622
  value?: string | number;
622
623
  onChange?: (value: string | number) => void;
623
624
  }
624
- declare const Radio: ({ disabled, control, name, label, defaultChecked, value, onChange, }: Props$2) => React__default.JSX.Element;
625
+ declare const Radio: ({ disabled, control, name, label, defaultChecked, value, onChange, }: Props$2) => react_jsx_runtime.JSX.Element;
625
626
 
626
627
  type ToggleProps = {
627
628
  name: string;
@@ -630,13 +631,13 @@ type ToggleProps = {
630
631
  control: Control<any>;
631
632
  disabled?: boolean;
632
633
  };
633
- declare const Toggle: ({ name, label, subLabel, control, disabled, }: ToggleProps) => React__default.JSX.Element;
634
+ declare const Toggle: ({ name, label, subLabel, control, disabled, }: ToggleProps) => react_jsx_runtime.JSX.Element;
634
635
 
635
636
  interface Props$1<TData> {
636
637
  pageSizeOptions?: number[];
637
638
  table: Table$1<TData>;
638
639
  }
639
- declare function PaginationSelect<TData>({ pageSizeOptions, table, }: Props$1<TData>): React__default.JSX.Element;
640
+ declare function PaginationSelect<TData>({ pageSizeOptions, table, }: Props$1<TData>): react_jsx_runtime.JSX.Element;
640
641
 
641
642
  type CustomTData = {
642
643
  _destroy?: string;
@@ -688,7 +689,7 @@ interface DataTableProps<TData extends CustomTData, TValue> {
688
689
  pageSizeOptions?: number[];
689
690
  onFinishFetch?: () => void;
690
691
  }
691
- declare function DataTable<TData extends CustomTData, TValue>({ columns, tableClass, data, hidePagination, emptyButtonAction, hideBlankState, renderSubComponent, footer, borderFull, withShadow, actionsSelection, backgroundColor, emptyState, totalData, showFilter, placeholder, fetchData, openedSubComponent, getRowCanExpand, enableRowSelection, onScroll, tableContainerRef, setRows, selectAllOption, autoPagination, rowClassName, listUpdate, setRowSelection, rowSelection, perPage, pageSizeOptions, onFinishFetch, }: DataTableProps<TData, TValue>): JSX.Element;
692
+ declare function DataTable<TData extends CustomTData, TValue>({ columns, tableClass, data, hidePagination, emptyButtonAction, hideBlankState, renderSubComponent, footer, borderFull, withShadow, actionsSelection, backgroundColor, emptyState, totalData, showFilter, placeholder, fetchData, openedSubComponent, getRowCanExpand, enableRowSelection, onScroll, tableContainerRef, setRows, selectAllOption, autoPagination, rowClassName, listUpdate, setRowSelection, rowSelection, perPage, pageSizeOptions, onFinishFetch, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
692
693
 
693
694
  declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
694
695
  declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
@@ -711,26 +712,26 @@ interface DataTablePaginationProps<TData> {
711
712
  paginationScroll?: number;
712
713
  pageSizeOptions?: number[];
713
714
  }
714
- declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>): JSX.Element;
715
+ declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
715
716
 
716
717
  interface Props {
717
718
  title: string;
718
719
  children: ReactNode;
719
720
  open: boolean;
720
721
  }
721
- declare const Accordion: ({ title, children, open }: Props) => React.JSX.Element;
722
+ declare const Accordion: ({ title, children, open }: Props) => react_jsx_runtime.JSX.Element;
722
723
 
723
724
  declare function CopyPopover({ children, valueToCopy }: {
724
725
  children: any;
725
726
  valueToCopy: any;
726
- }): React.JSX.Element;
727
+ }): react_jsx_runtime.JSX.Element;
727
728
 
728
729
  type MenuProps = {
729
730
  triggerElement?: ReactNode;
730
731
  children?: ReactNode;
731
732
  className?: string;
732
733
  };
733
- declare const Menu: ({ triggerElement, children, className }: MenuProps) => React.JSX.Element;
734
+ declare const Menu: ({ triggerElement, children, className }: MenuProps) => react_jsx_runtime.JSX.Element;
734
735
 
735
736
  type ItemProps = {
736
737
  index?: number;
@@ -738,14 +739,14 @@ type ItemProps = {
738
739
  onClick?: (event: any) => void;
739
740
  children?: ReactNode;
740
741
  };
741
- declare const Item: ({ index, isActive, onClick, children }: ItemProps) => React.JSX.Element;
742
+ declare const Item: ({ index, isActive, onClick, children }: ItemProps) => react_jsx_runtime.JSX.Element;
742
743
 
743
744
  type EditableTextProps$2 = {
744
745
  children?: ReactNode;
745
746
  button?: ReactNode;
746
747
  onClose?: Function;
747
748
  };
748
- declare const EditableButton: ({ children, button, onClose, }: EditableTextProps$2) => React__default.JSX.Element;
749
+ declare const EditableButton: ({ children, button, onClose, }: EditableTextProps$2) => react_jsx_runtime.JSX.Element;
749
750
 
750
751
  type EditableTextProps$1 = {
751
752
  control?: any;
@@ -757,7 +758,7 @@ type EditableTextProps$1 = {
757
758
  hideEditIcon?: boolean;
758
759
  truncate?: boolean;
759
760
  };
760
- declare const EditableText: ({ control, name, emptyLabel, children, onApply, value, hideEditIcon, truncate, }: EditableTextProps$1) => JSX.Element;
761
+ declare const EditableText: ({ control, name, emptyLabel, children, onApply, value, hideEditIcon, truncate, }: EditableTextProps$1) => react_jsx_runtime.JSX.Element;
761
762
 
762
763
  type EditableTextProps = {
763
764
  control?: any;
@@ -770,7 +771,7 @@ type EditableTextProps = {
770
771
  showInputSeach?: boolean;
771
772
  onChangeValue?: (value: any) => void;
772
773
  };
773
- declare const EditableTextSelect: ({ control, name, emptyLabel, options, optionStyle, valueStyle, showInputSeach, onChangeValue, }: EditableTextProps) => JSX.Element;
774
+ declare const EditableTextSelect: ({ control, name, emptyLabel, options, optionStyle, valueStyle, showInputSeach, onChangeValue, }: EditableTextProps) => react_jsx_runtime.JSX.Element;
774
775
 
775
776
  type FileUploadProps = {
776
777
  icon?: "file" | "image";
@@ -785,12 +786,12 @@ type FileUploadProps = {
785
786
  name?: string;
786
787
  limitMessage?: string;
787
788
  };
788
- declare const FileUpload: ({ icon, multiple, direction, isImage, setFiles, supportedFormats, validationFunction, files, error, name, limitMessage, }: FileUploadProps) => React__default.JSX.Element;
789
+ declare const FileUpload: ({ icon, multiple, direction, isImage, setFiles, supportedFormats, validationFunction, files, error, name, limitMessage, }: FileUploadProps) => react_jsx_runtime.JSX.Element;
789
790
 
790
791
  declare function InfoIcon({ content, id, }: {
791
792
  content?: string;
792
793
  id?: string;
793
- }): React.JSX.Element;
794
+ }): react_jsx_runtime.JSX.Element;
794
795
 
795
796
  type OptionType$2 = {
796
797
  value: number | string;
@@ -807,7 +808,7 @@ interface SelectFieldProps$2 {
807
808
  error?: Merge<FieldError, FieldErrorsImpl<any>>;
808
809
  disabled?: boolean;
809
810
  }
810
- declare const MultiSelect: ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, }: SelectFieldProps$2) => React.JSX.Element;
811
+ declare const MultiSelect: ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, }: SelectFieldProps$2) => react_jsx_runtime.JSX.Element;
811
812
 
812
813
  type OptionType$1 = {
813
814
  value: number | string;
@@ -825,10 +826,10 @@ interface SelectFieldProps$1 {
825
826
  blockSpaces?: boolean;
826
827
  }
827
828
  declare const InputTag: {
828
- ({ name, label, error, defaultValue, control, required, placeholder, blockSpaces, }: SelectFieldProps$1): React__default.JSX.Element;
829
+ ({ name, label, error, defaultValue, control, required, placeholder, blockSpaces, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
829
830
  displayName: string;
830
831
  };
831
- declare const ValueContainer: ({ children, ...props }: ValueContainerProps) => React__default.JSX.Element;
832
+ declare const ValueContainer: ({ children, ...props }: ValueContainerProps) => react_jsx_runtime.JSX.Element;
832
833
 
833
834
  type OptionType = {
834
835
  value: number | string;
@@ -850,14 +851,14 @@ interface SelectFieldProps {
850
851
  debounce?: number;
851
852
  }
852
853
  declare const MultiSelectBottom: {
853
- ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, emptyMessage, filterOptions, debounce, }: SelectFieldProps): React.JSX.Element;
854
+ ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, emptyMessage, filterOptions, debounce, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
854
855
  displayName: string;
855
856
  };
856
857
 
857
858
  declare function PageBox(props: {
858
859
  title?: string;
859
860
  children?: React__default.ReactNode;
860
- }): React__default.JSX.Element;
861
+ }): react_jsx_runtime.JSX.Element;
861
862
 
862
863
  type PageHeaderProps = {
863
864
  title: JSX.Element | string;
@@ -868,14 +869,14 @@ type PageHeaderProps = {
868
869
  children?: JSX.Element;
869
870
  description?: JSX.Element | string;
870
871
  };
871
- declare const PageHeader: ({ title, breadcrumbs, children, description, }: PageHeaderProps) => JSX.Element;
872
+ declare const PageHeader: ({ title, breadcrumbs, children, description, }: PageHeaderProps) => react_jsx_runtime.JSX.Element;
872
873
 
873
874
  type ProgressBarProps = {
874
875
  percentage: number;
875
876
  variant: "primary" | "success" | "danger" | "info";
876
877
  status: string;
877
878
  };
878
- declare const ProgressBar: ({ percentage, variant, status, }: ProgressBarProps) => React.JSX.Element;
879
+ declare const ProgressBar: ({ percentage, variant, status, }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
879
880
 
880
881
  type TabsProps = {
881
882
  tabs: {
@@ -887,22 +888,22 @@ type TabsProps = {
887
888
  }[];
888
889
  onClick?: (current: any) => void;
889
890
  };
890
- declare function SimpleTab({ tabs, onClick }: TabsProps): JSX.Element;
891
+ declare function SimpleTab({ tabs, onClick }: TabsProps): react_jsx_runtime.JSX.Element;
891
892
 
892
893
  declare const SkeletonDetails: ({ loading, ...props }: {
893
894
  [x: string]: any;
894
895
  loading: any;
895
- }) => React.JSX.Element;
896
+ }) => react_jsx_runtime.JSX.Element;
896
897
 
897
898
  declare const SkeletonList: ({ loading, ...props }: {
898
899
  [x: string]: any;
899
900
  loading: any;
900
- }) => React.JSX.Element;
901
+ }) => react_jsx_runtime.JSX.Element;
901
902
 
902
903
  declare const SkeletonRegister: ({ loading, ...props }: {
903
904
  [x: string]: any;
904
905
  loading: any;
905
- }) => React.JSX.Element;
906
+ }) => react_jsx_runtime.JSX.Element;
906
907
 
907
908
  type StatusBallProps = {
908
909
  label?: string;
@@ -931,7 +932,7 @@ declare const variants: {
931
932
  big: string;
932
933
  };
933
934
  };
934
- declare const StatusBall: ({ label, variant, labelPosition, }: StatusBallProps) => React.JSX.Element;
935
+ declare const StatusBall: ({ label, variant, labelPosition, }: StatusBallProps) => react_jsx_runtime.JSX.Element;
935
936
 
936
937
  type tab = {
937
938
  key: string;
@@ -955,7 +956,7 @@ type TabProps = {
955
956
  showNextStep?: boolean;
956
957
  };
957
958
  declare const Tabs: {
958
- ({ tabs, cancelButton, buttonDisabled, createButtonLabel, buttonLoading, saveButton, onClick, onSave, showNextStep, }: TabProps): JSX.Element;
959
+ ({ tabs, cancelButton, buttonDisabled, createButtonLabel, buttonLoading, saveButton, onClick, onSave, showNextStep, }: TabProps): react_jsx_runtime.JSX.Element;
959
960
  displayName: string;
960
961
  };
961
962
 
@@ -965,7 +966,7 @@ type TextAreaProps = DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElemen
965
966
  error?: FieldError;
966
967
  inputProps?: any;
967
968
  };
968
- declare const TextArea: ({ label, registration, disabled, error, inputProps, name, }: TextAreaProps) => React.JSX.Element;
969
+ declare const TextArea: ({ label, registration, disabled, error, inputProps, name, }: TextAreaProps) => react_jsx_runtime.JSX.Element;
969
970
 
970
971
  type TimelineProps = {
971
972
  data: {
@@ -980,7 +981,7 @@ type TimelineProps = {
980
981
  };
981
982
  declare const translateVariant: (variant: any) => "gray" | "success" | "warning" | "info" | "dangerous";
982
983
  declare const Timeline: {
983
- ({ data }: TimelineProps): JSX.Element;
984
+ ({ data }: TimelineProps): react_jsx_runtime.JSX.Element;
984
985
  displayName: string;
985
986
  };
986
987
 
@@ -1001,7 +1002,7 @@ type InputFieldProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
1001
1002
  control: Control<unknown> | any;
1002
1003
  searchOnClick?: () => void;
1003
1004
  };
1004
- declare function ControlledInput({ label, type, registration, onClick, error, onBlur, onChange, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, control, searchOnClick, }: InputFieldProps): JSX.Element;
1005
+ declare function ControlledInput({ label, type, registration, onClick, error, onBlur, onChange, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, control, searchOnClick, }: InputFieldProps): react_jsx_runtime.JSX.Element;
1005
1006
  declare namespace ControlledInput {
1006
1007
  var displayName: string;
1007
1008
  }
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import clsx9, { clsx } from 'clsx';
5
5
  import { DateInput3, DateRangePicker3, DatePicker3 } from '@blueprintjs/datetime2';
6
6
  import { Controller } from 'react-hook-form';
7
7
  import { create } from 'zustand';
8
- import { parse, format, set, sub, startOfWeek, endOfWeek, startOfMonth, endOfMonth, subYears } from 'date-fns';
8
+ import { parse, format, set, startOfWeek, endOfWeek, startOfMonth, endOfMonth, sub, subYears } from 'date-fns';
9
9
  import { Switch, Popover as Popover$1, PopoverButton, PopoverPanel, Listbox, ListboxOptions, Combobox, Transition, Menu as Menu$1, MenuButton, MenuItems, MenuItem, TabGroup, TabList, Tab, TabPanels, TabPanel, ListboxOption, Dialog } from '@headlessui/react';
10
10
  import { Float } from '@headlessui-float/react';
11
11
  import { Tooltip } from 'react-tooltip';
@@ -94,11 +94,15 @@ var variants = {
94
94
  primary: {
95
95
  text: "relative isolate bg-rose-500 text-white shadow-[0_1px_4px_0_rgba(217,48,99,0.3)] before:content-[''] before:absolute before:inset-0 before:-z-10 before:rounded-lg before:pointer-events-none before:mix-blend-plus-lighter before:bg-gradient-to-b before:from-[rgba(218,48,99,0.2)] before:to-[rgba(218,48,99,0)] hover:bg-gradient-to-b hover:from-rose-start hover:to-rose-end hover:shadow-[0_2px_3px_0_rgba(56,61,77,0.12)] hover:before:opacity-0 active:bg-rose-600 active:shadow-none active:before:opacity-0 disabled:opacity-50 disabled:shadow-none"
96
96
  },
97
+ // Borda button/secondary/border do Figma (#e8e8e9 = neutral-200); neutral-300 era escura demais.
97
98
  secondary: {
98
- text: "bg-surface border-[0.5px] border-neutral-300 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:text-neutral-600 active:bg-neutral-200 active:shadow-none disabled:opacity-50"
99
+ text: "bg-surface border-[0.5px] border-neutral-200 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:text-neutral-600 active:bg-neutral-200 active:shadow-none disabled:opacity-50"
99
100
  },
101
+ // Figma "Actions/Icon button" secundário: borda button/secondary/border (#e8e8e9 =
102
+ // neutral-200) e ícone #393c4d (neutral-600). Antes neutral-300/500 deixavam a
103
+ // borda marcada demais e o ícone mais claro que o design.
100
104
  icon: {
101
- text: "shadow-[0_1px_1px_0_rgba(56,61,77,0.1)] gap-1 bg-surface border-[0.5px] border-neutral-300 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-600 active:bg-neutral-200 active:text-neutral-600 disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-surface disabled:opacity-50 active:shadow-none"
105
+ text: "shadow-[0_1px_1px_0_rgba(56,61,77,0.1)] gap-1 bg-surface border-[0.5px] border-neutral-200 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:bg-neutral-200 active:text-neutral-600 disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-surface disabled:opacity-50 active:shadow-none"
102
106
  },
103
107
  // Figma: borda rose-400 (mais clara que o texto rose-500), sem escurecer o
104
108
  // texto em hover/active. Active vira preenchimento sólido rose-500 com
@@ -544,19 +548,30 @@ var Input = ({
544
548
  const hasError = fieldValidationMessages.some((item) => item !== void 0);
545
549
  const [showPassword, setShowPassword] = React6__default.useState(false);
546
550
  const styles = {
547
- // Focus ring padrao: classe `input-focus-ring` (src/styles/index.css) desenha o anel de
548
- // 1.5px sobre o proprio contorno do campo. Nao usar `ring-*`/`ring-offset-*` do Tailwind
549
- // aqui: eles criam um anel por fora do input, fora do padrao do design system.
550
- input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-[var(--input-bg-disabled)] disabled:border-[var(--input-border-disabled)] disabled:text-disabled disabled:cursor-not-allowed disabled:shadow-none input-focus-ring ${label ? "pt-[22px]" : "pt-[10px]"}
551
- ${!hasError ? "border-stroke" : ""}`,
552
- icon: `absolute bg-neutral-100 h-[43px] top-[1.5px] left-[2px] w-[38px] rounded-l-lg text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
551
+ // Borda/fundo/anel de foco ficam neste wrapper (nao no <input>): o div do icone e
552
+ // renderizado depois do <input> no DOM e fica por cima dele na pilha de empilhamento,
553
+ // entao uma borda desenhada no proprio <input> ficava encoberta pelo fundo opaco do
554
+ // icone no lado esquerdo (visivel sobretudo no anel azul de foco). `input-focus-ring-within`
555
+ // (src/styles/index.css) desenha esse mesmo anel de 1.5px quando o <input> interno ganha
556
+ // foco, via `:focus-within`.
557
+ wrapper: `relative outline-none rounded-lg border-[0.5px] h-[46px] input-focus-ring-within ${disabled ? "bg-[var(--input-bg-disabled)] border-[var(--input-border-disabled)] shadow-none" : `bg-surface shadow-input ${hasError ? "border-dangerous-500" : "border-stroke"}`}`,
558
+ input: `text-p-md pl-2 peer text-paragraph bg-transparent outline-none block pb-[10px] h-full w-full disabled:text-disabled disabled:cursor-not-allowed ${label ? "pt-[22px]" : "pt-[10px]"}`,
559
+ // `top-0 left-0 h-full`: para um filho absolute, o offset e medido a partir do
560
+ // padding-box do ancestral relative (a borda do wrapper ja fica de fora sozinha, o
561
+ // browser nao soma nada por isso). `top-[0.5px]` + `h-[45px]` (usado antes) somava um
562
+ // inset manual de 0.5px SEM encolher a altura pra compensar, entao o icone ultrapassava
563
+ // o padding-box por baixo em 0.5px e estourava a borda inferior. `h-full` ja cobre
564
+ // exatamente o padding-box (46px do wrapper - 2x0.5px de borda = 45px), sem contas.
565
+ // O raio `7.5px` (8px do wrapper - 0.5px de borda) acompanha a curva INTERNA da borda,
566
+ // que e menor que o raio externo pela espessura da borda.
567
+ icon: `absolute bg-neutral-100 top-0 left-0 h-full w-[38px] rounded-l-[7.5px] text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
553
568
  rightIcon: "absolute h-[44px] top-[1px] right-[1.5px] w-[38px] text-[22px]",
554
569
  // `-translate-y-[10px]` (e nao `-translate-y-3`/12px): o label flutuante ficava colado
555
570
  // demais no topo do campo. Os 2px a menos de deslocamento aproximam o espaco acima do
556
571
  // label do espaco abaixo do conteudo (pb-[10px]). Mesmo valor nos demais inputs.
557
572
  label: "absolute text-label top-[0.80rem] z-10 origin-[0] transform -translate-y-[10px] scale-75 duration-300 text-sm peer-focus:text-blue-500 peer-focus:scale-75 peer-focus:-translate-y-[10px] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0",
558
573
  clear: "absolute top-[8.3px] cursor-pointer text-label text-[22px]",
559
- error: "border-dangerous-500 text-dangerous-500"
574
+ error: "text-dangerous-500"
560
575
  };
561
576
  const inlineStyles = {
562
577
  inputWithIcon: { paddingLeft: "48px" },
@@ -564,7 +579,7 @@ var Input = ({
564
579
  };
565
580
  const input = name ? document == null ? void 0 : document.getElementById(name) : null;
566
581
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
567
- /* @__PURE__ */ jsxs("div", { className: "relative outline-none", children: [
582
+ /* @__PURE__ */ jsxs("div", { className: clsx9(styles.wrapper), children: [
568
583
  /* @__PURE__ */ jsx(
569
584
  "input",
570
585
  {
@@ -1310,7 +1325,7 @@ var Popover = ({
1310
1325
  Tooltip,
1311
1326
  {
1312
1327
  id,
1313
- className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal",
1328
+ className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal [&_.react-tooltip-content-wrapper]:p-0",
1314
1329
  classNameArrow: !displayArrow ? style.noArrow : "",
1315
1330
  openOnClick,
1316
1331
  delayHide: 0,
@@ -3693,16 +3708,16 @@ var customStyles2 = {
3693
3708
  }),
3694
3709
  menu: (provided) => ({
3695
3710
  ...provided,
3696
- marginTop: "4px",
3697
- border: "1px solid var(--neutral-300)",
3698
- boxShadow: "none",
3711
+ marginTop: "8px",
3712
+ border: "0.5px solid var(--stroke)",
3713
+ boxShadow: "2px 4px 8px 0px rgba(57,60,77,0.1)",
3699
3714
  borderRadius: "8px",
3700
3715
  background: "var(--surface)",
3701
3716
  zIndex: 60
3702
3717
  }),
3703
3718
  menuList: (provided) => ({
3704
3719
  ...provided,
3705
- padding: "0px 8px"
3720
+ padding: "8px"
3706
3721
  }),
3707
3722
  singleValue: (base, state) => ({
3708
3723
  ...base,
@@ -3765,13 +3780,17 @@ var customStyles2 = {
3765
3780
  cursor: state.isDisabled ? "auto" : "pointer",
3766
3781
  pointerEvents: state.isDisabled ? "none" : "",
3767
3782
  borderRadius: "8px",
3768
- margin: "4px 0px",
3769
- padding: "10px 12px",
3783
+ // 4px entre opções; a última encosta no padding de 8px da lista.
3784
+ margin: "0px 0px 4px",
3785
+ padding: "12px",
3786
+ "&:last-child": {
3787
+ marginBottom: "0px"
3788
+ },
3770
3789
  backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--surface)",
3771
3790
  color,
3772
3791
  fontWeight: state.isSelected ? 700 : 400,
3773
3792
  "&:hover": {
3774
- backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-200)"
3793
+ backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-100)"
3775
3794
  },
3776
3795
  "&:active": {
3777
3796
  backgroundColor: "var(--blue-700)",