@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.js CHANGED
@@ -77,6 +77,12 @@ var toClassName = function () {
77
77
  values[_i] = arguments[_i];
78
78
  }
79
79
  return values.filter(Boolean).join(' ');
80
+ };
81
+ var fromSelectMenuOptionToStringValue = function (options) {
82
+ if (options === null || options === void 0 ? void 0 : options.length) {
83
+ return options === null || options === void 0 ? void 0 : options.map(function (option) { return option === null || option === void 0 ? void 0 : option.value; });
84
+ }
85
+ return options === null || options === void 0 ? void 0 : options.value;
80
86
  };
81
87
 
82
88
  var deepCopyObject = function (object) {
@@ -2690,7 +2696,7 @@ var SelectMenuForm = function (props) {
2690
2696
  searchBox: styles$1.searchBox,
2691
2697
  searchIcon: styles$1.searchIcon,
2692
2698
  closeIcon: styles$1.closeIcon,
2693
- } }), !isSolo && (jsxRuntime.jsxs("div", __assign({ className: styles$1.foot }, { children: [description && !(error && isTouched) && (jsxRuntime.jsx("p", __assign({ className: styles$1.description }, { children: description }))), error && isTouched && (jsxRuntime.jsx("p", __assign({ className: styles$1.error }, { children: JSON.stringify(error) })))] })))] }))] })));
2699
+ } }), !isSolo && (jsxRuntime.jsxs("div", __assign({ className: styles$1.foot }, { children: [description && !(error && isTouched) && (jsxRuntime.jsx("p", __assign({ className: styles$1.description }, { children: description }))), error && isTouched && (jsxRuntime.jsx("p", __assign({ className: styles$1.error }, { children: JSON.stringify(error).replaceAll('"', '') })))] })))] }))] })));
2694
2700
  };
2695
2701
 
2696
2702
  var base = {
@@ -2704,9 +2710,9 @@ var base = {
2704
2710
  input: 'block w-full flex border',
2705
2711
  menuButton: '',
2706
2712
  menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
2707
- tagItem: '',
2708
- tagItemText: '',
2709
- tagItemIconContainer: '',
2713
+ tagItem: 'bg-gray-200 px-2 py-1 flex flex-row gap-x-1 items-center justify-between rounded-sm',
2714
+ tagItemText: 'text-xs',
2715
+ 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',
2710
2716
  tagItemIcon: '',
2711
2717
  list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
2712
2718
  listGroupLabel: '',
@@ -2810,4 +2816,5 @@ exports.TableList = TableList;
2810
2816
  exports.TableList2 = TableList2;
2811
2817
  exports.VerticalNavigation = VerticalNavigation;
2812
2818
  exports.createColumnHelper = createColumnHelper;
2819
+ exports.fromSelectMenuOptionToStringValue = fromSelectMenuOptionToStringValue;
2813
2820
  //# sourceMappingURL=index.js.map