jaguar-form 1.0.4 → 1.0.5

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/README.md +15 -2
  2. package/dist/Select-DiEHlcyU.js +376 -0
  3. package/dist/{TreeSelect-CkPtMg-g.js → TreeSelect-1jpd43zZ.js} +7 -8
  4. package/dist/{compound-D4_6P0d_.js → compound-BhkceJal.js} +11 -10
  5. package/dist/compound.js +1 -1
  6. package/dist/core.js +1 -1
  7. package/dist/date-time.js +1 -1
  8. package/dist/form-CnRp3fRw.js +457 -0
  9. package/dist/form.js +3 -3
  10. package/dist/{icons-BI3fdIey.js → icons-D79FYcGF.js} +1 -1
  11. package/dist/{image-upload-VtUlQgzJ.js → image-upload-BstB2jRd.js} +13 -9
  12. package/dist/image-upload.js +1 -1
  13. package/dist/index.js +14 -14
  14. package/dist/input.js +1 -1
  15. package/dist/inputs-Ch4x2nwn.js +615 -0
  16. package/dist/locale/load.js +7 -3
  17. package/dist/{pickers-C9QTR2XN.js → pickers-D-ymAf_p.js} +29 -30
  18. package/dist/select.js +1 -1
  19. package/dist/selection-9NP9MXSn.js +190 -0
  20. package/dist/{slider-CNwkLMmo.js → slider-C2T2wII7.js} +1 -1
  21. package/dist/slider.js +1 -1
  22. package/dist/{store-DOn9K-EA.js → store-BvcQ7xcl.js} +47 -29
  23. package/dist/style.css +1 -1
  24. package/dist/tree-select.js +1 -1
  25. package/dist/types/components/extended-inputs.d.ts +30 -0
  26. package/dist/types/components/image-upload/ManagedImageUpload.d.ts +10 -3
  27. package/dist/types/components/image-upload/upload.d.ts +1 -1
  28. package/dist/types/components/inputs.d.ts +24 -1
  29. package/dist/types/components/select/types.d.ts +4 -1
  30. package/dist/types/components/select/useRemoteOptions.d.ts +11 -0
  31. package/dist/types/components/select.d.ts +1 -0
  32. package/dist/types/entries/input.d.ts +5 -2
  33. package/dist/types/entries/select.d.ts +1 -0
  34. package/dist/types/form/adapter.d.ts +1 -0
  35. package/dist/types/form/index.d.ts +32 -1
  36. package/dist/types/form/store.d.ts +9 -0
  37. package/dist/types/locale/load.d.ts +2 -1
  38. package/dist/types/primitives/Popup.d.ts +1 -0
  39. package/dist/types/utils/decimal.d.ts +4 -0
  40. package/dist/types/utils/remote-options.d.ts +23 -0
  41. package/dist/useControllable-Dhp7tTjy.js +97 -0
  42. package/dist/{useSelection-C0OEFZUE.js → useSelection-BUBndjzo.js} +2 -3
  43. package/package.json +1 -1
  44. package/dist/Control-B36bu6zQ.js +0 -47
  45. package/dist/Select-BG2H-YnK.js +0 -252
  46. package/dist/form-DTI0Sqsy.js +0 -413
  47. package/dist/inputs-BOP8Ryne.js +0 -403
  48. package/dist/selection-CIEa1uce.js +0 -146
  49. package/dist/useControllable-Zax42z2F.js +0 -87
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Modern React 19 form controls and schema-driven forms with validation, value adapters, internationalization and customizable themes.
4
4
 
5
+ ## 1.0.5 enhancements
6
+
7
+ Theme-aware interaction states, shared form submission, remote selection, exact decimal strings, tags, autocomplete, mixed images and responsive layout. See [enhancements](docs/enhancements.md) for usage and limitations.
8
+
5
9
  ## Installation
6
10
 
