@firecms/ui 3.1.0-canary.9e89e98 → 3.1.0
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/components/MultiSelect.d.ts +1 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/hooks/useOutsideAlerter.d.ts +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/components/DebouncedTextField.tsx +3 -3
- package/src/components/MultiSelect.tsx +4 -6
- package/src/components/Select.tsx +62 -62
- package/src/hooks/useOutsideAlerter.tsx +1 -1
|
@@ -31,7 +31,7 @@ interface MultiSelectProps<T extends MultiSelectValue = string> {
|
|
|
31
31
|
multiple?: boolean;
|
|
32
32
|
includeSelectAll?: boolean;
|
|
33
33
|
includeClear?: boolean;
|
|
34
|
-
inputRef?: React.RefObject<HTMLButtonElement>;
|
|
34
|
+
inputRef?: React.RefObject<HTMLButtonElement | null>;
|
|
35
35
|
padding?: boolean;
|
|
36
36
|
invisible?: boolean;
|
|
37
37
|
children: React.ReactNode;
|
|
@@ -20,7 +20,7 @@ export type SelectProps<T extends SelectValue = string> = {
|
|
|
20
20
|
error?: boolean;
|
|
21
21
|
position?: "item-aligned" | "popper";
|
|
22
22
|
endAdornment?: React.ReactNode;
|
|
23
|
-
inputRef?: React.RefObject<HTMLButtonElement>;
|
|
23
|
+
inputRef?: React.RefObject<HTMLButtonElement | null>;
|
|
24
24
|
padding?: boolean;
|
|
25
25
|
invisible?: boolean;
|
|
26
26
|
children?: React.ReactNode;
|
|
@@ -2,4 +2,4 @@ import { RefObject } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook that alerts clicks outside the passed ref
|
|
4
4
|
*/
|
|
5
|
-
export declare function useOutsideAlerter(ref: RefObject<HTMLElement>, onOutsideClick: () => void, active?: boolean): void;
|
|
5
|
+
export declare function useOutsideAlerter(ref: RefObject<HTMLElement | null>, onOutsideClick: () => void, active?: boolean): void;
|
package/dist/index.es.js
CHANGED
|
@@ -34910,7 +34910,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
34910
34910
|
let t12;
|
|
34911
34911
|
let t13;
|
|
34912
34912
|
if ($[9] !== children) {
|
|
34913
|
-
t13 = children ? Children.map(children, _temp$2)
|
|
34913
|
+
t13 = children ? Children.map(children, _temp$2)?.filter(Boolean) ?? [] : [];
|
|
34914
34914
|
$[9] = children;
|
|
34915
34915
|
$[10] = t13;
|
|
34916
34916
|
} else {
|
|
@@ -37520,7 +37520,7 @@ const Badge = React__default.forwardRef((t0, ref) => {
|
|
|
37520
37520
|
Badge.displayName = "Badge";
|
|
37521
37521
|
function DebouncedTextField(props) {
|
|
37522
37522
|
const $ = c(13);
|
|
37523
|
-
const previousEventRef = React__default.useRef();
|
|
37523
|
+
const previousEventRef = React__default.useRef(void 0);
|
|
37524
37524
|
const [internalValue, setInternalValue] = React__default.useState(props.value);
|
|
37525
37525
|
const deferredValue = useDeferredValue(internalValue);
|
|
37526
37526
|
let t0;
|