@react-form-builder/components-rsuite 7.15.0 → 8.0.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 (92) hide show
  1. package/dist/InputCell-tTp9fZXd.js +17 -0
  2. package/dist/InputCell-tTp9fZXd.js.map +1 -0
  3. package/dist/Labeled-8k9VvM4G.js +18 -0
  4. package/dist/Labeled-8k9VvM4G.js.map +1 -0
  5. package/dist/{WrappedInput-BRkBjl0z.js → WrappedInput-Cq5StStF.js} +2 -2
  6. package/dist/{WrappedInput-BRkBjl0z.js.map → WrappedInput-Cq5StStF.js.map} +1 -1
  7. package/dist/assets/styles.css +1 -0
  8. package/dist/assets/styles.ltr.css +319 -0
  9. package/dist/assets/styles.ltr.css.map +1 -0
  10. package/dist/assets/styles.rtl.css +319 -0
  11. package/dist/assets/styles.rtl.css.map +1 -0
  12. package/dist/autocomplete.js +2 -2
  13. package/dist/breadcrumb.js +32 -29
  14. package/dist/breadcrumb.js.map +1 -1
  15. package/dist/builder-view-with-css.js +4 -4
  16. package/dist/builder-view-with-css.js.map +1 -1
  17. package/dist/button.js +1 -1
  18. package/dist/calendar.js +2 -2
  19. package/dist/card.js +1 -1
  20. package/dist/checkbox.js +18 -28
  21. package/dist/checkbox.js.map +1 -1
  22. package/dist/container.d.ts +4 -0
  23. package/dist/container.js +15 -16
  24. package/dist/container.js.map +1 -1
  25. package/dist/css/formengine-rsuite.css +5 -1
  26. package/dist/css/rsuite-ltr.css +2 -0
  27. package/dist/css/rsuite-rtl.css +2 -0
  28. package/dist/css-loader.d.ts +2 -8
  29. package/dist/css-loader.js +12 -12
  30. package/dist/css-loader.js.map +1 -1
  31. package/dist/date-picker.js +2 -2
  32. package/dist/divider.js +1 -1
  33. package/dist/dropdown.js +34 -42
  34. package/dist/dropdown.js.map +1 -1
  35. package/dist/error-message.js +25 -21
  36. package/dist/error-message.js.map +1 -1
  37. package/dist/image.js +12 -13
  38. package/dist/image.js.map +1 -1
  39. package/dist/index.d.ts +15 -28
  40. package/dist/index.js +80 -81
  41. package/dist/input.js +2 -2
  42. package/dist/label.js +1 -1
  43. package/dist/link.js +1 -1
  44. package/dist/localization-wrapper.d.ts +1 -1
  45. package/dist/localization-wrapper.js +51 -50
  46. package/dist/localization-wrapper.js.map +1 -1
  47. package/dist/menu.js +2 -2
  48. package/dist/message.d.ts +1 -11
  49. package/dist/message.js +11 -12
  50. package/dist/message.js.map +1 -1
  51. package/dist/modal-layout.js +1 -1
  52. package/dist/modal.js +1 -1
  53. package/dist/number-format.js +3 -3
  54. package/dist/pattern-format.js +3 -3
  55. package/dist/placeholder.js +1 -1
  56. package/dist/radio-group.js +2 -2
  57. package/dist/rsuite-ltr.css-uDbh7We6.js +4 -0
  58. package/dist/rsuite-ltr.css-uDbh7We6.js.map +1 -0
  59. package/dist/rsuite-rtl.css-icqmWEF6.js +4 -0
  60. package/dist/rsuite-rtl.css-icqmWEF6.js.map +1 -0
  61. package/dist/schemas/rsuite-components.schema.json +1 -4
  62. package/dist/search.js +31 -42
  63. package/dist/search.js.map +1 -1
  64. package/dist/static-content.js +1 -1
  65. package/dist/tab.js +26 -33
  66. package/dist/tab.js.map +1 -1
  67. package/dist/tag-picker.js +2 -2
  68. package/dist/text-area.js +10 -10
  69. package/dist/text-area.js.map +1 -1
  70. package/dist/time-picker.js +2 -2
  71. package/dist/toggle.d.ts +1 -11
  72. package/dist/toggle.js +16 -18
  73. package/dist/toggle.js.map +1 -1
  74. package/dist/tooltip.js +1 -1
  75. package/dist/uploader.js +3 -3
  76. package/dist/useTouchOnEvent-BPYbKiku.js.map +1 -1
  77. package/dist/view-with-css.js +4 -4
  78. package/dist/view-with-css.js.map +1 -1
  79. package/dist/wizard.d.ts +6 -8
  80. package/dist/wizard.js +129 -177
  81. package/dist/wizard.js.map +1 -1
  82. package/package.json +7 -7
  83. package/dist/InputCell-BDyUJFGm.js +0 -21
  84. package/dist/InputCell-BDyUJFGm.js.map +0 -1
  85. package/dist/Labeled-BWYRwMiY.js +0 -35
  86. package/dist/Labeled-BWYRwMiY.js.map +0 -1
  87. package/dist/formengine-rsuite.css-B1zD3_ue.js +0 -5
  88. package/dist/formengine-rsuite.css-B1zD3_ue.js.map +0 -1
  89. package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js +0 -5
  90. package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js.map +0 -1
  91. package/dist/rsuite-no-reset.min.css-bW1P11UK.js +0 -5
  92. package/dist/rsuite-no-reset.min.css-bW1P11UK.js.map +0 -1
