@react-form-builder/components-rsuite 7.7.0 → 7.9.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.
Files changed (170) hide show
  1. package/dist/InputCell-BDyUJFGm.js +21 -0
  2. package/dist/InputCell-BDyUJFGm.js.map +1 -0
  3. package/dist/Labeled-BWYRwMiY.js +35 -0
  4. package/dist/Labeled-BWYRwMiY.js.map +1 -0
  5. package/dist/WrappedInput-BRkBjl0z.js +11 -0
  6. package/dist/WrappedInput-BRkBjl0z.js.map +1 -0
  7. package/dist/autocomplete.d.ts +30 -0
  8. package/dist/autocomplete.js +59 -0
  9. package/dist/autocomplete.js.map +1 -0
  10. package/dist/breadcrumb.d.ts +38 -0
  11. package/dist/breadcrumb.js +42 -0
  12. package/dist/breadcrumb.js.map +1 -0
  13. package/dist/builder-view-with-css.d.ts +9 -0
  14. package/dist/builder-view-with-css.js +10 -0
  15. package/dist/builder-view-with-css.js.map +1 -0
  16. package/dist/button.d.ts +6 -0
  17. package/dist/button.js +23 -0
  18. package/dist/button.js.map +1 -0
  19. package/dist/calendar.d.ts +20 -0
  20. package/dist/calendar.js +21 -0
  21. package/dist/calendar.js.map +1 -0
  22. package/dist/card.d.ts +20 -0
  23. package/dist/card.js +30 -0
  24. package/dist/card.js.map +1 -0
  25. package/dist/categories-_98lyB3C.js +8 -0
  26. package/dist/categories-_98lyB3C.js.map +1 -0
  27. package/dist/checkbox.d.ts +6 -0
  28. package/dist/checkbox.js +32 -0
  29. package/dist/checkbox.js.map +1 -0
  30. package/dist/commonProperties-ETOgvhCH.js +74 -0
  31. package/dist/commonProperties-ETOgvhCH.js.map +1 -0
  32. package/dist/components-descriptions.d.ts +6 -0
  33. package/dist/components-descriptions.js +5 -0
  34. package/dist/components-descriptions.js.map +1 -0
  35. package/dist/container.d.ts +25 -0
  36. package/dist/container.js +23 -0
  37. package/dist/container.js.map +1 -0
  38. package/dist/css/rsuite-no-reset-rtl.min.css +1 -1
  39. package/dist/css/rsuite-no-reset.min.css +1 -1
  40. package/dist/css-loader.d.ts +19 -0
  41. package/dist/css-loader.js +20 -0
  42. package/dist/css-loader.js.map +1 -0
  43. package/dist/date-picker.d.ts +25 -0
  44. package/dist/date-picker.js +71 -0
  45. package/dist/date-picker.js.map +1 -0
  46. package/dist/dateTimeUtils-C2AEniv5.js +25 -0
  47. package/dist/dateTimeUtils-C2AEniv5.js.map +1 -0
  48. package/dist/definitions.d.ts +5 -0
  49. package/dist/definitions.js +6 -0
  50. package/dist/definitions.js.map +1 -0
  51. package/dist/divider.d.ts +11 -0
  52. package/dist/divider.js +12 -0
  53. package/dist/divider.js.map +1 -0
  54. package/dist/dropdown.d.ts +58 -0
  55. package/dist/dropdown.js +56 -0
  56. package/dist/dropdown.js.map +1 -0
  57. package/dist/error-message.d.ts +20 -0
  58. package/dist/error-message.js +28 -0
  59. package/dist/error-message.js.map +1 -0
  60. package/dist/{formengine-rsuite-cbc1d3ae.js → formengine-rsuite.css-DkGUHOws.js} +1 -1
  61. package/dist/formengine-rsuite.css-DkGUHOws.js.map +1 -0
  62. package/dist/header.d.ts +69 -0
  63. package/dist/header.js +20 -0
  64. package/dist/header.js.map +1 -0
  65. package/dist/hooks-DMVtrI-b.js +50 -0
  66. package/dist/hooks-DMVtrI-b.js.map +1 -0
  67. package/dist/image.d.ts +22 -0
  68. package/dist/image.js +41 -0
  69. package/dist/image.js.map +1 -0
  70. package/dist/images/logo.svg +20 -0
  71. package/dist/index.d.ts +1529 -36
  72. package/dist/index.js +95 -19516
  73. package/dist/index.js.map +1 -1
  74. package/dist/input.d.ts +32 -0
  75. package/dist/input.js +26 -0
  76. package/dist/input.js.map +1 -0
  77. package/dist/label.d.ts +47 -0
  78. package/dist/label.js +16 -0
  79. package/dist/label.js.map +1 -0
  80. package/dist/link.d.ts +56 -0
  81. package/dist/link.js +20 -0
  82. package/dist/link.js.map +1 -0
  83. package/dist/localization-wrapper.d.ts +164 -0
  84. package/dist/localization-wrapper.js +113 -0
  85. package/dist/localization-wrapper.js.map +1 -0
  86. package/dist/menu.d.ts +35 -0
  87. package/dist/menu.js +49 -0
  88. package/dist/menu.js.map +1 -0
  89. package/dist/message.d.ts +16 -0
  90. package/dist/message.js +18 -0
  91. package/dist/message.js.map +1 -0
  92. package/dist/modal-layout.d.ts +28 -0
  93. package/dist/modal-layout.js +21 -0
  94. package/dist/modal-layout.js.map +1 -0
  95. package/dist/modal.d.ts +16 -0
  96. package/dist/modal.js +27 -0
  97. package/dist/modal.js.map +1 -0
  98. package/dist/models.d.ts +8 -0
  99. package/dist/models.js +6 -0
  100. package/dist/models.js.map +1 -0
  101. package/dist/number-format.d.ts +25 -0
  102. package/dist/number-format.js +50 -0
  103. package/dist/number-format.js.map +1 -0
  104. package/dist/pattern-format.d.ts +25 -0
  105. package/dist/pattern-format.js +36 -0
  106. package/dist/pattern-format.js.map +1 -0
  107. package/dist/placeholder.d.ts +17 -0
  108. package/dist/placeholder.js +38 -0
  109. package/dist/placeholder.js.map +1 -0
  110. package/dist/progress.d.ts +14 -0
  111. package/dist/progress.js +27 -0
  112. package/dist/progress.js.map +1 -0
  113. package/dist/r-suite-components.d.ts +8 -0
  114. package/dist/r-suite-components.js +98 -0
  115. package/dist/r-suite-components.js.map +1 -0
  116. package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js +67 -0
  117. package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js.map +1 -0
  118. package/dist/radio-group.d.ts +26 -0
  119. package/dist/radio-group.js +21 -0
  120. package/dist/radio-group.js.map +1 -0
  121. package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js +5 -0
  122. package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js.map +1 -0
  123. package/dist/rsuite-no-reset.min.css-bW1P11UK.js +5 -0
  124. package/dist/rsuite-no-reset.min.css-bW1P11UK.js.map +1 -0
  125. package/dist/search.d.ts +54 -0
  126. package/dist/search.js +55 -0
  127. package/dist/search.js.map +1 -0
  128. package/dist/static-content.d.ts +19 -0
  129. package/dist/static-content.js +15 -0
  130. package/dist/static-content.js.map +1 -0
  131. package/dist/stats.html +4 -0
  132. package/dist/tab.d.ts +39 -0
  133. package/dist/tab.js +55 -0
  134. package/dist/tab.js.map +1 -0
  135. package/dist/tag-picker.d.ts +21 -0
  136. package/dist/tag-picker.js +39 -0
  137. package/dist/tag-picker.js.map +1 -0
  138. package/dist/text-area.d.ts +24 -0
  139. package/dist/text-area.js +21 -0
  140. package/dist/text-area.js.map +1 -0
  141. package/dist/time-picker.d.ts +29 -0
  142. package/dist/time-picker.js +72 -0
  143. package/dist/time-picker.js.map +1 -0
  144. package/dist/toggle.d.ts +16 -0
  145. package/dist/toggle.js +26 -0
  146. package/dist/toggle.js.map +1 -0
  147. package/dist/tooltip.d.ts +29 -0
  148. package/dist/tooltip.js +37 -0
  149. package/dist/tooltip.js.map +1 -0
  150. package/dist/uploader.d.ts +20 -0
  151. package/dist/uploader.js +67 -0
  152. package/dist/uploader.js.map +1 -0
  153. package/dist/useTouchOnEvent-BPYbKiku.js +12 -0
  154. package/dist/useTouchOnEvent-BPYbKiku.js.map +1 -0
  155. package/dist/view-with-css.d.ts +9 -0
  156. package/dist/view-with-css.js +9 -0
  157. package/dist/view-with-css.js.map +1 -0
  158. package/dist/view.d.ts +8 -0
  159. package/dist/view.js +7 -0
  160. package/dist/view.js.map +1 -0
  161. package/dist/wizard.d.ts +86 -0
  162. package/dist/wizard.js +277 -0
  163. package/dist/wizard.js.map +1 -0
  164. package/package.json +195 -6
  165. package/dist/formengine-rsuite-cbc1d3ae.js.map +0 -1
  166. package/dist/images/logo.png +0 -0
  167. package/dist/rsuite-no-reset-rtl.min-f9b04ca7.js +0 -5
  168. package/dist/rsuite-no-reset-rtl.min-f9b04ca7.js.map +0 -1
  169. package/dist/rsuite-no-reset.min-12eea714.js +0 -5
  170. package/dist/rsuite-no-reset.min-12eea714.js.map +0 -1
