@seeqdev/qomponents 0.0.8 → 0.0.9

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
@@ -7313,7 +7313,7 @@ var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
7313
7313
  });
7314
7314
  var CreatableSelect$1 = CreatableSelect;
7315
7315
 
7316
- const baseClasses = ['tw-px-2.5', 'focus:tw-ring-0', 'disabled:tw-cursor-not-allowed'].join(' ');
7316
+ const baseClasses = ['focus:tw-ring-0', 'disabled:tw-cursor-not-allowed'].join(' ');
7317
7317
  const containerStyles = ['tw-bg-white', 'dark:tw-bg-sq-dark-background'].join(' ');
7318
7318
  const errorClasses = 'tw-border-sq-danger-color';
7319
7319
  const borderColorClasses = ['tw-border-sq-disabled-gray', 'dark:tw-border-sq-dark-disabled-gray'].join(' ');
@@ -7389,7 +7389,7 @@ const multiValueStyles = [
7389
7389
  * For ease of testing most of the elements of this select can be identified by classNames prefixed with "spec".
7390
7390
  *
7391
7391
  */
7392
- const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable = false, 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, }) => {
7392
+ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable = false, creatable = false, isMulti = false, isClearable = false, closeMenuOnSelect = true, id, inputId, menuPortalTarget = document.body, getOptionLabel, getSelectedValueLabel, getOptionValue, onChange, menuIsOpen, menuPlacement = 'auto', extraClassNames, inputGroup, filterConfig, filterOption, small = false, isDisabled = false, showError = false, isLoading = false, formatGroupLabel, onRemove, defaultValue, }) => {
7393
7393
  const getOptionOrSelectedLabel = (option, { context }) => {
7394
7394
  const getSelectedOptionLabel = getSelectedValueLabel ? getSelectedValueLabel : getOptionLabel;
7395
7395
  if (getOptionLabel || getSelectedValueLabel) {
@@ -7447,7 +7447,7 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
7447
7447
  border = menuIsOpen ? 'tw-rounded-tr-sm' : 'tw-rounded-r-sm';
7448
7448
  }
7449
7449
  const appliedClasses = `${borderStyles} ${border} ${showError ? errorClasses : borderColorClasses} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} `;
7450
- return `${appliedClasses} ${baseClasses} specSelectControl ${isDisabled ? disabledClasses : ''}`;
7450
+ return `${appliedClasses} ${baseClasses} specSelectControl ${isDisabled ? disabledClasses : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
7451
7451
  },
7452
7452
  placeholder: () => placeholderStyles,
7453
7453
  container: () => `${textStyles} ${containerStyles} ${extraClassNames}`,
@@ -7466,7 +7466,7 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
7466
7466
  singleValue: () => 'specOpenSelect',
7467
7467
  multiValue: () => multiValueStyles,
7468
7468
  multiValueRemove: () => 'hover:tw-text-sq-danger-color specSelectMultiValueRemove',
7469
- clearIndicator: () => 'hover:tw-text-sq-danger-color specClearSelect',
7469
+ clearIndicator: () => 'tw-text-sq-disabled-gray hover:tw-text-sq-danger-color specClearSelect',
7470
7470
  group: () => 'specSelectGroup',
7471
7471
  groupHeading: () => groupHeadingStyles,
7472
7472
  },