@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.
- package/dist/InputCell-BDyUJFGm.js +21 -0
- package/dist/InputCell-BDyUJFGm.js.map +1 -0
- package/dist/Labeled-BWYRwMiY.js +35 -0
- package/dist/Labeled-BWYRwMiY.js.map +1 -0
- package/dist/WrappedInput-BRkBjl0z.js +11 -0
- package/dist/WrappedInput-BRkBjl0z.js.map +1 -0
- package/dist/autocomplete.d.ts +30 -0
- package/dist/autocomplete.js +59 -0
- package/dist/autocomplete.js.map +1 -0
- package/dist/breadcrumb.d.ts +38 -0
- package/dist/breadcrumb.js +42 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/builder-view-with-css.d.ts +9 -0
- package/dist/builder-view-with-css.js +10 -0
- package/dist/builder-view-with-css.js.map +1 -0
- package/dist/button.d.ts +6 -0
- package/dist/button.js +23 -0
- package/dist/button.js.map +1 -0
- package/dist/calendar.d.ts +20 -0
- package/dist/calendar.js +21 -0
- package/dist/calendar.js.map +1 -0
- package/dist/card.d.ts +20 -0
- package/dist/card.js +30 -0
- package/dist/card.js.map +1 -0
- package/dist/categories-_98lyB3C.js +8 -0
- package/dist/categories-_98lyB3C.js.map +1 -0
- package/dist/checkbox.d.ts +6 -0
- package/dist/checkbox.js +32 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/commonProperties-ETOgvhCH.js +74 -0
- package/dist/commonProperties-ETOgvhCH.js.map +1 -0
- package/dist/components-descriptions.d.ts +6 -0
- package/dist/components-descriptions.js +5 -0
- package/dist/components-descriptions.js.map +1 -0
- package/dist/container.d.ts +25 -0
- package/dist/container.js +23 -0
- package/dist/container.js.map +1 -0
- package/dist/css/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/css/rsuite-no-reset.min.css +1 -1
- package/dist/css-loader.d.ts +19 -0
- package/dist/css-loader.js +20 -0
- package/dist/css-loader.js.map +1 -0
- package/dist/date-picker.d.ts +25 -0
- package/dist/date-picker.js +71 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/dateTimeUtils-C2AEniv5.js +25 -0
- package/dist/dateTimeUtils-C2AEniv5.js.map +1 -0
- package/dist/definitions.d.ts +5 -0
- package/dist/definitions.js +6 -0
- package/dist/definitions.js.map +1 -0
- package/dist/divider.d.ts +11 -0
- package/dist/divider.js +12 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.d.ts +58 -0
- package/dist/dropdown.js +56 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/error-message.d.ts +20 -0
- package/dist/error-message.js +28 -0
- package/dist/error-message.js.map +1 -0
- package/dist/{formengine-rsuite-cbc1d3ae.js → formengine-rsuite.css-DkGUHOws.js} +1 -1
- package/dist/formengine-rsuite.css-DkGUHOws.js.map +1 -0
- package/dist/header.d.ts +69 -0
- package/dist/header.js +20 -0
- package/dist/header.js.map +1 -0
- package/dist/hooks-DMVtrI-b.js +50 -0
- package/dist/hooks-DMVtrI-b.js.map +1 -0
- package/dist/image.d.ts +22 -0
- package/dist/image.js +41 -0
- package/dist/image.js.map +1 -0
- package/dist/images/logo.svg +20 -0
- package/dist/index.d.ts +1529 -36
- package/dist/index.js +95 -19516
- package/dist/index.js.map +1 -1
- package/dist/input.d.ts +32 -0
- package/dist/input.js +26 -0
- package/dist/input.js.map +1 -0
- package/dist/label.d.ts +47 -0
- package/dist/label.js +16 -0
- package/dist/label.js.map +1 -0
- package/dist/link.d.ts +56 -0
- package/dist/link.js +20 -0
- package/dist/link.js.map +1 -0
- package/dist/localization-wrapper.d.ts +164 -0
- package/dist/localization-wrapper.js +113 -0
- package/dist/localization-wrapper.js.map +1 -0
- package/dist/menu.d.ts +35 -0
- package/dist/menu.js +49 -0
- package/dist/menu.js.map +1 -0
- package/dist/message.d.ts +16 -0
- package/dist/message.js +18 -0
- package/dist/message.js.map +1 -0
- package/dist/modal-layout.d.ts +28 -0
- package/dist/modal-layout.js +21 -0
- package/dist/modal-layout.js.map +1 -0
- package/dist/modal.d.ts +16 -0
- package/dist/modal.js +27 -0
- package/dist/modal.js.map +1 -0
- package/dist/models.d.ts +8 -0
- package/dist/models.js +6 -0
- package/dist/models.js.map +1 -0
- package/dist/number-format.d.ts +25 -0
- package/dist/number-format.js +50 -0
- package/dist/number-format.js.map +1 -0
- package/dist/pattern-format.d.ts +25 -0
- package/dist/pattern-format.js +36 -0
- package/dist/pattern-format.js.map +1 -0
- package/dist/placeholder.d.ts +17 -0
- package/dist/placeholder.js +38 -0
- package/dist/placeholder.js.map +1 -0
- package/dist/progress.d.ts +14 -0
- package/dist/progress.js +27 -0
- package/dist/progress.js.map +1 -0
- package/dist/r-suite-components.d.ts +8 -0
- package/dist/r-suite-components.js +98 -0
- package/dist/r-suite-components.js.map +1 -0
- package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js +67 -0
- package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js.map +1 -0
- package/dist/radio-group.d.ts +26 -0
- package/dist/radio-group.js +21 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js +5 -0
- package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js.map +1 -0
- package/dist/rsuite-no-reset.min.css-bW1P11UK.js +5 -0
- package/dist/rsuite-no-reset.min.css-bW1P11UK.js.map +1 -0
- package/dist/search.d.ts +54 -0
- package/dist/search.js +55 -0
- package/dist/search.js.map +1 -0
- package/dist/static-content.d.ts +19 -0
- package/dist/static-content.js +15 -0
- package/dist/static-content.js.map +1 -0
- package/dist/stats.html +4 -0
- package/dist/tab.d.ts +39 -0
- package/dist/tab.js +55 -0
- package/dist/tab.js.map +1 -0
- package/dist/tag-picker.d.ts +21 -0
- package/dist/tag-picker.js +39 -0
- package/dist/tag-picker.js.map +1 -0
- package/dist/text-area.d.ts +24 -0
- package/dist/text-area.js +21 -0
- package/dist/text-area.js.map +1 -0
- package/dist/time-picker.d.ts +29 -0
- package/dist/time-picker.js +72 -0
- package/dist/time-picker.js.map +1 -0
- package/dist/toggle.d.ts +16 -0
- package/dist/toggle.js +26 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.d.ts +29 -0
- package/dist/tooltip.js +37 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/uploader.d.ts +20 -0
- package/dist/uploader.js +67 -0
- package/dist/uploader.js.map +1 -0
- package/dist/useTouchOnEvent-BPYbKiku.js +12 -0
- package/dist/useTouchOnEvent-BPYbKiku.js.map +1 -0
- package/dist/view-with-css.d.ts +9 -0
- package/dist/view-with-css.js +9 -0
- package/dist/view-with-css.js.map +1 -0
- package/dist/view.d.ts +8 -0
- package/dist/view.js +7 -0
- package/dist/view.js.map +1 -0
- package/dist/wizard.d.ts +86 -0
- package/dist/wizard.js +277 -0
- package/dist/wizard.js.map +1 -0
- package/package.json +195 -6
- package/dist/formengine-rsuite-cbc1d3ae.js.map +0 -1
- package/dist/images/logo.png +0 -0
- package/dist/rsuite-no-reset-rtl.min-f9b04ca7.js +0 -5
- package/dist/rsuite-no-reset-rtl.min-f9b04ca7.js.map +0 -1
- package/dist/rsuite-no-reset.min-12eea714.js +0 -5
- package/dist/rsuite-no-reset.min-12eea714.js.map +0 -1
package/dist/message.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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";
|
|
3
|
+
import { Message as t } from "rsuite";
|
|
4
|
+
import { a as i } from "./categories-_98lyB3C.js";
|
|
5
|
+
const f = s(t)`
|
|
6
|
+
.rs-message-header {
|
|
7
|
+
overflow: initial;
|
|
8
|
+
}
|
|
9
|
+
`, d = o(f, "RsMessage").name("Message").category(i).props({
|
|
10
|
+
children: e,
|
|
11
|
+
closable: a.default(!1),
|
|
12
|
+
header: e,
|
|
13
|
+
type: r("info", "success", "warning", "error").default("info").withEditorProps({ creatable: !1 })
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
d as rsMessage
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sources":["../src/components/RsMessage.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport {boolean, define, node, oneOf} from '@react-form-builder/core'\nimport {Message} from 'rsuite'\nimport {staticCategory} from './categories'\n\nconst SMessage = styled(Message)`\n .rs-message-header {\n overflow: initial;\n }\n`\n\nexport const rsMessage = define(SMessage, 'RsMessage')\n .name('Message')\n .category(staticCategory)\n .props({\n children: node,\n closable: boolean.default(false),\n header: node,\n type: oneOf('info', 'success', 'warning', 'error').default('info')\n .withEditorProps({creatable: false})\n })\n"],"names":["SMessage","styled","Message","rsMessage","define","staticCategory","node","boolean","oneOf"],"mappings":";;;;AAKA,MAAMA,IAAWC,EAAOC,CAAO;AAAA;AAAA;AAAA;AAAA,GAMlBC,IAAYC,EAAOJ,GAAU,WAAW,EAClD,KAAK,SAAS,EACd,SAASK,CAAc,EACvB,MAAM;AAAA,EACL,UAAUC;AAAA,EACV,UAAUC,EAAQ,QAAQ,EAAK;AAAA,EAC/B,QAAQD;AAAA,EACR,MAAME,EAAM,QAAQ,WAAW,WAAW,OAAO,EAAE,QAAQ,MAAM,EAC9D,gBAAgB,EAAC,WAAW,IAAM;AACvC,CAAC;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const rsModalLayout: Definer<RsModalLayoutProps>;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props for the RsModalLayout component.
|
|
8
|
+
*/
|
|
9
|
+
export declare interface RsModalLayoutProps {
|
|
10
|
+
/**
|
|
11
|
+
* Whether to show the close button.
|
|
12
|
+
*/
|
|
13
|
+
closeButton: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The title for the modal header.
|
|
16
|
+
*/
|
|
17
|
+
headerTitle: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* The content for the modal body.
|
|
20
|
+
*/
|
|
21
|
+
body: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The content for the modal footer.
|
|
24
|
+
*/
|
|
25
|
+
footer: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs as s, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { define as i, node as e, boolean as c } from "@react-form-builder/core";
|
|
3
|
+
import { Modal as m } from "rsuite";
|
|
4
|
+
import { m as u } from "./categories-_98lyB3C.js";
|
|
5
|
+
const { Header: y, Title: f, Body: h, Footer: p } = m, M = (t) => {
|
|
6
|
+
const { closeButton: r, headerTitle: d, body: a, footer: l, ...n } = t;
|
|
7
|
+
return /* @__PURE__ */ s("div", { ...n, children: [
|
|
8
|
+
/* @__PURE__ */ o(y, { closeButton: r, children: /* @__PURE__ */ o(f, { children: d }) }),
|
|
9
|
+
/* @__PURE__ */ o(h, { children: a }),
|
|
10
|
+
/* @__PURE__ */ o(p, { children: l })
|
|
11
|
+
] });
|
|
12
|
+
}, T = i(M, "RsModalLayout").name("Modal layout").category(u).props({
|
|
13
|
+
closeButton: c.default(!0),
|
|
14
|
+
headerTitle: e,
|
|
15
|
+
body: e,
|
|
16
|
+
footer: e
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
T as rsModalLayout
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=modal-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-layout.js","sources":["../src/components/RsModalLayout.tsx"],"sourcesContent":["import {boolean, define, node} from '@react-form-builder/core'\nimport type {ReactNode} from 'react'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\nconst {Header, Title, Body, Footer} = Modal\n\n/**\n * Props for the RsModalLayout component.\n */\nexport interface RsModalLayoutProps {\n /**\n * Whether to show the close button.\n */\n closeButton: boolean,\n /**\n * The title for the modal header.\n */\n headerTitle: ReactNode,\n /**\n * The content for the modal body.\n */\n body: ReactNode,\n /**\n * The content for the modal footer.\n */\n footer: ReactNode,\n}\n\n/**\n * Modal layout component with header, body and footer sections.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModalLayout = (props: RsModalLayoutProps) => {\n const {closeButton, headerTitle, body, footer, ...rest} = props\n return <div {...rest}>\n <Header closeButton={closeButton}>\n <Title>\n {headerTitle}\n </Title>\n </Header>\n <Body>\n {body}\n </Body>\n <Footer>\n {footer}\n </Footer>\n </div>\n}\n\nexport const rsModalLayout = define(RsModalLayout, 'RsModalLayout')\n .name('Modal layout')\n .category(modalCategory)\n .props({\n closeButton: boolean.default(true),\n headerTitle: node,\n body: node,\n footer: node,\n })\n"],"names":["Header","Title","Body","Footer","Modal","RsModalLayout","props","closeButton","headerTitle","body","footer","rest","jsxs","jsx","rsModalLayout","define","modalCategory","boolean","node"],"mappings":";;;;AAKA,MAAM,EAAC,QAAAA,GAAQ,OAAAC,GAAO,MAAAC,GAAM,QAAAC,MAAUC,GA6BhCC,IAAgB,CAACC,MAA8B;AACnD,QAAM,EAAC,aAAAC,GAAa,aAAAC,GAAa,MAAAC,GAAM,QAAAC,GAAQ,GAAGC,MAAQL;AAC1D,SAAO,gBAAAM,EAAC,OAAA,EAAK,GAAGD,GACd,UAAA;AAAA,IAAA,gBAAAE,EAACb,GAAA,EAAO,aAAAO,GACN,UAAA,gBAAAM,EAACZ,GAAA,EACE,aACH,GACF;AAAA,IACA,gBAAAY,EAACX,KACE,UAAAO,EAAA,CACH;AAAA,IACA,gBAAAI,EAACV,KACE,UAAAO,EAAA,CACH;AAAA,EAAA,GACF;AACF,GAEaI,IAAgBC,EAAOV,GAAe,eAAe,EAC/D,KAAK,cAAc,EACnB,SAASW,CAAa,EACtB,MAAM;AAAA,EACL,aAAaC,EAAQ,QAAQ,EAAI;AAAA,EACjC,aAAaC;AAAA,EACb,MAAMA;AAAA,EACN,QAAQA;AACV,CAAC;"}
|
package/dist/modal.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { ModalProps } from 'rsuite';
|
|
3
|
+
|
|
4
|
+
export declare const rsModal: Definer<RsModalProps>;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props for the RsModal component.
|
|
8
|
+
*/
|
|
9
|
+
export declare interface RsModalProps extends ModalProps {
|
|
10
|
+
/**
|
|
11
|
+
* Custom close handler function.
|
|
12
|
+
*/
|
|
13
|
+
handleClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { }
|
package/dist/modal.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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";
|
|
3
|
+
import { useCallback as i } from "react";
|
|
4
|
+
import { Modal as p } from "rsuite";
|
|
5
|
+
import { m as C } from "./categories-_98lyB3C.js";
|
|
6
|
+
const b = (t) => {
|
|
7
|
+
const { children: s, handleClose: l, onClose: a, ...d } = t, m = i((n) => {
|
|
8
|
+
l?.(), a?.(n);
|
|
9
|
+
}, [l, a]);
|
|
10
|
+
return /* @__PURE__ */ u(p, { ...d, onClose: m, children: s });
|
|
11
|
+
}, g = f("xs", "sm", "md", "lg", "full").labeled("Extra small", "Small", "Medium", "Large", "Full").default("md"), y = c(b, "RsModal").name("Modal").category(C).props({
|
|
12
|
+
autoFocus: o.default(!0),
|
|
13
|
+
backdrop: o.default(!0),
|
|
14
|
+
backdropClassName: e,
|
|
15
|
+
classPrefix: e,
|
|
16
|
+
dialogClassName: e,
|
|
17
|
+
enforceFocus: o.default(!0),
|
|
18
|
+
keyboard: o.default(!0),
|
|
19
|
+
overflow: o.default(!0),
|
|
20
|
+
size: g,
|
|
21
|
+
onOpen: r,
|
|
22
|
+
onClose: r
|
|
23
|
+
}).componentRole("modal").hideFromComponentPalette();
|
|
24
|
+
export {
|
|
25
|
+
y as rsModal
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../src/components/RsModal.tsx"],"sourcesContent":["import {boolean, define, event, oneOf, string} from '@react-form-builder/core'\nimport type {SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {ModalProps} from 'rsuite'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\n/**\n * Props for the RsModal component.\n */\nexport interface RsModalProps extends ModalProps {\n /**\n * Custom close handler function.\n */\n handleClose?: () => void\n}\n\n/**\n * A modal component that displays content in an overlay dialog.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModal = (props: RsModalProps) => {\n const {children, handleClose, onClose, ...rest} = props\n\n const close = useCallback((e: SyntheticEvent) => {\n handleClose?.()\n onClose?.(e)\n }, [handleClose, onClose])\n\n return <Modal {...rest} onClose={close}>\n {children}\n </Modal>\n}\n\nconst modalSize = oneOf('xs', 'sm', 'md', 'lg', 'full')\n .labeled('Extra small', 'Small', 'Medium', 'Large', 'Full')\n .default('md')\n\nexport const rsModal = define(RsModal, 'RsModal')\n .name('Modal')\n .category(modalCategory)\n .props({\n autoFocus: boolean.default(true),\n backdrop: boolean.default(true),\n backdropClassName: string,\n classPrefix: string,\n dialogClassName: string,\n enforceFocus: boolean.default(true),\n keyboard: boolean.default(true),\n overflow: boolean.default(true),\n size: modalSize,\n onOpen: event,\n onClose: event,\n })\n .componentRole('modal')\n .hideFromComponentPalette()\n"],"names":["RsModal","props","children","handleClose","onClose","rest","close","useCallback","e","Modal","modalSize","oneOf","rsModal","define","modalCategory","boolean","string","event"],"mappings":";;;;;AAsBA,MAAMA,IAAU,CAACC,MAAwB;AACvC,QAAM,EAAC,UAAAC,GAAU,aAAAC,GAAa,SAAAC,GAAS,GAAGC,MAAQJ,GAE5CK,IAAQC,EAAY,CAACC,MAAsB;AAC/C,IAAAL,IAAA,GACAC,IAAUI,CAAC;AAAA,EACb,GAAG,CAACL,GAAaC,CAAO,CAAC;AAEzB,2BAAQK,GAAA,EAAO,GAAGJ,GAAM,SAASC,GAC9B,UAAAJ,GACH;AACF,GAEMQ,IAAYC,EAAM,MAAM,MAAM,MAAM,MAAM,MAAM,EACnD,QAAQ,eAAe,SAAS,UAAU,SAAS,MAAM,EACzD,QAAQ,IAAI,GAEFC,IAAUC,EAAOb,GAAS,SAAS,EAC7C,KAAK,OAAO,EACZ,SAASc,CAAa,EACtB,MAAM;AAAA,EACL,WAAWC,EAAQ,QAAQ,EAAI;AAAA,EAC/B,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,mBAAmBC;AAAA,EACnB,aAAaA;AAAA,EACb,iBAAiBA;AAAA,EACjB,cAAcD,EAAQ,QAAQ,EAAI;AAAA,EAClC,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,MAAML;AAAA,EACN,QAAQO;AAAA,EACR,SAASA;AACX,CAAC,EACA,cAAc,OAAO,EACrB,yBAAA;"}
|
package/dist/models.d.ts
ADDED
package/dist/models.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sources":["../src/models.ts"],"sourcesContent":["import {components} from './definitions'\n\n/**\n * An array of rSuite component metadata for use in FormViewer.\n */\nexport const models = components.map(({model}) => model)\n"],"names":["models","components","model"],"mappings":";AAKO,MAAMA,IAASC,EAAW,IAAI,CAAC,EAAC,OAAAC,EAAA,MAAWA,CAAK;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { InputProps } from 'rsuite';
|
|
3
|
+
import { NumericFormatProps } from 'react-number-format';
|
|
4
|
+
|
|
5
|
+
export declare const rsNumberFormat: Definer<RsNumberFormatProps>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props for the RsNumberFormat component.
|
|
9
|
+
*/
|
|
10
|
+
export declare interface RsNumberFormatProps extends NumericFormatProps<InputProps> {
|
|
11
|
+
/**
|
|
12
|
+
* The label for the number input.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* The callback function called when the value changes.
|
|
17
|
+
*/
|
|
18
|
+
onChange: (value: any) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The htmlSize attribute defines the width of the «input> element.
|
|
21
|
+
*/
|
|
22
|
+
htmlSize?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { }
|
|
@@ -0,0 +1,50 @@
|
|
|
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";
|
|
3
|
+
import { useCallback as g } from "react";
|
|
4
|
+
import { NumericFormat as N } from "react-number-format";
|
|
5
|
+
import { a as w, i as x } from "./commonProperties-ETOgvhCH.js";
|
|
6
|
+
import { f as y } from "./categories-_98lyB3C.js";
|
|
7
|
+
import { L as F } from "./Labeled-BWYRwMiY.js";
|
|
8
|
+
import { W as D } from "./WrappedInput-BRkBjl0z.js";
|
|
9
|
+
function v(t) {
|
|
10
|
+
let { decimalSeparator: r = "." } = t, { thousandSeparator: a } = t;
|
|
11
|
+
return a === !0 && (a = ","), a === r && (console.warn(`
|
|
12
|
+
Decimal separator can't be same as thousand separator.
|
|
13
|
+
thousandSeparator: ${a} (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
14
|
+
decimalSeparator: ${r} (default value for decimalSeparator is .)
|
|
15
|
+
`), a = void 0, r = "."), a && b(a) && (a.indexOf("-") >= 0 ? (console.warn("Thousand separator can't contain '-' character"), a = void 0) : a.match(/\d/g) && (console.warn("Thousand separator should not contain numeric character"), a = void 0)), r.match(/\d/g) && (console.warn("Decimal separator should not contain numeric character"), r = "."), { decimalSeparator: r, thousandSeparator: a };
|
|
16
|
+
}
|
|
17
|
+
const C = ({ style: t, className: r, label: a, onChange: i, value: e, ...s }) => {
|
|
18
|
+
const { decimalSeparator: l, thousandSeparator: u } = v(s);
|
|
19
|
+
e = e ?? "", typeof e == "number" && !Number.isFinite(e) && (e = "");
|
|
20
|
+
const c = g((d) => i?.(d.value), [i]);
|
|
21
|
+
return /* @__PURE__ */ m(F, { label: a, style: t, className: r, passAriaToChildren: !0, children: /* @__PURE__ */ m(
|
|
22
|
+
N,
|
|
23
|
+
{
|
|
24
|
+
customInput: D,
|
|
25
|
+
...s,
|
|
26
|
+
decimalSeparator: l,
|
|
27
|
+
thousandSeparator: u,
|
|
28
|
+
onValueChange: c,
|
|
29
|
+
value: e
|
|
30
|
+
}
|
|
31
|
+
) });
|
|
32
|
+
}, j = f(C, "RsNumberFormat").name("Number format").category(y).props({
|
|
33
|
+
label: o.default("Number input"),
|
|
34
|
+
value: S.valued,
|
|
35
|
+
...x,
|
|
36
|
+
allowedDecimalSeparators: h.ofString,
|
|
37
|
+
allowLeadingZeros: n.default(!1),
|
|
38
|
+
allowNegative: n.default(!0),
|
|
39
|
+
decimalScale: w,
|
|
40
|
+
decimalSeparator: o,
|
|
41
|
+
fixedDecimalScale: n.default(!1),
|
|
42
|
+
prefix: o,
|
|
43
|
+
suffix: o,
|
|
44
|
+
thousandsGroupStyle: p("thousand", "lakh", "wan", "none").default("none"),
|
|
45
|
+
thousandSeparator: o
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
j as rsNumberFormat
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=number-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-format.js","sources":["../src/components/RsNumberFormat.tsx"],"sourcesContent":["import {array, boolean, define, isString, number, oneOf, string} from '@react-form-builder/core'\nimport {useCallback} from 'react'\nimport type {NumericFormatProps} from 'react-number-format'\nimport {NumericFormat} from 'react-number-format'\nimport type {NumberFormatValues} from 'react-number-format/types/types'\nimport type {InputProps} from 'rsuite'\nimport {inputProps, nonNegNumber} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {Labeled} from './internal/Labeled'\nimport {WrappedInput} from './internal/WrappedInput'\n\n/**\n * Props for the RsNumberFormat component.\n */\nexport interface RsNumberFormatProps extends NumericFormatProps<InputProps> {\n /**\n * The label for the number input.\n */\n label: string\n /**\n * The callback function called when the value changes.\n */\n onChange: (value: any) => void\n /**\n * The htmlSize attribute defines the width of the «input> element.\n */\n htmlSize?: number\n}\n\n/**\n * Gets the decimal and a thousand separators with validation.\n * @param props the separator properties.\n * @param props.thousandSeparator the thousand separator.\n * @param props.decimalSeparator the decimal separator.\n * @returns the validated separators.\n */\nfunction getSeparators(props: { thousandSeparator?: boolean | string, decimalSeparator?: string }) {\n let {decimalSeparator = '.'} = props\n let {thousandSeparator} = props\n if (thousandSeparator === true) thousandSeparator = ','\n\n if (thousandSeparator === decimalSeparator) {\n console.warn(`\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ${thousandSeparator} (thousandSeparator = {true} is same as thousandSeparator = \",\")\n decimalSeparator: ${decimalSeparator} (default value for decimalSeparator is .)\n `)\n thousandSeparator = undefined\n decimalSeparator = '.'\n }\n\n if (thousandSeparator && isString(thousandSeparator)) {\n if (thousandSeparator.indexOf('-') >= 0) {\n console.warn(`Thousand separator can't contain '-' character`)\n thousandSeparator = undefined\n } else if (thousandSeparator.match(/\\d/g)) {\n console.warn(`Thousand separator should not contain numeric character`)\n thousandSeparator = undefined\n }\n }\n\n if (decimalSeparator.match(/\\d/g)) {\n console.warn(`Decimal separator should not contain numeric character`)\n decimalSeparator = '.'\n }\n\n return {decimalSeparator, thousandSeparator}\n}\n\n/**\n * A number format input component with validation and formatting.\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 number input.\n * @param props.onChange the callback function called when the value changes.\n * @param props.value the current value of the input.\n * @returns the React element.\n */\nconst RsNumberFormat = ({style, className, label, onChange, value, ...props}: RsNumberFormatProps) => {\n const {decimalSeparator, thousandSeparator} = getSeparators(props)\n\n value = value ?? ''\n if (typeof value === 'number' && !Number.isFinite(value)) {\n value = ''\n }\n\n const onValueChange = useCallback((values: NumberFormatValues) => onChange?.(values.value), [onChange])\n\n return <Labeled label={label} style={style} className={className} passAriaToChildren={true}>\n <NumericFormat<InputProps> customInput={WrappedInput}\n {...props}\n decimalSeparator={decimalSeparator}\n thousandSeparator={thousandSeparator}\n onValueChange={onValueChange}\n value={value}/>\n </Labeled>\n}\n\nexport const rsNumberFormat = define(RsNumberFormat, 'RsNumberFormat')\n .name('Number format')\n .category(fieldsCategory)\n .props({\n label: string.default('Number input'),\n value: number.valued,\n ...inputProps,\n allowedDecimalSeparators: array.ofString,\n allowLeadingZeros: boolean.default(false),\n allowNegative: boolean.default(true),\n decimalScale: nonNegNumber,\n decimalSeparator: string,\n fixedDecimalScale: boolean.default(false),\n prefix: string,\n suffix: string,\n thousandsGroupStyle: oneOf('thousand', 'lakh', 'wan', 'none').default('none'),\n thousandSeparator: string,\n })\n"],"names":["getSeparators","props","decimalSeparator","thousandSeparator","isString","RsNumberFormat","style","className","label","onChange","value","onValueChange","useCallback","values","Labeled","jsx","NumericFormat","WrappedInput","rsNumberFormat","define","fieldsCategory","string","number","inputProps","array","boolean","nonNegNumber","oneOf"],"mappings":";;;;;;;;AAoCA,SAASA,EAAcC,GAA4E;AACjG,MAAI,EAAC,kBAAAC,IAAmB,IAAA,IAAOD,GAC3B,EAAC,mBAAAE,MAAqBF;AAC1B,SAAIE,MAAsB,OAAMA,IAAoB,MAEhDA,MAAsBD,MACxB,QAAQ,KAAK;AAAA;AAAA,6BAEYC,CAAiB;AAAA,4BAClBD,CAAgB;AAAA,MACtC,GACFC,IAAoB,QACpBD,IAAmB,MAGjBC,KAAqBC,EAASD,CAAiB,MAC7CA,EAAkB,QAAQ,GAAG,KAAK,KACpC,QAAQ,KAAK,gDAAgD,GAC7DA,IAAoB,UACXA,EAAkB,MAAM,KAAK,MACtC,QAAQ,KAAK,yDAAyD,GACtEA,IAAoB,UAIpBD,EAAiB,MAAM,KAAK,MAC9B,QAAQ,KAAK,wDAAwD,GACrEA,IAAmB,MAGd,EAAC,kBAAAA,GAAkB,mBAAAC,EAAA;AAC5B;AAYA,MAAME,IAAiB,CAAC,EAAC,OAAAC,GAAO,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,OAAAC,GAAO,GAAGT,QAAgC;AACpG,QAAM,EAAC,kBAAAC,GAAkB,mBAAAC,MAAqBH,EAAcC,CAAK;AAEjE,EAAAS,IAAQA,KAAS,IACb,OAAOA,KAAU,YAAY,CAAC,OAAO,SAASA,CAAK,MACrDA,IAAQ;AAGV,QAAMC,IAAgBC,EAAY,CAACC,MAA+BJ,IAAWI,EAAO,KAAK,GAAG,CAACJ,CAAQ,CAAC;AAEtG,2BAAQK,GAAA,EAAQ,OAAAN,GAAc,OAAAF,GAAc,WAAAC,GAAsB,oBAAoB,IACpF,UAAA,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MAA0B,aAAaC;AAAA,MACZ,GAAGhB;AAAA,MACJ,kBAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,eAAAQ;AAAA,MACA,OAAAD;AAAA,IAAA;AAAA,EAAA,GAC7B;AACF,GAEaQ,IAAiBC,EAAOd,GAAgB,gBAAgB,EAClE,KAAK,eAAe,EACpB,SAASe,CAAc,EACvB,MAAM;AAAA,EACL,OAAOC,EAAO,QAAQ,cAAc;AAAA,EACpC,OAAOC,EAAO;AAAA,EACd,GAAGC;AAAA,EACH,0BAA0BC,EAAM;AAAA,EAChC,mBAAmBC,EAAQ,QAAQ,EAAK;AAAA,EACxC,eAAeA,EAAQ,QAAQ,EAAI;AAAA,EACnC,cAAcC;AAAA,EACd,kBAAkBL;AAAA,EAClB,mBAAmBI,EAAQ,QAAQ,EAAK;AAAA,EACxC,QAAQJ;AAAA,EACR,QAAQA;AAAA,EACR,qBAAqBM,EAAM,YAAY,QAAQ,OAAO,MAAM,EAAE,QAAQ,MAAM;AAAA,EAC5E,mBAAmBN;AACrB,CAAC;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { InputProps } from 'rsuite';
|
|
3
|
+
import { PatternFormatProps } from 'react-number-format';
|
|
4
|
+
|
|
5
|
+
export declare const rsPatternFormat: Definer<RsPatternFormatProps>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props for the RsPatternFormat component.
|
|
9
|
+
*/
|
|
10
|
+
export declare interface RsPatternFormatProps extends PatternFormatProps<InputProps> {
|
|
11
|
+
/**
|
|
12
|
+
* The label for the pattern format input.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* The callback when value changes.
|
|
17
|
+
*/
|
|
18
|
+
onChange: (value: any) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The htmlSize attribute defines the width of the «input> element.
|
|
21
|
+
*/
|
|
22
|
+
htmlSize?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { }
|
|
@@ -0,0 +1,36 @@
|
|
|
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";
|
|
3
|
+
import { useCallback as c } from "react";
|
|
4
|
+
import { PatternFormat as g } from "react-number-format";
|
|
5
|
+
import { i as h } from "./commonProperties-ETOgvhCH.js";
|
|
6
|
+
import { f as k } from "./categories-_98lyB3C.js";
|
|
7
|
+
import { L as F } from "./Labeled-BWYRwMiY.js";
|
|
8
|
+
import { W as P } from "./WrappedInput-BRkBjl0z.js";
|
|
9
|
+
const b = ({ style: n, className: s, label: i, format: l, onChange: r, value: f, ...o }) => {
|
|
10
|
+
let { mask: t } = o;
|
|
11
|
+
t && (t === "string" ? t : t.toString()).match(/\d/g) && (console.warn(`Mask ${t} should not contain numeric character, mask value will be ignored`), t = void 0);
|
|
12
|
+
const p = c((e) => r?.(e.formattedValue), [r]);
|
|
13
|
+
return /* @__PURE__ */ m(F, { label: i, style: n, className: s, passAriaToChildren: !0, children: /* @__PURE__ */ m(
|
|
14
|
+
g,
|
|
15
|
+
{
|
|
16
|
+
customInput: P,
|
|
17
|
+
format: l ?? "",
|
|
18
|
+
...o,
|
|
19
|
+
mask: t,
|
|
20
|
+
onValueChange: p,
|
|
21
|
+
value: f ?? ""
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
}, I = u(b, "RsPatternFormat").name("Pattern format").category(k).props({
|
|
25
|
+
label: a.default("Formatted input"),
|
|
26
|
+
value: a.valued,
|
|
27
|
+
...h,
|
|
28
|
+
format: a,
|
|
29
|
+
mask: a,
|
|
30
|
+
patternChar: a,
|
|
31
|
+
allowEmptyFormatting: d.default(!1)
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
I as rsPatternFormat
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=pattern-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-format.js","sources":["../src/components/RsPatternFormat.tsx"],"sourcesContent":["import {boolean, define, string} from '@react-form-builder/core'\nimport {useCallback} from 'react'\nimport type {PatternFormatProps} from 'react-number-format'\nimport {PatternFormat} from 'react-number-format'\nimport type {InputProps} from 'rsuite'\nimport {inputProps} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {Labeled} from './internal/Labeled'\nimport {WrappedInput} from './internal/WrappedInput'\n\n/**\n * Props for the RsPatternFormat component.\n */\nexport interface RsPatternFormatProps extends PatternFormatProps<InputProps> {\n /**\n * The label for the pattern format input.\n */\n label: string\n /**\n * The callback when value changes.\n */\n onChange: (value: any) => void\n /**\n * The htmlSize attribute defines the width of the «input> element.\n */\n htmlSize?: number\n}\n\n/**\n * Pattern format input component with label support.\n * @param props the component props.\n * @param props.style the CSS styles.\n * @param props.className the CSS class name.\n * @param props.label the label for the pattern format input.\n * @param props.format the format pattern.\n * @param props.onChange the callback when value changes.\n * @param props.value the value of the input.\n * @param props.props the additional pattern format props.\n * @returns the React element.\n */\nconst RsPatternFormat = ({style, className, label, format, onChange, value, ...props}: RsPatternFormatProps) => {\n let {mask} = props\n\n if (mask) {\n const maskAsStr = mask === 'string' ? mask : mask.toString()\n if (maskAsStr.match(/\\d/g)) {\n console.warn(`Mask ${mask} should not contain numeric character, mask value will be ignored`)\n mask = undefined\n }\n }\n\n const handleValueChange = useCallback((values: any) => onChange?.(values.formattedValue), [onChange])\n\n return <Labeled label={label} style={style} className={className} passAriaToChildren={true}>\n <PatternFormat customInput={WrappedInput} format={format ?? ''} {...props} mask={mask}\n onValueChange={handleValueChange}\n value={value ?? ''}/>\n </Labeled>\n}\n\nexport const rsPatternFormat = define(RsPatternFormat, 'RsPatternFormat')\n .name('Pattern format')\n .category(fieldsCategory)\n .props({\n label: string.default('Formatted input'),\n value: string.valued,\n ...inputProps,\n format: string,\n mask: string,\n patternChar: string,\n allowEmptyFormatting: boolean.default(false)\n })\n"],"names":["RsPatternFormat","style","className","label","format","onChange","value","props","mask","handleValueChange","useCallback","values","Labeled","jsx","PatternFormat","WrappedInput","rsPatternFormat","define","fieldsCategory","string","inputProps","boolean"],"mappings":";;;;;;;;AAwCA,MAAMA,IAAkB,CAAC,EAAC,OAAAC,GAAO,WAAAC,GAAW,OAAAC,GAAO,QAAAC,GAAQ,UAAAC,GAAU,OAAAC,GAAO,GAAGC,QAAiC;AAC9G,MAAI,EAAC,MAAAC,MAAQD;AAEb,EAAIC,MACgBA,MAAS,WAAWA,IAAOA,EAAK,SAAA,GACpC,MAAM,KAAK,MACvB,QAAQ,KAAK,QAAQA,CAAI,mEAAmE,GAC5FA,IAAO;AAIX,QAAMC,IAAoBC,EAAY,CAACC,MAAgBN,IAAWM,EAAO,cAAc,GAAG,CAACN,CAAQ,CAAC;AAEpG,2BAAQO,GAAA,EAAQ,OAAAT,GAAc,OAAAF,GAAc,WAAAC,GAAsB,oBAAoB,IACpF,UAAA,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MAAc,aAAaC;AAAA,MAAc,QAAQX,KAAU;AAAA,MAAK,GAAGG;AAAA,MAAO,MAAAC;AAAA,MAC5D,eAAeC;AAAA,MACf,OAAOH,KAAS;AAAA,IAAA;AAAA,EAAA,GACjC;AACF,GAEaU,IAAkBC,EAAOjB,GAAiB,iBAAiB,EACrE,KAAK,gBAAgB,EACrB,SAASkB,CAAc,EACvB,MAAM;AAAA,EACL,OAAOC,EAAO,QAAQ,iBAAiB;AAAA,EACvC,OAAOA,EAAO;AAAA,EACd,GAAGC;AAAA,EACH,QAAQD;AAAA,EACR,MAAMA;AAAA,EACN,aAAaA;AAAA,EACb,sBAAsBE,EAAQ,QAAQ,EAAK;AAC7C,CAAC;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { JSX } from 'react';
|
|
4
|
+
import { PlaceholderGraphProps } from 'rsuite';
|
|
5
|
+
import { PlaceholderGridProps } from 'rsuite';
|
|
6
|
+
import { PlaceholderParagraphProps } from 'rsuite';
|
|
7
|
+
import { PropsWithChildren } from 'react';
|
|
8
|
+
import { ReplaceProps } from 'rsuite/esm/internals/types/utils';
|
|
9
|
+
import { WithAsProps } from 'rsuite/esm/internals/types';
|
|
10
|
+
|
|
11
|
+
export declare const rsPlaceholderGraph: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & PlaceholderGraphProps>>>;
|
|
12
|
+
|
|
13
|
+
export declare const rsPlaceholderGrid: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & PlaceholderGridProps>>>;
|
|
14
|
+
|
|
15
|
+
export declare const rsPlaceholderParagraph: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & PlaceholderParagraphProps>>>;
|
|
16
|
+
|
|
17
|
+
export { }
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { define as t, boolean as o, number as r, size as c, oneOf as h } from "@react-form-builder/core";
|
|
3
|
+
import { Placeholder as l } from "rsuite";
|
|
4
|
+
import { a as i } from "./categories-_98lyB3C.js";
|
|
5
|
+
const a = { width: 24, height: 24 }, n = () => /* @__PURE__ */ s("svg", { style: a, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "8", x2: "8", y2: "8", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
7
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "12", x2: "10", y2: "12", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
8
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "16", x2: "9", y2: "16", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
9
|
+
/* @__PURE__ */ e("line", { x1: "13", y1: "8", x2: "20", y2: "8", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
10
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "12", x2: "20", y2: "12", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
11
|
+
/* @__PURE__ */ e("line", { x1: "14", y1: "16", x2: "20", y2: "16", stroke: "#9CA3AF", strokeWidth: "1" })
|
|
12
|
+
] }), d = () => /* @__PURE__ */ s("svg", { style: a, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
13
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "10", x2: "20", y2: "10", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
14
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "14", x2: "20", y2: "14", stroke: "#9CA3AF", strokeWidth: "1" }),
|
|
15
|
+
/* @__PURE__ */ e("circle", { cx: "5", cy: "12", r: "4", stroke: "#9CA3AF", fill: "#9CA3AF", fillOpacity: "0.7" })
|
|
16
|
+
] }), p = () => /* @__PURE__ */ e("svg", { style: a, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("rect", { x: "4", y: "4", width: "14", height: "14", fill: "#9CA3AF", fillOpacity: "0.7" }) }), f = t(l.Graph, "RsPlaceholderGraph").name("Placeholder graph").category(i).icon(p).props({
|
|
17
|
+
width: c.default("100%"),
|
|
18
|
+
height: r.default(200),
|
|
19
|
+
active: o
|
|
20
|
+
}), A = t(l.Grid, "RsPlaceholderGrid").name("Placeholder grid").category(i).icon(n).props({
|
|
21
|
+
rows: r.default(5),
|
|
22
|
+
columns: r.default(5),
|
|
23
|
+
rowHeight: r.default(10),
|
|
24
|
+
rowSpacing: r.default(20),
|
|
25
|
+
active: o
|
|
26
|
+
}), k = t(l.Paragraph, "RsPlaceholderParagraph").name("Placeholder paragraph").category(i).icon(d).props({
|
|
27
|
+
rows: r.default(2),
|
|
28
|
+
rowHeight: r.default(10),
|
|
29
|
+
rowSpacing: r.default(20),
|
|
30
|
+
graph: h("circle", "square", "image").withEditorProps({ creatable: !1 }),
|
|
31
|
+
active: o
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
f as rsPlaceholderGraph,
|
|
35
|
+
A as rsPlaceholderGrid,
|
|
36
|
+
k as rsPlaceholderParagraph
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=placeholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder.js","sources":["../src/components/RsPlaceholder.tsx"],"sourcesContent":["import {boolean, define, number, oneOf, size} from '@react-form-builder/core'\nimport {Placeholder} from 'rsuite'\nimport {staticCategory} from './categories'\n\nconst iconStyle = {width: 24, height: 24}\n\nconst IconGrid = () => (\n <svg style={iconStyle} viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <line x1=\"4\" y1=\"8\" x2=\"8\" y2=\"8\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"4\" y1=\"12\" x2=\"10\" y2=\"12\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"4\" y1=\"16\" x2=\"9\" y2=\"16\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"13\" y1=\"8\" x2=\"20\" y2=\"8\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"12\" y1=\"12\" x2=\"20\" y2=\"12\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"14\" y1=\"16\" x2=\"20\" y2=\"16\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n </svg>\n)\n\nconst IconParagraph = () => (\n <svg style={iconStyle} viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <line x1=\"12\" y1=\"10\" x2=\"20\" y2=\"10\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <line x1=\"12\" y1=\"14\" x2=\"20\" y2=\"14\" stroke=\"#9CA3AF\" strokeWidth=\"1\"/>\n <circle cx=\"5\" cy=\"12\" r=\"4\" stroke=\"#9CA3AF\" fill=\"#9CA3AF\" fillOpacity=\"0.7\"/>\n </svg>\n)\n\nconst IconGraph = () => (\n <svg style={iconStyle} viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"4\" y=\"4\" width=\"14\" height=\"14\" fill=\"#9CA3AF\" fillOpacity=\"0.7\"/>\n </svg>\n)\n\nexport const rsPlaceholderGraph = define(Placeholder.Graph, 'RsPlaceholderGraph')\n .name('Placeholder graph')\n .category(staticCategory)\n .icon(IconGraph)\n .props({\n width: size.default('100%'),\n height: number.default(200),\n active: boolean,\n })\n\nexport const rsPlaceholderGrid = define(Placeholder.Grid, 'RsPlaceholderGrid')\n .name('Placeholder grid')\n .category(staticCategory)\n .icon(IconGrid)\n .props({\n rows: number.default(5),\n columns: number.default(5),\n rowHeight: number.default(10),\n rowSpacing: number.default(20),\n active: boolean,\n })\n\nexport const rsPlaceholderParagraph = define(Placeholder.Paragraph, 'RsPlaceholderParagraph')\n .name('Placeholder paragraph')\n .category(staticCategory)\n .icon(IconParagraph)\n .props({\n rows: number.default(2),\n rowHeight: number.default(10),\n rowSpacing: number.default(20),\n graph: oneOf('circle', 'square', 'image')\n .withEditorProps({creatable: false}),\n active: boolean,\n })\n"],"names":["iconStyle","IconGrid","jsxs","jsx","IconParagraph","IconGraph","rsPlaceholderGraph","define","Placeholder","staticCategory","size","number","boolean","rsPlaceholderGrid","rsPlaceholderParagraph","oneOf"],"mappings":";;;;AAIA,MAAMA,IAAY,EAAC,OAAO,IAAI,QAAQ,GAAA,GAEhCC,IAAW,MACf,gBAAAC,EAAC,OAAA,EAAI,OAAOF,GAAW,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC3D,UAAA;AAAA,EAAA,gBAAAG,EAAC,QAAA,EAAK,IAAG,KAAI,IAAG,KAAI,IAAG,KAAI,IAAG,KAAI,QAAO,WAAU,aAAY,KAAG;AAAA,EAClE,gBAAAA,EAAC,QAAA,EAAK,IAAG,KAAI,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,WAAU,aAAY,KAAG;AAAA,EACrE,gBAAAA,EAAC,QAAA,EAAK,IAAG,KAAI,IAAG,MAAK,IAAG,KAAI,IAAG,MAAK,QAAO,WAAU,aAAY,KAAG;AAAA,EACpE,gBAAAA,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,KAAI,IAAG,MAAK,IAAG,KAAI,QAAO,WAAU,aAAY,KAAG;AAAA,EACpE,gBAAAA,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,WAAU,aAAY,KAAG;AAAA,EACtE,gBAAAA,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,WAAU,aAAY,IAAA,CAAG;AAAA,GACxE,GAGIC,IAAgB,MACpB,gBAAAF,EAAC,OAAA,EAAI,OAAOF,GAAW,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC3D,UAAA;AAAA,EAAA,gBAAAG,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,WAAU,aAAY,KAAG;AAAA,EACtE,gBAAAA,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,WAAU,aAAY,KAAG;AAAA,EACtE,gBAAAA,EAAC,UAAA,EAAO,IAAG,KAAI,IAAG,MAAK,GAAE,KAAI,QAAO,WAAU,MAAK,WAAU,aAAY,MAAA,CAAK;AAAA,GAChF,GAGIE,IAAY,MAChB,gBAAAF,EAAC,OAAA,EAAI,OAAOH,GAAW,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC3D,UAAA,gBAAAG,EAAC,UAAK,GAAE,KAAI,GAAE,KAAI,OAAM,MAAK,QAAO,MAAK,MAAK,WAAU,aAAY,MAAA,CAAK,EAAA,CAC3E,GAGWG,IAAqBC,EAAOC,EAAY,OAAO,oBAAoB,EAC7E,KAAK,mBAAmB,EACxB,SAASC,CAAc,EACvB,KAAKJ,CAAS,EACd,MAAM;AAAA,EACL,OAAOK,EAAK,QAAQ,MAAM;AAAA,EAC1B,QAAQC,EAAO,QAAQ,GAAG;AAAA,EAC1B,QAAQC;AACV,CAAC,GAEUC,IAAoBN,EAAOC,EAAY,MAAM,mBAAmB,EAC1E,KAAK,kBAAkB,EACvB,SAASC,CAAc,EACvB,KAAKR,CAAQ,EACb,MAAM;AAAA,EACL,MAAMU,EAAO,QAAQ,CAAC;AAAA,EACtB,SAASA,EAAO,QAAQ,CAAC;AAAA,EACzB,WAAWA,EAAO,QAAQ,EAAE;AAAA,EAC5B,YAAYA,EAAO,QAAQ,EAAE;AAAA,EAC7B,QAAQC;AACV,CAAC,GAEUE,IAAyBP,EAAOC,EAAY,WAAW,wBAAwB,EACzF,KAAK,uBAAuB,EAC5B,SAASC,CAAc,EACvB,KAAKL,CAAa,EAClB,MAAM;AAAA,EACL,MAAMO,EAAO,QAAQ,CAAC;AAAA,EACtB,WAAWA,EAAO,QAAQ,EAAE;AAAA,EAC5B,YAAYA,EAAO,QAAQ,EAAE;AAAA,EAC7B,OAAOI,EAAM,UAAU,UAAU,OAAO,EACrC,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,QAAQH;AACV,CAAC;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Definer } from '@react-form-builder/core';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { JSX } from 'react';
|
|
4
|
+
import { ProgressCircleProps } from 'rsuite';
|
|
5
|
+
import { ProgressLineProps } from 'rsuite';
|
|
6
|
+
import { PropsWithChildren } from 'react';
|
|
7
|
+
import { ReplaceProps } from 'rsuite/esm/internals/types/utils';
|
|
8
|
+
import { WithAsProps } from 'rsuite/esm/internals/types';
|
|
9
|
+
|
|
10
|
+
export declare const rsProgressCircle: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & ProgressCircleProps>>>;
|
|
11
|
+
|
|
12
|
+
export declare const rsProgressLine: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & ProgressLineProps>>>;
|
|
13
|
+
|
|
14
|
+
export { }
|
package/dist/progress.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { oneOf as e, boolean as o, number as r, string as n, define as t, color as s } from "@react-form-builder/core";
|
|
2
|
+
import { Progress as a } from "rsuite";
|
|
3
|
+
import { a as i } from "./categories-_98lyB3C.js";
|
|
4
|
+
const l = {
|
|
5
|
+
classPrefix: n.default("progress"),
|
|
6
|
+
percent: r.default(50).withEditorProps({ min: 0, max: 100 }).dataBound,
|
|
7
|
+
showInfo: o.default(!0),
|
|
8
|
+
status: e("success", "fail", "active").default("active").withEditorProps({ creatable: !1 }),
|
|
9
|
+
strokeColor: s,
|
|
10
|
+
strokeWidth: r
|
|
11
|
+
}, p = t(a.Circle, "RsProgressCircle").name("Progress circle").category(i).props({
|
|
12
|
+
...l,
|
|
13
|
+
gapDegree: r.withEditorProps({ min: 0, max: 360 }),
|
|
14
|
+
gapPosition: e("right", "top", "bottom", "left").default("top").withEditorProps({ creatable: !1 }),
|
|
15
|
+
strokeLinecap: e("round", "square", "butt").default("round").withEditorProps({ creatable: !1 }),
|
|
16
|
+
strokeWidth: r.default(6),
|
|
17
|
+
trailColor: s,
|
|
18
|
+
trailWidth: r.default(6)
|
|
19
|
+
}), u = t(a.Line, "RsProgressLine").name("Progress line").category(i).props({
|
|
20
|
+
...l,
|
|
21
|
+
vertical: o.default(!1)
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
p as rsProgressCircle,
|
|
25
|
+
u as rsProgressLine
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../src/components/RsProgress.tsx"],"sourcesContent":["import {boolean, color, define, number, oneOf, string} from '@react-form-builder/core'\nimport {Progress} from 'rsuite'\nimport {staticCategory} from './categories'\n\nconst rsCommonProgressProps = {\n classPrefix: string.default('progress'),\n percent: number.default(50)\n .withEditorProps({min: 0, max: 100})\n .dataBound,\n showInfo: boolean.default(true),\n status: oneOf('success', 'fail', 'active')\n .default('active')\n .withEditorProps({creatable: false}),\n strokeColor: color,\n strokeWidth: number,\n}\n\nexport const rsProgressCircle = define(Progress.Circle, 'RsProgressCircle')\n .name('Progress circle')\n .category(staticCategory)\n .props({\n ...rsCommonProgressProps,\n gapDegree: number.withEditorProps({min: 0, max: 360}),\n gapPosition: oneOf('right', 'top', 'bottom', 'left')\n .default('top')\n .withEditorProps({creatable: false}),\n strokeLinecap: oneOf('round', 'square', 'butt')\n .default('round')\n .withEditorProps({creatable: false}),\n strokeWidth: number.default(6),\n trailColor: color,\n trailWidth: number.default(6)\n })\n\nexport const rsProgressLine = define(Progress.Line, 'RsProgressLine')\n .name('Progress line')\n .category(staticCategory)\n .props({\n ...rsCommonProgressProps,\n vertical: boolean.default(false)\n })\n"],"names":["rsCommonProgressProps","string","number","boolean","oneOf","color","rsProgressCircle","define","Progress","staticCategory","rsProgressLine"],"mappings":";;;AAIA,MAAMA,IAAwB;AAAA,EAC5B,aAAaC,EAAO,QAAQ,UAAU;AAAA,EACtC,SAASC,EAAO,QAAQ,EAAE,EACvB,gBAAgB,EAAC,KAAK,GAAG,KAAK,IAAA,CAAI,EAClC;AAAA,EACH,UAAUC,EAAQ,QAAQ,EAAI;AAAA,EAC9B,QAAQC,EAAM,WAAW,QAAQ,QAAQ,EACtC,QAAQ,QAAQ,EAChB,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,aAAaC;AAAA,EACb,aAAaH;AACf,GAEaI,IAAmBC,EAAOC,EAAS,QAAQ,kBAAkB,EACvE,KAAK,iBAAiB,EACtB,SAASC,CAAc,EACvB,MAAM;AAAA,EACL,GAAGT;AAAA,EACH,WAAWE,EAAO,gBAAgB,EAAC,KAAK,GAAG,KAAK,KAAI;AAAA,EACpD,aAAaE,EAAM,SAAS,OAAO,UAAU,MAAM,EAChD,QAAQ,KAAK,EACb,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,eAAeA,EAAM,SAAS,UAAU,MAAM,EAC3C,QAAQ,OAAO,EACf,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,aAAaF,EAAO,QAAQ,CAAC;AAAA,EAC7B,YAAYG;AAAA,EACZ,YAAYH,EAAO,QAAQ,CAAC;AAC9B,CAAC,GAEUQ,IAAiBH,EAAOC,EAAS,MAAM,gBAAgB,EACjE,KAAK,eAAe,EACpB,SAASC,CAAc,EACvB,MAAM;AAAA,EACL,GAAGT;AAAA,EACH,UAAUG,EAAQ,QAAQ,EAAK;AACjC,CAAC;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { s as e, m as s, a as i, f as p } from "./categories-_98lyB3C.js";
|
|
2
|
+
import { rsWizard as a, rsWizardStep as f } from "./wizard.js";
|
|
3
|
+
import { rsAutoComplete as n } from "./autocomplete.js";
|
|
4
|
+
import { rsBreadcrumb as c } from "./breadcrumb.js";
|
|
5
|
+
import { rsButton as d } from "./button.js";
|
|
6
|
+
import { rsCalendar as g } from "./calendar.js";
|
|
7
|
+
import { rsCard as l } from "./card.js";
|
|
8
|
+
import { rsCheckbox as h } from "./checkbox.js";
|
|
9
|
+
import { rsContainer as u } from "./container.js";
|
|
10
|
+
import { rsDatePicker as y } from "./date-picker.js";
|
|
11
|
+
import { rsDivider as C } from "./divider.js";
|
|
12
|
+
import { rsDropdown as P } from "./dropdown.js";
|
|
13
|
+
import { rsErrorMessage as T } from "./error-message.js";
|
|
14
|
+
import { rsHeader as b } from "./header.js";
|
|
15
|
+
import { rsImage as w } from "./image.js";
|
|
16
|
+
import { rsInput as k } from "./input.js";
|
|
17
|
+
import { rsLabel as x } from "./label.js";
|
|
18
|
+
import { rsLink as E } from "./link.js";
|
|
19
|
+
import { rsMenu as M } from "./menu.js";
|
|
20
|
+
import { rsMessage as $ } from "./message.js";
|
|
21
|
+
import { rsModal as L } from "./modal.js";
|
|
22
|
+
import { rsModalLayout as S } from "./modal-layout.js";
|
|
23
|
+
import { rsNumberFormat as D } from "./number-format.js";
|
|
24
|
+
import { rsPatternFormat as G } from "./pattern-format.js";
|
|
25
|
+
import { rsPlaceholderGraph as I, rsPlaceholderGrid as W, rsPlaceholderParagraph as z } from "./placeholder.js";
|
|
26
|
+
import { rsProgressCircle as A, rsProgressLine as B } from "./progress.js";
|
|
27
|
+
import { rsRadioGroup as F } from "./radio-group.js";
|
|
28
|
+
import { rsSearch as R } from "./search.js";
|
|
29
|
+
import { rsStaticContent as j } from "./static-content.js";
|
|
30
|
+
import { rsTab as v } from "./tab.js";
|
|
31
|
+
import { rsTagPicker as H } from "./tag-picker.js";
|
|
32
|
+
import { rsTextArea as N } from "./text-area.js";
|
|
33
|
+
import { rsTimePicker as O } from "./time-picker.js";
|
|
34
|
+
import { rsToggle as U } from "./toggle.js";
|
|
35
|
+
import { rsTooltip as q } from "./tooltip.js";
|
|
36
|
+
import { rsUploader as J } from "./uploader.js";
|
|
37
|
+
const K = {
|
|
38
|
+
[p]: [
|
|
39
|
+
n,
|
|
40
|
+
g,
|
|
41
|
+
h,
|
|
42
|
+
y,
|
|
43
|
+
O,
|
|
44
|
+
P,
|
|
45
|
+
k,
|
|
46
|
+
D,
|
|
47
|
+
G,
|
|
48
|
+
F,
|
|
49
|
+
R,
|
|
50
|
+
H,
|
|
51
|
+
N,
|
|
52
|
+
U,
|
|
53
|
+
J
|
|
54
|
+
],
|
|
55
|
+
[i]: [
|
|
56
|
+
d,
|
|
57
|
+
T,
|
|
58
|
+
C,
|
|
59
|
+
b,
|
|
60
|
+
w,
|
|
61
|
+
x,
|
|
62
|
+
M,
|
|
63
|
+
$,
|
|
64
|
+
I,
|
|
65
|
+
W,
|
|
66
|
+
z,
|
|
67
|
+
A,
|
|
68
|
+
B,
|
|
69
|
+
j,
|
|
70
|
+
q,
|
|
71
|
+
E
|
|
72
|
+
],
|
|
73
|
+
[s]: [
|
|
74
|
+
L,
|
|
75
|
+
S
|
|
76
|
+
],
|
|
77
|
+
[e]: [
|
|
78
|
+
c,
|
|
79
|
+
l,
|
|
80
|
+
u,
|
|
81
|
+
v,
|
|
82
|
+
a,
|
|
83
|
+
f
|
|
84
|
+
]
|
|
85
|
+
}, Q = [], t = "Rs";
|
|
86
|
+
Object.entries(K).forEach(([o, m]) => {
|
|
87
|
+
m.forEach((r) => {
|
|
88
|
+
if (!r.getType().startsWith(t))
|
|
89
|
+
throw new Error(`The component type must start with '${t}', type: '${r.getType()}'`);
|
|
90
|
+
if (r.data.category !== o)
|
|
91
|
+
throw new Error(`Incorrect component '${r.getType()}' category, expected '${o}', current category '${r.data.category}'.`);
|
|
92
|
+
Q.push(r);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
Q as rSuiteComponents
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=r-suite-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-suite-components.js","sources":["../src/rSuiteComponents.ts"],"sourcesContent":["import type {Definer} from '@react-form-builder/core'\nimport {fieldsCategory, modalCategory, staticCategory, structureCategory} from './components/categories'\nimport {rsWizardStep} from './components/internal/RsWizard/RsWizardStep'\nimport {rsAutoComplete} from './components/RsAutocomplete'\nimport {rsBreadcrumb} from './components/RsBreadcrumb'\nimport {rsButton} from './components/RsButton'\nimport {rsCalendar} from './components/RsCalendar'\nimport {rsCard} from './components/RsCard'\nimport {rsCheckbox} from './components/RsCheckbox'\nimport {rsContainer} from './components/RsContainer'\nimport {rsDatePicker} from './components/RsDatePicker'\nimport {rsDivider} from './components/RsDivider'\nimport {rsDropdown} from './components/RsDropdown'\nimport {rsErrorMessage} from './components/RsErrorMessage'\nimport {rsHeader} from './components/RsHeader'\nimport {rsImage} from './components/RsImage'\nimport {rsInput} from './components/RsInput'\nimport {rsLabel} from './components/RsLabel'\nimport {rsLink} from './components/RsLink'\nimport {rsMenu} from './components/RsMenu'\nimport {rsMessage} from './components/RsMessage'\nimport {rsModal} from './components/RsModal'\nimport {rsModalLayout} from './components/RsModalLayout'\nimport {rsNumberFormat} from './components/RsNumberFormat'\nimport {rsPatternFormat} from './components/RsPatternFormat'\nimport {rsPlaceholderGraph, rsPlaceholderGrid, rsPlaceholderParagraph} from './components/RsPlaceholder'\nimport {rsProgressCircle, rsProgressLine} from './components/RsProgress'\nimport {rsRadioGroup} from './components/RsRadioGroup'\nimport {rsSearch} from './components/RsSearch'\nimport {rsStaticContent} from './components/RsStaticContent'\nimport {rsTab} from './components/RsTab'\nimport {rsTagPicker} from './components/RsTagPicker'\nimport {rsTextArea} from './components/RsTextArea'\nimport {rsTimePicker} from './components/RsTimePicker'\nimport {rsToggle} from './components/RsToggle'\nimport {rsTooltip} from './components/RsTooltip'\nimport {rsUploader} from './components/RsUploader'\nimport {rsWizard} from './components/RsWizard'\n\nconst categories = {\n [fieldsCategory]: [\n rsAutoComplete,\n rsCalendar,\n rsCheckbox,\n rsDatePicker,\n rsTimePicker,\n rsDropdown,\n rsInput,\n rsNumberFormat,\n rsPatternFormat,\n rsRadioGroup,\n rsSearch,\n rsTagPicker,\n rsTextArea,\n rsToggle,\n rsUploader\n ],\n [staticCategory]: [\n rsButton,\n rsErrorMessage,\n rsDivider,\n rsHeader,\n rsImage,\n rsLabel,\n rsMenu,\n rsMessage,\n rsPlaceholderGraph,\n rsPlaceholderGrid,\n rsPlaceholderParagraph,\n rsProgressCircle,\n rsProgressLine,\n rsStaticContent,\n rsTooltip,\n rsLink,\n ],\n [modalCategory]: [\n rsModal,\n rsModalLayout,\n ],\n [structureCategory]: [\n rsBreadcrumb,\n rsCard,\n rsContainer,\n rsTab,\n rsWizard,\n rsWizardStep\n ],\n}\n\n/**\n * An array of rSuite component metadata factories.\n */\nconst rSuiteComponents: Definer<any>[] = []\n\nconst prefix = 'Rs'\nObject.entries(categories).forEach(([category, components]) => {\n components.forEach(c => {\n if (!c.getType().startsWith(prefix)) {\n throw new Error(`The component type must start with '${prefix}', type: '${c.getType()}'`)\n }\n if (c.data.category !== category) {\n throw new Error(`Incorrect component '${c.getType()}' category, expected '${category}', current category '${c.data.category}'.`)\n }\n rSuiteComponents.push(c)\n })\n})\n\nexport {rSuiteComponents}\n"],"names":["categories","fieldsCategory","rsAutoComplete","rsCalendar","rsCheckbox","rsDatePicker","rsTimePicker","rsDropdown","rsInput","rsNumberFormat","rsPatternFormat","rsRadioGroup","rsSearch","rsTagPicker","rsTextArea","rsToggle","rsUploader","staticCategory","rsButton","rsErrorMessage","rsDivider","rsHeader","rsImage","rsLabel","rsMenu","rsMessage","rsPlaceholderGraph","rsPlaceholderGrid","rsPlaceholderParagraph","rsProgressCircle","rsProgressLine","rsStaticContent","rsTooltip","rsLink","modalCategory","rsModal","rsModalLayout","structureCategory","rsBreadcrumb","rsCard","rsContainer","rsTab","rsWizard","rsWizardStep","rSuiteComponents","prefix","category","components","c"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAMA,IAAa;AAAA,EACjB,CAACC,CAAc,GAAG;AAAA,IAChBC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,CAACC,CAAc,GAAG;AAAA,IAChBC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,CAACC,CAAa,GAAG;AAAA,IACfC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,CAACC,CAAiB,GAAG;AAAA,IACnBC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAEJ,GAKMC,IAAmC,CAAA,GAEnCC,IAAS;AACf,OAAO,QAAQ7C,CAAU,EAAE,QAAQ,CAAC,CAAC8C,GAAUC,CAAU,MAAM;AAC7D,EAAAA,EAAW,QAAQ,CAAAC,MAAK;AACtB,QAAI,CAACA,EAAE,QAAA,EAAU,WAAWH,CAAM;AAChC,YAAM,IAAI,MAAM,uCAAuCA,CAAM,aAAaG,EAAE,SAAS,GAAG;AAE1F,QAAIA,EAAE,KAAK,aAAaF;AACtB,YAAM,IAAI,MAAM,wBAAwBE,EAAE,QAAA,CAAS,yBAAyBF,CAAQ,wBAAwBE,EAAE,KAAK,QAAQ,IAAI;AAEjI,IAAAJ,EAAiB,KAAKI,CAAC;AAAA,EACzB,CAAC;AACH,CAAC;"}
|