welcome-ui 0.0.0-dev.1759222868187 → 0.0.0-dev.1759252708223

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.
Files changed (49) hide show
  1. package/dist/4CMBR7SL-DXQR7a9T.js +308 -0
  2. package/dist/{ASMQKSDT-CyLroRiC.js → ASMQKSDT-GE79MhKX.js} +12 -12
  3. package/dist/{AXB53BZF-DBGkYxAF.js → AXB53BZF-ClCOTGI-.js} +3 -3
  4. package/dist/Accordion.js +3 -3
  5. package/dist/{BYC7LY2E-sahp7oqU.js → BYC7LY2E-DeD1QoQl.js} +108 -108
  6. package/dist/Button.js +1 -1
  7. package/dist/Checkbox.js +1 -1
  8. package/dist/Drawer.js +4 -4
  9. package/dist/DropdownMenu.js +140 -139
  10. package/dist/FieldGroup.css +1 -0
  11. package/dist/FieldGroup.js +17 -0
  12. package/dist/ITI7HKP4-MlgGFEDr.js +187 -0
  13. package/dist/InputText.css +1 -1
  14. package/dist/InputText.js +34 -34
  15. package/dist/{JC64G2H7-oyI4lllS.js → JC64G2H7-jNBZrGfv.js} +126 -126
  16. package/dist/{KUU7WJ55-iyg84yrl.js → KUU7WJ55-CRa_letc.js} +1 -1
  17. package/dist/{LVA2YJMS-BmLXjKP9.js → LVA2YJMS-C6Bdr5Em.js} +35 -35
  18. package/dist/Label.js +13 -13
  19. package/dist/{MTZPJQMC-CEQxLFTu.js → MTZPJQMC-DgscjgO6.js} +2 -2
  20. package/dist/Modal.js +3 -3
  21. package/dist/{NLEBE274-BPGIVzin.js → NLEBE274-BlP1TDp5.js} +16 -16
  22. package/dist/{P2CTZE2T-CHi91Yb8.js → P2CTZE2T-DqsBJuIy.js} +32 -32
  23. package/dist/{P4IRICAX-CIAVAXlF.js → P4IRICAX-CvgWqpy0.js} +3 -3
  24. package/dist/Popover.js +3 -3
  25. package/dist/{QYJ6MIDR-DRpzeJNT.js → QYJ6MIDR-BWg_HLyh.js} +3 -3
  26. package/dist/Radio.css +1 -1
  27. package/dist/Radio.js +39 -38
  28. package/dist/RadioGroup.css +1 -0
  29. package/dist/RadioGroup.js +72 -0
  30. package/dist/RadioTab.js +1 -1
  31. package/dist/{SYRFVSLH-vrz7_KNH.js → SYRFVSLH-D5X1Ofws.js} +3 -3
  32. package/dist/Slider.css +1 -0
  33. package/dist/Slider.js +423 -0
  34. package/dist/Tabs.js +79 -78
  35. package/dist/Toggle.js +1 -1
  36. package/dist/Tooltip.js +31 -31
  37. package/dist/{VGCJ63VH-CV_AMRHp.js → VGCJ63VH-Bdd6jzVW.js} +31 -31
  38. package/dist/{X5NMLKT6-DqDJBMYO.js → X5NMLKT6-C7-nsL44.js} +2 -2
  39. package/dist/{YV4JVR4I-CvfP1OCB.js → YV4JVR4I-BN6SUVuh.js} +54 -54
  40. package/dist/types/components/FieldGroup/index.d.ts +1 -0
  41. package/dist/types/components/FieldGroup/types.d.ts +8 -0
  42. package/dist/types/components/Label/index.d.ts +1 -1
  43. package/dist/types/components/RadioGroup/index.d.ts +2 -0
  44. package/dist/types/components/RadioGroup/types.d.ts +17 -0
  45. package/dist/types/components/Slider/Range.d.ts +6 -0
  46. package/dist/types/components/Slider/index.d.ts +10 -0
  47. package/dist/types/components/Slider/types.d.ts +28 -0
  48. package/package.json +1 -1
  49. package/dist/ITI7HKP4-BwM8j6XI.js +0 -488
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { m as Y, o as Z, t as ee, c as te, s as y, a as O, b as ne, d as oe, e as P, u as T } from "./YV4JVR4I-CvfP1OCB.js";
3
- import { A as p, B as ae, C as se, D as re, t as H, f as R, _ as F, d as b, c as ie, a as ue, i as le, x as ce, E as S, v as de, b as V, j as me, z as fe } from "./LVA2YJMS-BmLXjKP9.js";
4
- import { createContext as I, useRef as ve, useState as pe, useMemo as Se } from "react";
2
+ import { m as Y, o as Z, t as ee, c as te, s as y, d as A, e as ne, a as oe, b as P, u as T } from "./YV4JVR4I-BN6SUVuh.js";
3
+ import { J as p, I as ae, K as se, L as re, t as H, f as I, _ as R, d as b, c as ie, a as ue, i as le, E as ce, y as S, v as de, b as V, j as me, G as fe } from "./LVA2YJMS-C6Bdr5Em.js";
4
+ import { createContext as F, useRef as ve, useState as pe, useMemo as Se } from "react";
5
5
  import { flushSync as De } from "react-dom";