package/dist/tab.js ADDED
@@ -0,0 +1,55 @@
1
+ import { jsxs as d, Fragment as p, jsx as n } from "@emotion/react/jsx-runtime";
2
+ import b from "@emotion/styled";
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
+ import { useCallback as C } from "react";
5
+ import { Nav as i } from "rsuite";
6
+ import { n as I } from "./commonProperties-ETOgvhCH.js";
7
+ import { s as T } from "./categories-_98lyB3C.js";
8
+ const x = b(i)({
9
+ ".builder & .rs-nav-item": {
10
+ zIndex: 7
11
+ },
12
+ ".rs-nav-item": {
13
+ border: "none",
14
+ outline: "none",
15
+ appearance: "none",
16
+ backgroundColor: "transparent"
17
+ }
18
+ }), D = ({
19
+ pane: t,
20
+ onSelect: l,
21
+ showNavigation: c,
22
+ items: a,
23
+ ...s
24
+ }) => {
25
+ const r = K(), u = C((e, o) => {
26
+ r.userDefinedProps ??= {}, r.userDefinedProps.activeKey = e, l?.(e, o);
27
+ }, [r, l]);
28
+ if (!a?.length) return null;
29
+ const m = s.activeKey ?? a?.[0].value;
30
+ return /* @__PURE__ */ d(p, { children: [
31
+ c === !0 && /* @__PURE__ */ n(x, { onSelect: u, activeKey: m, ...s, children: a.map(
32
+ (e, o) => /* @__PURE__ */ n(
33
+ i.Item,
34
+ {
35
+ eventKey: e.value,
36
+ role: "tab",
37
+ as: "button",
38
+ type: "button",
39
+ children: e.label
40
+ },
41
+ o
42
+ )
43
+ ) }),
44
+ /* @__PURE__ */ n("div", { children: t })
45
+ ] });
46
+ }, z = v(D, "RsTab").name("Tab").category(T).props({
47
+ ...I,
48
+ items: h.default(g(["Item1", "Item2", "Item3"])),
49
+ showNavigation: y.default(!0),
50
+ pane: f.withSlotConditionBuilder((t) => `return parentProps.activeKey === '${t.activeKey?.value ?? t.activeKey}'`).calculable(!1)
51
+ });
52
+ export {
53
+ z as rsTab
54
+ };
55
+ //# sourceMappingURL=tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.js","sources":["../src/components/RsTab.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport {array, boolean, define, node, toLabeledValues, useComponentData} from '@react-form-builder/core'\nimport type {ReactNode, SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {NavProps} from 'rsuite'\nimport {Nav} from 'rsuite'\nimport {navProps} from '../commonProperties'\nimport {structureCategory} from './categories'\n\n/**\n * Tab item for RsTab component.\n */\nexport type RsTabItem = {\n /**\n * Label for the tab item.\n */\n label: string\n /**\n * Value for the tab item.\n */\n value: string\n}\n\n/**\n * Props for the RsTab component.\n */\nexport interface RsTabProps extends NavProps {\n /**\n * Items for the tab.\n */\n items?: RsTabItem[]\n /**\n * Whether to show navigation.\n */\n showNavigation?: boolean\n /**\n * Pane content for the tab.\n */\n pane: ReactNode\n}\n\nconst STabs = styled(Nav)({\n '.builder & .rs-nav-item': {\n zIndex: 7,\n },\n '.rs-nav-item': {\n border: 'none',\n outline: 'none',\n appearance: 'none',\n backgroundColor: 'transparent'\n }\n})\n\n/**\n * Tab component with navigation and pane support.\n * @param props the component props.\n * @param props.pane the pane content for the tab.\n * @param props.onSelect the callback when tab is selected.\n * @param props.showNavigation whether to show navigation.\n * @param props.items the items for the tab.\n * @param props.props the additional tab props.\n * @returns the React element.\n */\nconst RsTab = ({\n pane,\n onSelect,\n showNavigation,\n items,\n ...props\n }: RsTabProps) => {\n const componentData = useComponentData()\n\n const onNavSelect = useCallback((eventKey: string, event: SyntheticEvent) => {\n componentData.userDefinedProps ??= {}\n componentData.userDefinedProps.activeKey = eventKey\n onSelect?.(eventKey, event)\n }, [componentData, onSelect])\n\n if (!items?.length) return null\n\n const activeKey = props.activeKey ?? items?.[0].value\n\n return <>\n {showNavigation === true &&\n <STabs onSelect={onNavSelect} activeKey={activeKey} {...props}>\n {items.map((item, index) => <Nav.Item key={index}\n eventKey={item.value}\n role=\"tab\"\n as=\"button\"\n type=\"button\">\n {item.label}\n </Nav.Item>\n )}\n </STabs>\n }\n <div>{pane}</div>\n </>\n}\n\nexport const rsTab = define(RsTab, 'RsTab')\n .name('Tab')\n .category(structureCategory)\n .props({\n ...navProps,\n items: array.default(toLabeledValues(['Item1', 'Item2', 'Item3'])),\n showNavigation: boolean.default(true),\n pane: node\n .withSlotConditionBuilder(props => `return parentProps.activeKey === '${props.activeKey?.value ?? props.activeKey}'`)\n .calculable(false),\n })\n"],"names":["STabs","styled","Nav","RsTab","pane","onSelect","showNavigation","items","props","componentData","useComponentData","onNavSelect","useCallback","eventKey","event","activeKey","jsxs","Fragment","item","index","jsx","rsTab","define","structureCategory","navProps","array","toLabeledValues","boolean","node"],"mappings":";;;;;;;AAyCA,MAAMA,IAAQC,EAAOC,CAAG,EAAE;AAAA,EACxB,2BAA2B;AAAA,IACzB,QAAQ;AAAA,EAAA;AAAA,EAEV,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,iBAAiB;AAAA,EAAA;AAErB,CAAC,GAYKC,IAAQ,CAAC;AAAA,EACE,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,MAAkB;AAC/B,QAAMC,IAAgBC,EAAA,GAEhBC,IAAcC,EAAY,CAACC,GAAkBC,MAA0B;AAC3E,IAAAL,EAAc,qBAAqB,CAAA,GACnCA,EAAc,iBAAiB,YAAYI,GAC3CR,IAAWQ,GAAUC,CAAK;AAAA,EAC5B,GAAG,CAACL,GAAeJ,CAAQ,CAAC;AAE5B,MAAI,CAACE,GAAO,OAAQ,QAAO;AAE3B,QAAMQ,IAAYP,EAAM,aAAaD,IAAQ,CAAC,EAAE;AAEhD,SAAO,gBAAAS,EAAAC,GAAA,EACJ,UAAA;AAAA,IAAAX,MAAmB,wBACjBN,GAAA,EAAM,UAAUW,GAAa,WAAAI,GAAuB,GAAGP,GACrD,UAAAD,EAAM;AAAA,MAAI,CAACW,GAAMC,MAAU,gBAAAC;AAAA,QAAClB,EAAI;AAAA,QAAJ;AAAA,UACS,UAAUgB,EAAK;AAAA,UACf,MAAK;AAAA,UACL,IAAG;AAAA,UACH,MAAK;AAAA,UACtC,UAAAA,EAAK;AAAA,QAAA;AAAA,QALiCC;AAAA,MAAA;AAAA,IAMzC,GAEJ;AAAA,IAEF,gBAAAC,EAAC,SAAK,UAAAhB,EAAA,CAAK;AAAA,EAAA,GACb;AACF,GAEaiB,IAAQC,EAAOnB,GAAO,OAAO,EACvC,KAAK,KAAK,EACV,SAASoB,CAAiB,EAC1B,MAAM;AAAA,EACL,GAAGC;AAAA,EACH,OAAOC,EAAM,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,EACjE,gBAAgBC,EAAQ,QAAQ,EAAI;AAAA,EACpC,MAAMC,EACH,yBAAyB,CAAApB,MAAS,qCAAqCA,EAAM,WAAW,SAASA,EAAM,SAAS,GAAG,EACnH,WAAW,EAAK;AACrB,CAAC;"}
@@ -0,0 +1,21 @@
1
+ import { Definer } from '@react-form-builder/core';
2
+ import { TagPickerProps } from 'rsuite';
3
+
4
+ export declare const rsTagPicker: Definer<RsTagPickerProps>;
5
+
6
+ /**
7
+ * Props for the RsTagPicker component.
8
+ */
9
+ export declare interface RsTagPickerProps extends TagPickerProps {
10
+ /**
11
+ * Label for the tag picker.
12
+ */
13
+ label: string;
14
+ /**
15
+ * Called after the value has been changed.
16
+ * @param value the value.
17
+ */
18
+ onChange?: (value: any) => void;
19
+ }
20
+
21
+ export { }
@@ -0,0 +1,39 @@
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
+ import { define as p, array as s, toLabeledValues as i } from "@react-form-builder/core";
3
+ import { useRef as d, useEffect as g, useMemo as P } from "react";
4
+ import { TagPicker as T } from "rsuite";
5
+ import { b as n } from "./commonProperties-ETOgvhCH.js";
6
+ import { s as b } from "./hooks-DMVtrI-b.js";
7
+ import { f as k } from "./categories-_98lyB3C.js";
8
+ import { u as h } from "./useTouchOnEvent-BPYbKiku.js";
9
+ import { L as v } from "./Labeled-BWYRwMiY.js";
10
+ const y = ({ value: e, label: r }) => ({
11
+ value: e ?? "",
12
+ label: r ?? ""
13
+ }), E = [], L = ({ data: e, label: r, value: c, className: l, ...t }) => {
14
+ const a = d(null), m = h(t, "onClean");
15
+ g(() => {
16
+ const f = a.current?.root?.querySelector(".rs-picker-search-input input");
17
+ b(f);
18
+ }, []);
19
+ const u = P(() => i(e ?? []).map(y), [e]);
20
+ return /* @__PURE__ */ o(v, { label: r, className: l, passAriaToChildren: !0, children: /* @__PURE__ */ o(
21
+ T,
22
+ {
23
+ value: c ?? E,
24
+ data: u,
25
+ onClean: m,
26
+ ...t,
27
+ ref: a
28
+ }
29
+ ) });
30
+ }, { disableVirtualized: q, onLoadData: z, ...x } = n, H = p(L, "RsTagPicker").name("TagPicker").category(k).props({
31
+ ...x,
32
+ value: s.valued.ofString,
33
+ label: n.label.default("Select"),
34
+ data: s.default(i(["a", "b", "c"]))
35
+ });
36
+ export {
37
+ H as rsTagPicker
38
+ };
39
+ //# sourceMappingURL=tag-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-picker.js","sources":["../src/components/RsTagPicker.tsx"],"sourcesContent":["import type {LabeledValue} from '@react-form-builder/core'\nimport {array, define, toLabeledValues} from '@react-form-builder/core'\nimport {useEffect, useMemo, useRef} from 'react'\nimport type {PickerHandle, TagPickerProps} from 'rsuite'\nimport {TagPicker} from 'rsuite'\nimport {pickerProps} from '../commonProperties'\nimport {setAriaHiddenIfNotExists} from '../hooks'\nimport {fieldsCategory} from './categories'\nimport {useTouchOnEvent} from './hooks/useTouchOnEvent'\nimport {Labeled} from './internal/Labeled'\n\n/**\n * Props for the RsTagPicker component.\n */\nexport interface RsTagPickerProps extends TagPickerProps {\n /**\n * Label for the tag picker.\n */\n label: string\n /**\n * Called after the value has been changed.\n * @param value the value.\n */\n onChange?: (value: any) => void\n}\n\nconst fixEmptyItem = ({value, label}: LabeledValue) => ({\n value: value ?? '',\n label: label ?? ''\n})\n\nconst EMPTY_LIST = [] as const\n\n/**\n * Tag picker component with label support.\n * @param props the component props.\n * @param props.data the data for the tag picker.\n * @param props.label the label for the tag picker.\n * @param props.value the value of the tag picker.\n * @param props.className the CSS class name.\n * @param props.props the additional tag picker props.\n * @returns the React element.\n */\nconst RsTagPicker = ({data, label, value, className, ...props}: RsTagPickerProps) => {\n const inputRef = useRef<PickerHandle>(null)\n const onClean = useTouchOnEvent(props, 'onClean')\n\n useEffect(() => {\n const searchInput = inputRef.current?.root?.querySelector('.rs-picker-search-input input')\n setAriaHiddenIfNotExists(searchInput)\n }, [])\n\n const transformedData = useMemo(() => {\n return toLabeledValues((data ?? []) as Array<string | LabeledValue>).map(fixEmptyItem)\n }, [data])\n\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <TagPicker\n value={value ?? EMPTY_LIST}\n data={transformedData}\n onClean={onClean}\n {...props}\n ref={inputRef}\n />\n </Labeled>\n )\n}\n\nconst {disableVirtualized, onLoadData, ...tagPickerProps} = pickerProps\n\nexport const rsTagPicker = define(RsTagPicker, 'RsTagPicker')\n .name('TagPicker')\n .category(fieldsCategory)\n .props({\n ...tagPickerProps,\n value: array.valued.ofString,\n label: pickerProps.label.default('Select'),\n data: array.default(toLabeledValues(['a', 'b', 'c']))\n })\n"],"names":["fixEmptyItem","value","label","EMPTY_LIST","RsTagPicker","data","className","props","inputRef","useRef","onClean","useTouchOnEvent","useEffect","searchInput","setAriaHiddenIfNotExists","transformedData","useMemo","toLabeledValues","jsx","Labeled","TagPicker","disableVirtualized","onLoadData","tagPickerProps","pickerProps","rsTagPicker","define","fieldsCategory","array"],"mappings":";;;;;;;;;AA0BA,MAAMA,IAAe,CAAC,EAAC,OAAAC,GAAO,OAAAC,SAA0B;AAAA,EACtD,OAAOD,KAAS;AAAA,EAChB,OAAOC,KAAS;AAClB,IAEMC,IAAa,CAAA,GAYbC,IAAc,CAAC,EAAC,MAAAC,GAAM,OAAAH,GAAO,OAAAD,GAAO,WAAAK,GAAW,GAAGC,QAA6B;AACnF,QAAMC,IAAWC,EAAqB,IAAI,GACpCC,IAAUC,EAAgBJ,GAAO,SAAS;AAEhD,EAAAK,EAAU,MAAM;AACd,UAAMC,IAAcL,EAAS,SAAS,MAAM,cAAc,+BAA+B;AACzF,IAAAM,EAAyBD,CAAW;AAAA,EACtC,GAAG,CAAA,CAAE;AAEL,QAAME,IAAkBC,EAAQ,MACvBC,EAAiBZ,KAAQ,CAAA,CAAmC,EAAE,IAAIL,CAAY,GACpF,CAACK,CAAI,CAAC;AAET,SACE,gBAAAa,EAACC,GAAA,EAAQ,OAAAjB,GAAc,WAAAI,GAAsB,oBAAoB,IAC/D,UAAA,gBAAAY;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,OAAOnB,KAASE;AAAA,MAChB,MAAMY;AAAA,MACN,SAAAL;AAAA,MACC,GAAGH;AAAA,MACJ,KAAKC;AAAA,IAAA;AAAA,EAAA,GAET;AAEJ,GAEM,EAAC,oBAAAa,GAAoB,YAAAC,GAAY,GAAGC,MAAkBC,GAE/CC,IAAcC,EAAOtB,GAAa,aAAa,EACzD,KAAK,WAAW,EAChB,SAASuB,CAAc,EACvB,MAAM;AAAA,EACL,GAAGJ;AAAA,EACH,OAAOK,EAAM,OAAO;AAAA,EACpB,OAAOJ,EAAY,MAAM,QAAQ,QAAQ;AAAA,EACzC,MAAMI,EAAM,QAAQX,EAAgB,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;AACtD,CAAC;"}
@@ -0,0 +1,24 @@
1
+ import { Definer } from '@react-form-builder/core';
2
+ import { InputProps } from 'rsuite';
3
+
4
+ export declare const rsTextArea: Definer<RsTextAreaProps>;
5
+
6
+ /**
7
+ * Props for the RsTextArea component.
8
+ */
9
+ export declare interface RsTextAreaProps extends InputProps {
10
+ /**
11
+ * The label for the text area.
12
+ */
13
+ label: string;
14
+ /**
15
+ * The number of visible text lines.
16
+ */
17
+ rows: number;
18
+ /**
19
+ * The htmlSize attribute defines the width of the &laquo;input> element.
20
+ */
21
+ htmlSize?: number;
22
+ }
23
+
24
+ export { }
@@ -0,0 +1,21 @@
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";
3
+ import { Input as f } from "rsuite";
4
+ import { r as m, s as n, d as p } from "./commonProperties-ETOgvhCH.js";
5
+ import { f as u } from "./categories-_98lyB3C.js";
6
+ import { L as x } from "./Labeled-BWYRwMiY.js";
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({
8
+ label: e.default("Text area"),
9
+ value: e.default("").valued,
10
+ placeholder: e,
11
+ rows: p.default(5),
12
+ size: n,
13
+ disabled: i.default(!1),
14
+ readOnly: m,
15
+ onChange: a,
16
+ onPressEnter: a
17
+ });
18
+ export {
19
+ y as rsTextArea
20
+ };
21
+ //# sourceMappingURL=text-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-area.js","sources":["../src/components/RsTextArea.tsx"],"sourcesContent":["import {define, disabled, event, string} from '@react-form-builder/core'\nimport type {InputProps} from 'rsuite'\nimport {Input} from 'rsuite'\nimport {positiveNumber, readOnly, size} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {Labeled} from './internal/Labeled'\n\n/**\n * Props for the RsTextArea component.\n */\nexport interface RsTextAreaProps extends InputProps {\n /**\n * The label for the text area.\n */\n label: string\n /**\n * The number of visible text lines.\n */\n rows: number\n /**\n * The htmlSize attribute defines the width of the &laquo;input> element.\n */\n htmlSize?: number\n}\n\n/**\n * A text area component for multi-line text input.\n * @param props the component props.\n * @param props.style the CSS style for the component.\n * @param props.className the CSS class name for the component.\n * @param props.label the label for the text area.\n * @returns the React element.\n */\nconst RsTextArea = ({style, className, label, ...props}: RsTextAreaProps) => (\n <Labeled label={label} style={style} className={className} passAriaToChildren={true}>\n <Input as=\"textarea\" {...props}/>\n </Labeled>\n)\n\nexport const rsTextArea = define(RsTextArea, 'RsTextArea')\n .name('Text area')\n .category(fieldsCategory)\n .props({\n label: string.default('Text area'),\n value: string.default('').valued,\n placeholder: string,\n rows: positiveNumber.default(5),\n size,\n disabled: disabled.default(false),\n readOnly,\n onChange: event,\n onPressEnter: event\n })\n"],"names":["RsTextArea","style","className","label","props","jsx","Labeled","Input","rsTextArea","define","fieldsCategory","string","positiveNumber","size","disabled","readOnly","event"],"mappings":";;;;;;AAiCA,MAAMA,IAAa,CAAC,EAAC,OAAAC,GAAO,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,MAC/C,gBAAAC,EAACC,GAAA,EAAQ,OAAAH,GAAc,OAAAF,GAAc,WAAAC,GAAsB,oBAAoB,IAC7E,UAAA,gBAAAG,EAACE,KAAM,IAAG,YAAY,GAAGH,EAAA,CAAM,EAAA,CACjC,GAGWI,IAAaC,EAAOT,GAAY,YAAY,EACtD,KAAK,WAAW,EAChB,SAASU,CAAc,EACvB,MAAM;AAAA,EACL,OAAOC,EAAO,QAAQ,WAAW;AAAA,EACjC,OAAOA,EAAO,QAAQ,EAAE,EAAE;AAAA,EAC1B,aAAaA;AAAA,EACb,MAAMC,EAAe,QAAQ,CAAC;AAAA,EAC9B,MAAAC;AAAA,EACA,UAAUC,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAC;AAAA,EACA,UAAUC;AAAA,EACV,cAAcA;AAChB,CAAC;"}
@@ -0,0 +1,29 @@
1
+ import { DatePickerProps } from 'rsuite';
2
+ import { Definer } from '@react-form-builder/core';
3
+ import { SyntheticEvent } from 'react';
4
+
5
+ export declare const rsTimePicker: Definer<RsTimePickerProps>;
6
+
7
+ /**
8
+ * Props for the RsTimePicker component.
9
+ */
10
+ export declare interface RsTimePickerProps extends Omit<DatePickerProps, 'value' | 'onChange'> {
11
+ /**
12
+ * Value of the time picker.
13
+ */
14
+ value?: string;
15
+ /**
16
+ * Callback when value changes.
17
+ */
18
+ onChange?: (value: string | null, event: SyntheticEvent) => void;
19
+ /**
20
+ * Label for the time picker.
21
+ */
22
+ label: string;
23
+ /**
24
+ * @deprecated
25
+ */
26
+ inline?: boolean;
27
+ }
28
+
29
+ export { }
@@ -0,0 +1,72 @@
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";
3
+ import { format as x, parse as y } from "date-fns";
4
+ import { useMemo as a, useCallback as F } from "react";
5
+ import { DatePicker as H } from "rsuite";
6
+ import { s as I, p as w, r as A } from "./commonProperties-ETOgvhCH.js";
7
+ import { f as L, t as M } from "./dateTimeUtils-C2AEniv5.js";
8
+ import { f as R } from "./categories-_98lyB3C.js";
9
+ import { u as S } from "./useTouchOnEvent-BPYbKiku.js";
10
+ import { L as _ } from "./Labeled-BWYRwMiY.js";
11
+ const j = (t) => t instanceof Date && !Number.isNaN(t.getTime()), g = (t, n) => {
12
+ if (typeof t == "string") {
13
+ const r = y(t, n, /* @__PURE__ */ new Date());
14
+ return isNaN(r.getTime()) ? (console.error("Invalid time string:", t), null) : r;
15
+ }
16
+ return t;
17
+ }, z = ({ open: t, label: n, value: r, className: b, format: d, defaultValue: f, onChange: i, ...c }) => {
18
+ const h = a(() => M(d), [d]), E = S(c, "onClean"), k = a(() => g(r, o), [r]), C = a(() => g(f, o), [f]), D = a(() => t === !0 ? !0 : void 0, [t]), N = F((s, p) => {
19
+ if (v(s)) {
20
+ i?.(null, p);
21
+ return;
22
+ }
23
+ if (j(s)) {
24
+ const O = x(s, o);
25
+ i?.(O, p);
26
+ }
27
+ }, [i]);
28
+ return /* @__PURE__ */ u(_, { label: n, className: b, passAriaToChildren: !0, children: /* @__PURE__ */ u(
29
+ H,
30
+ {
31
+ ...c,
32
+ onChange: N,
33
+ value: k ?? C ?? null,
34
+ open: D,
35
+ format: h ?? o,
36
+ onClean: E,
37
+ preventOverflow: !0
38
+ }
39
+ ) });
40
+ }, Z = P(z, "RsTimePicker").name("TimePicker").category(R).props({
41
+ label: l.default("Time"),
42
+ placeholder: l,
43
+ value: T.valued,
44
+ defaultValue: T,
45
+ format: l.validated(L, {
46
+ code: "INVALID_TIME_FORMAT",
47
+ message: "The provided time format is invalid"
48
+ }).withEditorProps({ placeholder: "HH:mm" }).default("HH:mm"),
49
+ editable: m.default(!0),
50
+ cleanable: m.default(!1),
51
+ disabled: V.default(!1),
52
+ readOnly: A,
53
+ open: m,
54
+ placement: w,
55
+ size: I,
56
+ onChange: e,
57
+ onClean: e,
58
+ onClose: e,
59
+ onEnter: e,
60
+ onEntered: e,
61
+ onEntering: e,
62
+ onExit: e,
63
+ onExited: e,
64
+ onExiting: e,
65
+ onOk: e,
66
+ onOpen: e,
67
+ onSelect: e
68
+ });
69
+ export {
70
+ Z as rsTimePicker
71
+ };
72
+ //# sourceMappingURL=time-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.js","sources":["../src/components/RsTimePicker.tsx"],"sourcesContent":["import {boolean, define, disabled, event, isNull, string, time, timeFormat} from '@react-form-builder/core'\nimport {format as formatDate, parse} from 'date-fns'\nimport type {SyntheticEvent} from 'react'\nimport {useCallback, useMemo} from 'react'\nimport type {DatePickerProps} from 'rsuite'\nimport {DatePicker} from 'rsuite'\nimport {placement, readOnly, size} from '../commonProperties'\nimport {formatValidator, toSafeFormat} from '../dateTimeUtils'\nimport {fieldsCategory} from './categories'\nimport {useTouchOnEvent} from './hooks/useTouchOnEvent'\nimport {Labeled} from './internal/Labeled'\n\nconst isValidDate = (value: any) => value instanceof Date && !Number.isNaN(value.getTime())\n\n/**\n * Returns the time converted to Date format.\n * @param value the date value in string or Date format.\n * @param format the time format.\n * @returns the time converted to Date format.\n */\nconst parseTimeValue = (value: any, format: string) => {\n if (typeof value === 'string') {\n const parsedDate = parse(value, format, new Date())\n if (!isNaN(parsedDate.getTime())) {\n return parsedDate\n }\n console.error('Invalid time string:', value)\n return null\n }\n return value\n}\n\n/**\n * Props for the RsTimePicker component.\n */\nexport interface RsTimePickerProps extends Omit<DatePickerProps, 'value' | 'onChange'> {\n /**\n * Value of the time picker.\n */\n value?: string\n /**\n * Callback when value changes.\n */\n onChange?: (value: string | null, event: SyntheticEvent) => void\n /**\n * Label for the time picker.\n */\n label: string\n /**\n * @deprecated\n */\n inline?: boolean\n}\n\n/**\n * Time picker component with label support.\n * @param props the component props.\n * @param props.open whether the time picker is open.\n * @param props.label the label for the time picker.\n * @param props.value the value of the time picker.\n * @param props.className the CSS class name.\n * @param props.format the format of the time.\n * @param props.defaultValue the default value of the time picker.\n * @param props.onChange the callback when value changes.\n * @param props.props the additional time picker props.\n * @returns the React element.\n */\nconst RsTimePicker = ({open, label, value, className, format, defaultValue, onChange, ...props}: RsTimePickerProps) => {\n const safeFormat = useMemo(() => toSafeFormat(format), [format])\n const onClean = useTouchOnEvent(props, 'onClean')\n const parsedValue = useMemo(() => parseTimeValue(value, timeFormat), [value])\n const parsedDefaultValue = useMemo(() => parseTimeValue(defaultValue, timeFormat), [defaultValue])\n const pickerOpen = useMemo(() => open === true ? true : undefined, [open])\n\n const handleChange = useCallback((value: Date | null, e: SyntheticEvent) => {\n if (isNull(value)) {\n onChange?.(null, e)\n return\n }\n if (isValidDate(value)) {\n const formatted = formatDate(value, timeFormat)\n onChange?.(formatted, e)\n }\n }, [onChange])\n\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <DatePicker {...props} onChange={handleChange} value={parsedValue ?? parsedDefaultValue ?? null}\n open={pickerOpen} format={safeFormat ?? timeFormat} onClean={onClean} preventOverflow/>\n </Labeled>\n )\n}\n\nexport const rsTimePicker = define(RsTimePicker, 'RsTimePicker')\n .name('TimePicker')\n .category(fieldsCategory)\n .props({\n label: string.default('Time'),\n placeholder: string,\n value: time.valued,\n defaultValue: time,\n format: string\n .validated(formatValidator, {\n code: 'INVALID_TIME_FORMAT',\n message: 'The provided time format is invalid'\n })\n .withEditorProps({placeholder: 'HH:mm'})\n .default('HH:mm'),\n editable: boolean.default(true),\n cleanable: boolean.default(false),\n disabled: disabled.default(false),\n readOnly,\n open: boolean,\n placement: placement,\n size: size,\n onChange: event,\n onClean: event,\n onClose: event,\n onEnter: event,\n onEntered: event,\n onEntering: event,\n onExit: event,\n onExited: event,\n onExiting: event,\n onOk: event,\n onOpen: event,\n onSelect: event\n })\n"],"names":["isValidDate","value","parseTimeValue","format","parsedDate","parse","RsTimePicker","open","label","className","defaultValue","onChange","props","safeFormat","useMemo","toSafeFormat","onClean","useTouchOnEvent","parsedValue","timeFormat","parsedDefaultValue","pickerOpen","handleChange","useCallback","e","isNull","formatted","formatDate","jsx","Labeled","DatePicker","rsTimePicker","define","fieldsCategory","string","time","formatValidator","boolean","disabled","readOnly","placement","size","event"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAc,CAACC,MAAeA,aAAiB,QAAQ,CAAC,OAAO,MAAMA,EAAM,SAAS,GAQpFC,IAAiB,CAACD,GAAYE,MAAmB;AACrD,MAAI,OAAOF,KAAU,UAAU;AAC7B,UAAMG,IAAaC,EAAMJ,GAAOE,GAAQ,oBAAI,MAAM;AAClD,WAAK,MAAMC,EAAW,QAAA,CAAS,KAG/B,QAAQ,MAAM,wBAAwBH,CAAK,GACpC,QAHEG;AAAA,EAIX;AACA,SAAOH;AACT,GAqCMK,IAAe,CAAC,EAAC,MAAAC,GAAM,OAAAC,GAAO,OAAAP,GAAO,WAAAQ,GAAA,QAAWN,GAAQ,cAAAO,GAAc,UAAAC,GAAU,GAAGC,EAAA,MAA8B;AACrH,QAAMC,IAAaC,EAAQ,MAAMC,EAAaZ,CAAM,GAAG,CAACA,CAAM,CAAC,GACzDa,IAAUC,EAAgBL,GAAO,SAAS,GAC1CM,IAAcJ,EAAQ,MAAMZ,EAAeD,GAAOkB,CAAU,GAAG,CAAClB,CAAK,CAAC,GACtEmB,IAAqBN,EAAQ,MAAMZ,EAAeQ,GAAcS,CAAU,GAAG,CAACT,CAAY,CAAC,GAC3FW,IAAaP,EAAQ,MAAMP,MAAS,KAAO,KAAO,QAAW,CAACA,CAAI,CAAC,GAEnEe,IAAeC,EAAY,CAACtB,GAAoBuB,MAAsB;AAC1E,QAAIC,EAAOxB,CAAK,GAAG;AACjB,MAAAU,IAAW,MAAMa,CAAC;AAClB;AAAA,IACF;AACA,QAAIxB,EAAYC,CAAK,GAAG;AACtB,YAAMyB,IAAYC,EAAW1B,GAAOkB,CAAU;AAC9C,MAAAR,IAAWe,GAAWF,CAAC;AAAA,IACzB;AAAA,EACF,GAAG,CAACb,CAAQ,CAAC;AAEb,SACE,gBAAAiB,EAACC,GAAA,EAAQ,OAAArB,GAAc,WAAAC,GAAsB,oBAAoB,IAC/D,UAAA,gBAAAmB;AAAA,IAACE;AAAA,IAAA;AAAA,MAAY,GAAGlB;AAAA,MAAO,UAAUU;AAAA,MAAc,OAAOJ,KAAeE,KAAsB;AAAA,MAC/E,MAAMC;AAAA,MAAY,QAAQR,KAAcM;AAAA,MAAY,SAAAH;AAAA,MAAkB,iBAAe;AAAA,IAAA;AAAA,EAAA,GACnG;AAEJ,GAEae,IAAeC,EAAO1B,GAAc,cAAc,EAC5D,KAAK,YAAY,EACjB,SAAS2B,CAAc,EACvB,MAAM;AAAA,EACL,OAAOC,EAAO,QAAQ,MAAM;AAAA,EAC5B,aAAaA;AAAA,EACb,OAAOC,EAAK;AAAA,EACZ,cAAcA;AAAA,EACd,QAAQD,EACL,UAAUE,GAAiB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,EAAA,CACV,EACA,gBAAgB,EAAC,aAAa,QAAA,CAAQ,EACtC,QAAQ,OAAO;AAAA,EAClB,UAAUC,EAAQ,QAAQ,EAAI;AAAA,EAC9B,WAAWA,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUC,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAC;AAAA,EACA,MAAMF;AAAA,EACN,WAAAG;AAAA,EACA,MAAAC;AAAA,EACA,UAAUC;AAAA,EACV,SAASA;AAAA,EACT,SAASA;AAAA,EACT,SAASA;AAAA,EACT,WAAWA;AAAA,EACX,YAAYA;AAAA,EACZ,QAAQA;AAAA,EACR,UAAUA;AAAA,EACV,WAAWA;AAAA,EACX,MAAMA;AAAA,EACN,QAAQA;AAAA,EACR,UAAUA;AACZ,CAAC;"}
@@ -0,0 +1,16 @@
1
+ import { Definer } from '@react-form-builder/core';
2
+ import { ElementType } from 'react';
3
+ import { JSX } from 'react';
4
+ import { Omit as Omit_2 } from 'rsuite/esm/internals/types/utils';
5
+ import { ReactNode } from 'react';
6
+ import { Theme } from '@emotion/react';
7
+ import { ToggleProps } from 'rsuite';
8
+ import { WithAsProps } from 'rsuite/esm/internals/types';
9
+
10
+ export declare const rsToggle: Definer<Omit_2<any, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & ToggleProps> & WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & ToggleProps & {
11
+ children?: ReactNode | undefined;
12
+ } & {
13
+ theme?: Theme;
14
+ }>;
15
+
16
+ export { }
package/dist/toggle.js ADDED
@@ -0,0 +1,26 @@
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";
3
+ import { Toggle as s } from "rsuite";
4
+ import { c as i, r as f } from "./commonProperties-ETOgvhCH.js";
5
+ import { f as g } from "./categories-_98lyB3C.js";
6
+ import { r as n } from "./Labeled-BWYRwMiY.js";
7
+ const m = o(s)`
8
+ &.required .rs-toggle-label::after {
9
+ ${n};
10
+ }
11
+ `, y = r(m, "RsToggle").name("Toggle").category(g).props({
12
+ children: e,
13
+ checked: l.valued.default(!0).uncontrolledValue(!1),
14
+ checkedChildren: e,
15
+ unCheckedChildren: e,
16
+ disabled: t.default(!1),
17
+ readOnly: f,
18
+ size: d("sm", "md", "lg").labeled("Small", "Medium", "Large").default("md").withEditorProps({ creatable: !1 }),
19
+ color: i,
20
+ loading: l.default(!1),
21
+ onChange: a
22
+ });
23
+ export {
24
+ y as rsToggle
25
+ };
26
+ //# sourceMappingURL=toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.js","sources":["../src/components/RsToggle.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport {boolean, define, disabled, event, oneOf, string} from '@react-form-builder/core'\nimport {Toggle} from 'rsuite'\nimport {controlColor, readOnly} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {requiredStyle} from './internal/Labeled'\n\nconst SToggle = styled(Toggle)`\n &.required .rs-toggle-label::after {\n ${requiredStyle};\n }\n`\n\nexport const rsToggle = define(SToggle, 'RsToggle')\n .name('Toggle')\n .category(fieldsCategory)\n .props({\n children: string,\n checked: boolean.valued.default(true).uncontrolledValue(false),\n checkedChildren: string,\n unCheckedChildren: string,\n disabled: disabled.default(false),\n readOnly,\n size: oneOf('sm', 'md', 'lg')\n .labeled('Small', 'Medium', 'Large')\n .default('md')\n .withEditorProps({creatable: false}),\n color: controlColor,\n loading: boolean.default(false),\n onChange: event,\n })\n"],"names":["SToggle","styled","Toggle","requiredStyle","rsToggle","define","fieldsCategory","string","boolean","disabled","readOnly","oneOf","controlColor","event"],"mappings":";;;;;;AAOA,MAAMA,IAAUC,EAAOC,CAAM;AAAA;AAAA,MAEvBC,CAAa;AAAA;AAAA,GAINC,IAAWC,EAAOL,GAAS,UAAU,EAC/C,KAAK,QAAQ,EACb,SAASM,CAAc,EACvB,MAAM;AAAA,EACL,UAAUC;AAAA,EACV,SAASC,EAAQ,OAAO,QAAQ,EAAI,EAAE,kBAAkB,EAAK;AAAA,EAC7D,iBAAiBD;AAAA,EACjB,mBAAmBA;AAAA,EACnB,UAAUE,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAC;AAAA,EACA,MAAMC,EAAM,MAAM,MAAM,IAAI,EACzB,QAAQ,SAAS,UAAU,OAAO,EAClC,QAAQ,IAAI,EACZ,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOC;AAAA,EACP,SAASJ,EAAQ,QAAQ,EAAK;AAAA,EAC9B,UAAUK;AACZ,CAAC;"}
@@ -0,0 +1,29 @@
1
+ import { Definer } from '@react-form-builder/core';
2
+ import { OverlayTriggerType } from 'rsuite/esm/internals/Overlay/OverlayTrigger';
3
+ import { TypeAttributes } from 'rsuite/esm/internals/types';
4
+ import { WrapperProps } from '@react-form-builder/core';
5
+
6
+ /**
7
+ * Metadata builder for rSuite-based tooltip display component.
8
+ */
9
+ export declare const rsTooltip: Definer<RsTooltipProps>;
10
+
11
+ /**
12
+ * The properties of RsTooltip component.
13
+ */
14
+ export declare interface RsTooltipProps extends WrapperProps {
15
+ /**
16
+ * The tooltip text.
17
+ */
18
+ text: string;
19
+ /**
20
+ * The placement of a tooltip.
21
+ */
22
+ placement: TypeAttributes.Placement;
23
+ /**
24
+ * The tooltip trigger.
25
+ */
26
+ trigger: OverlayTriggerType;
27
+ }
28
+
29
+ export { }
@@ -0,0 +1,37 @@
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";
3
+ import { useMemo as c } from "react";
4
+ import { Tooltip as u, Whisper as f } from "rsuite";
5
+ import { a as h } from "./categories-_98lyB3C.js";
6
+ const g = { width: "100%", height: "100%" }, S = ({ text: o, placement: e, trigger: i, children: r, ...a }) => {
7
+ const l = c(() => /* @__PURE__ */ t(u, { children: o }), [o]);
8
+ return r ? /* @__PURE__ */ t(f, { placement: e, trigger: i, speaker: l, children: /* @__PURE__ */ t("div", { ...a, style: g, children: r }) }) : null;
9
+ }, q = n(S, "RsTooltip").name("Tooltip").category(h).props({
10
+ text: m.required.default("Tooltip message...").dataBound,
11
+ children: d,
12
+ placement: s(
13
+ "top",
14
+ "bottom",
15
+ "right",
16
+ "left",
17
+ "bottomStart",
18
+ "bottomEnd",
19
+ "topStart",
20
+ "topEnd",
21
+ "leftStart",
22
+ "rightStart",
23
+ "leftEnd",
24
+ "rightEnd",
25
+ "auto",
26
+ "autoVertical",
27
+ "autoVerticalStart",
28
+ "autoVerticalEnd",
29
+ "autoHorizontal",
30
+ "autoHorizontalStart"
31
+ ).required.default("bottom").withEditorProps({ creatable: !1 }),
32
+ trigger: p("click", "hover", "focus", "active", "contextMenu").required.default(["hover"])
33
+ }).componentRole("tooltip");
34
+ export {
35
+ q as rsTooltip
36
+ };
37
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.js","sources":["../src/components/RsTooltip.tsx"],"sourcesContent":["import type {WrapperProps} from '@react-form-builder/core'\nimport {define, node, oneOf, someOf, string} from '@react-form-builder/core'\nimport {useMemo} from 'react'\nimport {Tooltip, Whisper} from 'rsuite'\nimport type {OverlayTriggerType} from 'rsuite/esm/internals/Overlay/OverlayTrigger'\nimport type {TypeAttributes} from 'rsuite/esm/internals/types'\nimport {staticCategory} from './categories'\n\n/**\n * The properties of RsTooltip component.\n */\nexport interface RsTooltipProps extends WrapperProps {\n /**\n * The tooltip text.\n */\n text: string\n /**\n * The placement of a tooltip.\n */\n placement: TypeAttributes.Placement\n /**\n * The tooltip trigger.\n */\n trigger: OverlayTriggerType\n}\n\nconst wrapperStyle = {width: '100%', height: '100%'} as const\n\nconst RsTooltip = ({text, placement, trigger, children, ...props}: RsTooltipProps) => {\n const tooltip = useMemo(() => <Tooltip>{text}</Tooltip>, [text])\n\n if (!children) return null\n\n return <Whisper placement={placement} trigger={trigger} speaker={tooltip}>\n <div {...props} style={wrapperStyle}>{children}</div>\n </Whisper>\n}\n\n/**\n * Metadata builder for rSuite-based tooltip display component.\n */\nexport const rsTooltip = define(RsTooltip, 'RsTooltip')\n .name('Tooltip')\n .category(staticCategory)\n .props({\n text: string.required.default('Tooltip message...').dataBound,\n children: node,\n placement: oneOf('top', 'bottom', 'right', 'left', 'bottomStart', 'bottomEnd',\n 'topStart', 'topEnd', 'leftStart', 'rightStart', 'leftEnd', 'rightEnd', 'auto',\n 'autoVertical', 'autoVerticalStart', 'autoVerticalEnd', 'autoHorizontal', 'autoHorizontalStart')\n .required.default('bottom')\n .withEditorProps({creatable: false}),\n trigger: someOf('click', 'hover', 'focus', 'active', 'contextMenu')\n .required.default(['hover'])\n })\n .componentRole('tooltip')\n"],"names":["wrapperStyle","RsTooltip","text","placement","trigger","children","props","tooltip","useMemo","jsx","Tooltip","Whisper","rsTooltip","define","staticCategory","string","node","oneOf","someOf"],"mappings":";;;;;AA0BA,MAAMA,IAAe,EAAC,OAAO,QAAQ,QAAQ,OAAA,GAEvCC,IAAY,CAAC,EAAC,MAAAC,GAAM,WAAAC,GAAW,SAAAC,GAAS,UAAAC,GAAU,GAAGC,QAA2B;AACpF,QAAMC,IAAUC,EAAQ,MAAM,gBAAAC,EAACC,KAAS,UAAAR,EAAA,CAAK,GAAY,CAACA,CAAI,CAAC;AAE/D,SAAKG,IAEE,gBAAAI,EAACE,GAAA,EAAQ,WAAAR,GAAsB,SAAAC,GAAkB,SAASG,GAC/D,UAAA,gBAAAE,EAAC,OAAA,EAAK,GAAGH,GAAO,OAAON,GAAe,UAAAK,GAAS,GACjD,IAJsB;AAKxB,GAKaO,IAAYC,EAAOZ,GAAW,WAAW,EACnD,KAAK,SAAS,EACd,SAASa,CAAc,EACvB,MAAM;AAAA,EACL,MAAMC,EAAO,SAAS,QAAQ,oBAAoB,EAAE;AAAA,EACpD,UAAUC;AAAA,EACV,WAAWC;AAAA,IAAM;AAAA,IAAO;AAAA,IAAU;AAAA,IAAS;AAAA,IAAQ;AAAA,IAAe;AAAA,IAChE;AAAA,IAAY;AAAA,IAAU;AAAA,IAAa;AAAA,IAAc;AAAA,IAAW;AAAA,IAAY;AAAA,IACxE;AAAA,IAAgB;AAAA,IAAqB;AAAA,IAAmB;AAAA,IAAkB;AAAA,EAAA,EACzE,SAAS,QAAQ,QAAQ,EACzB,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,SAASC,EAAO,SAAS,SAAS,SAAS,UAAU,aAAa,EAC/D,SAAS,QAAQ,CAAC,OAAO,CAAC;AAC/B,CAAC,EACA,cAAc,SAAS;"}
@@ -0,0 +1,20 @@
1
+ import { Definer } from '@react-form-builder/core';
2
+ import { UploaderProps } from 'rsuite';
3
+
4
+ export declare const rsUploader: Definer<RsUploaderProps>;
5
+
6
+ /**
7
+ * Props for the RsUploader component.
8
+ */
9
+ export declare interface RsUploaderProps extends UploaderProps {
10
+ /**
11
+ * Whether to use a custom element for the uploader.
12
+ */
13
+ customElement: boolean;
14
+ /**
15
+ * The label for the uploader.
16
+ */
17
+ label?: string;
18
+ }
19
+
20
+ export { }
@@ -0,0 +1,67 @@
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";
3
+ import { useRef as I, useEffect as C, useMemo as m } from "react";
4
+ import { Uploader as w } from "rsuite";
5
+ import { a as A, r as P } from "./commonProperties-ETOgvhCH.js";
6
+ import { s as N } from "./hooks-DMVtrI-b.js";
7
+ import { f as O } from "./categories-_98lyB3C.js";
8
+ import { u as T } from "./useTouchOnEvent-BPYbKiku.js";
9
+ import { I as s } from "./InputCell-BDyUJFGm.js";
10
+ import { L as M } from "./Labeled-BWYRwMiY.js";
11
+ const S = ({ customElement: p, children: c, disabled: d, multiple: l, fileList: r, className: b, label: h, ...i }) => {
12
+ const u = I(null), v = T(i, "onRemove");
13
+ C(() => {
14
+ const a = u.current?.root?.querySelector('input[type="file"]');
15
+ N(a), a && !a.hasAttribute("tabIndex") && a.setAttribute("tabIndex", "-1");
16
+ }, []);
17
+ const f = m(() => l ? !0 : !(r && r.length > 0), [r, l]), g = m(() => d || !f, [d, f]);
18
+ return /* @__PURE__ */ n(M, { label: h, className: b, passAriaToChildren: !0, children: /* @__PURE__ */ n(
19
+ w,
20
+ {
21
+ ...i,
22
+ disabled: g,
23
+ multiple: l,
24
+ fileList: r,
25
+ onRemove: v,
26
+ ref: u,
27
+ children: p ? /* @__PURE__ */ n("div", { children: c }) : void 0
28
+ }
29
+ ) });
30
+ }, j = [
31
+ { name: "name", input: s },
32
+ { name: "fileKey", input: s },
33
+ { name: "url", input: s }
34
+ ], G = y(S, "RsUploader").name("Uploader").category(O).props({
35
+ label: o,
36
+ action: o.default("/"),
37
+ accept: o,
38
+ autoUpload: e.default(!0),
39
+ customElement: e.default(!1),
40
+ children: E,
41
+ disableMultipart: e.default(!1),
42
+ disabled: x.default(!1),
43
+ readOnly: P,
44
+ disabledFileItem: e.default(!1),
45
+ draggable: e.default(!1),
46
+ fileListVisible: e.default(!0),
47
+ listType: U("text", "picture-text", "picture").withEditorProps({ creatable: !1 }),
48
+ method: o,
49
+ multiple: e.default(!1),
50
+ name: o,
51
+ onChange: t,
52
+ onError: t,
53
+ onPreview: t,
54
+ onProgress: t,
55
+ onRemove: t,
56
+ onReupload: t,
57
+ onSuccess: t,
58
+ onUpload: t,
59
+ removable: e.default(!1),
60
+ timeout: A,
61
+ withCredentials: e.default(!1),
62
+ fileList: R.withEditorProps({ columns: j }).valued
63
+ });
64
+ export {
65
+ G as rsUploader
66
+ };
67
+ //# sourceMappingURL=uploader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploader.js","sources":["../src/components/RsUploader.tsx"],"sourcesContent":["import {array, boolean, define, disabled, event, node, oneOf, string} from '@react-form-builder/core'\nimport {useEffect, useMemo, useRef} from 'react'\nimport type {UploaderProps} from 'rsuite'\nimport {Uploader} from 'rsuite'\nimport {nonNegNumber, readOnly} from '../commonProperties'\nimport {setAriaHiddenIfNotExists} from '../hooks'\nimport {fieldsCategory} from './categories'\nimport {useTouchOnEvent} from './hooks/useTouchOnEvent'\nimport {InputCell} from './internal/InputCell'\nimport {Labeled} from './internal/Labeled'\n\n/**\n * Props for the RsUploader component.\n */\nexport interface RsUploaderProps extends UploaderProps {\n /**\n * Whether to use a custom element for the uploader.\n */\n customElement: boolean\n /**\n * The label for the uploader.\n */\n label?: string\n}\n\n/**\n * A file uploader component that allows users to select and upload files.\n * @param props the component props.\n * @param props.customElement whether to use a custom element for the uploader.\n * @param props.children the custom content when customElement is true.\n * @param props.disabled whether the uploader is disabled.\n * @param props.multiple whether multiple files can be selected.\n * @param props.fileList the list of uploaded files.\n * @param props.className the CSS class name for the component.\n * @param props.label the label for the uploader.\n * @returns the React element.\n */\nconst RsUploader = ({customElement, children, disabled, multiple, fileList, className, label, ...props}: RsUploaderProps) => {\n const uploaderRef = useRef<any>(null)\n const onRemove = useTouchOnEvent(props, 'onRemove')\n\n useEffect(() => {\n const fileInput = uploaderRef.current?.root?.querySelector('input[type=\"file\"]')\n setAriaHiddenIfNotExists(fileInput)\n if (fileInput && !fileInput.hasAttribute('tabIndex')) {\n fileInput.setAttribute('tabIndex', '-1')\n }\n }, [])\n\n const canUpload = useMemo(() => {\n if (multiple) return true\n return !(fileList && fileList.length > 0)\n }, [fileList, multiple])\n\n const disabledButton = useMemo(() => disabled || !canUpload, [disabled, canUpload])\n\n return <Labeled label={label} className={className} passAriaToChildren={true}>\n <Uploader {...props} disabled={disabledButton} multiple={multiple}\n fileList={fileList} onRemove={onRemove} ref={uploaderRef}>\n {customElement ? <div>{children}</div> : undefined}\n </Uploader>\n </Labeled>\n}\n\nconst columns = [\n {name: 'name', input: InputCell},\n {name: 'fileKey', input: InputCell},\n {name: 'url', input: InputCell}\n]\n\nexport const rsUploader = define(RsUploader, 'RsUploader')\n .name('Uploader')\n .category(fieldsCategory)\n .props({\n label: string,\n action: string.default('/'),\n accept: string,\n autoUpload: boolean.default(true),\n customElement: boolean.default(false),\n children: node,\n disableMultipart: boolean.default(false),\n disabled: disabled.default(false),\n readOnly,\n disabledFileItem: boolean.default(false),\n draggable: boolean.default(false),\n fileListVisible: boolean.default(true),\n listType: oneOf('text', 'picture-text', 'picture')\n .withEditorProps({creatable: false}),\n method: string,\n multiple: boolean.default(false),\n name: string,\n onChange: event,\n onError: event,\n onPreview: event,\n onProgress: event,\n onRemove: event,\n onReupload: event,\n onSuccess: event,\n onUpload: event,\n removable: boolean.default(false),\n timeout: nonNegNumber,\n withCredentials: boolean.default(false),\n fileList: array\n .withEditorProps({columns})\n .valued\n })\n"],"names":["RsUploader","customElement","children","disabled","multiple","fileList","className","label","props","uploaderRef","useRef","onRemove","useTouchOnEvent","useEffect","fileInput","setAriaHiddenIfNotExists","canUpload","useMemo","disabledButton","jsx","Labeled","Uploader","columns","InputCell","rsUploader","define","fieldsCategory","string","boolean","node","readOnly","oneOf","event","nonNegNumber","array"],"mappings":";;;;;;;;;;AAqCA,MAAMA,IAAa,CAAC,EAAC,eAAAC,GAAe,UAAAC,GAAU,UAAAC,GAAU,UAAAC,GAAU,UAAAC,GAAU,WAAAC,GAAW,OAAAC,GAAO,GAAGC,QAA4B;AAC3H,QAAMC,IAAcC,EAAY,IAAI,GAC9BC,IAAWC,EAAgBJ,GAAO,UAAU;AAElD,EAAAK,EAAU,MAAM;AACd,UAAMC,IAAYL,EAAY,SAAS,MAAM,cAAc,oBAAoB;AAC/E,IAAAM,EAAyBD,CAAS,GAC9BA,KAAa,CAACA,EAAU,aAAa,UAAU,KACjDA,EAAU,aAAa,YAAY,IAAI;AAAA,EAE3C,GAAG,CAAA,CAAE;AAEL,QAAME,IAAYC,EAAQ,MACpBb,IAAiB,KACd,EAAEC,KAAYA,EAAS,SAAS,IACtC,CAACA,GAAUD,CAAQ,CAAC,GAEjBc,IAAiBD,EAAQ,MAAMd,KAAY,CAACa,GAAW,CAACb,GAAUa,CAAS,CAAC;AAElF,SAAO,gBAAAG,EAACC,GAAA,EAAQ,OAAAb,GAAc,WAAAD,GAAsB,oBAAoB,IACtE,UAAA,gBAAAa;AAAA,IAACE;AAAA,IAAA;AAAA,MAAU,GAAGb;AAAA,MAAO,UAAUU;AAAA,MAAgB,UAAAd;AAAA,MACrC,UAAAC;AAAA,MAAoB,UAAAM;AAAA,MAAoB,KAAKF;AAAA,MACpD,UAAAR,IAAgB,gBAAAkB,EAAC,OAAA,EAAK,UAAAjB,EAAA,CAAS,IAAS;AAAA,IAAA;AAAA,EAAA,GAE7C;AACF,GAEMoB,IAAU;AAAA,EACd,EAAC,MAAM,QAAQ,OAAOC,EAAA;AAAA,EACtB,EAAC,MAAM,WAAW,OAAOA,EAAA;AAAA,EACzB,EAAC,MAAM,OAAO,OAAOA,EAAA;AACvB,GAEaC,IAAaC,EAAOzB,GAAY,YAAY,EACtD,KAAK,UAAU,EACf,SAAS0B,CAAc,EACvB,MAAM;AAAA,EACL,OAAOC;AAAA,EACP,QAAQA,EAAO,QAAQ,GAAG;AAAA,EAC1B,QAAQA;AAAA,EACR,YAAYC,EAAQ,QAAQ,EAAI;AAAA,EAChC,eAAeA,EAAQ,QAAQ,EAAK;AAAA,EACpC,UAAUC;AAAA,EACV,kBAAkBD,EAAQ,QAAQ,EAAK;AAAA,EACvC,UAAUzB,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAA2B;AAAA,EACA,kBAAkBF,EAAQ,QAAQ,EAAK;AAAA,EACvC,WAAWA,EAAQ,QAAQ,EAAK;AAAA,EAChC,iBAAiBA,EAAQ,QAAQ,EAAI;AAAA,EACrC,UAAUG,EAAM,QAAQ,gBAAgB,SAAS,EAC9C,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,QAAQJ;AAAA,EACR,UAAUC,EAAQ,QAAQ,EAAK;AAAA,EAC/B,MAAMD;AAAA,EACN,UAAUK;AAAA,EACV,SAASA;AAAA,EACT,WAAWA;AAAA,EACX,YAAYA;AAAA,EACZ,UAAUA;AAAA,EACV,YAAYA;AAAA,EACZ,WAAWA;AAAA,EACX,UAAUA;AAAA,EACV,WAAWJ,EAAQ,QAAQ,EAAK;AAAA,EAChC,SAASK;AAAA,EACT,iBAAiBL,EAAQ,QAAQ,EAAK;AAAA,EACtC,UAAUM,EACP,gBAAgB,EAAC,SAAAZ,EAAA,CAAQ,EACzB;AACL,CAAC;"}
@@ -0,0 +1,12 @@
1
+ import { useComponentData as a } from "@react-form-builder/core";
2
+ import { useCallback as c } from "react";
3
+ const l = (t, n) => {
4
+ const { field: e } = a(), o = t[n];
5
+ return c((s) => {
6
+ e?.setTouched(), o?.(s);
7
+ }, [e, o]);
8
+ };
9
+ export {
10
+ l as u
11
+ };
12
+ //# sourceMappingURL=useTouchOnEvent-BPYbKiku.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTouchOnEvent-BPYbKiku.js","sources":["../src/components/hooks/useTouchOnEvent.ts"],"sourcesContent":["import {useComponentData} from '@react-form-builder/core'\nimport {useCallback} from 'react'\n\n/**\n * A function that accepts arguments and returns void.\n */\nexport type GenericVoidFunction = (...args: any[]) => void\n\n/**\n * Creates a wrapper for a function from the component properties that sets the touched flag for the field.\n * @param props the component properties.\n * @param propertyName the property name containing a function.\n * @template T the component property type.\n * @returns the wrapped function.\n */\nexport const useTouchOnEvent = <T>(props: T, propertyName: keyof T): GenericVoidFunction => {\n const {field} = useComponentData()\n const eventCallback = props[propertyName] as GenericVoidFunction | undefined\n\n return useCallback((e) => {\n field?.setTouched()\n eventCallback?.(e)\n }, [field, eventCallback])\n}\n"],"names":["useTouchOnEvent","props","propertyName","field","useComponentData","eventCallback","useCallback","e"],"mappings":";;AAeO,MAAMA,IAAkB,CAAIC,GAAUC,MAA+C;AAC1F,QAAM,EAAC,OAAAC,EAAA,IAASC,EAAA,GACVC,IAAgBJ,EAAMC,CAAY;AAExC,SAAOI,EAAY,CAACC,MAAM;AACxB,IAAAJ,GAAO,WAAA,GACPE,IAAgBE,CAAC;AAAA,EACnB,GAAG,CAACJ,GAAOE,CAAa,CAAC;AAC3B;"}
@@ -0,0 +1,9 @@
1
+ import { View } from '@react-form-builder/core';
2
+
3
+ /**
4
+ * An assembled set of rSuite components, ready to be passed as a property to the FormViewer.
5
+ * This view contains CSS loaders.
6
+ */
7
+ export declare const viewWithCss: View;
8
+
9
+ export { }
@@ -0,0 +1,9 @@
1
+ import { createView as o, BiDi as r } from "@react-form-builder/core";
2
+ import { RsLocalizationWrapper as e } from "./localization-wrapper.js";
3
+ import { ltrCssLoader as i, rtlCssLoader as s, formEngineRsuiteCssLoader as t } from "./css-loader.js";
4
+ import { models as m } from "./models.js";
5
+ const w = o(m).withViewerWrapper(e).withCssLoader(r.LTR, i).withCssLoader(r.RTL, s).withCssLoader("common", t);
6
+ export {
7
+ w as viewWithCss
8
+ };
9
+ //# sourceMappingURL=view-with-css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-with-css.js","sources":["../src/viewWithCss.ts"],"sourcesContent":["import {BiDi, createView} from '@react-form-builder/core'\nimport {RsLocalizationWrapper} from './components/RsLocalizationWrapper'\nimport {formEngineRsuiteCssLoader, ltrCssLoader, rtlCssLoader} from './cssLoader'\nimport {models} from './models'\n\n/**\n * An assembled set of rSuite components, ready to be passed as a property to the FormViewer.\n * This view contains CSS loaders.\n */\nexport const viewWithCss = createView(models)\n // The following parameters are required for correct CSS loading in LTR and RTL modes\n .withViewerWrapper(RsLocalizationWrapper)\n .withCssLoader(BiDi.LTR, ltrCssLoader)\n .withCssLoader(BiDi.RTL, rtlCssLoader)\n .withCssLoader('common', formEngineRsuiteCssLoader)\n"],"names":["viewWithCss","createView","models","RsLocalizationWrapper","BiDi","ltrCssLoader","rtlCssLoader","formEngineRsuiteCssLoader"],"mappings":";;;;AASO,MAAMA,IAAcC,EAAWC,CAAM,EAEzC,kBAAkBC,CAAqB,EACvC,cAAcC,EAAK,KAAKC,CAAY,EACpC,cAAcD,EAAK,KAAKE,CAAY,EACpC,cAAc,UAAUC,CAAyB;"}
package/dist/view.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { View } from '@react-form-builder/core';
2
+
3
+ /**
4
+ * An assembled set of rSuite components, ready to be passed as a property to the FormViewer.
5
+ */
6
+ export declare const view: View;
7
+
8
+ export { }
package/dist/view.js ADDED
@@ -0,0 +1,7 @@
1
+ import { createView as o } from "@react-form-builder/core";
2
+ import { models as e } from "./models.js";
3
+ const t = o(e);
4
+ export {
5
+ t as view
6
+ };
7
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.js","sources":["../src/view.ts"],"sourcesContent":["import {createView} from '@react-form-builder/core'\nimport {models} from './models'\n\n/**\n * An assembled set of rSuite components, ready to be passed as a property to the FormViewer.\n */\nexport const view = createView(models)\n"],"names":["view","createView","models"],"mappings":";;AAMO,MAAMA,IAAOC,EAAWC,CAAM;"}