@bookjane2/bookjane-design-library 8.2.25 → 8.2.26
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsyncInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"BKJComboBoxAsyncInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAQnE,eAAO,MAAM,qBAAqB;mBAGf,IAAI,GAAG,KAAK;gBACf,MAAM;gBACN,sBAAsB,CAAC,WAAW,CAAC;0BACzB,OAAO;oDAyF/B,CAAC"}
|
|
@@ -11,6 +11,11 @@ const variantMap = {
|
|
|
11
11
|
export const BKJComboBoxAsyncInput = forwardRef(({ autoComplete, className, overrides = [], showFullFocusBorder = true, ...rest }, ref) => {
|
|
12
12
|
const { label, variant = 'Search', action, error, required, getComboboxProps, setAnchorElement, getInputProps, searchValue, getLabelProps, isOpen, onInputFocus, onInputKeyDown, placeholder, selectedItem, searchKey, leftIconProps, disabled, onSearchChange, isDropdownReverse, } = useBKJComboBoxAsyncContext();
|
|
13
13
|
const rightIconProps = useRightIconProps(action, disabled);
|
|
14
|
+
const isDropdownDisplayed = overrides.includes('NoInitialResults')
|
|
15
|
+
? typeof searchValue === 'string' && searchValue === ''
|
|
16
|
+
? false
|
|
17
|
+
: isOpen
|
|
18
|
+
: isOpen;
|
|
14
19
|
const inputProps = getInputProps({
|
|
15
20
|
...rest,
|
|
16
21
|
onKeyDown: onInputKeyDown,
|
|
@@ -29,8 +34,8 @@ export const BKJComboBoxAsyncInput = forwardRef(({ autoComplete, className, over
|
|
|
29
34
|
isDropdownReverse,
|
|
30
35
|
});
|
|
31
36
|
if (overrides.includes('NoInitialResults')) {
|
|
32
|
-
return (_jsx(BKJTextInput, { isOpen:
|
|
37
|
+
return (_jsx(BKJTextInput, { isOpen: isDropdownDisplayed, labelProps: getLabelProps(), fieldSetProps: getComboboxProps(), variant: variantMap[variant], ...inputProps, className: className, css: isDropdownDisplayed && focusBorderStyles, rightIconProps: rightIconProps, leftIconProps: leftIconProps, error: isDropdownDisplayed ? false : error, autoComplete: autoComplete, ref: mergeRefs([setAnchorElement, inputProps.ref]), useFocusBorder: !isDropdownDisplayed }));
|
|
33
38
|
}
|
|
34
|
-
return (_jsx(BKJTextInput, { isOpen: isOpen, labelProps: getLabelProps(), fieldSetProps: getComboboxProps(), variant: variantMap[variant], ...inputProps, className: className, css: isOpen && focusBorderStyles, rightIconProps: rightIconProps, leftIconProps: leftIconProps, error: isOpen ? false : error, autoComplete: autoComplete, ref: mergeRefs([setAnchorElement, inputProps.ref]), useFocusBorder:
|
|
39
|
+
return (_jsx(BKJTextInput, { isOpen: isOpen, labelProps: getLabelProps(), fieldSetProps: getComboboxProps(), variant: variantMap[variant], ...inputProps, className: className, css: isOpen && focusBorderStyles, rightIconProps: rightIconProps, leftIconProps: leftIconProps, error: isOpen ? false : error, autoComplete: autoComplete, ref: mergeRefs([setAnchorElement, inputProps.ref]), useFocusBorder: !isOpen }));
|
|
35
40
|
});
|
|
36
41
|
//# sourceMappingURL=BKJComboBoxAsyncInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsyncInput.js","sourceRoot":"","sources":["../../../../src/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,UAAU,GAAkD;IAChE,MAAM,EAAE,yBAAyB;CAClC,CAAC;
|
|
1
|
+
{"version":3,"file":"BKJComboBoxAsyncInput.js","sourceRoot":"","sources":["../../../../src/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,UAAU,GAAkD;IAChE,MAAM,EAAE,yBAAyB;CAClC,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAQ7C,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAG,EAAE,EAAE,mBAAmB,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IAC1F,MAAM,EACJ,KAAK,EACL,OAAO,GAAG,QAAQ,EAClB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,aAAa,EACb,MAAM,EACN,YAAY,EACZ,cAAc,EACd,WAAW,EACX,YAAY,EACZ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,cAAc,EACd,iBAAiB,GAClB,GAAG,0BAA0B,EAAE,CAAC;IAEjC,MAAM,cAA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