@@ -0,0 +1,17 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { useCallback as p } from "react";
3
+ import { Table as i, Input as u } from "rsuite";
4
+ import C from "clsx";
5
+ const f = "_cell_vpvvj_1", v = {
6
+ cell: f
7
+ }, { Cell: h } = i, _ = ({ className: s, ...l }) => /* @__PURE__ */ c(h, { ...l, className: C(v.cell, s) }), S = ({ rowData: s, dataKey: l, rowIndex: e, onChange: o, ...t }) => {
8
+ const r = s[l] ?? "", m = p((n) => {
9
+ s[l] = n, o?.(n, l, e);
10
+ }, [l, o, s, e]);
11
+ return /* @__PURE__ */ c(_, { ...t, children: /* @__PURE__ */ c(u, { value: r, onChange: m, size: "sm" }) });
12
+ };
13
+ export {
14
+ S as I,
15
+ _ as S
16
+ };
17
+ //# sourceMappingURL=InputCell-tTp9fZXd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputCell-tTp9fZXd.js","sources":["../src/components/internal/SCell.tsx","../src/components/internal/InputCell.tsx"],"sourcesContent":["import cx from 'clsx'\nimport {Table} from 'rsuite'\nimport type {RowDataType} from 'rsuite-table/lib'\nimport type {InnerCellProps} from 'rsuite-table/lib/Cell'\nimport styles from './SCell.module.css'\n\nconst {Cell} = Table\n\ntype SCellProps = InnerCellProps<RowDataType, string | number>\n\n/**\n * Styled table cell.\n * @param props the component props.\n * @param props.className the CSS class name.\n * @returns the React element.\n */\nexport const SCell = ({className, ...props}: SCellProps) => {\n return <Cell<RowDataType, string | number> {...props} className={cx(styles.cell, className)}/>\n}\n","import {useCallback} from 'react'\nimport {Input} from 'rsuite'\nimport type {InputCellProps} from './InputCellProps'\nimport {SCell} from './SCell'\n\n/**\n * The React component that displays the table cell with the input.\n * @param props the React component properties.\n * @param props.rowData the row data.\n * @param props.dataKey the key name in {@link rowData}.\n * @param props.rowIndex the row index.\n * @param props.props the other properties of the component.\n * @param props.onChange the onChange event of the checkbox.\n * @returns the React element.\n */\nexport const InputCell = ({rowData, dataKey, rowIndex, onChange, ...props}: InputCellProps) => {\n const value = rowData[dataKey] ?? ''\n\n const handleChange = useCallback((newValue: any) => {\n // eslint-disable-next-line react-hooks/immutability\n rowData[dataKey] = newValue\n onChange?.(newValue, dataKey, rowIndex)\n }, [dataKey, onChange, rowData, rowIndex])\n\n return (\n <SCell {...props}>\n <Input value={value} onChange={handleChange} size=\"sm\"/>\n </SCell>\n )\n}\n"],"names":["Cell","Table","SCell","className","props","jsx","cx","styles","InputCell","rowData","dataKey","rowIndex","onChange","value","handleChange","useCallback","newValue","Input"],"mappings":";;;;;;GAMM,EAAC,MAAAA,MAAQC,GAUFC,IAAQ,CAAC,EAAC,WAAAC,GAAW,GAAGC,QAC5B,gBAAAC,EAACL,KAAoC,GAAGI,GAAO,WAAWE,EAAGC,EAAO,MAAMJ,CAAS,GAAE,GCFjFK,IAAY,CAAC,EAAC,SAAAC,GAAS,SAAAC,GAAS,UAAAC,GAAU,UAAAC,GAAU,GAAGR,QAA2B;AAC7F,QAAMS,IAAQJ,EAAQC,CAAO,KAAK,IAE5BI,IAAeC,EAAY,CAACC,MAAkB;AAElD,IAAAP,EAAQC,CAAO,IAAIM,GACnBJ,IAAWI,GAAUN,GAASC,CAAQ;AAAA,EACxC,GAAG,CAACD,GAASE,GAAUH,GAASE,CAAQ,CAAC;AAEzC,SACE,gBAAAN,EAACH,GAAA,EAAO,GAAGE,GACT,UAAA,gBAAAC,EAACY,GAAA,EAAM,OAAAJ,GAAc,UAAUC,GAAc,MAAK,KAAA,CAAI,EAAA,CACxD;AAEJ;"}
@@ -0,0 +1,18 @@
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { namedObserver as m, useComponentData as b, useAriaAttributes as d } from "@react-form-builder/core";
3
+ import p from "clsx";
4
+ import { cloneElement as _ } from "react";
5
+ const u = "_container_o5hso_1", f = "_label_o5hso_7", t = {
6
+ container: u,
7
+ label: f
8
+ }, h = ({ label: e, children: o, passAriaToChildren: s, className: l, ...n }) => {
9
+ const { id: a } = b(), r = d({ labeled: !!e });
10
+ return /* @__PURE__ */ c("div", { ...n, role: "group", className: p(t.container, l), children: [
11
+ e && /* @__PURE__ */ i("label", { id: r["aria-labelledby"], htmlFor: a, className: t.label, children: e }),
12
+ s ? _(o, { id: a, ...r }) : o
13
+ ] });
14
+ }, y = m("Labeled", h);
15
+ export {
16
+ y as L
17
+ };
18
+ //# sourceMappingURL=Labeled-8k9VvM4G.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Labeled-8k9VvM4G.js","sources":["../src/components/internal/Labeled.tsx"],"sourcesContent":["import {namedObserver, useAriaAttributes, useComponentData} from '@react-form-builder/core'\nimport cx from 'clsx'\nimport type {ComponentProps} from 'react'\nimport {cloneElement} from 'react'\nimport styles from './Labeled.module.css'\n\ninterface LabeledProps extends ComponentProps<any> {\n label?: string\n /**\n * If true, ARIA attributes will be passed automatically to children.\n */\n passAriaToChildren: boolean\n}\n\n/**\n * The React component that adds a label to a child component.\n * @param props the React component properties.\n * @param props.label the component label.\n * @param props.children the children component.\n * @param props.passAriaToChildren if true, ARIA attributes will be passed automatically to children.\n * @param props.className the CSS class name.\n * @returns the React element.\n */\nconst RawLabeled = ({label, children, passAriaToChildren, className, ...props}: LabeledProps) => {\n const {id} = useComponentData()\n const aria = useAriaAttributes({labeled: !!label})\n\n return (\n <div {...props} role=\"group\" className={cx(styles.container, className)}>\n {label && <label id={aria['aria-labelledby']} htmlFor={id} className={styles.label}>{label}</label>}\n {passAriaToChildren ? cloneElement(children, {id, ...aria}) : children}\n </div>\n )\n}\n\nexport const Labeled = namedObserver('Labeled', RawLabeled)\n"],"names":["RawLabeled","label","children","passAriaToChildren","className","props","id","useComponentData","aria","useAriaAttributes","jsxs","cx","styles","jsx","cloneElement","Labeled","namedObserver"],"mappings":";;;;;;;GAuBMA,IAAa,CAAC,EAAC,OAAAC,GAAO,UAAAC,GAAU,oBAAAC,GAAoB,WAAAC,GAAW,GAAGC,QAAyB;AAC/F,QAAM,EAAC,IAAAC,EAAA,IAAMC,EAAA,GACPC,IAAOC,EAAkB,EAAC,SAAS,CAAC,CAACR,GAAM;AAEjD,SACE,gBAAAS,EAAC,OAAA,EAAK,GAAGL,GAAO,MAAK,SAAQ,WAAWM,EAAGC,EAAO,WAAWR,CAAS,GACnE,UAAA;AAAA,IAAAH,KAAS,gBAAAY,EAAC,SAAA,EAAM,IAAIL,EAAK,iBAAiB,GAAG,SAASF,GAAI,WAAWM,EAAO,OAAQ,UAAAX,EAAA,CAAM;AAAA,IAC1FE,IAAqBW,EAAaZ,GAAU,EAAC,IAAAI,GAAI,GAAGE,EAAA,CAAK,IAAIN;AAAA,EAAA,GAChE;AAEJ,GAEaa,IAAUC,EAAc,WAAWhB,CAAU;"}
@@ -1,4 +1,4 @@
1
- import { jsx as a } from "@emotion/react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { useCallback as e } from "react";
3
3
  import { Input as m } from "rsuite";
