Merge feat/component-sequential: resolve conflicts in component/index.ts

This commit is contained in:
2026-05-21 20:51:13 +00:00
3 changed files with 81 additions and 2 deletions

View File

@@ -1,2 +1,4 @@
export { Parallel } from "./parallel.js";
export type { ParallelProps } from "./parallel.js";
export type { ParallelProps } from "./parallel.js";
export { Sequential } from "./sequential.js";
export type { SequentialProps } from "./sequential.js";

View File

@@ -1 +1,18 @@
export {};
import type { UElement, UNode } from "@alkdev/ujsx";
export interface SequentialProps {
id?: string;
}
function Sequential(props: SequentialProps & { children?: UNode[] }): UElement {
const { id, children } = props;
return {
type: "sequential",
props: id !== undefined ? { id } : {},
children: children ?? [],
};
}
Sequential.displayName = "Sequential";
export { Sequential };