@firecms/ui 3.0.0-canary.30 → 3.0.0-canary.32
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/README.md +1 -1
- package/dist/components/DateTimeField.d.ts +2 -2
- package/dist/components/Menu.d.ts +2 -1
- package/dist/components/RadioGroup.d.ts +25 -3
- package/dist/index.es.js +139 -129
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +6 -6
- package/package.json +2 -2
- package/src/components/DateTimeField.tsx +4 -4
- package/src/components/ExpandablePanel.tsx +2 -1
- package/src/components/IconButton.tsx +1 -1
- package/src/components/InputLabel.tsx +2 -1
- package/src/components/Menu.tsx +11 -5
- package/src/components/RadioGroup.tsx +37 -6
- package/src/styles.ts +6 -6
- package/tailwind.config.js +1 -0
package/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from "react";
|
2
2
|
interface DateTimeFieldProps {
|
3
3
|
value?: Date;
|
4
|
-
onChange: (date: Date |
|
4
|
+
onChange: (date: Date | undefined) => void;
|
5
5
|
mode?: "date" | "date_time";
|
6
6
|
disabled?: boolean;
|
7
7
|
clearable?: boolean;
|
8
8
|
error?: boolean;
|
9
|
-
size
|
9
|
+
size?: "small" | "medium";
|
10
10
|
label?: React.ReactNode;
|
11
11
|
className?: string;
|
12
12
|
style?: React.CSSProperties;
|
@@ -13,4 +13,5 @@ export type MenuItemProps = {
|
|
13
13
|
dense?: boolean;
|
14
14
|
onClick?: (event: React.MouseEvent) => void;
|
15
15
|
};
|
16
|
-
export declare function MenuItem({ children, dense,
|
16
|
+
export declare function MenuItem({ children, dense, // Default value is false if not provided
|
17
|
+
onClick }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,27 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
export interface RadioGroupProps {
|
3
|
+
id?: string;
|
4
|
+
children: React.ReactNode;
|
5
|
+
name?: string;
|
6
|
+
required?: boolean;
|
7
|
+
disabled?: boolean;
|
8
|
+
/**
|
9
|
+
* Whether keyboard navigation should loop around
|
10
|
+
* @defaultValue false
|
11
|
+
*/
|
12
|
+
loop?: boolean;
|
13
|
+
defaultValue?: string;
|
14
|
+
value?: string;
|
15
|
+
onValueChange?(value: string): void;
|
16
|
+
className?: string;
|
17
|
+
}
|
18
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
export interface RadioGroupItemProps {
|
20
|
+
id?: string;
|
21
|
+
value: string;
|
22
|
+
checked?: boolean;
|
23
|
+
required?: boolean;
|
24
|
+
className?: string;
|
25
|
+
}
|
26
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
5
27
|
export { RadioGroup, RadioGroupItem };
|