6
6
  import { jsx as M } from "react/jsx-runtime";
7
7
  function Ce(n = {}) {
@@ -25,7 +25,7 @@ function Ce(n = {}) {
25
25
  }, a = te(r, o);
26
26
  return y(
27
27
  a,
28
- () => O(a, ["animated", "animating"], (s) => {
28
+ () => A(a, ["animated", "animating"], (s) => {
29
29
  s.animated || a.setState("animating", !1);
30
30
  })
31
31
  ), y(
@@ -35,7 +35,7 @@ function Ce(n = {}) {
35
35
  })
36
36
  ), y(
37
37
  a,
38
- () => O(a, ["open", "animating"], (s) => {
38
+ () => A(a, ["open", "animating"], (s) => {
39
39
  a.setState("mounted", s.open || s.animating);
40
40
  })
41
41
  ), ae(se({}, a), {
@@ -52,14 +52,14 @@ function Ce(n = {}) {
52
52
  function xe(n, o, e) {
53
53
  return re(o, [e.store, e.disclosure]), P(n, e, "open", "setOpen"), P(n, e, "mounted", "setMounted"), P(n, e, "animated"), Object.assign(n, { disclosure: e.disclosure });
54
54
  }
55
- function Re(n = {}) {
55
+ function Ie(n = {}) {
56
56
  const [o, e] = oe(Ce, n);
57
57
  return xe(o, e, n);
58
58
  }
59
59
  var _ = H(), N = _.useProviderContext, ge = _.ContextProvider, Ee = _.ScopedContextProvider, D = H(
60
60
  [ge],
61
61
  [Ee]
62
- ), Fe = D.useScopedContext, Ie = D.useProviderContext, Me = D.ContextProvider, ye = D.ScopedContextProvider, Ne = I(void 0), $e = I(void 0), Pe = "div";
62
+ ), Re = D.useScopedContext, Fe = D.useProviderContext, Me = D.ContextProvider, ye = D.ScopedContextProvider, Ne = F(void 0), $e = F(void 0), Pe = "div";
63
63
  function j(n, o) {
64
64
  const e = setTimeout(o, n);
65
65
  return () => clearTimeout(e);
@@ -80,7 +80,7 @@ function _e(n, o, e) {
80
80
  return !e && o !== !1 && (!n || !!o);
81
81
  }
82
82
  var he = ie(function(o) {
83
- var e = o, { store: t, alwaysVisible: i } = e, r = F(e, ["store", "alwaysVisible"]);
83
+ var e = o, { store: t, alwaysVisible: i } = e, r = R(e, ["store", "alwaysVisible"]);
84
84
  const a = N();
85
85
  t = t || a, le(
86
86
  t,
@@ -113,29 +113,29 @@ var he = ie(function(o) {
113
113
  const {
114
114
  transitionDuration: k,
115
115
  animationDuration: q,
116
- transitionDelay: U,
117
- animationDelay: W
116
+ transitionDelay: L,
117
+ animationDelay: U
118
118
  } = getComputedStyle(m), {
119
- transitionDuration: z = "0",
120
- animationDuration: B = "0",
121
- transitionDelay: L = "0",
122
- animationDelay: G = "0"
123
- } = x ? getComputedStyle(x) : {}, J = w(
124
- U,
125
- W,
119
+ transitionDuration: W = "0",
120
+ animationDuration: G = "0",
121
+ transitionDelay: J = "0",
122
+ animationDelay: K = "0"
123
+ } = x ? getComputedStyle(x) : {}, z = w(
126
124
  L,
127
- G
128
- ), K = w(
125
+ U,
126
+ J,
127
+ K
128
+ ), B = w(
129
129
  k,
130
130
  q,
131
- z,
132
- B
133
- ), A = J + K;
134
- if (!A) {
131
+ W,
132
+ G
133
+ ), O = z + B;
134
+ if (!O) {
135
135
  l === "enter" && t.setState("animated", !1), u();
136
136
  return;
137
137
  }
138
- const Q = 1e3 / 60, X = Math.max(A - Q, 0);
138
+ const Q = 1e3 / 60, X = Math.max(O - Q, 0);
139
139
  return j(X, v);
140
140
  }, [t, d, m, x, c, l]), r = de(
141
141
  r,
@@ -153,33 +153,33 @@ var he = ie(function(o) {
153
153
  ref: me(f ? t.setContentElement : null, s, r.ref),
154
154
  style: $
155
155
  }), fe(r);
156
- }), Ae = R(function(o) {
156
+ }), Oe = I(function(o) {
157
157
  const e = he(o);
158
158
  return ue(Pe, e);
159
- }), ke = R(function(o) {
159
+ }), ke = I(function(o) {
160
160
  var e = o, {
161
161
  unmountOnHide: t
162
- } = e, i = F(e, [
162
+ } = e, i = R(e, [
163
163
  "unmountOnHide"
164
164
  ]);
165
165
  const r = N(), a = i.store || r;
166
166
  return T(
167
167
  a,
168
168
  (f) => !t || (f == null ? void 0 : f.mounted)
169
- ) === !1 ? null : /* @__PURE__ */ M(Ae, b({}, i));
169
+ ) === !1 ? null : /* @__PURE__ */ M(Oe, b({}, i));
170
170
  });
171
171
  export {
172
172
  ye as D,
173
- Ie as a,
173
+ Fe as a,
174
174
  N as b,
175
175
  Me as c,
176
176
  ke as d,
177
- Re as e,
177
+ Ie as e,
178
178
  he as f,
179
179
  Ce as g,
180
180
  xe as h,
181
181
  _e as i,
182
182
  Ne as j,
183
183
  $e as k,
184
- Fe as u
184
+ Re as u
185
185
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { u as f } from "./KUU7WJ55-iyg84yrl.js";
3
- import { f as c, c as m, a as i, k as l, l as u, b as B, j as d, d as v } from "./LVA2YJMS-BmLXjKP9.js";
2
+ import { u as f } from "./KUU7WJ55-CRa_letc.js";
3
+ import { f as c, c as m, a as i, k as l, l as u, b as B, j as d, d as v } from "./LVA2YJMS-C6Bdr5Em.js";
4
4
  import { useRef as N, useState as g, useEffect as _ } from "react";
5
5
  var s = "button", b = m(
6
6
  function(t) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { i as ot, X as I, Y as at, Z as ut, $ as st, N as F, a0 as it, B as ct, C as ft, a1 as lt, G as dt, E as M, b as St, d as P, u as pt, a2 as vt } from "./LVA2YJMS-BmLXjKP9.js";
3
- import * as C from "react";
4
- import J from "react";
2
+ import { i as ot, Y as C, Z as at, $ as ut, a0 as st, M as F, a1 as it, I as ct, K as ft, a2 as lt, P as dt, y as G, b as St, d as U, u as pt, a3 as vt } from "./LVA2YJMS-C6Bdr5Em.js";
3
+ import * as T from "react";
4
+ import Q from "react";
5
5
  import { g as _t } from "./_commonjsHelpers-CXJ7dpIk.js";
6
6
  function A(t, n) {
7
7
  const e = t.__unstableInternals;
@@ -20,8 +20,8 @@ function W(t, ...n) {
20
20
  (L) => F(
21
21
  ...n.map((V) => {
22
22
  var h;
23
- const T = (h = V == null ? void 0 : V.getState) == null ? void 0 : h.call(V);
24
- if (T && I(T, L))
23
+ const I = (h = V == null ? void 0 : V.getState) == null ? void 0 : h.call(V);
24
+ if (I && C(I, L))
25
25
  return tt(V, [L], (j) => {
26
26
  p(
27
27
  L,
@@ -36,14 +36,14 @@ function W(t, ...n) {
36
36
  ), D = [];
37
37
  for (const L of v)
38
38
  D.push(L());
39
- const q = n.map(Q);
39
+ const q = n.map(X);
40
40
  return o = F(...w, ...D, ...q), b;
41
41
  }, E = (a, r, b = m) => (b.add(r), d.set(r, a), () => {
42
42
  var w;
43
43
  (w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
44
- }), R = (a, r) => E(a, r), B = (a, r) => (i.set(r, r(e, e)), E(a, r)), N = (a, r) => (i.set(r, r(e, l)), E(a, r, _)), S = (a) => W(ut(e, a), y), f = (a) => W(at(e, a), y), O = () => e, p = (a, r, b = !1) => {
44
+ }), R = (a, r) => E(a, r), K = (a, r) => (i.set(r, r(e, e)), E(a, r)), M = (a, r) => (i.set(r, r(e, l)), E(a, r, _)), S = (a) => W(ut(e, a), y), f = (a) => W(at(e, a), y), O = () => e, p = (a, r, b = !1) => {
45
45
  var w;
46
- if (!I(e, a)) return;
46
+ if (!C(e, a)) return;
47
47
  const D = it(r, e[a]);
48
48
  if (D === e[a]) return;
49
49
  if (!b)
@@ -53,18 +53,18 @@ function W(t, ...n) {
53
53
  e = ct(ft({}, e), { [a]: D });
54
54
  const L = Symbol();
55
55
  u = L, c.add(a);
56
- const V = (h, T, j) => {
56
+ const V = (h, I, j) => {
57
57
  var $;
58
58
  const H = d.get(h), rt = (z) => j ? j.has(z) : z === a;
59
- (!H || H.some(rt)) && (($ = i.get(h)) == null || $(), i.set(h, h(e, T)));
59
+ (!H || H.some(rt)) && (($ = i.get(h)) == null || $(), i.set(h, h(e, I)));
60
60
  };
61
61
  for (const h of m)
62
62
  V(h, q);
63
63
  queueMicrotask(() => {
64
64
  if (u !== L) return;
65
65
  const h = e;
66
- for (const T of _)
67
- V(T, l, c);
66
+ for (const I of _)
67
+ V(I, l, c);
68
68
  l = h, c.clear();
69
69
  });
70
70
  }, y = {
@@ -74,8 +74,8 @@ function W(t, ...n) {
74
74
  setup: g,
75
75
  init: x,
76
76
  subscribe: R,
77
- sync: B,
78
- batch: N,
77
+ sync: K,
78
+ batch: M,
79
79
  pick: S,
80
80
  omit: f
81
81
  }
@@ -86,7 +86,7 @@ function Rt(t, ...n) {
86
86
  if (t)
87
87
  return A(t, "setup")(...n);
88
88
  }
89
- function Q(t, ...n) {
89
+ function X(t, ...n) {
90
90
  if (t)
91
91
  return A(t, "init")(...n);
92
92
  }
@@ -118,7 +118,7 @@ function Dt(...t) {
118
118
  }, {}), e = W(n, ...t);
119
119
  return Object.assign({}, ...t, e);
120
120
  }
121
- function Tt(t, n) {
121
+ function It(t, n) {
122
122
  if (process.env.NODE_ENV === "production" || !n) return;
123
123
  const e = Object.entries(t).filter(([o, s]) => o.startsWith("default") && s !== void 0).map(([o]) => {
124
124
  var s;
@@ -128,7 +128,7 @@ function Tt(t, n) {
128
128
  if (!e.length) return;
129
129
  const l = n.getState();
130
130
  if (e.filter(
131
- (o) => I(l, o)
131
+ (o) => C(l, o)
132
132
  ).length)
133
133
  throw new Error(
134
134
  `Passing a store prop in conjunction with a default state is not supported.
@@ -148,11 +148,11 @@ If there's a particular need for this, please submit a feature request at https:
148
148
  `
149
149
  );
150
150
  }
151
- var U = { exports: {} }, G = {}, Y;
151
+ var P = { exports: {} }, B = {}, Y;
152
152
  function mt() {
153
- if (Y) return G;
153
+ if (Y) return B;
154
154
  Y = 1;
155
- var t = J;
155
+ var t = Q;
156
156
  function n(i, d) {
157
157
  return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
158
158
  }
@@ -181,13 +181,13 @@ function mt() {
181
181
  return d();
182
182
  }
183
183
  var _ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
184
- return G.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, G;
184
+ return B.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, B;
185
185
  }
186
- var K = {}, X;
186
+ var N = {}, Z;
187
187
  function Et() {
188
- return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
188
+ return Z || (Z = 1, process.env.NODE_ENV !== "production" && function() {
189
189
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
190
- var t = J, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
190
+ var t = Q, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
191
191
  function e(S) {
192
192
  {
193
193
  for (var f = arguments.length, O = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
@@ -250,34 +250,34 @@ function Et() {
250
250
  function x(S, f, O) {
251
251
  return f();
252
252
  }
253
- var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, B = R ? x : d, N = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : B;
254
- K.useSyncExternalStore = N, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
255
- }()), K;
253
+ var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, K = R ? x : d, M = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : K;
254
+ N.useSyncExternalStore = M, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
255
+ }()), N;
256
256
  }
257
- var Z;
257
+ var J;
258
258
  function gt() {
259
- return Z || (Z = 1, process.env.NODE_ENV === "production" ? U.exports = mt() : U.exports = Et()), U.exports;
259
+ return J || (J = 1, process.env.NODE_ENV === "production" ? P.exports = mt() : P.exports = Et()), P.exports;
260
260
  }
261
261
  var Ot = gt();
262
262
  const bt = /* @__PURE__ */ _t(Ot);
263
263
  var { useSyncExternalStore: et } = bt, nt = () => () => {
264
264
  };
265
265
  function yt(t, n = dt) {
266
- const e = C.useCallback(
266
+ const e = T.useCallback(
267
267
  (u) => t ? k(t, null, u) : nt(),
268
268
  [t]
269
269
  ), l = () => {
270
270
  const u = typeof n == "string" ? n : null, o = typeof n == "function" ? n : null, s = t == null ? void 0 : t.getState();
271
271
  if (o) return o(s);
272
- if (s && u && I(s, u))
272
+ if (s && u && C(s, u))
273
273
  return s[u];
274
274
  };
275
275
  return et(e, l, l);
276
276
  }
277
- function Ct(t, n) {
278
- const e = C.useRef(
277
+ function Tt(t, n) {
278
+ const e = T.useRef(
279
279
  {}
280
- ), l = C.useCallback(
280
+ ), l = T.useCallback(
281
281
  (o) => t ? k(t, null, o) : nt(),
282
282
  [t]
283
283
  ), u = () => {
@@ -291,21 +291,21 @@ function Ct(t, n) {
291
291
  _ !== c[v] && (c[v] = _, s = !0);
292
292
  }
293
293
  if (typeof m == "string") {
294
- if (!o || !I(o, m)) continue;
294
+ if (!o || !C(o, m)) continue;
295
295
  const _ = o[m];
296
296
  _ !== c[v] && (c[v] = _, s = !0);
297
297
  }
298
298
  }
299
- return s && (e.current = P({}, c)), e.current;
299
+ return s && (e.current = U({}, c)), e.current;
300
300
  };
301
301
  return et(l, u, u);
302
302
  }
303
- function It(t, n, e, l) {
304
- const u = I(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, s = vt({ value: u, setValue: o });
305
- M(() => tt(t, [e], (c, v) => {
303
+ function Ct(t, n, e, l) {
304
+ const u = C(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, s = vt({ value: u, setValue: o });
305
+ G(() => tt(t, [e], (c, v) => {
306
306
  const { value: m, setValue: _ } = s.current;
307
307
  _ && c[e] !== v[e] && c[e] !== m && _(c[e]);
308
- }), [t, e]), M(() => {
308
+ }), [t, e]), G(() => {
309
309
  if (u !== void 0)
310
310
  return t.setState(e, u), ht(t, [e], () => {
311
311
  u !== void 0 && t.setState(e, u);
@@ -313,32 +313,32 @@ function It(t, n, e, l) {
313
313
  });
314
314
  }
315
315
  function jt(t, n) {
316
- const [e, l] = C.useState(() => t(n));
317
- M(() => Q(e), [e]);
318
- const u = C.useCallback(
316
+ const [e, l] = T.useState(() => t(n));
317
+ G(() => X(e), [e]);
318
+ const u = T.useCallback(
319
319
  (c) => yt(e, c),
320
320
  [e]
321
- ), o = C.useMemo(
322
- () => St(P({}, e), { useState: u }),
321
+ ), o = T.useMemo(
322
+ () => St(U({}, e), { useState: u }),
323
323
  [e, u]
324
324
  ), s = pt(() => {
325
- l((c) => t(P(P({}, n), c.getState())));
325
+ l((c) => t(U(U({}, n), c.getState())));
326
326
  });
327
327
  return [o, s];
328
328
  }
329
329
  export {
330
- tt as a,
331
- k as b,
330
+ jt as a,
331
+ Ct as b,
332
332
  W as c,
333
- jt as d,
334
- It as e,
335
- Ct as f,
336
- ht as g,
337
- Q as i,
333
+ tt as d,
334
+ k as e,
335
+ ht as f,
336
+ Tt as g,
337
+ X as i,
338
338
  Dt as m,
339
339
  Vt as o,
340
340
  At as p,
341
341
  Rt as s,
342
- Tt as t,
342
+ It as t,
343
343
  yt as u
344
344
  };
@@ -0,0 +1 @@
1
+ export declare const FieldGroup: import('react').ForwardRefExoticComponent<import('./types').FieldGroupOptions & import('react').HTMLAttributes<HTMLFieldSetElement> & import('react').RefAttributes<HTMLFieldSetElement>>;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes, default as React } from 'react';
2
+ import { LabelProps } from '../Label/types';
3
+ export interface FieldGroupOptions {
4
+ hideLabel?: boolean;
5
+ label: React.ReactNode;
6
+ required?: LabelProps['required'];
7
+ }
8
+ export type FieldGroupProps = FieldGroupOptions & HTMLAttributes<HTMLFieldSetElement>;
@@ -1,2 +1,2 @@
1
1
  import { LabelProps } from './types';
2
- export declare const Label: import('react').ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
2
+ export declare const Label: import('../../utils').FunctionComponentWithAs<"label", LabelProps>;
@@ -0,0 +1,2 @@
1
+ import { RadioGroupProps } from './types';
2
+ export declare const RadioGroup: ({ className, dataTestId, disabled, hideLabel, id, label, name, onChange, options, renderOption: Component, required, value, ...rest }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { FieldGroupOptions } from '../FieldGroup/types';
3
+ export type RadioGroupOption = {
4
+ hint?: string;
5
+ label: number | string;
6
+ value: number | string;
7
+ };
8
+ export interface RadioGroupOptions {
9
+ dataTestId?: string;
10
+ disabled?: boolean;
11
+ name: string;
12
+ onChange?: (value: RadioGroupOption['value']) => void;
13
+ options: RadioGroupOption[];
14
+ renderOption?: React.ElementType;
15
+ value?: string;
16
+ }
17
+ export type RadioGroupProps = FieldGroupOptions & HTMLAttributes<HTMLFieldSetElement> & RadioGroupOptions;
@@ -0,0 +1,6 @@
1
+ import { RangeProps } from './types';
2
+ export declare const thumbWidth = 20;
3
+ /**
4
+ * @name Slider.Range
5
+ */
6
+ export declare const Range: import('react').ForwardRefExoticComponent<Omit<RangeProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { RangeOptions, RangeProps, RangeType, SliderOptions, SliderProps } from './types';
3
+ export type { RangeOptions, RangeProps, RangeType, SliderOptions, SliderProps };
4
+ export declare const thumbWidth = 20;
5
+ export declare const round: (value: number, step: number) => number;
6
+ export declare const ensureMinMax: (value: number, min: number, max: number, step: number) => number;
7
+ export declare const SliderComponent: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
9
+ Range: React.ForwardRefExoticComponent<Omit<RangeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ };
@@ -0,0 +1,28 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface RangeOptions extends Omit<SliderOptions, 'onChange' | 'type' | 'value'> {
3
+ onChange: (value: RangeType) => void;
4
+ type?: 'fields' | 'inline';
5
+ value: RangeType;
6
+ }
7
+ export type RangeProps = Omit<ComponentPropsWithRef<'div'>, 'onChange'> & RangeOptions;
8
+ export type RangeType = {
9
+ max: number;
10
+ min: number;
11
+ };
12
+ export interface SliderOptions extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
13
+ borderSelectorColor?: string;
14
+ disabled?: boolean;
15
+ hint?: string;
16
+ label?: string;
17
+ max: number;
18
+ min: number;
19
+ onChange: (value: number) => void;
20
+ step?: number;
21
+ tooltip?: boolean;
22
+ type?: Type;
23
+ value: number;
24
+ values?: number[];
25
+ }
26
+ export type SliderProps = Omit<ComponentPropsWithRef<'div'>, 'onChange'> & SliderOptions;
27
+ type Type = 'inline' | 'left-field' | 'right-field';
28
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "0.0.0-dev.1759222868187",
3
+ "version": "0.0.0-dev.1759252708223",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"