7
11
  ```bash
@@ -130,8 +134,17 @@ import 'jaguar-form/style.css';
130
134
 
131
135
  `ControlGroup` controls layout only. `CompoundField` stores an object, supports conditional parts and parent-level validation in `Form` / `Form.Field`, and works with schema `transform`. Use `outlined`, `filled`, `underlined` or `borderless` (the existing control variants). Connected and inset default to group focus; separated defaults to individual focus. See [Compound controls](docs/compound.md) for the API and limitations.
132
136
 
133
- ## 1.0.4
137
+ ## 1.0.5
134
138
 
135
- This patch fixes rounded internal seams in connected control groups and retains the control height, outer radius, focus ring, and selection popup spacing refinements. See [release notes](docs/CHANGELOG-1.0.4.md).
139
+ This patch fixes rounded internal seams in connected control groups and retains the control height, outer radius, focus ring, and selection popup spacing refinements. See [release notes](docs/CHANGELOG-1.0.5.md).
136
140
 
137
141
  Refined default theme: 34/42/48px controls, 10px radius, cool neutral colors, leading required marks and date icons, compact image tiles. Date and time pickers support `iconPosition="end"` for the previous placement. Existing theme tokens and compound layouts remain configurable.
142
+
143
+ ### Floating label inputs
144
+
145
+ ```tsx
146
+ <FloatingInput label="Username" clearable />
147
+ <Password floatingLabel="Password" />
148
+ ```
149
+
150
+ Or use `<Input floatingLabel="Username" />`. The label moves to the top border on focus or when a value exists. Import `FloatingInput` from `jaguar-form` or `jaguar-form/input`.
@@ -0,0 +1,376 @@
1
+ import { useEffect as e, useId as t, useMemo as n, useRef as r, useState as i } from "react";
2
+ import { n as a, o, r as s, s as c } from "./selection-9NP9MXSn.js";
3
+ import { c as l, l as u, o as d, s as f, t as p } from "./useSelection-BUBndjzo.js";
4
+ import { t as m } from "./icons-D79FYcGF.js";
5
+ import { a as h } from "./useControllable-Dhp7tTjy.js";
6
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ // src/utils/remote-options.ts
8
+ function y(e, t, n) {
9
+ let r = {
10
+ options: [],
11
+ loading: !1,
12
+ error: !1,
13
+ hasMore: !1,
14
+ page: 0
15
+ }, i = "", a = 0, o, s, c = (e) => {
16
+ r = {
17
+ ...r,
18
+ ...e
19
+ }, n(r);
20
+ }, l = () => {
21
+ a++, o?.abort(), o = void 0, s !== void 0 && clearTimeout(s), s = void 0;
22
+ }, u = async (n) => {
23
+ let s = ++a;
24
+ o?.abort();
25
+ let l = new AbortController();
26
+ o = l, c({
27
+ loading: !0,
28
+ error: !1
29
+ });
30
+ try {
31
+ let o = await e({
32
+ keyword: i,
33
+ page: n,
34
+ signal: l.signal
35
+ });
36
+ if (s !== a || l.signal.aborted) return;
37
+ let u = /* @__PURE__ */ new Map();
38
+ for (let e of [...n === 1 ? [] : r.options, ...o.options]) u.set(t(e), e);
39
+ c({
40
+ options: [...u.values()],
41
+ page: n,
42
+ hasMore: o.hasMore,
43
+ loading: !1
44
+ });
45
+ } catch {
46
+ s === a && !l.signal.aborted && c({
47
+ error: !0,
48
+ loading: !1
49
+ });
50
+ }
51
+ };
52
+ return {
53
+ search(e, t = 0) {
54
+ l(), i = e, c({
55
+ options: [],
56
+ page: 0,
57
+ hasMore: !1,
58
+ error: !1,
59
+ loading: !0
60
+ }), s = setTimeout(() => {
61
+ s = void 0, u(1);
62
+ }, Math.max(0, t));
63
+ },
64
+ more() {
65
+ if (!r.loading && !r.error && r.hasMore) return u(r.page + 1);
66
+ },
67
+ retry() {
68
+ if (!r.loading && r.error) return u(r.page + 1);
69
+ },
70
+ cancel: l
71
+ };
72
+ }
73
+ // src/components/select/useRemoteOptions.ts
74
+ function ee(t, a, o, s, c, l) {
75
+ let [u, d] = i({
76
+ options: [],
77
+ loading: !1,
78
+ error: !1,
79
+ hasMore: !1,
80
+ page: 0
81
+ }), f = !!t, p = n(() => y((e) => t(e), (e) => e.value, d), [t]);
82
+ e(() => (f && a && p.search(o, s), p.cancel), [
83
+ p,
84
+ f,
85
+ a,
86
+ o,
87
+ s
88
+ ]);
89
+ let m = r(/* @__PURE__ */ new Map()), h = f ? u.options : l, g = /* @__PURE__ */ new Map();
90
+ for (let e of c) {
91
+ let t = m.current.get(e);
92
+ t && g.set(e, t);
93
+ }
94
+ for (let e of l) g.set(e.value, e);
95
+ for (let e of h) g.set(e.value, e);
96
+ return e(() => {
97
+ m.current = new Map(c.flatMap((e) => {
98
+ let t = g.get(e);
99
+ return t ? [[e, t]] : [];
100
+ }));
101
+ }, [
102
+ c,
103
+ l,
104
+ h
105
+ ]), {
106
+ options: h,
107
+ map: g,
108
+ loading: f && a && u.loading,
109
+ error: f && a && u.error,
110
+ hasMore: f && a && u.hasMore,
111
+ more: p.more,
112
+ retry: p.retry
113
+ };
114
+ }
115
+ // src/components/select/Select.tsx
116
+ function b(e) {
117
+ return /* @__PURE__ */ _(S, {
118
+ ...e,
119
+ multiple: !1
120
+ });
121
+ }
122
+ function x(e) {
123
+ return /* @__PURE__ */ _(S, {
124
+ ...e,
125
+ multiple: !0
126
+ });
127
+ }
128
+ var te = (e) => e.value;
129
+ function S(r) {
130
+ let { text: y, t: b } = h(), { open: x, changeOpen: S, committed: C, selected: w, update: T, confirm: ne, blocked: E, triggerReadOnly: D } = p(r), [O, k] = i(""), [A, j] = i(!1), [M, N] = i(-1), P = t(), F = `${P}-options`, I = (e) => `${P}-option-${e}`, L = r["aria-label"] ?? y.choose, R = ee(r.loadOptions, x, O, r.searchDebounce ?? 300, C.concat(w), r.options), z = R.map, B = r.optionsLoading || R.loading, V = n(() => new Set(w), [w]), H = (e) => z.get(e) ?? {
131
+ value: e,
132
+ label: String(e)
133
+ }, re = n(() => w.map(H), [w, z]), U = n(() => C.map(H), [C, z]), W = n(() => R.options.filter((e) => (e.searchText ?? (typeof e.label == "string" ? e.label : String(e.value))).toLocaleLowerCase().includes(O.toLocaleLowerCase()) || !!r.loadOptions), [
134
+ R.options,
135
+ O,
136
+ r.loadOptions
137
+ ]), G = (e) => !W[e]?.disabled, K = M >= 0 && M < W.length && G(M) ? M : a(W.length, -1, "Home", G), q = n(() => (r.selectAllScope === "all" ? R.options : W).filter((e) => !e.disabled).map((e) => e.value), [
138
+ R.options,
139
+ W,
140
+ r.selectAllScope
141
+ ]), J = q.filter((e) => V.has(e)).length, Y = q.length > 0 && J === q.length, X = !Y && V.size + q.length - J > (r.maxCount ?? 1e400), Z = Y ? "all" : J ? "partial" : "none";
142
+ e(() => {
143
+ x || (k(""), N(-1), j(!1));
144
+ }, [x]);
145
+ let Q = (e) => {
146
+ E || r.readOnly || e.disabled || (r.multiple ? T(d(w, [e.value], r.maxCount)) : (T([e.value]), r.needConfirm || S(!1)));
147
+ }, $ = () => T(w.filter((e) => z.get(e)?.disabled)), ie = (e) => {
148
+ z.get(e)?.disabled || T(w.filter((t) => t !== e));
149
+ }, ae = () => {
150
+ E || (x || S(!0), j(!0));
151
+ }, oe = (e) => {
152
+ !e.nativeEvent.isComposing && e.target instanceof HTMLElement && e.target.matches(".rfe-trigger-arrow") && ["ArrowDown", "ArrowUp"].includes(e.key) && (e.preventDefault(), N(a(W.length, -1, e.key, G)), S(!0));
153
+ }, se = (e) => {
154
+ if (e.nativeEvent.isComposing || e.keyCode === 229 || A) return;
155
+ let t = e.target;
156
+ t instanceof HTMLElement && t.matches(".rfe-search,.rfe-list,.rfe-option") && (t instanceof HTMLInputElement && [
157
+ "Home",
158
+ "End",
159
+ " "
160
+ ].includes(e.key) || ([
161
+ "ArrowDown",
162
+ "ArrowUp",
163
+ "Home",
164
+ "End"
165
+ ].includes(e.key) ? (e.preventDefault(), N(a(W.length, K, e.key, G))) : ["Enter", " "].includes(e.key) && K >= 0 && (e.preventDefault(), Q(W[K]))));
166
+ };
167
+ return /* @__PURE__ */ _(s, {
168
+ ...r,
169
+ layout: "selection",
170
+ open: x,
171
+ onOpenChange: S,
172
+ label: L,
173
+ trigger: (e, t) => /* @__PURE__ */ _("div", {
174
+ ref: t,
175
+ className: "rfe-anchor",
176
+ onKeyDown: oe,
177
+ onBlur: (e) => {
178
+ !x && !e.currentTarget.contains(e.relatedTarget) && r.onBlur?.();
179
+ },
180
+ children: /* @__PURE__ */ _(c, {
181
+ ...r,
182
+ actions: /* @__PURE__ */ v(g, { children: [r.clearable !== !1 && /* @__PURE__ */ _(o, {
183
+ name: "clear",
184
+ source: r.icons?.clear,
185
+ label: y.clear,
186
+ hidden: !C.length,
187
+ disabled: D,
188
+ onClick: $
189
+ }), /* @__PURE__ */ _("button", {
190
+ type: "button",
191
+ ...e,
192
+ id: r.id ?? P,
193
+ className: "rfe-trigger-arrow",
194
+ disabled: E,
195
+ "aria-invalid": r["aria-invalid"] ?? r.status === "error",
196
+ "aria-describedby": r["aria-describedby"],
197
+ "aria-label": L,
198
+ onClick: () => S(!x),
199
+ "data-open": x,
200
+ children: /* @__PURE__ */ _(m, {
201
+ name: "dropdown",
202
+ source: r.icons?.dropdown
203
+ })
204
+ })] }),
205
+ children: /* @__PURE__ */ _("div", {
206
+ className: "rfe-value",
207
+ onClick: () => S(!x),
208
+ children: r.multiple ? /* @__PURE__ */ _(l, {
209
+ options: U,
210
+ mode: r.displayMode,
211
+ maxTagCount: r.maxTagCount,
212
+ maxTagRows: r.maxTagRows,
213
+ onRemove: ie,
214
+ onInspect: ae,
215
+ readOnly: D,
216
+ placeholder: r.placeholder
217
+ }) : /* @__PURE__ */ _("span", {
218
+ className: U.length ? "rfe-single-value" : "rfe-placeholder",
219
+ children: U[0]?.label ?? r.placeholder ?? y.choose
220
+ })
221
+ })
222
+ })
223
+ }),
224
+ children: /* @__PURE__ */ v("div", {
225
+ className: "rfe-selection-body",
226
+ onKeyDown: se,
227
+ "data-selection-style": r.selectionStyle ?? (r.multiple ? "subtle" : "accent"),
228
+ children: [r.multiple && A ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("button", {
229
+ type: "button",
230
+ className: "rfe-link",
231
+ onClick: () => j(!1),
232
+ children: [/* @__PURE__ */ _(m, { name: "previous" }), y.choose]
233
+ }), /* @__PURE__ */ _(f, {
234
+ options: re,
235
+ onRemove: ie,
236
+ onClear: $,
237
+ readOnly: r.readOnly
238
+ })] }) : /* @__PURE__ */ v(g, { children: [
239
+ r.searchable !== !1 && /* @__PURE__ */ _("input", {
240
+ className: "rfe-search",
241
+ role: "combobox",
242
+ "aria-expanded": "true",
243
+ "aria-controls": W.length ? F : void 0,
244
+ "aria-activedescendant": K >= 0 ? I(K) : void 0,
245
+ "aria-autocomplete": "list",
246
+ "aria-label": y.search,
247
+ placeholder: y.search,
248
+ value: O,
249
+ onChange: (e) => {
250
+ k(e.target.value), N(-1);
251
+ }
252
+ }),
253
+ r.multiple && r.showSelectAll && !r.readOnly && /* @__PURE__ */ v("div", {
254
+ className: "rfe-toolbar",
255
+ children: [/* @__PURE__ */ v("button", {
256
+ type: "button",
257
+ className: "rfe-select-all",
258
+ role: "checkbox",
259
+ "aria-checked": Y ? !0 : J ? "mixed" : !1,
260
+ "aria-label": y.all,
261
+ title: X ? b("max", { max: r.maxCount ?? 0 }) : void 0,
262
+ disabled: !q.length || X,
263
+ onClick: () => T(d(w, q, r.maxCount)),
264
+ children: [/* @__PURE__ */ _("span", {
265
+ className: "rfe-option-check",
266
+ "data-checked": Z !== "none",
267
+ children: Z !== "none" && /* @__PURE__ */ _(m, { name: Z === "all" ? "check" : "minus" })
268
+ }), Y ? y.deselectAll : y.all]
269
+ }), /* @__PURE__ */ _("button", {
270
+ type: "button",
271
+ className: "rfe-link",
272
+ onClick: $,
273
+ children: y.clear
274
+ })]
275
+ }),
276
+ B && /* @__PURE__ */ v("div", {
277
+ className: "rfe-options-loading",
278
+ role: "status",
279
+ children: [/* @__PURE__ */ _(m, { name: "loading" }), y.loading]
280
+ }),
281
+ W.length ? /* @__PURE__ */ _(u, {
282
+ items: W,
283
+ getKey: te,
284
+ id: F,
285
+ role: "listbox",
286
+ label: L,
287
+ multiple: r.multiple,
288
+ tabIndex: 0,
289
+ activeIndex: K,
290
+ activeId: K >= 0 ? I(K) : void 0,
291
+ variableHeight: r.variableHeight,
292
+ render: (e, t) => /* @__PURE__ */ v("button", {
293
+ id: I(t),
294
+ type: "button",
295
+ role: "option",
296
+ tabIndex: -1,
297
+ "aria-selected": V.has(e.value),
298
+ "aria-posinset": t + 1,
299
+ "aria-setsize": W.length,
300
+ "data-active": K === t || void 0,
301
+ "data-selected": V.has(e.value) || void 0,
302
+ className: "rfe-option",
303
+ disabled: e.disabled || r.readOnly || E,
304
+ onMouseEnter: () => N(t),
305
+ onClick: () => Q(e),
306
+ children: [
307
+ r.multiple && /* @__PURE__ */ _("span", {
308
+ className: "rfe-option-check",
309
+ "data-checked": V.has(e.value),
310
+ children: V.has(e.value) && /* @__PURE__ */ _(m, { name: "check" })
311
+ }),
312
+ /* @__PURE__ */ _("span", {
313
+ className: "rfe-option-label",
314
+ children: r.renderOption ? r.renderOption(e, V.has(e.value)) : /* @__PURE__ */ v(g, { children: [
315
+ e.icon,
316
+ e.label,
317
+ e.description && /* @__PURE__ */ _("small", { children: e.description })
318
+ ] })
319
+ }),
320
+ !r.multiple && V.has(e.value) && /* @__PURE__ */ _(m, {
321
+ name: "check",
322
+ source: r.icons?.check
323
+ })
324
+ ]
325
+ })
326
+ }) : !B && !R.error && /* @__PURE__ */ v("div", {
327
+ className: "rfe-empty",
328
+ role: "status",
329
+ children: [/* @__PURE__ */ _(m, { name: "empty" }), y.empty]
330
+ }),
331
+ R.error && /* @__PURE__ */ _("button", {
332
+ type: "button",
333
+ className: "rfe-link",
334
+ onClick: () => void R.retry(),
335
+ children: y.retry
336
+ }),
337
+ R.hasMore && !R.error && /* @__PURE__ */ _("button", {
338
+ type: "button",
339
+ className: "rfe-link",
340
+ disabled: R.loading,
341
+ onClick: () => void R.more(),
342
+ children: y.next
343
+ })
344
+ ] }), (r.multiple || r.needConfirm) && /* @__PURE__ */ v("div", {
345
+ className: "rfe-footer",
346
+ children: [
347
+ /* @__PURE__ */ v("button", {
348
+ type: "button",
349
+ className: "rfe-link",
350
+ onClick: () => j(!A),
351
+ children: [
352
+ y.selected,
353
+ " ",
354
+ w.length
355
+ ]
356
+ }),
357
+ /* @__PURE__ */ _("span", { className: "rfe-spacer" }),
358
+ r.needConfirm && /* @__PURE__ */ _("button", {
359
+ type: "button",
360
+ className: "rfe-link",
361
+ onClick: () => S(!1),
362
+ children: y.cancel
363
+ }),
364
+ /* @__PURE__ */ _("button", {
365
+ className: "rfe-button",
366
+ "data-variant": "primary",
367
+ type: "button",
368
+ onClick: ne,
369
+ children: y.done
370
+ })
371
+ ]
372
+ })]
373
+ })
374
+ });
375
+ }
376
+ export { b as n, x as t };
@@ -1,9 +1,8 @@
1
1
  import { useEffect as e, useId as t, useLayoutEffect as n, useMemo as r, useRef as i, useState as a } from "react";
2
- import { n as o, t as s } from "./Control-B36bu6zQ.js";
3
- import { n as c, r as l } from "./selection-CIEa1uce.js";
4
- import { a as u, c as d, i as f, l as ee, n as te, o as p, r as ne, s as re, t as ie } from "./useSelection-C0OEFZUE.js";
5
- import { t as m } from "./icons-BI3fdIey.js";
6
- import { a as ae } from "./useControllable-Zax42z2F.js";
2
+ import { n as o, o as s, r as c, s as l } from "./selection-9NP9MXSn.js";
3
+ import { a as u, c as d, i as f, l as ee, n as te, o as p, r as ne, s as re, t as ie } from "./useSelection-BUBndjzo.js";
4
+ import { t as m } from "./icons-D79FYcGF.js";
5
+ import { a as ae } from "./useControllable-Dhp7tTjy.js";
7
6
  import { Fragment as oe, jsx as h, jsxs as g } from "react/jsx-runtime";
8
7
  // src/utils/lazy-tree.ts
9
8
  var _ = (e) => e.hasChildren === !0 && e.children === void 0, v = (e) => !!(e.children?.length || _(e));
@@ -194,7 +193,7 @@ function x(n) {
194
193
  "End"
195
194
  ].includes(e.key)) {
196
195
  e.preventDefault();
197
- let t = c(G.length, K, e.key, () => !0);
196
+ let t = o(G.length, K, e.key, () => !0);
198
197
  t >= 0 && F(G[t].node.value);
199
198
  return;
200
199
  }
@@ -210,7 +209,7 @@ function x(n) {
210
209
  }
211
210
  }
212
211
  };
213
- return /* @__PURE__ */ g(l, {
212
+ return /* @__PURE__ */ g(c, {
214
213
  ...n,
215
214
  layout: "selection",
216
215
  open: T,
@@ -223,7 +222,7 @@ function x(n) {
223
222
  onBlur: (e) => {
224
223
  !T && !e.currentTarget.contains(e.relatedTarget) && n.onBlur?.();
225
224
  },
226
- children: /* @__PURE__ */ h(o, {
225
+ children: /* @__PURE__ */ h(l, {
227
226
  ...n,
228
227
  actions: /* @__PURE__ */ g(oe, { children: [n.clearable !== !1 && /* @__PURE__ */ h(s, {
229
228
  name: "clear",
@@ -1,10 +1,10 @@
1
1
  import { Children as e, cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c } from "react";
2
- import { i as l, o as u, s as d, t as f } from "./useControllable-Zax42z2F.js";
3
- import { a as p, o as m, s as h, t as g } from "./inputs-BOP8Ryne.js";
4
- import { n as _, t as v } from "./Select-BG2H-YnK.js";
5
- import { t as y } from "./TreeSelect-CkPtMg-g.js";
6
- import { s as b, t as x } from "./pickers-C9QTR2XN.js";
7
- import { a as S, i as C } from "./selection-CIEa1uce.js";
2
+ import { i as l, o as u, s as d, t as f } from "./useControllable-Dhp7tTjy.js";
3
+ import { c as p, o as m, s as h, t as g } from "./inputs-Ch4x2nwn.js";
4
+ import { n as _, t as v } from "./Select-DiEHlcyU.js";
5
+ import { t as y } from "./TreeSelect-1jpd43zZ.js";
6
+ import { s as b, t as x } from "./pickers-D-ymAf_p.js";
7
+ import { a as S, i as C } from "./selection-9NP9MXSn.js";
8
8
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
9
9
  import { n as E } from "./validation-D6vk5NAv.js";
10
10
  // src/components/compound/ControlGroup.tsx
@@ -19,6 +19,7 @@ function O({ children: e, width: t, minWidth: n, maxWidth: r, flex: i, radius: a
19
19
  return /* @__PURE__ */ w("div", {
20
20
  className: d("rfe-control-group-item", l),
21
21
  "data-divider": c,
22
+ "data-auto-width": t === "auto" || void 0,
22
23
  style: {
23
24
  width: t,
24
25
  minWidth: n,
@@ -163,9 +164,9 @@ function F(e) {
163
164
  }
164
165
  // src/components/compound/index.tsx
165
166
  var I = {
166
- input: p,
167
- number: m,
168
- password: h,
167
+ input: m,
168
+ number: h,
169
+ password: p,
169
170
  select: _,
170
171
  multiSelect: v,
171
172
  treeSelect: y,
@@ -283,7 +284,7 @@ function U({ onSearch: e, buttonLabel: t, ...n }) {
283
284
  return /* @__PURE__ */ T(A, {
284
285
  ...n,
285
286
  children: [
286
- /* @__PURE__ */ w(p, {
287
+ /* @__PURE__ */ w(m, {
287
288
  value: String(i.value ?? ""),
288
289
  onChange: (e) => a({
289
290
  ...i,
package/dist/compound.js CHANGED
@@ -1 +1 @@
1
- export { t as CompoundField, f as ControlGroup, n as InputRange, r as InputSelect, i as NumberSelect, a as NumberUnit, o as SearchGroup, s as compoundDefaults, c as compoundRule, l as compoundValues, u as partDisabled, d as partVisible } from "./compound-D4_6P0d_.js";
1
+ export { t as CompoundField, f as ControlGroup, n as InputRange, r as InputSelect, i as NumberSelect, a as NumberUnit, o as SearchGroup, s as compoundDefaults, c as compoundRule, l as compoundValues, u as partDisabled, d as partVisible } from "./compound-BhkceJal.js";
package/dist/core.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { n as e, r as t, t as n } from "./validation-D6vk5NAv.js";
2
- import { _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, y as x } from "./store-DOn9K-EA.js";
2
+ import { _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, y as x } from "./store-BvcQ7xcl.js";
3
3
  export { m as changedOutputValues, _ as cloneValues, v as createFormStore, g as createPathAdapter, a as defineValueAdapter, o as editArray, p as equalValue, u as expandPaths, s as fieldSegments, i as getPathValue, h as hasPath, d as inputValues, f as isArrayIndex, n as isEmpty, l as isPlainRecord, c as normalizePaths, r as omitPaths, y as outputValues, b as readPath, e as validateRuleIssue, t as validateRules, x as writePath };
package/dist/date-time.js CHANGED
@@ -1 +1 @@
1
- export { t as DatePicker, n as DateRangePicker, r as DateTimePicker, i as DateTimeRangePicker, a as MonthPicker, o as MonthRangePicker, s as TimePicker, c as TimeRangePicker, l as YearPicker, u as YearRangePicker } from "./pickers-C9QTR2XN.js";
1
+ export { t as DatePicker, n as DateRangePicker, r as DateTimePicker, i as DateTimeRangePicker, a as MonthPicker, o as MonthRangePicker, s as TimePicker, c as TimeRangePicker, l as YearPicker, u as YearRangePicker } from "./pickers-D-ymAf_p.js";