@react-form-builder/components-rsuite 7.12.0 → 7.13.0

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.
@@ -1,7 +1,7 @@
1
- import { jsxs as i, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { define as s, string as t, boolean as m, event as e, fn as p, array as u, toLabeledValues as f } from "@react-form-builder/core";
1
+ import { jsx as o, jsxs as i } from "@emotion/react/jsx-runtime";
2
+ import { define as s, event as e, string as t, boolean as m, fn as p, array as u, toLabeledValues as f } from "@react-form-builder/core";
3
3
  import { AutoComplete as c } from "rsuite";
4
- import { i as d } from "./commonProperties-ETOgvhCH.js";
4
+ import { i as d } from "./commonProperties-X-t50qaZ.js";
5
5
  import { f as h } from "./categories-_98lyB3C.js";
6
6
  import { L as g } from "./Labeled-BWYRwMiY.js";
7
7
  const C = () => /* @__PURE__ */ i(
@@ -3,7 +3,7 @@ import { createElement as u } from "@emotion/react";
3
3
  import { define as f, event as a, array as d, string as h, oneOf as C } from "@react-form-builder/core";
4
4
  import { useCallback as b, useMemo as k } from "react";
5
5
  import { Checkbox as x, Breadcrumb as l } from "rsuite";
6
- import { a as g } from "./commonProperties-ETOgvhCH.js";
6
+ import { a as g } from "./commonProperties-X-t50qaZ.js";
7
7
  import { s as y } from "./categories-_98lyB3C.js";
8
8
  import B from "@emotion/styled";
9
9
  import { S as I, I as p } from "./InputCell-BDyUJFGm.js";
package/dist/button.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsx as l } from "@emotion/react/jsx-runtime";
2
- import { define as s, event as i, boolean as t, string as e, disabled as d, oneOf as u, useBuilderValue as f } from "@react-form-builder/core";
2
+ import { define as s, event as i, string as t, boolean as e, disabled as d, oneOf as u, useBuilderValue as f } from "@react-form-builder/core";
3
3
  import { Button as c } from "rsuite";
4
- import { s as m, c as p } from "./commonProperties-ETOgvhCH.js";
4
+ import { s as m, c as p } from "./commonProperties-X-t50qaZ.js";
5
5
  import { a as B } from "./categories-_98lyB3C.js";
6
6
  const o = "Button", b = ({ children: a, ...r }) => {
7
7
  const n = f(a, o);
8
8
  return /* @__PURE__ */ l(c, { ...r, children: n });
9
9
  }, v = s(b, "RsButton").name("Button").category(B).props({
10
- active: t.default(!1),
10
+ active: e.default(!1),
11
11
  appearance: u("default", "primary", "link", "subtle", "ghost").default("default").withEditorProps({ creatable: !1 }),
12
- children: e.required.default(o).dataBound,
12
+ children: t.required.default(o).dataBound,
13
13
  color: p,
14
14
  disabled: d.default(!1),
15
- href: e,
16
- loading: t.default(!1),
15
+ href: t,
16
+ loading: e.default(!1),
17
17
  size: m,
18
18
  onClick: i
19
19
  });
package/dist/calendar.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "@emotion/react/jsx-runtime";
2
- import { define as s, date as o, event as l, boolean as r, string as i } from "@react-form-builder/core";
2
+ import { define as s, date as o, event as l, string as i, boolean as r } from "@react-form-builder/core";
3
3
  import { Calendar as n } from "rsuite";
4
- import { r as m } from "./commonProperties-ETOgvhCH.js";
4
+ import { r as m } from "./commonProperties-X-t50qaZ.js";
5
5
  import { f as u } from "./categories-_98lyB3C.js";
6
6
  import { L as C } from "./Labeled-BWYRwMiY.js";
7
7
  const c = ({ label: t, style: d, className: f, ...e }) => /* @__PURE__ */ a(C, { label: t, style: d, className: f, passAriaToChildren: !0, children: e.readOnly ? /* @__PURE__ */ a(n, { ...e, onChange: void 0 }) : /* @__PURE__ */ a(n, { ...e }) }), x = s(c, "RsCalendar").name("Calendar").category(u).props({
package/dist/card.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
2
- import { define as i, event as m, string as o, boolean as r, node as s } from "@react-form-builder/core";
2
+ import { define as i, event as m, string as o, node as s, boolean as r } from "@react-form-builder/core";
3
3
  import { useMemo as u } from "react";
4
4
  import { Panel as p } from "rsuite";
5
- import { h as c } from "./commonProperties-ETOgvhCH.js";
5
+ import { h as c } from "./commonProperties-X-t50qaZ.js";
6
6
  import { s as h } from "./categories-_98lyB3C.js";
7
7
  import { RsHeader as C } from "./header.js";
8
8
  const S = ({ title: e, headerSize: a, header: t }) => /* @__PURE__ */ f("div", { children: [
package/dist/checkbox.js CHANGED
@@ -3,7 +3,7 @@ import a from "@emotion/styled";
3
3
  import { define as i, event as d, string as r, boolean as o, disabled as m } from "@react-form-builder/core";
4
4
  import { useMemo as f } from "react";
5
5
  import { Checkbox as t } from "rsuite";
6
- import { r as s } from "./commonProperties-ETOgvhCH.js";
6
+ import { r as s } from "./commonProperties-X-t50qaZ.js";
7
7
  import { f as c } from "./categories-_98lyB3C.js";
8
8
  import { r as h } from "./Labeled-BWYRwMiY.js";
9
9
  const u = a(t)`
@@ -1,4 +1,4 @@
1
- import { event as e, readOnly as i, disabled as o, oneOf as a, string as t, number as r, color as f, boolean as l, array as s, toLabeledValues as u } from "@react-form-builder/core";
1
+ import { event as e, string as t, disabled as o, readOnly as i, oneOf as a, number as r, color as f, boolean as l, array as s, toLabeledValues as u } from "@react-form-builder/core";
2
2
  const c = r.withEditorProps({ min: 0 }), p = r.withEditorProps({ min: 1 }), b = a(
3
3
  "bottomStart",
4
4
  "bottomEnd",
@@ -71,4 +71,4 @@ export {
71
71
  d as s,
72
72
  m as t
73
73
  };
74
- //# sourceMappingURL=commonProperties-ETOgvhCH.js.map
74
+ //# sourceMappingURL=commonProperties-X-t50qaZ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commonProperties-ETOgvhCH.js","sources":["../src/commonProperties.ts"],"sourcesContent":["import {\n array,\n boolean,\n color,\n disabled,\n event,\n number,\n oneOf,\n readOnly as readOnlyProp,\n string,\n toLabeledValues\n} from '@react-form-builder/core'\nimport type {TypeAttributes} from 'rsuite/esm/internals/types'\n\ntype Placement = TypeAttributes.Placement;\n\nexport const nonNegNumber = number.withEditorProps({min: 0})\n\nexport const positiveNumber = number.withEditorProps({min: 1})\n\nexport const placement = oneOf<Placement>(\n 'bottomStart',\n 'bottomEnd',\n 'topStart',\n 'topEnd',\n 'leftStart',\n 'rightStart',\n 'leftEnd',\n 'rightEnd'\n)\n\nexport const size = oneOf(\n 'xs',\n 'sm',\n 'md',\n 'lg'\n).labeled(\n 'Extra small',\n 'Small',\n 'Medium',\n 'Large'\n).default('md')\n .withEditorProps({creatable: false})\n\nexport const textStyles = {\n textAlign: oneOf('start', 'center', 'end')\n .default('start')\n .radio(),\n fontSize: nonNegNumber.default(14),\n fontWeight: oneOf('lighter', 'normal', 'bold').default('normal'),\n color,\n}\n\nexport const readOnly = readOnlyProp.default(false)\n\nexport const inputProps = {\n placeholder: string,\n size,\n disabled: disabled.default(false),\n readOnly,\n onChange: event,\n}\n\nexport const headerSize = oneOf('h1', 'h2', 'h3', 'h4', 'h5', 'h6')\n .default('h4')\n .withEditorProps({creatable: false})\n\nexport const navProps = {\n activeKey: string.default('Item1'),\n appearance: oneOf('default', 'tabs', 'subtle', 'pills')\n .default('default')\n .withEditorProps({creatable: false}),\n items: array.default(toLabeledValues(['Item1', 'Item2', 'Item3'])),\n justified: boolean.default(false),\n onSelect: event,\n reversed: boolean.default(false),\n vertical: boolean.default(false)\n}\n\nexport const pickerProps = {\n label: string,\n value: string.valued,\n placeholder: string,\n placement,\n size,\n data: array,\n cleanable: boolean.default(true),\n creatable: boolean.default(false),\n disabled: disabled.default(false),\n readOnly,\n groupBy: string.default(''),\n disableVirtualized: boolean,\n onLoadData: event,\n onSelect: event,\n onClean: event,\n onClose: event,\n onCreate: event,\n onChange: event,\n onSearch: event,\n}\n\nexport const controlColor = oneOf('red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'violet')\n .withEditorProps({creatable: false})\n"],"names":["nonNegNumber","number","positiveNumber","placement","oneOf","size","textStyles","color","readOnly","readOnlyProp","inputProps","string","disabled","event","headerSize","navProps","array","toLabeledValues","boolean","pickerProps","controlColor"],"mappings":";AAgBO,MAAMA,IAAeC,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAE9CC,IAAiBD,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAEhDE,IAAYC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAOD;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,QAAQ,IAAI,EACX,gBAAgB,EAAC,WAAW,IAAM,GAExBE,IAAa;AAAA,EACxB,WAAWF,EAAM,SAAS,UAAU,KAAK,EACtC,QAAQ,OAAO,EACf,MAAA;AAAA,EACH,UAAUJ,EAAa,QAAQ,EAAE;AAAA,EACjC,YAAYI,EAAM,WAAW,UAAU,MAAM,EAAE,QAAQ,QAAQ;AAAA,EAC/D,OAAAG;AACF,GAEaC,IAAWC,EAAa,QAAQ,EAAK,GAErCC,IAAa;AAAA,EACxB,aAAaC;AAAA,EACb,MAAAN;AAAA,EACA,UAAUO,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,UAAUK;AACZ,GAEaC,IAAaV,EAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,EAC/D,QAAQ,IAAI,EACZ,gBAAgB,EAAC,WAAW,IAAM,GAExBW,IAAW;AAAA,EACtB,WAAWJ,EAAO,QAAQ,OAAO;AAAA,EACjC,YAAYP,EAAM,WAAW,QAAQ,UAAU,OAAO,EACnD,QAAQ,SAAS,EACjB,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOY,EAAM,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,EACjE,WAAWC,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUL;AAAA,EACV,UAAUK,EAAQ,QAAQ,EAAK;AAAA,EAC/B,UAAUA,EAAQ,QAAQ,EAAK;AACjC,GAEaC,IAAc;AAAA,EACzB,OAAOR;AAAA,EACP,OAAOA,EAAO;AAAA,EACd,aAAaA;AAAA,EACb,WAAAR;AAAA,EACA,MAAAE;AAAA,EACA,MAAMW;AAAA,EACN,WAAWE,EAAQ,QAAQ,EAAI;AAAA,EAC/B,WAAWA,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUN,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,SAASG,EAAO,QAAQ,EAAE;AAAA,EAC1B,oBAAoBO;AAAA,EACpB,YAAYL;AAAA,EACZ,UAAUA;AAAA,EACV,SAASA;AAAA,EACT,SAASA;AAAA,EACT,UAAUA;AAAA,EACV,UAAUA;AAAA,EACV,UAAUA;AACZ,GAEaO,IAAehB,EAAM,OAAO,UAAU,UAAU,SAAS,QAAQ,QAAQ,QAAQ,EAC3F,gBAAgB,EAAC,WAAW,IAAM;"}
1
+ {"version":3,"file":"commonProperties-X-t50qaZ.js","sources":["../src/commonProperties.ts"],"sourcesContent":["import {\n array,\n boolean,\n color,\n disabled,\n event,\n number,\n oneOf,\n readOnly as readOnlyProp,\n string,\n toLabeledValues\n} from '@react-form-builder/core'\nimport type {TypeAttributes} from 'rsuite/esm/internals/types'\n\ntype Placement = TypeAttributes.Placement;\n\nexport const nonNegNumber = number.withEditorProps({min: 0})\n\nexport const positiveNumber = number.withEditorProps({min: 1})\n\nexport const placement = oneOf<Placement>(\n 'bottomStart',\n 'bottomEnd',\n 'topStart',\n 'topEnd',\n 'leftStart',\n 'rightStart',\n 'leftEnd',\n 'rightEnd'\n)\n\nexport const size = oneOf(\n 'xs',\n 'sm',\n 'md',\n 'lg'\n).labeled(\n 'Extra small',\n 'Small',\n 'Medium',\n 'Large'\n).default('md')\n .withEditorProps({creatable: false})\n\nexport const textStyles = {\n textAlign: oneOf('start', 'center', 'end')\n .default('start')\n .radio(),\n fontSize: nonNegNumber.default(14),\n fontWeight: oneOf('lighter', 'normal', 'bold').default('normal'),\n color,\n}\n\nexport const readOnly = readOnlyProp.default(false)\n\nexport const inputProps = {\n placeholder: string,\n size,\n disabled: disabled.default(false),\n readOnly,\n onChange: event,\n}\n\nexport const headerSize = oneOf('h1', 'h2', 'h3', 'h4', 'h5', 'h6')\n .default('h4')\n .withEditorProps({creatable: false})\n\nexport const navProps = {\n activeKey: string.default('Item1'),\n appearance: oneOf('default', 'tabs', 'subtle', 'pills')\n .default('default')\n .withEditorProps({creatable: false}),\n items: array.default(toLabeledValues(['Item1', 'Item2', 'Item3'])),\n justified: boolean.default(false),\n onSelect: event,\n reversed: boolean.default(false),\n vertical: boolean.default(false)\n}\n\nexport const pickerProps = {\n label: string,\n value: string.valued,\n placeholder: string,\n placement,\n size,\n data: array,\n cleanable: boolean.default(true),\n creatable: boolean.default(false),\n disabled: disabled.default(false),\n readOnly,\n groupBy: string.default(''),\n disableVirtualized: boolean,\n onLoadData: event,\n onSelect: event,\n onClean: event,\n onClose: event,\n onCreate: event,\n onChange: event,\n onSearch: event,\n}\n\nexport const controlColor = oneOf('red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'violet')\n .withEditorProps({creatable: false})\n"],"names":["nonNegNumber","number","positiveNumber","placement","oneOf","size","textStyles","color","readOnly","readOnlyProp","inputProps","string","disabled","event","headerSize","navProps","array","toLabeledValues","boolean","pickerProps","controlColor"],"mappings":";AAgBO,MAAMA,IAAeC,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAE9CC,IAAiBD,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAEhDE,IAAYC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAOD;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,QAAQ,IAAI,EACX,gBAAgB,EAAC,WAAW,IAAM,GAExBE,IAAa;AAAA,EACxB,WAAWF,EAAM,SAAS,UAAU,KAAK,EACtC,QAAQ,OAAO,EACf,MAAA;AAAA,EACH,UAAUJ,EAAa,QAAQ,EAAE;AAAA,EACjC,YAAYI,EAAM,WAAW,UAAU,MAAM,EAAE,QAAQ,QAAQ;AAAA,EAC/D,OAAAG;AACF,GAEaC,IAAWC,EAAa,QAAQ,EAAK,GAErCC,IAAa;AAAA,EACxB,aAAaC;AAAA,EACb,MAAAN;AAAA,EACA,UAAUO,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,UAAUK;AACZ,GAEaC,IAAaV,EAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,EAC/D,QAAQ,IAAI,EACZ,gBAAgB,EAAC,WAAW,IAAM,GAExBW,IAAW;AAAA,EACtB,WAAWJ,EAAO,QAAQ,OAAO;AAAA,EACjC,YAAYP,EAAM,WAAW,QAAQ,UAAU,OAAO,EACnD,QAAQ,SAAS,EACjB,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOY,EAAM,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,EACjE,WAAWC,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUL;AAAA,EACV,UAAUK,EAAQ,QAAQ,EAAK;AAAA,EAC/B,UAAUA,EAAQ,QAAQ,EAAK;AACjC,GAEaC,IAAc;AAAA,EACzB,OAAOR;AAAA,EACP,OAAOA,EAAO;AAAA,EACd,aAAaA;AAAA,EACb,WAAAR;AAAA,EACA,MAAAE;AAAA,EACA,MAAMW;AAAA,EACN,WAAWE,EAAQ,QAAQ,EAAI;AAAA,EAC/B,WAAWA,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUN,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,SAASG,EAAO,QAAQ,EAAE;AAAA,EAC1B,oBAAoBO;AAAA,EACpB,YAAYL;AAAA,EACZ,UAAUA;AAAA,EACV,SAASA;AAAA,EACT,SAASA;AAAA,EACT,UAAUA;AAAA,EACV,UAAUA;AAAA,EACV,UAAUA;AACZ,GAEaO,IAAehB,EAAM,OAAO,UAAU,UAAU,SAAS,QAAQ,QAAQ,QAAQ,EAC3F,gBAAgB,EAAC,WAAW,IAAM;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as f } from "@emotion/react/jsx-runtime";
2
- import { define as b, date as n, boolean as t, string as r, event as e, number as m, disabled as C, oneOf as T, useComponentData as y } from "@react-form-builder/core";
2
+ import { define as b, date as n, string as r, event as e, boolean as t, number as m, disabled as C, oneOf as T, useComponentData as y } from "@react-form-builder/core";
3
3
  import { useMemo as p, useEffect as k } from "react";
4
4
  import { DatePicker as w } from "rsuite";
5
- import { s as M, p as O, r as P } from "./commonProperties-ETOgvhCH.js";
5
+ import { s as M, p as O, r as P } from "./commonProperties-X-t50qaZ.js";
6
6
  import { f as v, t as x } from "./dateTimeUtils-C2AEniv5.js";
7
7
  import { f as V } from "./categories-_98lyB3C.js";
8
8
  import { u as N } from "./useTouchOnEvent-BPYbKiku.js";
package/dist/dropdown.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as y, Fragment as k, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { define as x, array as L, string as h, boolean as w, toLabeledValues as C } from "@react-form-builder/core";
2
+ import { define as x, array as L, toLabeledValues as h, string as w, boolean as C } from "@react-form-builder/core";
3
3
  import { useCallback as D } from "react";
4
4
  import { Loader as P, InputPicker as j } from "rsuite";
5
- import { b as v } from "./commonProperties-ETOgvhCH.js";
5
+ import { b as v } from "./commonProperties-X-t50qaZ.js";
6
6
  import { u as A, a as F } from "./hooks-DMVtrI-b.js";
7
7
  import { f as R } from "./categories-_98lyB3C.js";
8
8
  import { u as I } from "./useTouchOnEvent-BPYbKiku.js";
@@ -37,18 +37,18 @@ const E = T(P)`
37
37
  return /* @__PURE__ */ o(S, { label: a, className: l, passAriaToChildren: !0, children: /* @__PURE__ */ o(
38
38
  j,
39
39
  {
40
- ref: u,
41
40
  ...r,
42
41
  ...c,
43
42
  onClean: f,
44
- renderMenu: b
43
+ renderMenu: b,
44
+ ref: u
45
45
  }
46
46
  ) });
47
47
  }, Q = x(M, "RsDropdown").name("Dropdown").category(R).props({
48
48
  ...v,
49
- preload: w.default(!1),
50
- label: h.default("Select"),
51
- data: L.default(C(["a", "b", "c"]))
49
+ preload: C.default(!1),
50
+ label: w.default("Select"),
51
+ data: L.default(h(["a", "b", "c"]))
52
52
  });
53
53
  export {
54
54
  Q as rsDropdown
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","sources":["../src/components/internal/SLoader.tsx","../src/components/RsDropdown.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport {Loader} from 'rsuite'\n\nexport const SLoader = styled(Loader)`\n && {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n background: var(--rs-bg-overlay);\n width: 100%;\n padding-block: 10px;\n }\n`\n","import {array, boolean, define, string, toLabeledValues} from '@react-form-builder/core'\nimport type {ReactNode} from 'react'\nimport {useCallback} from 'react'\nimport type {InputPickerProps} from 'rsuite'\nimport {InputPicker} from 'rsuite'\nimport {pickerProps} from '../commonProperties'\nimport type {LoadDataProps} from '../hooks'\nimport {useFixAriaAttributesForInputPicker, useLoadData} from '../hooks'\nimport {fieldsCategory} from './categories'\nimport {useTouchOnEvent} from './hooks/useTouchOnEvent'\nimport {Labeled} from './internal/Labeled'\nimport {SLoader} from './internal/SLoader'\n\n/**\n * Props for the RsDropdown component.\n */\nexport interface RsDropdownProps extends InputPickerProps, LoadDataProps {\n /**\n * The label for the dropdown.\n */\n label: string\n /**\n * The htmlSize attribute defines the width of the &laquo;input> element.\n */\n htmlSize?: number\n /**\n * Called after the value has been changed.\n * @param value the value.\n */\n onChange?: (value: any) => void\n}\n\n/**\n * Dropdown component with label and data loading support.\n * @param props the component props.\n * @param props.data the data for the dropdown.\n * @param props.label the label for the dropdown.\n * @param props.onLoadData the callback for loading data.\n * @param props.onSearch the callback for search.\n * @param props.onOpen the callback for open.\n * @param props.value the value of the dropdown.\n * @param props.className the css class name.\n * @param props.preload whether to preload data.\n * @param props.disableVirtualized whether to disable virtualization.\n * @param props.props the additional dropdown props.\n * @returns the React element.\n */\nconst RsDropdown = ({\n data,\n label,\n onLoadData,\n onSearch,\n onOpen,\n value = '',\n className,\n preload,\n disableVirtualized,\n ...props\n }: RsDropdownProps) => {\n const {loading, ...loadProps} = useLoadData({data, onLoadData, onSearch, onOpen, value, preload, disableVirtualized})\n const onClean = useTouchOnEvent(props, 'onClean')\n const inputRef = useFixAriaAttributesForInputPicker()\n\n const renderMenu = useCallback((menu: ReactNode) => <>\n {menu}\n {loading && <SLoader/>}\n </>, [loading])\n\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <InputPicker\n ref={inputRef}\n {...props}\n {...loadProps}\n onClean={onClean}\n renderMenu={renderMenu}\n />\n </Labeled>\n )\n}\n\nexport const rsDropdown = define(RsDropdown, 'RsDropdown')\n .name('Dropdown')\n .category(fieldsCategory)\n .props({\n ...pickerProps,\n preload: boolean.default(false),\n label: string.default('Select'),\n data: array.default(toLabeledValues(['a', 'b', 'c']))\n })\n"],"names":["SLoader","styled","Loader","RsDropdown","data","label","onLoadData","onSearch","onOpen","value","className","preload","disableVirtualized","props","loading","loadProps","useLoadData","onClean","useTouchOnEvent","inputRef","useFixAriaAttributesForInputPicker","renderMenu","useCallback","menu","jsxs","Fragment","jsx","Labeled","InputPicker","rsDropdown","define","fieldsCategory","pickerProps","boolean","string","array","toLabeledValues"],"mappings":";;;;;;;;;;AAGO,MAAMA,IAAUC,EAAOC,CAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GC4C9BC,IAAa,CAAC;AAAA,EACE,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,GAAGC;AACL,MAAuB;AACzC,QAAM,EAAC,SAAAC,GAAS,GAAGC,EAAA,IAAaC,EAAY,EAAC,MAAAZ,GAAM,YAAAE,GAAY,UAAAC,GAAU,QAAAC,GAAQ,OAAAC,GAAO,SAAAE,GAAS,oBAAAC,GAAmB,GAC9GK,IAAUC,EAAgBL,GAAO,SAAS,GAC1CM,IAAWC,EAAA,GAEXC,IAAaC,EAAY,CAACC,MAAoB,gBAAAC,EAAAC,GAAA,EACjD,UAAA;AAAA,IAAAF;AAAA,IACAT,uBAAYd,GAAA,CAAA,CAAO;AAAA,EAAA,GACtB,GAAK,CAACc,CAAO,CAAC;AAEd,SACE,gBAAAY,EAACC,GAAA,EAAQ,OAAAtB,GAAc,WAAAK,GAAsB,oBAAoB,IAC/D,UAAA,gBAAAgB;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,KAAKT;AAAA,MACJ,GAAGN;AAAA,MACH,GAAGE;AAAA,MACJ,SAAAE;AAAA,MACA,YAAAI;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ,GAEaQ,IAAaC,EAAO3B,GAAY,YAAY,EACtD,KAAK,UAAU,EACf,SAAS4B,CAAc,EACvB,MAAM;AAAA,EACL,GAAGC;AAAA,EACH,SAASC,EAAQ,QAAQ,EAAK;AAAA,EAC9B,OAAOC,EAAO,QAAQ,QAAQ;AAAA,EAC9B,MAAMC,EAAM,QAAQC,EAAgB,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;AACtD,CAAC;"}
1
+ {"version":3,"file":"dropdown.js","sources":["../src/components/internal/SLoader.tsx","../src/components/RsDropdown.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport {Loader} from 'rsuite'\n\nexport const SLoader = styled(Loader)`\n && {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n background: var(--rs-bg-overlay);\n width: 100%;\n padding-block: 10px;\n }\n`\n","import {array, boolean, define, string, toLabeledValues} from '@react-form-builder/core'\nimport type {ReactNode} from 'react'\nimport {useCallback} from 'react'\nimport type {InputPickerProps} from 'rsuite'\nimport {InputPicker} from 'rsuite'\nimport {pickerProps} from '../commonProperties'\nimport type {LoadDataProps} from '../hooks'\nimport {useFixAriaAttributesForInputPicker, useLoadData} from '../hooks'\nimport {fieldsCategory} from './categories'\nimport {useTouchOnEvent} from './hooks/useTouchOnEvent'\nimport {Labeled} from './internal/Labeled'\nimport {SLoader} from './internal/SLoader'\n\n/**\n * Props for the RsDropdown component.\n */\nexport interface RsDropdownProps extends InputPickerProps, LoadDataProps {\n /**\n * The label for the dropdown.\n */\n label: string\n /**\n * The htmlSize attribute defines the width of the &laquo;input> element.\n */\n htmlSize?: number\n /**\n * Called after the value has been changed.\n * @param value the value.\n */\n onChange?: (value: any) => void\n}\n\n/**\n * Dropdown component with label and data loading support.\n * @param props the component props.\n * @param props.data the data for the dropdown.\n * @param props.label the label for the dropdown.\n * @param props.onLoadData the callback for loading data.\n * @param props.onSearch the callback for search.\n * @param props.onOpen the callback for open.\n * @param props.value the value of the dropdown.\n * @param props.className the css class name.\n * @param props.preload whether to preload data.\n * @param props.disableVirtualized whether to disable virtualization.\n * @param props.props the additional dropdown props.\n * @returns the React element.\n */\nconst RsDropdown = ({\n data,\n label,\n onLoadData,\n onSearch,\n onOpen,\n value = '',\n className,\n preload,\n disableVirtualized,\n ...props\n }: RsDropdownProps) => {\n const {loading, ...loadProps} = useLoadData({data, onLoadData, onSearch, onOpen, value, preload, disableVirtualized})\n const onClean = useTouchOnEvent(props, 'onClean')\n const inputRef = useFixAriaAttributesForInputPicker()\n\n const renderMenu = useCallback((menu: ReactNode) => <>\n {menu}\n {loading && <SLoader/>}\n </>, [loading])\n\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <InputPicker\n {...props}\n {...loadProps}\n onClean={onClean}\n renderMenu={renderMenu}\n ref={inputRef}\n />\n </Labeled>\n )\n}\n\nexport const rsDropdown = define(RsDropdown, 'RsDropdown')\n .name('Dropdown')\n .category(fieldsCategory)\n .props({\n ...pickerProps,\n preload: boolean.default(false),\n label: string.default('Select'),\n data: array.default(toLabeledValues(['a', 'b', 'c']))\n })\n"],"names":["SLoader","styled","Loader","RsDropdown","data","label","onLoadData","onSearch","onOpen","value","className","preload","disableVirtualized","props","loading","loadProps","useLoadData","onClean","useTouchOnEvent","inputRef","useFixAriaAttributesForInputPicker","renderMenu","useCallback","menu","jsxs","Fragment","jsx","Labeled","InputPicker","rsDropdown","define","fieldsCategory","pickerProps","boolean","string","array","toLabeledValues"],"mappings":";;;;;;;;;;AAGO,MAAMA,IAAUC,EAAOC,CAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GC4C9BC,IAAa,CAAC;AAAA,EACE,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,GAAGC;AACL,MAAuB;AACzC,QAAM,EAAC,SAAAC,GAAS,GAAGC,EAAA,IAAaC,EAAY,EAAC,MAAAZ,GAAM,YAAAE,GAAY,UAAAC,GAAU,QAAAC,GAAQ,OAAAC,GAAO,SAAAE,GAAS,oBAAAC,GAAmB,GAC9GK,IAAUC,EAAgBL,GAAO,SAAS,GAC1CM,IAAWC,EAAA,GAEXC,IAAaC,EAAY,CAACC,MAAoB,gBAAAC,EAAAC,GAAA,EACjD,UAAA;AAAA,IAAAF;AAAA,IACAT,uBAAYd,GAAA,CAAA,CAAO;AAAA,EAAA,GACtB,GAAK,CAACc,CAAO,CAAC;AAEd,SACE,gBAAAY,EAACC,GAAA,EAAQ,OAAAtB,GAAc,WAAAK,GAAsB,oBAAoB,IAC/D,UAAA,gBAAAgB;AAAA,IAACE;AAAA,IAAA;AAAA,MACE,GAAGf;AAAA,MACH,GAAGE;AAAA,MACJ,SAAAE;AAAA,MACA,YAAAI;AAAA,MACA,KAAKF;AAAA,IAAA;AAAA,EAAA,GAET;AAEJ,GAEaU,IAAaC,EAAO3B,GAAY,YAAY,EACtD,KAAK,UAAU,EACf,SAAS4B,CAAc,EACvB,MAAM;AAAA,EACL,GAAGC;AAAA,EACH,SAASC,EAAQ,QAAQ,EAAK;AAAA,EAC9B,OAAOC,EAAO,QAAQ,QAAQ;AAAA,EAC9B,MAAMC,EAAM,QAAQC,EAAgB,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;AACtD,CAAC;"}
@@ -3,7 +3,7 @@ import { cx as c } from "@emotion/css";
3
3
  import e from "@emotion/styled";
4
4
  import { define as p, string as l, useAriaErrorMessage as d } from "@react-form-builder/core";
5
5
  import { Form as g } from "rsuite";
6
- import { p as f } from "./commonProperties-ETOgvhCH.js";
6
+ import { p as f } from "./commonProperties-X-t50qaZ.js";
7
7
  import { a as h } from "./categories-_98lyB3C.js";
8
8
  const x = e.div`
9
9
  display: flex;
package/dist/header.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { define as s, string as n, color as d, useBuilderValue as c } from "@react-form-builder/core";
2
2
  import { createElement as i } from "react";
3
- import { h as l, t as m } from "./commonProperties-ETOgvhCH.js";
3
+ import { h as l, t as m } from "./commonProperties-X-t50qaZ.js";
4
4
  import { a as u } from "./categories-_98lyB3C.js";
5
5
  const e = "Header", f = ({ content: r, headerSize: t, ...o }) => {
6
6
  const a = c(r, e);
package/dist/index.d.ts CHANGED
@@ -2202,7 +2202,7 @@ export declare interface RsUploaderProps extends UploaderProps {
2202
2202
  label?: string;
2203
2203
  }
2204
2204
 
2205
- export declare const rsWizard: Definer<RsWizardProps>;
2205
+ export declare const rsWizard: Definer<Omit<RsWizardProps, "ref"> & RefAttributes<HTMLDivElement>>;
2206
2206
 
2207
2207
  /**
2208
2208
  * Props for the RsWizard component.
@@ -2243,11 +2243,11 @@ export declare interface RsWizardProps extends PropsWithChildren<any> {
2243
2243
  /**
2244
2244
  * Whether to validate on next.
2245
2245
  */
2246
- validateOnNext: boolean;
2246
+ validateOnNext?: boolean;
2247
2247
  /**
2248
2248
  * Whether to validate on finish.
2249
2249
  */
2250
- validateOnFinish: boolean;
2250
+ validateOnFinish?: boolean;
2251
2251
  /**
2252
2252
  * Callback when step changes.
2253
2253
  */
@@ -2255,15 +2255,15 @@ export declare interface RsWizardProps extends PropsWithChildren<any> {
2255
2255
  /**
2256
2256
  * Callback when next button is clicked.
2257
2257
  */
2258
- onNext?: () => void;
2258
+ onNext?: (event: SyntheticEvent) => void;
2259
2259
  /**
2260
2260
  * Callback when previous button is clicked.
2261
2261
  */
2262
- onPrev?: () => void;
2262
+ onPrev?: (event: SyntheticEvent) => void;
2263
2263
  /**
2264
2264
  * Callback when finish button is clicked.
2265
2265
  */
2266
- onFinish?: () => void;
2266
+ onFinish?: (event: SyntheticEvent) => void;
2267
2267
  }
2268
2268
 
2269
2269
  export declare const rsWizardStep: Definer< {
package/dist/input.js CHANGED
@@ -3,7 +3,7 @@ import { define as C, string as s, boolean as g, oneOf as y, useComponentData as
3
3
  import { Visible as V, EyeClose as k } from "@rsuite/icons";
4
4
  import { useState as L, useCallback as j } from "react";
5
5
  import { InputGroup as n, Input as p } from "rsuite";
6
- import { i as P } from "./commonProperties-ETOgvhCH.js";
6
+ import { i as P } from "./commonProperties-X-t50qaZ.js";
7
7
  import { f as R } from "./categories-_98lyB3C.js";
8
8
  import { L as S } from "./Labeled-BWYRwMiY.js";
9
9
  const B = ({ style: u, className: d, label: o, passwordMask: m, showPasswordAriaLabel: f, type: c, value: r, ...a }) => {
package/dist/label.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "@emotion/react/jsx-runtime";
2
2
  import { define as s, string as l, useBuilderValue as n } from "@react-form-builder/core";
3
- import { t as m } from "./commonProperties-ETOgvhCH.js";
3
+ import { t as m } from "./commonProperties-X-t50qaZ.js";
4
4
  import { a as c } from "./categories-_98lyB3C.js";
5
5
  const e = "Label", i = ({ text: t, ...o }) => {
6
6
  const a = n(t, e);
package/dist/link.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as s } from "@emotion/react/jsx-runtime";
2
- import { define as d, event as f, string as t, boolean as c, oneOf as e, node as m } from "@react-form-builder/core";
3
- import { t as p } from "./commonProperties-ETOgvhCH.js";
2
+ import { define as d, event as f, string as t, node as c, boolean as m, oneOf as e } from "@react-form-builder/core";
3
+ import { t as p } from "./commonProperties-X-t50qaZ.js";
4
4
  import { a as k } from "./categories-_98lyB3C.js";
5
5
  const x = ({ text: o, download: n, downloadFilename: a, content: r, children: i, ...l }) => /* @__PURE__ */ s("a", { ...l, download: a ?? n, children: r === "text" ? o : i }), g = d(x, "RsLink").name("Link").category(k).props({
6
6
  content: e("text", "custom").default("text").radio(),
7
7
  text: t.default("Link"),
8
8
  href: t,
9
- children: m,
9
+ children: c,
10
10
  target: e("_self", "_blank", "_parent", "_top", "_unfencedTop").default("_blank").withEditorProps({ creatable: !1 }),
11
- download: c.default(!1),
11
+ download: m.default(!1),
12
12
  downloadFilename: t,
13
13
  onClick: f
14
14
  }).css({
package/dist/menu.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as s } from "@emotion/react/jsx-runtime";
2
2
  import { define as f, array as d, oneOf as h, useComponentData as v } from "@react-form-builder/core";
3
3
  import { useCallback as y } from "react";
4
4
  import { Nav as i } from "rsuite";
5
- import { n as b } from "./commonProperties-ETOgvhCH.js";
5
+ import { n as b } from "./commonProperties-X-t50qaZ.js";
6
6
  import { a as P } from "./categories-_98lyB3C.js";
7
7
  import { I as m } from "./InputCell-BDyUJFGm.js";
8
8
  const g = (a) => a.map((t) => ({ title: t, href: `#${t}` })), w = /* @__PURE__ */ new Set([
package/dist/message.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import s from "@emotion/styled";
2
- import { define as o, oneOf as r, node as e, boolean as a } from "@react-form-builder/core";
2
+ import { define as o, node as e, oneOf as r, boolean as a } from "@react-form-builder/core";
3
3
  import { Message as t } from "rsuite";
4
4
  import { a as i } from "./categories-_98lyB3C.js";
5
5
  const f = s(t)`
package/dist/modal.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as u } from "@emotion/react/jsx-runtime";
2
- import { oneOf as f, define as c, event as r, boolean as o, string as e } from "@react-form-builder/core";
2
+ import { oneOf as f, define as c, event as r, string as e, boolean as o } from "@react-form-builder/core";
3
3
  import { useCallback as i } from "react";
4
4
  import { Modal as p } from "rsuite";
5
5
  import { m as C } from "./categories-_98lyB3C.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as m } from "@emotion/react/jsx-runtime";
2
- import { define as f, string as o, oneOf as p, boolean as n, array as h, number as S, isString as b } from "@react-form-builder/core";
2
+ import { define as f, string as o, array as p, number as h, oneOf as S, boolean as n, isString as b } from "@react-form-builder/core";
3
3
  import { useCallback as g } from "react";
4
4
  import { NumericFormat as N } from "react-number-format";
5
- import { a as w, i as x } from "./commonProperties-ETOgvhCH.js";
5
+ import { a as w, i as x } from "./commonProperties-X-t50qaZ.js";
6
6
  import { f as y } from "./categories-_98lyB3C.js";
7
7
  import { L as F } from "./Labeled-BWYRwMiY.js";
8
8
  import { W as D } from "./WrappedInput-BRkBjl0z.js";
@@ -31,9 +31,9 @@ const C = ({ style: t, className: r, label: a, onChange: i, value: e, ...s }) =>
31
31
  ) });
32
32
  }, j = f(C, "RsNumberFormat").name("Number format").category(y).props({
33
33
  label: o.default("Number input"),
34
- value: S.valued,
34
+ value: h.valued,
35
35
  ...x,
36
- allowedDecimalSeparators: h.ofString,
36
+ allowedDecimalSeparators: p.ofString,
37
37
  allowLeadingZeros: n.default(!1),
38
38
  allowNegative: n.default(!0),
39
39
  decimalScale: w,
@@ -41,7 +41,7 @@ const C = ({ style: t, className: r, label: a, onChange: i, value: e, ...s }) =>
41
41
  fixedDecimalScale: n.default(!1),
42
42
  prefix: o,
43
43
  suffix: o,
44
- thousandsGroupStyle: p("thousand", "lakh", "wan", "none").default("none"),
44
+ thousandsGroupStyle: S("thousand", "lakh", "wan", "none").default("none"),
45
45
  thousandSeparator: o
46
46
  });
47
47
  export {
@@ -1,8 +1,8 @@
1
1
  import { jsx as m } from "@emotion/react/jsx-runtime";
2
- import { define as u, boolean as d, string as a } from "@react-form-builder/core";
2
+ import { define as u, string as a, boolean as d } from "@react-form-builder/core";
3
3
  import { useCallback as c } from "react";
4
4
  import { PatternFormat as g } from "react-number-format";
5
- import { i as h } from "./commonProperties-ETOgvhCH.js";
5
+ import { i as h } from "./commonProperties-X-t50qaZ.js";
6
6
  import { f as k } from "./categories-_98lyB3C.js";
7
7
  import { L as F } from "./Labeled-BWYRwMiY.js";
8
8
  import { W as P } from "./WrappedInput-BRkBjl0z.js";
@@ -1,18 +1,18 @@
1
1
  import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { define as u, string as a, array as p, event as n, boolean as m, disabled as c, oneOf as b, toLabeledValues as R } from "@react-form-builder/core";
2
+ import { define as u, string as a, event as p, array as n, toLabeledValues as m, boolean as c, disabled as b, oneOf as R } from "@react-form-builder/core";
3
3
  import { RadioGroup as h, Radio as g } from "rsuite";
4
- import { r as v } from "./commonProperties-ETOgvhCH.js";
4
+ import { r as v } from "./commonProperties-X-t50qaZ.js";
5
5
  import { f as G } from "./categories-_98lyB3C.js";
6
6
  import { L as y } from "./Labeled-BWYRwMiY.js";
7
7
  const C = ({ items: o, label: l, value: d, className: i, ...t }) => /* @__PURE__ */ e(y, { label: l, className: i, passAriaToChildren: !0, children: /* @__PURE__ */ e(h, { ...t, value: d ?? "", children: o.map(({ value: r, label: f }, s) => /* @__PURE__ */ e(g, { value: r, children: f ?? r }, s)) }) }), w = u(C, "RsRadioGroup").name("Radio group").category(G).props({
8
8
  name: a.default("RadioGroup"),
9
- appearance: b("default", "picker").labeled("Default", "Picker").default("default").withEditorProps({ creatable: !1 }),
9
+ appearance: R("default", "picker").labeled("Default", "Picker").default("default").withEditorProps({ creatable: !1 }),
10
10
  label: a.default("Radio"),
11
- disabled: c.default(!1),
11
+ disabled: b.default(!1),
12
12
  readOnly: v,
13
- inline: m.default(!1),
14
- onChange: n,
15
- items: p.default(R(["a", "b", "c"])),
13
+ inline: c.default(!1),
14
+ onChange: p,
15
+ items: n.default(m(["a", "b", "c"])),
16
16
  value: a.valued
17
17
  });
18
18
  export {
package/dist/search.js CHANGED
@@ -4,7 +4,7 @@ import { define as P, string as s, boolean as y, useComponentData as I, useAriaA
4
4
  import { Search as R } from "@rsuite/icons";
5
5
  import { useCallback as j, useMemo as D } from "react";
6
6
  import { InputPicker as F, Loader as M } from "rsuite";
7
- import { b as O } from "./commonProperties-ETOgvhCH.js";
7
+ import { b as O } from "./commonProperties-X-t50qaZ.js";
8
8
  import { u as T, a as w } from "./hooks-DMVtrI-b.js";
9
9
  import { f as z } from "./categories-_98lyB3C.js";
10
10
  import { u as E } from "./useTouchOnEvent-BPYbKiku.js";
package/dist/tab.js CHANGED
@@ -3,7 +3,7 @@ import b from "@emotion/styled";
3
3
  import { define as v, node as f, boolean as y, array as h, toLabeledValues as g, useComponentData as K } from "@react-form-builder/core";
4
4
  import { useCallback as C } from "react";
5
5
  import { Nav as i } from "rsuite";
6
- import { n as I } from "./commonProperties-ETOgvhCH.js";
6
+ import { n as I } from "./commonProperties-X-t50qaZ.js";
7
7
  import { s as T } from "./categories-_98lyB3C.js";
8
8
  const x = b(i)({
9
9
  ".builder & .rs-nav-item": {
@@ -2,7 +2,7 @@ import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import { define as p, array as s, toLabeledValues as i } from "@react-form-builder/core";
3
3
  import { useRef as d, useEffect as g, useMemo as P } from "react";
4
4
  import { TagPicker as T } from "rsuite";
5
- import { b as n } from "./commonProperties-ETOgvhCH.js";
5
+ import { b as n } from "./commonProperties-X-t50qaZ.js";
6
6
  import { s as b } from "./hooks-DMVtrI-b.js";
7
7
  import { f as k } from "./categories-_98lyB3C.js";
8
8
  import { u as h } from "./useTouchOnEvent-BPYbKiku.js";
package/dist/text-area.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "@emotion/react/jsx-runtime";
2
- import { define as d, event as a, disabled as i, string as e } from "@react-form-builder/core";
2
+ import { define as d, event as a, string as e, disabled as i } from "@react-form-builder/core";
3
3
  import { Input as f } from "rsuite";
4
- import { r as m, s as n, d as p } from "./commonProperties-ETOgvhCH.js";
4
+ import { r as m, s as n, d as p } from "./commonProperties-X-t50qaZ.js";
5
5
  import { f as u } from "./categories-_98lyB3C.js";
6
6
  import { L as x } from "./Labeled-BWYRwMiY.js";
7
7
  const T = ({ style: t, className: s, label: o, ...l }) => /* @__PURE__ */ r(x, { label: o, style: t, className: s, passAriaToChildren: !0, children: /* @__PURE__ */ r(f, { as: "textarea", ...l }) }), y = d(T, "RsTextArea").name("Text area").category(u).props({
@@ -1,9 +1,9 @@
1
1
  import { jsx as u } from "@emotion/react/jsx-runtime";
2
- import { define as P, event as e, boolean as m, disabled as V, string as l, time as T, isNull as v, timeFormat as o } from "@react-form-builder/core";
2
+ import { define as P, event as e, boolean as m, time as T, string as l, disabled as V, isNull as v, timeFormat as o } from "@react-form-builder/core";
3
3
  import { format as x, parse as y } from "date-fns";
4
4
  import { useMemo as a, useCallback as F } from "react";
5
5
  import { DatePicker as H } from "rsuite";
6
- import { s as I, p as w, r as A } from "./commonProperties-ETOgvhCH.js";
6
+ import { s as I, p as w, r as A } from "./commonProperties-X-t50qaZ.js";
7
7
  import { f as L, t as M } from "./dateTimeUtils-C2AEniv5.js";
8
8
  import { f as R } from "./categories-_98lyB3C.js";
9
9
  import { u as S } from "./useTouchOnEvent-BPYbKiku.js";
package/dist/toggle.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import o from "@emotion/styled";
2
- import { define as r, event as a, boolean as l, oneOf as d, disabled as t, string as e } from "@react-form-builder/core";
2
+ import { define as r, event as a, string as e, boolean as l, oneOf as d, disabled as t } from "@react-form-builder/core";
3
3
  import { Toggle as s } from "rsuite";
4
- import { c as i, r as f } from "./commonProperties-ETOgvhCH.js";
4
+ import { c as i, r as f } from "./commonProperties-X-t50qaZ.js";
5
5
  import { f as g } from "./categories-_98lyB3C.js";
6
6
  import { r as n } from "./Labeled-BWYRwMiY.js";
7
7
  const m = o(s)`
package/dist/tooltip.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "@emotion/react/jsx-runtime";
2
- import { define as n, someOf as p, oneOf as s, node as d, string as m } from "@react-form-builder/core";
2
+ import { define as n, node as p, someOf as s, oneOf as d, string as m } from "@react-form-builder/core";
3
3
  import { useMemo as c } from "react";
4
4
  import { Tooltip as u, Whisper as f } from "rsuite";
5
5
  import { a as h } from "./categories-_98lyB3C.js";
@@ -8,8 +8,8 @@ const g = { width: "100%", height: "100%" }, S = ({ text: o, placement: e, trigg
8
8
  return r ? /* @__PURE__ */ t(f, { placement: e, trigger: i, speaker: l, children: /* @__PURE__ */ t("div", { ...a, style: g, children: r }) }) : null;
9
9
  }, q = n(S, "RsTooltip").name("Tooltip").category(h).props({
10
10
  text: m.required.default("Tooltip message...").dataBound,
11
- children: d,
12
- placement: s(
11
+ children: p,
12
+ placement: d(
13
13
  "top",
14
14
  "bottom",
15
15
  "right",
@@ -29,7 +29,7 @@ const g = { width: "100%", height: "100%" }, S = ({ text: o, placement: e, trigg
29
29
  "autoHorizontal",
30
30
  "autoHorizontalStart"
31
31
  ).required.default("bottom").withEditorProps({ creatable: !1 }),
32
- trigger: p("click", "hover", "focus", "active", "contextMenu").required.default(["hover"])
32
+ trigger: s("click", "hover", "focus", "active", "contextMenu").required.default(["hover"])
33
33
  }).componentRole("tooltip");
34
34
  export {
35
35
  q as rsTooltip
package/dist/uploader.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as n } from "@emotion/react/jsx-runtime";
2
- import { define as y, array as R, boolean as e, event as t, string as o, oneOf as U, disabled as x, node as E } from "@react-form-builder/core";
2
+ import { define as y, event as t, string as o, node as R, array as U, boolean as e, oneOf as x, disabled as E } from "@react-form-builder/core";
3
3
  import { useRef as I, useEffect as C, useMemo as m } from "react";
4
4
  import { Uploader as w } from "rsuite";
5
- import { a as A, r as P } from "./commonProperties-ETOgvhCH.js";
5
+ import { a as A, r as P } from "./commonProperties-X-t50qaZ.js";
6
6
  import { s as N } from "./hooks-DMVtrI-b.js";
7
7
  import { f as O } from "./categories-_98lyB3C.js";
8
8
  import { u as T } from "./useTouchOnEvent-BPYbKiku.js";
@@ -37,14 +37,14 @@ const S = ({ customElement: p, children: c, disabled: d, multiple: l, fileList:
37
37
  accept: o,
38
38
  autoUpload: e.default(!0),
39
39
  customElement: e.default(!1),
40
- children: E,
40
+ children: R,
41
41
  disableMultipart: e.default(!1),
42
- disabled: x.default(!1),
42
+ disabled: E.default(!1),
43
43
  readOnly: P,
44
44
  disabledFileItem: e.default(!1),
45
45
  draggable: e.default(!1),
46
46
  fileListVisible: e.default(!0),
47
- listType: U("text", "picture-text", "picture").withEditorProps({ creatable: !1 }),
47
+ listType: x("text", "picture-text", "picture").withEditorProps({ creatable: !1 }),
48
48
  method: o,
49
49
  multiple: e.default(!1),
50
50
  name: o,
@@ -59,7 +59,7 @@ const S = ({ customElement: p, children: c, disabled: d, multiple: l, fileList:
59
59
  removable: e.default(!1),
60
60
  timeout: A,
61
61
  withCredentials: e.default(!1),
62
- fileList: R.withEditorProps({ columns: j }).valued
62
+ fileList: U.withEditorProps({ columns: j }).valued
63
63
  });
64
64
  export {
65
65
  G as rsUploader
package/dist/wizard.d.ts CHANGED
@@ -2,9 +2,11 @@ import { ClassAttributes } from 'react';
2
2
  import { Definer } from '@react-form-builder/core';
3
3
  import { HTMLAttributes } from 'react';
4
4
  import { PropsWithChildren } from 'react';
5
+ import { RefAttributes } from 'react';
6
+ import { SyntheticEvent } from 'react';
5
7
  import { Theme } from '@emotion/react';
6
8
 
7
- export declare const rsWizard: Definer<RsWizardProps>;
9
+ export declare const rsWizard: Definer<Omit<RsWizardProps, "ref"> & RefAttributes<HTMLDivElement>>;
8
10
 
9
11
  /**
10
12
  * Props for the RsWizard component.
@@ -45,11 +47,11 @@ export declare interface RsWizardProps extends PropsWithChildren<any> {
45
47
  /**
46
48
  * Whether to validate on next.
47
49
  */
48
- validateOnNext: boolean;
50
+ validateOnNext?: boolean;
49
51
  /**
50
52
  * Whether to validate on finish.
51
53
  */
52
- validateOnFinish: boolean;
54
+ validateOnFinish?: boolean;
53
55
  /**
54
56
  * Callback when step changes.
55
57
  */
@@ -57,15 +59,15 @@ export declare interface RsWizardProps extends PropsWithChildren<any> {
57
59
  /**
58
60
  * Callback when next button is clicked.
59
61
  */
60
- onNext?: () => void;
62
+ onNext?: (event: SyntheticEvent) => void;
61
63
  /**
62
64
  * Callback when previous button is clicked.
63
65
  */
64
- onPrev?: () => void;
66
+ onPrev?: (event: SyntheticEvent) => void;
65
67
  /**
66
68
  * Callback when finish button is clicked.
67
69
  */
68
- onFinish?: () => void;
70
+ onFinish?: (event: SyntheticEvent) => void;
69
71
  }
70
72
 
71
73
  export declare const rsWizardStep: Definer< {