4
4
  const f = ({ onChange: r, ...o }) => {
@@ -8,4 +8,4 @@ const f = ({ onChange: r, ...o }) => {
8
8
  export {
9
9
  f as W
10
10
  };
11
- //# sourceMappingURL=WrappedInput-BRkBjl0z.js.map
11
+ //# sourceMappingURL=WrappedInput-Cq5StStF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WrappedInput-BRkBjl0z.js","sources":["../src/components/internal/WrappedInput.tsx"],"sourcesContent":["import {useCallback} from 'react'\nimport type {InputProps} from 'rsuite'\nimport {Input} from 'rsuite'\n\n/**\n * The React component that wraps the Input component.\n * @param props the React component properties.\n * @param props.onChange the onChange event of the Input.\n * @param props.props the other wrapped properties of the component.\n * @returns the React element.\n */\nexport const WrappedInput = ({onChange, ...props}: InputProps) => {\n const handleChange = useCallback((value: any, event: any) => onChange?.(event, value), [onChange])\n\n return <Input onChange={handleChange} {...props}/>\n}\n"],"names":["WrappedInput","onChange","props","handleChange","useCallback","value","event","jsx","Input"],"mappings":";;;AAWO,MAAMA,IAAe,CAAC,EAAC,UAAAC,GAAU,GAAGC,QAAuB;AAChE,QAAMC,IAAeC,EAAY,CAACC,GAAYC,MAAeL,IAAWK,GAAOD,CAAK,GAAG,CAACJ,CAAQ,CAAC;AAEjG,SAAO,gBAAAM,EAACC,GAAA,EAAM,UAAUL,GAAe,GAAGD,GAAM;AAClD;"}
1
+ {"version":3,"file":"WrappedInput-Cq5StStF.js","sources":["../src/components/internal/WrappedInput.tsx"],"sourcesContent":["import {useCallback} from 'react'\nimport type {InputProps} from 'rsuite'\nimport {Input} from 'rsuite'\n\n/**\n * The React component that wraps the Input component.\n * @param props the React component properties.\n * @param props.onChange the onChange event of the Input.\n * @param props.props the other wrapped properties of the component.\n * @returns the React element.\n */\nexport const WrappedInput = ({onChange, ...props}: InputProps) => {\n const handleChange = useCallback((value: any, event: any) => onChange?.(event, value), [onChange])\n\n return <Input onChange={handleChange} {...props}/>\n}\n"],"names":["WrappedInput","onChange","props","handleChange","useCallback","value","event","jsx","Input"],"mappings":";;;AAWO,MAAMA,IAAe,CAAC,EAAC,UAAAC,GAAU,GAAGC,QAAuB;AAChE,QAAMC,IAAeC,EAAY,CAACC,GAAYC,MAAeL,IAAWK,GAAOD,CAAK,GAAG,CAACJ,CAAQ,CAAC;AAEjG,SAAO,gBAAAM,EAACC,GAAA,EAAM,UAAUL,GAAe,GAAGD,GAAM;AAClD;"}
@@ -0,0 +1 @@
1
+ ._cell_vpvvj_1{padding:0}._cell_vpvvj_1 .rs-table-cell-content{padding:9px 3px}._step_1t3j2_1{display:flex}._item_1142y_1{z-index:7}._item_1142y_1.rs-steps-item-status-process:not(.active) .rs-steps-item-icon-wrapper{color:var(--rs-text-secondary);background-color:initial}._item_1142y_1.available{cursor:pointer}._item_1142y_1.available:hover{color:var(--rs-steps-state-finish)}._item_1142y_1.available:hover .rs-steps-item-icon-wrapper{border:2px solid var(--rs-steps-state-finish)}._item_1142y_1.active:hover .rs-steps-item-icon-wrapper{opacity:.8}._container_1xvd3_1{display:flex;flex:1;flex-direction:column;gap:10px;padding:10px}._container_1xvd3_1 .parent-type-RsWizard.Toolbar .add-button{display:none}._centered_1xvd3_13{display:flex;align-items:center;justify-content:center;width:100%;height:100px}._toolbar_1xvd3_21{justify-content:end;z-index:7}._stepsContainer_1xvd3_26{display:flex;flex-direction:column;gap:10px}._verticalSteps_1xvd3_32{flex-direction:row}._container_o5hso_1{display:flex;flex:1;flex-direction:column}._label_o5hso_7{margin-inline-start:5px;margin-bottom:2px;text-align:left}.required>._label_o5hso_7:after{margin-inline-start:3px;content:"*";color:#f44336}._checkbox_1itlt_1 .rs-checkbox-control{inset-inline-start:4px;top:6px}._checkbox_qe1fs_1.required label:after{margin-inline-start:3px;content:"*";color:#f44336}._container_tc619_1{display:flex;flex-direction:column}div._loader_pu0ca_1{display:flex;justify-content:center;position:absolute;bottom:0;background:var(--rs-bg-overlay);width:100%;padding-block:10px}._container_1imzc_1{display:flex;flex-direction:column;width:100%;height:100%}._errorMessage_1imzc_8{z-index:6}._image_thjnc_1{width:100%;height:100%}._message_z19oe_1 .rs-message-header{overflow:initial}._container_7opfv_1{display:flex;flex:1}._inputPicker_7opfv_6{flex:1}._searchIcon_7opfv_10{margin-inline-start:-28px;margin-top:10px;z-index:10}._container_7opfv_1 .rs-loader .rs-loader-spin,._container_7opfv_1 .rs-loader .rs-loader-spin:after,._container_7opfv_1 .rs-loader .rs-loader-spin:before{width:16px!important;height:16px!important}._tabs_77wg9_1 .rs-nav-item{border:none;outline:none;appearance:none;background-color:transparent}.builder ._tabs_77wg9_1 .rs-nav-item{z-index:7}._toggle_bwzod_1.required .rs-toggle-label:after{margin-inline-start:3px;content:"*";color:#f44336}