@ballistix.digital/react-components 0.4.79 → 0.4.81

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
@@ -7,7 +7,7 @@ import { TButtonElementStyles as TButtonElementStyles$1 } from 'components/Eleme
7
7
  import { TDropdownElementStyles as TDropdownElementStyles$1 } from 'components/Element/Dropdown';
8
8
  import { TPagePaginationNavigationStyles as TPagePaginationNavigationStyles$1 } from 'components/Navigation/PagePagination';
9
9
  export { createColumnHelper } from 'helpers/table';
10
- import { SelectValue } from 'react-tailwindcss-select/dist/components/type';
10
+ import { Option, SelectValue } from 'react-tailwindcss-select/dist/components/type';
11
11
 
12
12
  declare const base$j: {
13
13
  loading: string;
@@ -784,7 +784,7 @@ type TSelectMenuFormProps = {
784
784
  value: string;
785
785
  disabled?: boolean;
786
786
  };
787
- error?: string;
787
+ error?: string | Option | Option[];
788
788
  isLoading?: boolean;
789
789
  isRequired?: boolean;
790
790
  isTouched?: boolean;
@@ -814,9 +814,18 @@ declare const base: {
814
814
  input: string;
815
815
  menuButton: string;
816
816
  menu: string;
817
+ tagItem: string;
818
+ tagItemText: string;
819
+ tagItemIconContainer: string;
820
+ tagItemIcon: string;
817
821
  list: string;
822
+ listGroupLabel: string;
818
823
  listItem: string;
824
+ listDisabledItem: string;
819
825
  searchContainer: string;
826
+ searchBox: string;
827
+ searchIcon: string;
828
+ closeIcon: string;
820
829
  emptyState: string;
821
830
  trailing: string;
822
831
  description: string;
package/dist/index.esm.js CHANGED
@@ -2662,13 +2662,25 @@ var SelectMenuForm = function (props) {
2662
2662
  //
2663
2663
  classNames: {
2664
2664
  menuButton: function () {
2665
- return toClassName(styles$1.input, state === null && '[&>*]:!text-gray-300 ');
2665
+ return toClassName(styles$1.input, state === null && '[&>*]:!text-gray-300 ', state === null &&
2666
+ !isValid &&
2667
+ isTouched &&
2668
+ '[&>*]:!text-red-300');
2666
2669
  },
2667
2670
  menu: styles$1.menu,
2671
+ tagItem: function () { return styles$1.tagItem; },
2672
+ tagItemText: styles$1.tagItemText,
2673
+ tagItemIconContainer: styles$1.tagItemIconContainer,
2674
+ tagItemIcon: styles$1.tagItemIcon,
2668
2675
  list: styles$1.list,
2669
2676
  listItem: function () { return styles$1.listItem; },
2677
+ listDisabledItem: styles$1.listDisabledItem,
2678
+ listGroupLabel: styles$1.listGroupLabel,
2670
2679
  searchContainer: styles$1.searchContainer,
2671
- } }), !isSolo && (jsxs("div", __assign({ className: styles$1.foot }, { children: [description && !(error && isTouched) && (jsx("p", __assign({ className: styles$1.description }, { children: description }))), error && isTouched && jsx("p", __assign({ className: styles$1.error }, { children: error }))] })))] }))] })));
2680
+ searchBox: styles$1.searchBox,
2681
+ searchIcon: styles$1.searchIcon,
2682
+ closeIcon: styles$1.closeIcon,
2683
+ } }), !isSolo && (jsxs("div", __assign({ className: styles$1.foot }, { children: [description && !(error && isTouched) && (jsx("p", __assign({ className: styles$1.description }, { children: description }))), error && isTouched && (jsx("p", __assign({ className: styles$1.error }, { children: JSON.stringify(error) })))] })))] }))] })));
2672
2684
  };
2673
2685
 
2674
2686
  var base = {
@@ -2682,9 +2694,18 @@ var base = {
2682
2694
  input: 'block w-full flex border',
2683
2695
  menuButton: '',
2684
2696
  menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
2697
+ tagItem: '',
2698
+ tagItemText: '',
2699
+ tagItemIconContainer: '',
2700
+ tagItemIcon: '',
2685
2701
  list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
2702
+ listGroupLabel: '',
2686
2703
  listItem: '!w-full !list-none hover:bg-primary-500 hover:text-white !py-2 !px-2',
2704
+ listDisabledItem: '',
2687
2705
  searchContainer: '!w-full !px-2 !py-2 border-b',
2706
+ searchBox: '',
2707
+ searchIcon: '',
2708
+ closeIcon: '',
2688
2709
  emptyState: 'w-full inline-flex items-start justify-start px-4',
2689
2710
  trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
2690
2711
  description: 'text-gray-400 text-xs mt-1',