@seeqdev/qomponents 0.0.144 → 0.0.146

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
@@ -13410,7 +13410,6 @@ const multiValueStyles = [
13410
13410
  *
13411
13411
  */
13412
13412
  const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable = true, creatable = false, isMulti = false, isClearable = false, closeMenuOnSelect = true, id, inputId, menuPortalTarget, getOptionLabel, getSelectedValueLabel, getOptionValue, onChange, menuIsOpen, menuPlacement = 'auto', extraClassNames, inputGroup, filterConfig, filterOption, small = false, isDisabled = false, showError = false, isLoading = false, formatGroupLabel, onRemove, defaultValue, onMenuOpen, onMenuClose, components, onMenuInputFocus, onInputChange, inputValue, }) => {
13413
- const [isSelectOptionsOpen, setIsSelectOptionsOpen] = React.useState(false);
13414
13413
  const getOptionOrSelectedLabel = (option, { context }) => {
13415
13414
  const getSelectedOptionLabel = getSelectedValueLabel ? getSelectedValueLabel : getOptionLabel;
13416
13415
  if (getOptionLabel || getSelectedValueLabel) {
@@ -13466,7 +13465,6 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
13466
13465
  classNames: {
13467
13466
  control: ({ menuIsOpen }) => {
13468
13467
  let border = menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
13469
- setIsSelectOptionsOpen(menuIsOpen);
13470
13468
  // if it's on the left side of the input group make sure the right side is straight and not curved
13471
13469
  if (inputGroup === 'left') {
13472
13470
  border = menuIsOpen ? 'tw-rounded-tl-md' : 'tw-rounded-l-md';
@@ -13478,8 +13476,8 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
13478
13476
  return `${appliedClasses} ${baseClasses$3} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
13479
13477
  },
13480
13478
  placeholder: () => placeholderStyles,
13481
- container: () => {
13482
- const containerBorderStyles = isSelectOptionsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
13479
+ container: ({ selectProps }) => {
13480
+ const containerBorderStyles = selectProps?.menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
13483
13481
  return `${textStyles} ${containerStyles} ${extraClassNames} ${containerBorderStyles}`;
13484
13482
  },
13485
13483
  input: () => textStyles + ' specSelectInput',