@ballistix.digital/react-components 0.5.4 → 0.5.5

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.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
2
  import { ArrowPathIcon, ChevronDownIcon, EllipsisVerticalIcon, ExclamationCircleIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronUpDownIcon, HomeIcon, ArrowLongLeftIcon, ArrowLongRightIcon } from '@heroicons/react/20/solid';
3
- import { set, get, noop as noop$1, indexOf, pick, isEmpty, some, forEach, assign, map } from 'lodash';
3
+ import { isArray, map, set, get, noop as noop$1, indexOf, pick, isEmpty, some, forEach, assign } from 'lodash';
4
4
  import get$1 from 'lodash/get';
5
5
  import React, { useState, useMemo, Children, Fragment, useEffect, useCallback, forwardRef, useImperativeHandle, useRef, useReducer, createElement, PureComponent, Component } from 'react';
6
6
  import { library } from '@fortawesome/fontawesome-svg-core';
@@ -138,11 +138,13 @@ var toClassName = function () {
138
138
  }
139
139
  return values.filter(Boolean).join(' ');
140
140
  };
141
- var fromSelectMenuOptionToStringValue = function (options) {
142
- if (options === null || options === void 0 ? void 0 : options.length) {
143
- return options === null || options === void 0 ? void 0 : options.map(function (option) { return option === null || option === void 0 ? void 0 : option.value; });
141
+ var fromSelectMenuOptionToStringValue = function (value) {
142
+ if (value === null)
143
+ return null;
144
+ if (isArray(value)) {
145
+ return map(value, 'value');
144
146
  }
145
- return options === null || options === void 0 ? void 0 : options.value;
147
+ return value === null || value === void 0 ? void 0 : value.value;
146
148
  };
147
149
 
148
150
  var deepCopyObject = function (object) {