@react-form-builder/components-rsuite 7.11.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.
- package/dist/autocomplete.js +3 -3
- package/dist/breadcrumb.js +1 -1
- package/dist/button.js +6 -6
- package/dist/calendar.js +2 -2
- package/dist/card.js +2 -2
- package/dist/checkbox.js +1 -1
- package/dist/{commonProperties-ETOgvhCH.js → commonProperties-X-t50qaZ.js} +2 -2
- package/dist/{commonProperties-ETOgvhCH.js.map → commonProperties-X-t50qaZ.js.map} +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/dropdown.js +7 -7
- package/dist/dropdown.js.map +1 -1
- package/dist/error-message.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/input.js +1 -1
- package/dist/label.js +1 -1
- package/dist/link.js +4 -4
- package/dist/menu.js +1 -1
- package/dist/message.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/number-format.js +5 -5
- package/dist/pattern-format.js +2 -2
- package/dist/radio-group.js +7 -7
- package/dist/schemas/rsuite-components.schema.json +3911 -0
- package/dist/search.js +1 -1
- package/dist/tab.js +1 -1
- package/dist/tag-picker.js +1 -1
- package/dist/text-area.js +2 -2
- package/dist/time-picker.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/tooltip.js +4 -4
- package/dist/uploader.js +6 -6
- package/dist/wizard.d.ts +8 -6
- package/dist/wizard.js +150 -150
- package/dist/wizard.js.map +1 -1
- package/package.json +6 -3
- package/dist/stats.html +0 -4
package/dist/autocomplete.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { define as s,
|
|
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-
|
|
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(
|
package/dist/breadcrumb.js
CHANGED
|
@@ -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-
|
|
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,
|
|
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-
|
|
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:
|
|
10
|
+
active: e.default(!1),
|
|
11
11
|
appearance: u("default", "primary", "link", "subtle", "ghost").default("default").withEditorProps({ creatable: !1 }),
|
|
12
|
-
children:
|
|
12
|
+
children: t.required.default(o).dataBound,
|
|
13
13
|
color: p,
|
|
14
14
|
disabled: d.default(!1),
|
|
15
|
-
href:
|
|
16
|
-
loading:
|
|
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,
|
|
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-
|
|
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,
|
|
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-
|
|
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-
|
|
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,
|
|
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-
|
|
74
|
+
//# sourceMappingURL=commonProperties-X-t50qaZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonProperties-
|
|
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;"}
|
package/dist/date-picker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as f } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { define as b, date as n,
|
|
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-
|
|
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,
|
|
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-
|
|
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:
|
|
50
|
-
label:
|
|
51
|
-
data: L.default(
|
|
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
|
package/dist/dropdown.js.map
CHANGED
|
@@ -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 «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
|
|
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 «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;"}
|
package/dist/error-message.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
|
2246
|
+
validateOnNext?: boolean;
|
|
2247
2247
|
/**
|
|
2248
2248
|
* Whether to validate on finish.
|
|
2249
2249
|
*/
|
|
2250
|
-
validateOnFinish
|
|
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-
|
|
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-
|
|
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,
|
|
3
|
-
import { t as p } from "./commonProperties-
|
|
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:
|
|
9
|
+
children: c,
|
|
10
10
|
target: e("_self", "_blank", "_parent", "_top", "_unfencedTop").default("_blank").withEditorProps({ creatable: !1 }),
|
|
11
|
-
download:
|
|
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-
|
|
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,
|
|
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,
|
|
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";
|
package/dist/number-format.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { define as f, string as o,
|
|
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-
|
|
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:
|
|
34
|
+
value: h.valued,
|
|
35
35
|
...x,
|
|
36
|
-
allowedDecimalSeparators:
|
|
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:
|
|
44
|
+
thousandsGroupStyle: S("thousand", "lakh", "wan", "none").default("none"),
|
|
45
45
|
thousandSeparator: o
|
|
46
46
|
});
|
|
47
47
|
export {
|
package/dist/pattern-format.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { define as u,
|
|
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-
|
|
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";
|
package/dist/radio-group.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { define as u, string as a,
|
|
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-
|
|
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:
|
|
9
|
+
appearance: R("default", "picker").labeled("Default", "Picker").default("default").withEditorProps({ creatable: !1 }),
|
|
10
10
|
label: a.default("Radio"),
|
|
11
|
-
disabled:
|
|
11
|
+
disabled: b.default(!1),
|
|
12
12
|
readOnly: v,
|
|
13
|
-
inline:
|
|
14
|
-
onChange:
|
|
15
|
-
items:
|
|
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 {
|