@ballistix.digital/react-components 0.4.81 → 0.4.83

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
@@ -8,6 +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
  import { Option, SelectValue } from 'react-tailwindcss-select/dist/components/type';
11
+ export { fromSelectMenuOptionToStringValue } from 'helpers/format';
11
12
 
12
13
  declare const base$j: {
13
14
  loading: string;
package/dist/index.esm.js CHANGED
@@ -67,6 +67,12 @@ var toClassName = function () {
67
67
  values[_i] = arguments[_i];
68
68
  }
69
69
  return values.filter(Boolean).join(' ');
70
+ };
71
+ var fromSelectMenuOptionToStringValue = function (options) {
72
+ if (options === null || options === void 0 ? void 0 : options.length) {
73
+ return options === null || options === void 0 ? void 0 : options.map(function (option) { return option === null || option === void 0 ? void 0 : option.value; });
74
+ }
75
+ return options === null || options === void 0 ? void 0 : options.value;
70
76
  };
71
77
 
72
78
  var deepCopyObject = function (object) {
@@ -2680,7 +2686,7 @@ var SelectMenuForm = function (props) {
2680
2686
  searchBox: styles$1.searchBox,
2681
2687
  searchIcon: styles$1.searchIcon,
2682
2688
  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) })))] })))] }))] })));
2689
+ } }), !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).replaceAll('"', '') })))] })))] }))] })));
2684
2690
  };
2685
2691
 
2686
2692
  var base = {
@@ -2694,9 +2700,9 @@ var base = {
2694
2700
  input: 'block w-full flex border',
2695
2701
  menuButton: '',
2696
2702
  menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
2697
- tagItem: '',
2698
- tagItemText: '',
2699
- tagItemIconContainer: '',
2703
+ tagItem: 'bg-gray-200 px-2 py-1 flex flex-row gap-x-1 items-center justify-between rounded-sm',
2704
+ tagItemText: 'text-xs',
2705
+ tagItemIconContainer: '!p-0 rounded-full hover:bg-gray-400 text-sm hover:text-white aspect-square w-4 flex items-center justify-center cursor-pointer',
2700
2706
  tagItemIcon: '',
2701
2707
  list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
2702
2708
  listGroupLabel: '',
@@ -2774,5 +2780,5 @@ var styles = {
2774
2780
  disabled: disabled,
2775
2781
  };
2776
2782
 
2777
- export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, createColumnHelper };
2783
+ export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, createColumnHelper, fromSelectMenuOptionToStringValue };
2778
2784
  //# sourceMappingURL=index.esm.js.map