@ballistix.digital/react-components 0.4.79 → 0.4.80
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 +11 -2
- package/dist/index.esm.js +20 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,22 @@ 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 && isValid && '[&>*]:!text-gray-300 ', state === null && !isValid && '[&>*]:!text-red-300');
|
|
2666
2666
|
},
|
|
2667
2667
|
menu: styles$1.menu,
|
|
2668
|
+
tagItem: function () { return styles$1.tagItem; },
|
|
2669
|
+
tagItemText: styles$1.tagItemText,
|
|
2670
|
+
tagItemIconContainer: styles$1.tagItemIconContainer,
|
|
2671
|
+
tagItemIcon: styles$1.tagItemIcon,
|
|
2668
2672
|
list: styles$1.list,
|
|
2669
2673
|
listItem: function () { return styles$1.listItem; },
|
|
2674
|
+
listDisabledItem: styles$1.listDisabledItem,
|
|
2675
|
+
listGroupLabel: styles$1.listGroupLabel,
|
|
2670
2676
|
searchContainer: styles$1.searchContainer,
|
|
2671
|
-
|
|
2677
|
+
searchBox: styles$1.searchBox,
|
|
2678
|
+
searchIcon: styles$1.searchIcon,
|
|
2679
|
+
closeIcon: styles$1.closeIcon,
|
|
2680
|
+
} }), !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
2681
|
};
|
|
2673
2682
|
|
|
2674
2683
|
var base = {
|
|
@@ -2682,9 +2691,18 @@ var base = {
|
|
|
2682
2691
|
input: 'block w-full flex border',
|
|
2683
2692
|
menuButton: '',
|
|
2684
2693
|
menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
|
|
2694
|
+
tagItem: '',
|
|
2695
|
+
tagItemText: '',
|
|
2696
|
+
tagItemIconContainer: '',
|
|
2697
|
+
tagItemIcon: '',
|
|
2685
2698
|
list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
|
|
2699
|
+
listGroupLabel: '',
|
|
2686
2700
|
listItem: '!w-full !list-none hover:bg-primary-500 hover:text-white !py-2 !px-2',
|
|
2701
|
+
listDisabledItem: '',
|
|
2687
2702
|
searchContainer: '!w-full !px-2 !py-2 border-b',
|
|
2703
|
+
searchBox: '',
|
|
2704
|
+
searchIcon: '',
|
|
2705
|
+
closeIcon: '',
|
|
2688
2706
|
emptyState: 'w-full inline-flex items-start justify-start px-4',
|
|
2689
2707
|
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
2690
2708
|
description: 'text-gray-400 text-xs mt-1',
|