@ballistix.digital/react-components 2.2.0 → 2.3.0

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,6 +1,7 @@
1
1
  import React, { FC, ReactNode, RefObject, MouseEvent as MouseEvent$1, ReactElement, ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType, ChangeEvent } from 'react';
2
2
  import { DeepPartialType as DeepPartialType$1 } from 'types/DeepPartialType';
3
3
  import { IconName } from '@fortawesome/fontawesome-svg-core';
4
+ import { Placement } from '@floating-ui/react';
4
5
  import { Menu } from '@headlessui/react';
5
6
  import { ColumnDef, SortingState, ColumnOrderState, Row, Table } from '@tanstack/react-table';
6
7
  import { TButtonElementStyles as TButtonElementStyles$1 } from 'components/Element/Button';
@@ -12,7 +13,7 @@ import { Option, SelectValue } from 'react-tailwindcss-select/dist/components/ty
12
13
  export { fromSelectMenuOptionToStringValue } from 'helpers/format';
13
14
  import { FormikProps, FormikValues, FormikContextType } from 'formik';
14
15
 
15
- declare const base$r: {
16
+ declare const base$s: {
16
17
  loading: string;
17
18
  spinner: string;
18
19
  empty: string;
@@ -20,9 +21,9 @@ declare const base$r: {
20
21
  container: string;
21
22
  indicator: string;
22
23
  };
23
- type TAvatarElementStyles = DeepPartialType$1<typeof base$r>;
24
+ type TAvatarElementStyles = DeepPartialType$1<typeof base$s>;
24
25
 
25
- type TProps$g = {
26
+ type TProps$h = {
26
27
  src?: string | undefined;
27
28
  placeholder?: string | undefined;
28
29
  children?: ReactNode | ReactNode[] | string;
@@ -34,9 +35,9 @@ type TProps$g = {
34
35
  isLoading?: boolean;
35
36
  styles?: TAvatarElementStyles;
36
37
  };
37
- declare const AvatarElement: FC<TProps$g>;
38
+ declare const AvatarElement: FC<TProps$h>;
38
39
 
39
- declare const base$q: {
40
+ declare const base$r: {
40
41
  container: string;
41
42
  icon: string;
42
43
  content: {
@@ -48,9 +49,9 @@ declare const base$q: {
48
49
  inverted: string;
49
50
  };
50
51
  };
51
- type TAlertElementStyles = DeepPartialType$1<typeof base$q>;
52
+ type TAlertElementStyles = DeepPartialType$1<typeof base$r>;
52
53
 
53
- type TProps$f = {
54
+ type TProps$g = {
54
55
  title: string;
55
56
  message?: string;
56
57
  iconAccessor?: IconName;
@@ -60,16 +61,16 @@ type TProps$f = {
60
61
  onCollapse?: () => void;
61
62
  styles?: TAlertElementStyles;
62
63
  };
63
- declare const BadgeElement$1: FC<TProps$f>;
64
+ declare const BadgeElement$1: FC<TProps$g>;
64
65
 
65
- declare const base$p: {
66
+ declare const base$q: {
66
67
  container: string;
67
68
  indicator: string;
68
69
  button: string;
69
70
  };
70
- type TBadgeElementStyles = DeepPartialType$1<typeof base$p>;
71
+ type TBadgeElementStyles = DeepPartialType$1<typeof base$q>;
71
72
 
72
- type TProps$e = {
73
+ type TProps$f = {
73
74
  children: string | ReactNode;
74
75
  color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
75
76
  type?: 'normal' | 'indicator' | 'close';
@@ -81,7 +82,29 @@ type TProps$e = {
81
82
  styles?: TBadgeElementStyles;
82
83
  dataCy?: string;
83
84
  };
84
- declare const BadgeElement: FC<TProps$e>;
85
+ declare const BadgeElement: FC<TProps$f>;
86
+
87
+ declare const base$p: {
88
+ container: string;
89
+ content: string;
90
+ arrow: {
91
+ stroke: string;
92
+ fill: string;
93
+ strokeWidth: string;
94
+ };
95
+ };
96
+ type TTooltipElementStyles = DeepPartialType$1<typeof base$p>;
97
+
98
+ type TProps$e = {
99
+ children: ReactNode;
100
+ content: ReactNode;
101
+ placement?: Placement;
102
+ isPointing?: boolean;
103
+ isHidden?: boolean;
104
+ styles?: TTooltipElementStyles;
105
+ dataCy?: string;
106
+ };
107
+ declare const TooltipElement: FC<TProps$e>;
85
108
 
86
109
  type TButtonElementProps = {
87
110
  children: string | ReactNode;
@@ -1280,4 +1303,4 @@ type TReturn<TData> = {
1280
1303
  };
1281
1304
  declare const useExcel: <TData extends object>() => TReturn<TData>;
1282
1305
 
1283
- export { AddressInputGroupForm, BadgeElement$1 as AlertElement, AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, CheckboxInputForm as CheckboxInput, ContainerLayout, DateMenuForm, DividerLayout, DropdownElement, FileInputGroupForm, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, OpeningsHourInputGroupForm, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, Switch as SwitchForm, type TAddressInputGroupFormProps, type TAddressInputGroupFormStyles, type TAddressInputGroupFormValue, type TButtonElementProps, type TCheckboxInputFormProps, type TCheckboxInputFormStyles, type TCheckboxInputGroupFormProps, type TCheckboxInputGroupFormStyles, type TDateMenuFormProps, type TDateMenuFormStyles, type TExcelCell, type TExcelRow, type TExcelSheet, type TFileInputGroupFormProps, type TFileInputGroupFormStyles, type TInputGroupFormProps, type TInputGroupStyles, type TModalOverlayProps, type TOpeningsHourInputGroupFormProps, type TOpeningsHourInputGroupFormStyles, type TSelectMenuFormProps, type TSelectMenuFormStyles, type TSwitchFormProps, type TSwitchStylesForm, type TTableListProps as TTableList2Props, type TTableListProps$1 as TTableListProps, type TTableListStyles$1 as TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, CheckboxInputGroupForm as __DEPRECATED__CheckboxInputGroupForm, useExcel };
1306
+ export { AddressInputGroupForm, BadgeElement$1 as AlertElement, AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, CheckboxInputForm as CheckboxInput, ContainerLayout, DateMenuForm, DividerLayout, DropdownElement, FileInputGroupForm, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, OpeningsHourInputGroupForm, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, Switch as SwitchForm, type TAddressInputGroupFormProps, type TAddressInputGroupFormStyles, type TAddressInputGroupFormValue, type TButtonElementProps, type TCheckboxInputFormProps, type TCheckboxInputFormStyles, type TCheckboxInputGroupFormProps, type TCheckboxInputGroupFormStyles, type TDateMenuFormProps, type TDateMenuFormStyles, type TExcelCell, type TExcelRow, type TExcelSheet, type TFileInputGroupFormProps, type TFileInputGroupFormStyles, type TInputGroupFormProps, type TInputGroupStyles, type TModalOverlayProps, type TOpeningsHourInputGroupFormProps, type TOpeningsHourInputGroupFormStyles, type TSelectMenuFormProps, type TSelectMenuFormStyles, type TSwitchFormProps, type TSwitchStylesForm, type TTableListProps as TTableList2Props, type TTableListProps$1 as TTableListProps, type TTableListStyles$1 as TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, TooltipElement as Tooltiplement, VerticalNavigation, CheckboxInputGroupForm as __DEPRECATED__CheckboxInputGroupForm, useExcel };