UNPKG

welcome-ui

Version:

Customizable design system with react • styled-components • styled-system and ariakit.

53 lines (52 loc) 1.53 kB
"use client"; import { c as l, u as v, a as m } from "./ITI7HKP4-DKM_MiJK.mjs"; import { c as f, a as R, b as S } from "./YV4JVR4I-BLeUul5N.mjs"; import { z as _, A as n, B as p, C as u, f as P, c as x, h as V, _ as C, i as b, D as g, g as c } from "./LVA2YJMS-B8X1PCyC.mjs"; import { u as j, a as E } from "./NLEBE274-CnAMhwcR.mjs"; import { j as G } from "./jsx-runtime-Bqq1Hxg9.mjs"; function h(a = {}) { var o = _(a, []), e; const t = (e = o.store) == null ? void 0 : e.getState(), r = l(n(u({}, o), { focusLoop: p(o.focusLoop, t == null ? void 0 : t.focusLoop, !0) })), i = n(u({}, r.getState()), { value: p( o.value, t == null ? void 0 : t.value, o.defaultValue, null ) }), s = f(i, r, o.store); return n(u(u({}, r), s), { setValue: (d) => s.setState("value", d) }); } function L(a, o, e) { return a = v(a, o, e), S(a, e, "value", "setValue"), a; } function A(a = {}) { const [o, e] = R(h, a); return L(o, e, a); } var N = "div", w = x( function(o) { var e = o, { store: t } = e, r = C(e, ["store"]); const i = j(); return t = t || i, b( t, process.env.NODE_ENV !== "production" && "RadioGroup must receive a `store` prop or be wrapped in a RadioProvider component." ), r = g( r, (s) => /* @__PURE__ */ G.jsx(E, { value: t, children: s }), [t] ), r = c({ role: "radiogroup" }, r), r = m(c({ store: t }, r)), r; } ), B = P(function(o) { const e = w(o); return V(N, e); }); export { B as R, A as u };