@seeqdev/qomponents 0.0.10 → 0.0.12
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/Select/Select.d.ts +3 -0
- package/dist/Select/Select.js +4 -3
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.test.js +3 -2
- package/dist/Select/Select.test.js.map +1 -1
- package/dist/TextArea/TextArea.types.d.ts +1 -2
- package/dist/TextField/TextField.types.d.ts +1 -3
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7364,6 +7364,7 @@ const groupHeadingStyles = [
|
|
|
7364
7364
|
].join(' ');
|
|
7365
7365
|
const optionStyles = [
|
|
7366
7366
|
'hover:tw-bg-sq-gray-highlight',
|
|
7367
|
+
'hover:tw-cursor-pointer',
|
|
7367
7368
|
'dark:hover:tw-bg-sq-gray-highlight-dark',
|
|
7368
7369
|
'tw-py-1',
|
|
7369
7370
|
'tw-px-2.5',
|
|
@@ -7389,7 +7390,7 @@ const multiValueStyles = [
|
|
|
7389
7390
|
* For ease of testing most of the elements of this select can be identified by classNames prefixed with "spec".
|
|
7390
7391
|
*
|
|
7391
7392
|
*/
|
|
7392
|
-
const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable =
|
|
7393
|
+
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, }) => {
|
|
7393
7394
|
const getOptionOrSelectedLabel = (option, { context }) => {
|
|
7394
7395
|
const getSelectedOptionLabel = getSelectedValueLabel ? getSelectedValueLabel : getOptionLabel;
|
|
7395
7396
|
if (getOptionLabel || getSelectedValueLabel) {
|