@opencode-ai/ui 0.0.0-dev-202607090636 → 0.0.0-dev-202607090706
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.
|
@@ -4,6 +4,7 @@ export interface DialogProps extends ParentProps {
|
|
|
4
4
|
size?: "normal" | "large" | "x-large";
|
|
5
5
|
variant?: "default" | "settings";
|
|
6
6
|
class?: ComponentProps<"div">["class"];
|
|
7
|
+
containerClass?: ComponentProps<"div">["class"];
|
|
7
8
|
classList?: ComponentProps<"div">["classList"];
|
|
8
9
|
fit?: boolean;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export interface DialogProps extends ParentProps {
|
|
|
6
6
|
size?: "normal" | "large" | "x-large"
|
|
7
7
|
variant?: "default" | "settings"
|
|
8
8
|
class?: ComponentProps<"div">["class"]
|
|
9
|
+
containerClass?: ComponentProps<"div">["class"]
|
|
9
10
|
classList?: ComponentProps<"div">["classList"]
|
|
10
11
|
fit?: boolean
|
|
11
12
|
}
|
|
@@ -79,7 +80,7 @@ export function DialogHeader(props: DialogHeaderProps) {
|
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export function Dialog(props: DialogProps) {
|
|
82
|
-
const [local] = splitProps(props, ["size", "variant", "class", "classList", "fit", "children"])
|
|
83
|
+
const [local] = splitProps(props, ["size", "variant", "class", "containerClass", "classList", "fit", "children"])
|
|
83
84
|
|
|
84
85
|
return (
|
|
85
86
|
<div
|
|
@@ -88,7 +89,7 @@ export function Dialog(props: DialogProps) {
|
|
|
88
89
|
data-fit={local.fit ? true : undefined}
|
|
89
90
|
data-size={local.size || "normal"}
|
|
90
91
|
>
|
|
91
|
-
<div data-slot="dialog-container">
|
|
92
|
+
<div data-slot="dialog-container" class={local.containerClass}>
|
|
92
93
|
<Kobalte.Content
|
|
93
94
|
data-slot="dialog-content"
|
|
94
95
|
classList={{
|