@firecms/ui 3.0.0-canary.75 → 3.0.0-canary.76
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.
@@ -6,6 +6,6 @@ export type InputLabelProps = {
|
|
6
6
|
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
7
7
|
export declare const InputLabel: React.ForwardRefExoticComponent<{
|
8
8
|
children?: React.ReactNode;
|
9
|
-
className?: string
|
10
|
-
shrink?: boolean
|
9
|
+
className?: string;
|
10
|
+
shrink?: boolean;
|
11
11
|
} & React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
3
3
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
4
|
-
border?: boolean
|
5
|
-
onClick?: React.MouseEventHandler<HTMLLabelElement
|
4
|
+
border?: boolean;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
6
6
|
} & React.RefAttributes<HTMLLabelElement>>;
|
7
7
|
export { Label };
|
@@ -3,41 +3,8 @@ type State = {
|
|
3
3
|
outerHeightStyle: number;
|
4
4
|
overflow?: boolean | undefined;
|
5
5
|
};
|
6
|
-
export declare const TextareaAutosize: React.FC<
|
7
|
-
|
8
|
-
shadowClassName?: string | undefined;
|
9
|
-
/**
|
10
|
-
* Maximum number of rows to display.
|
11
|
-
*/
|
12
|
-
maxRows?: string | number | undefined;
|
13
|
-
/**
|
14
|
-
* Minimum number of rows to display.
|
15
|
-
* @default 1
|
16
|
-
*/
|
17
|
-
minRows?: string | number | undefined;
|
18
|
-
/**
|
19
|
-
* @ignore
|
20
|
-
*/
|
21
|
-
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
22
|
-
/**
|
23
|
-
* @ignore
|
24
|
-
*/
|
25
|
-
placeholder?: string | undefined;
|
26
|
-
/**
|
27
|
-
* @ignore
|
28
|
-
*/
|
29
|
-
style?: object | undefined;
|
30
|
-
/**
|
31
|
-
* @ignore
|
32
|
-
*/
|
33
|
-
value?: string | number | string[] | undefined;
|
34
|
-
sizeRef?: React.RefObject<HTMLDivElement> | undefined;
|
35
|
-
onScroll?: ((event: React.UIEvent<HTMLTextAreaElement>) => void) | undefined;
|
36
|
-
onResize?: ((state: State) => void) | undefined;
|
37
|
-
autoFocus?: boolean | undefined;
|
38
|
-
ignoreBoxSizing?: boolean | undefined;
|
39
|
-
} & {
|
40
|
-
ref?: React.ForwardedRef<Element> | undefined;
|
6
|
+
export declare const TextareaAutosize: React.FC<TextareaAutosizeProps & {
|
7
|
+
ref?: React.ForwardedRef<Element>;
|
41
8
|
}>;
|
42
9
|
export type TextareaAutosizeProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
|
43
10
|
className?: string;
|
package/dist/index.es.js
CHANGED
@@ -16626,8 +16626,7 @@ function Zon({
|
|
16626
16626
|
}
|
16627
16627
|
function Xon({ children: n, value: t, className: r }) {
|
16628
16628
|
const i = g.useContext(Tn);
|
16629
|
-
if (!i)
|
16630
|
-
throw new Error("MultiSelectItem must be used inside a MultiSelect");
|
16629
|
+
if (!i) throw new Error("MultiSelectItem must be used inside a MultiSelect");
|
16631
16630
|
const { fieldValue: c, setInputValue: a, onValueChangeInternal: l } = i;
|
16632
16631
|
return /* @__PURE__ */ e(
|
16633
16632
|
rn.Item,
|
@@ -17233,8 +17232,7 @@ function Ge({
|
|
17233
17232
|
}) {
|
17234
17233
|
const x = w ?? cn(null), [F, T] = k.useState(document.activeElement === x.current), L = n != null && n !== "";
|
17235
17234
|
R(() => {
|
17236
|
-
if (i !== "number")
|
17237
|
-
return;
|
17235
|
+
if (i !== "number") return;
|
17238
17236
|
const B = (y) => {
|
17239
17237
|
y.preventDefault();
|
17240
17238
|
}, z = "current" in x ? x.current : x;
|