@ballistix.digital/react-components 0.4.70 → 0.4.71

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,4 +1,4 @@
1
- import React, { FC, ReactNode, RefObject, ReactElement, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType } from 'react';
1
+ import React, { FC, ReactNode, RefObject, ReactElement, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType, ChangeEvent } from 'react';
2
2
  import { DeepPartial as DeepPartial$1 } from 'types/DeepPartial';
3
3
  import { Menu } from '@headlessui/react';
4
4
  import { IconName } from '@fortawesome/fontawesome-svg-core';
@@ -8,7 +8,7 @@ import { TDropdownElementStyles as TDropdownElementStyles$1 } from 'components/E
8
8
  import { TPagePaginationNavigationStyles as TPagePaginationNavigationStyles$1 } from 'components/Navigation/PagePagination';
9
9
  export { createColumnHelper } from 'helpers/table';
10
10
 
11
- declare const base$i: {
11
+ declare const base$j: {
12
12
  loading: string;
13
13
  spinner: string;
14
14
  empty: string;
@@ -16,7 +16,7 @@ declare const base$i: {
16
16
  container: string;
17
17
  indicator: string;
18
18
  };
19
- type TAvatarElementStyles = DeepPartial$1<typeof base$i>;
19
+ type TAvatarElementStyles = DeepPartial$1<typeof base$j>;
20
20
 
21
21
  type TProps$f = {
22
22
  src?: string | undefined;
@@ -32,12 +32,12 @@ type TProps$f = {
32
32
  };
33
33
  declare const AvatarElement: FC<TProps$f>;
34
34
 
35
- declare const base$h: {
35
+ declare const base$i: {
36
36
  container: string;
37
37
  indicator: string;
38
38
  button: string;
39
39
  };
40
- type TBadgeElementStyles = DeepPartial$1<typeof base$h>;
40
+ type TBadgeElementStyles = DeepPartial$1<typeof base$i>;
41
41
 
42
42
  type TProps$e = {
43
43
  children: string | ReactNode;
@@ -66,21 +66,21 @@ type TButtonElementProps = {
66
66
  };
67
67
  declare const ButtonElement: FC<TButtonElementProps>;
68
68
 
69
- declare const base$g: {
69
+ declare const base$h: {
70
70
  container: string;
71
71
  content: string;
72
72
  icon: string;
73
73
  spinner: string;
74
74
  };
75
- type TButtonElementStyles = DeepPartial$1<typeof base$g>;
75
+ type TButtonElementStyles = DeepPartial$1<typeof base$h>;
76
76
 
77
- declare const base$f: {
77
+ declare const base$g: {
78
78
  container: string;
79
79
  firstButton: string;
80
80
  button: string;
81
81
  lastButton: string;
82
82
  };
83
- type TButtonGroupElementStyles = DeepPartial$1<typeof base$f>;
83
+ type TButtonGroupElementStyles = DeepPartial$1<typeof base$g>;
84
84
 
85
85
  type TProps$d = {
86
86
  children: ReactElement[];
@@ -88,14 +88,14 @@ type TProps$d = {
88
88
  };
89
89
  declare const ButtonGroupElement: FC<TProps$d>;
90
90
 
91
- declare const base$e: {
91
+ declare const base$f: {
92
92
  container: string;
93
93
  button: string;
94
94
  compact: string;
95
95
  dots: string;
96
96
  items: string;
97
97
  };
98
- type TDropdownElementStyles = DeepPartial$1<typeof base$e>;
98
+ type TDropdownElementStyles = DeepPartial$1<typeof base$f>;
99
99
 
100
100
  type TProps$c = {
101
101
  children: ReactElement | ReactElement[];
@@ -149,7 +149,7 @@ type TInputGroupFormProps = {
149
149
  };
150
150
  declare const InputGroupForm: FC<TInputGroupFormProps>;
151
151
 
152
- declare const base$d: {
152
+ declare const base$e: {
153
153
  container: string;
154
154
  head: string;
155
155
  body: string;
@@ -162,13 +162,13 @@ declare const base$d: {
162
162
  description: string;
163
163
  error: string;
164
164
  };
165
- type TInputGroupStyles = DeepPartial$1<typeof base$d>;
165
+ type TInputGroupStyles = DeepPartial$1<typeof base$e>;
166
166
 
167
- declare const base$c: {
167
+ declare const base$d: {
168
168
  container: string;
169
169
  content: string;
170
170
  };
171
- type TContainerLayoutStyles = DeepPartial$1<typeof base$c>;
171
+ type TContainerLayoutStyles = DeepPartial$1<typeof base$d>;
172
172
 
173
173
  type TProps$a = {
174
174
  children: ReactNode;
@@ -177,14 +177,14 @@ type TProps$a = {
177
177
  };
178
178
  declare const ContainerLayout: FC<TProps$a>;
179
179
 
180
- declare const base$b: {
180
+ declare const base$c: {
181
181
  container: string;
182
182
  head: string;
183
183
  line: string;
184
184
  body: string;
185
185
  content: string;
186
186
  };
187
- type TDividerLayoutStyles = DeepPartial$1<typeof base$b>;
187
+ type TDividerLayoutStyles = DeepPartial$1<typeof base$c>;
188
188
 
189
189
  type TProps$9 = {
190
190
  children?: ReactNode;
@@ -193,12 +193,12 @@ type TProps$9 = {
193
193
  };
194
194
  declare const DividerLayout: FC<TProps$9>;
195
195
 
196
- declare const base$a: {
196
+ declare const base$b: {
197
197
  container: string;
198
198
  list: string;
199
199
  item: string;
200
200
  };
201
- type TListContainerLayoutStyles = DeepPartial$1<typeof base$a>;
201
+ type TListContainerLayoutStyles = DeepPartial$1<typeof base$b>;
202
202
 
203
203
  type TProps$8 = {
204
204
  children: ReactElement | ReactElement[];
@@ -207,14 +207,14 @@ type TProps$8 = {
207
207
  };
208
208
  declare const ListContainerLayout: FC<TProps$8>;
209
209
 
210
- declare const base$9: {
210
+ declare const base$a: {
211
211
  container: string;
212
212
  figure: string;
213
213
  svg: string;
214
214
  title: string;
215
215
  paragraph: string;
216
216
  };
217
- type TMediaObjectLayoutStyles = DeepPartial$1<typeof base$9>;
217
+ type TMediaObjectLayoutStyles = DeepPartial$1<typeof base$a>;
218
218
 
219
219
  type TProps$7 = {
220
220
  title: string;
@@ -225,11 +225,11 @@ type TProps$7 = {
225
225
  };
226
226
  declare const MediaObjectLayout: FC<TProps$7>;
227
227
 
228
- declare const base$8: {
228
+ declare const base$9: {
229
229
  container: string;
230
230
  section: string;
231
231
  };
232
- type TPanelLayoutStyles = DeepPartial$1<typeof base$8>;
232
+ type TPanelLayoutStyles = DeepPartial$1<typeof base$9>;
233
233
 
234
234
  type TContainerProps$2 = {
235
235
  children: ReactNode;
@@ -290,7 +290,7 @@ type TTableListProps$1<TData> = {
290
290
  };
291
291
  declare const TableList: FC<TTableListProps$1<TData$1>>;
292
292
 
293
- declare const base$7: {
293
+ declare const base$8: {
294
294
  container: string;
295
295
  head: {
296
296
  container: string;
@@ -344,7 +344,7 @@ declare const base$7: {
344
344
  };
345
345
  };
346
346
  };
347
- type TTableListStyles = DeepPartial$1<typeof base$7>;
347
+ type TTableListStyles = DeepPartial$1<typeof base$8>;
348
348
 
349
349
  type TData = any;
350
350
  type VisibilityState = {
@@ -383,7 +383,7 @@ type TTableListProps<TData> = {
383
383
  };
384
384
  declare const TableList2: FC<TTableListProps<TData>>;
385
385
 
386
- declare const base$6: {
386
+ declare const base$7: {
387
387
  container: string;
388
388
  list: string;
389
389
  separator: string;
@@ -400,7 +400,7 @@ declare const base$6: {
400
400
  link: string;
401
401
  };
402
402
  };
403
- type TBreadcrumbsNavigationStyles = DeepPartial$1<typeof base$6>;
403
+ type TBreadcrumbsNavigationStyles = DeepPartial$1<typeof base$7>;
404
404
 
405
405
  type TProps$6 = {
406
406
  href: string;
@@ -415,7 +415,7 @@ type TProps$6 = {
415
415
  };
416
416
  declare const BreadcrumbsNavigation: FC<TProps$6>;
417
417
 
418
- declare const base$5: {
418
+ declare const base$6: {
419
419
  container: string;
420
420
  mobile: {
421
421
  container: string;
@@ -436,7 +436,7 @@ declare const base$5: {
436
436
  label: string;
437
437
  icon: string;
438
438
  };
439
- type TPanelPaginationNavigationStyles = DeepPartial$1<typeof base$5>;
439
+ type TPanelPaginationNavigationStyles = DeepPartial$1<typeof base$6>;
440
440
 
441
441
  type TProps$5 = {
442
442
  current?: number;
@@ -452,7 +452,7 @@ type TProps$5 = {
452
452
  };
453
453
  declare const PanelPaginationNavigation: React.FC<TProps$5>;
454
454
 
455
- declare const base$4: {
455
+ declare const base$5: {
456
456
  container: string;
457
457
  left: {
458
458
  container: string;
@@ -474,7 +474,7 @@ declare const base$4: {
474
474
  };
475
475
  divider: string;
476
476
  };
477
- type TPagePaginationNavigationStyles = DeepPartial$1<typeof base$4>;
477
+ type TPagePaginationNavigationStyles = DeepPartial$1<typeof base$5>;
478
478
 
479
479
  type TProps$4 = {
480
480
  min?: number;
@@ -484,7 +484,7 @@ type TProps$4 = {
484
484
  };
485
485
  declare const PagePaginationNavigation: React.FC<TProps$4>;
486
486
 
487
- declare const base$3: {
487
+ declare const base$4: {
488
488
  container: string;
489
489
  list: {
490
490
  container: string;
@@ -500,7 +500,7 @@ declare const base$3: {
500
500
  inactive: string;
501
501
  };
502
502
  };
503
- type TTabNavigationStyles = DeepPartial$1<typeof base$3>;
503
+ type TTabNavigationStyles = DeepPartial$1<typeof base$4>;
504
504
 
505
505
  type TContainerProps$1 = {
506
506
  children: ({ active, setActive, }: {
@@ -593,7 +593,7 @@ type TModalOverlayProps = {
593
593
  };
594
594
  declare const ModalOverlay: FC<TModalOverlayProps>;
595
595
 
596
- declare const base$2: {
596
+ declare const base$3: {
597
597
  container: string;
598
598
  background: {
599
599
  container: string;
@@ -622,9 +622,9 @@ declare const base$2: {
622
622
  };
623
623
  };
624
624
  };
625
- type TModalOverlayStyles = DeepPartial$1<typeof base$2>;
625
+ type TModalOverlayStyles = DeepPartial$1<typeof base$3>;
626
626
 
627
- declare const base$1: {
627
+ declare const base$2: {
628
628
  container: {
629
629
  outer: string;
630
630
  inner: string;
@@ -649,7 +649,7 @@ declare const base$1: {
649
649
  };
650
650
  };
651
651
  };
652
- type TNotificationOverlayStyles = DeepPartial$1<typeof base$1>;
652
+ type TNotificationOverlayStyles = DeepPartial$1<typeof base$2>;
653
653
 
654
654
  type DeepPartial<T> = {
655
655
  [P in keyof T]?: DeepPartial<T[P]>;
@@ -699,7 +699,7 @@ declare const NotificationOverlay: {
699
699
  Item: React.FC<TProps$3>;
700
700
  };
701
701
 
702
- declare const base: {
702
+ declare const base$1: {
703
703
  container: string;
704
704
  background: {
705
705
  container: string;
@@ -729,7 +729,7 @@ declare const base: {
729
729
  };
730
730
  };
731
731
  };
732
- type TSlideOverOverlayStyles = DeepPartial$1<typeof base>;
732
+ type TSlideOverOverlayStyles = DeepPartial$1<typeof base$1>;
733
733
 
734
734
  type TProps$2 = {
735
735
  trigger?: ({ onOpen, onClose, }: {
@@ -761,4 +761,72 @@ type TProps = {
761
761
  };
762
762
  declare const TableExcelExportCustom: FC<TProps>;
763
763
 
764
- export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SlideOverOverlay, TButtonElementProps, TInputGroupFormProps, TInputGroupStyles, TModalOverlayProps, TTableListProps as TTableList2Props, TTableListProps$1 as TTableListProps, TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation };
764
+ type TSelectMenuFormProps = {
765
+ name: string;
766
+ type: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
767
+ label?: string;
768
+ description?: string;
769
+ placeholder?: {
770
+ select?: string;
771
+ searchInput?: string;
772
+ emptyState?: string;
773
+ };
774
+ options: {
775
+ value: string;
776
+ label: string;
777
+ }[];
778
+ required?: ({ isRequired }: {
779
+ isRequired: boolean;
780
+ }) => string | ReactNode;
781
+ value: {
782
+ label: string;
783
+ value: string;
784
+ disabled?: boolean;
785
+ };
786
+ error?: string;
787
+ isLoading?: boolean;
788
+ isRequired?: boolean;
789
+ isTouched?: boolean;
790
+ isDisabled?: boolean;
791
+ isClearable?: boolean;
792
+ isSearchable?: boolean;
793
+ isMulti?: boolean;
794
+ isDarkMode?: boolean;
795
+ isSolo?: boolean;
796
+ onChange?: (value: {
797
+ value: string;
798
+ label: string;
799
+ }[] | {
800
+ value: string;
801
+ label: string;
802
+ } | string) => void;
803
+ onSearchInputChange?: ((e: ChangeEvent<HTMLInputElement>) => void) | undefined;
804
+ onClear: (name: string) => void;
805
+ onBlur?: any;
806
+ onSetFieldValue?: any;
807
+ styles?: TSelectMenuFormStyles;
808
+ };
809
+ declare const SelectMenuForm: FC<TSelectMenuFormProps>;
810
+
811
+ declare const base: {
812
+ container: string;
813
+ head: string;
814
+ body: string;
815
+ foot: string;
816
+ label: string;
817
+ hint: string;
818
+ leading: string;
819
+ input: string;
820
+ menuButton: string;
821
+ menu: string;
822
+ list: string;
823
+ listItem: string;
824
+ searchContainer: string;
825
+ emptyState: string;
826
+ trailing: string;
827
+ description: string;
828
+ error: string;
829
+ };
830
+ type TSelectMenuFormStyles = DeepPartial$1<typeof base>;
831
+
832
+ export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, TButtonElementProps, TInputGroupFormProps, TInputGroupStyles, TModalOverlayProps, TSelectMenuFormProps, TSelectMenuFormStyles, TTableListProps as TTableList2Props, TTableListProps$1 as TTableListProps, TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation };