@uniflowed/ui 0.0.0-alpha.18 → 0.0.0-alpha.37

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/input-otp.js CHANGED
@@ -59,8 +59,8 @@
59
59
  import * as React from "@uniflowed/react";
60
60
  import { createContext, useContext, useMemo, useState } from "@uniflowed/react";
61
61
 
62
- import type { Rest } from "./internal/merge-props.js";
63
- import { composeHandlers, withoutComposed } from "./internal/merge-props.js";
62
+ import type { RenderProp, Rest } from "./internal/merge-props.js";
63
+ import { composeHandlers, withProps, withoutComposed } from "./internal/merge-props.js";
64
64
  import { useControlled } from "./internal/controlled-state.js";
65
65
 
66
66
  /**
@@ -209,10 +209,10 @@ export component InputOtpSlot(children?: React.Node, index: number, ...rest: Res
209
209
  }
210
210
 
211
211
  /** The dash between two groups. Decoration, and it says so. */
212
- export component InputOtpSeparator(children?: React.Node, ...rest: Rest) {
213
- return (
214
- <div {...rest} aria-hidden="true">
215
- {children}
216
- </div>
217
- );
212
+ export component InputOtpSeparator(children?: React.Node, render?: RenderProp, ...rest: Rest) {
213
+ const props = withProps(rest, { "aria-hidden": "true", children });
214
+ if (render != null) {
215
+ return render(props);
216
+ }
217
+ return <div {...props} />;
218
218
  }