@react-form-builder/components-rsuite 8.0.0 → 9.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.
- package/dist/autocomplete.js +5 -5
- package/dist/autocomplete.js.map +1 -1
- package/dist/breadcrumb.js +4 -4
- package/dist/breadcrumb.js.map +1 -1
- package/dist/builder-view-with-css.js +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{commonProperties-X-t50qaZ.js → commonProperties-DPbE7-nD.js} +7 -7
- package/dist/commonProperties-DPbE7-nD.js.map +1 -0
- package/dist/components-descriptions.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/dropdown.js +9 -9
- package/dist/dropdown.js.map +1 -1
- package/dist/error-message.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input.js +1 -1
- package/dist/label.js +1 -1
- package/dist/link.js +1 -1
- package/dist/menu.js +2 -2
- package/dist/menu.js.map +1 -1
- package/dist/number-format.js +1 -1
- package/dist/pattern-format.js +1 -1
- package/dist/{rSuiteComponentsDescriptions-lX1mwx9_.js → rSuiteComponentsDescriptions-CaJ33mxP.js} +6 -6
- package/dist/{rSuiteComponentsDescriptions-lX1mwx9_.js.map → rSuiteComponentsDescriptions-CaJ33mxP.js.map} +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/radio-group.js.map +1 -1
- package/dist/schemas/rsuite-components.schema.json +86 -13
- package/dist/search.js +1 -1
- package/dist/tab.js +4 -4
- package/dist/tab.js.map +1 -1
- package/dist/tag-picker.js +3 -3
- package/dist/tag-picker.js.map +1 -1
- package/dist/text-area.js +1 -1
- package/dist/time-picker.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/uploader.js +1 -1
- package/package.json +4 -4
- package/dist/commonProperties-X-t50qaZ.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rSuiteComponentsDescriptions-
|
|
1
|
+
{"version":3,"file":"rSuiteComponentsDescriptions-CaJ33mxP.js","sources":["../src/i18n/rSuiteComponentsDescriptions.ts"],"sourcesContent":["import type {ComponentLibraryDescription, LanguageFullCode} from '@react-form-builder/core'\nimport arEgComponentsDescriptions from './ar-EG.json'\nimport deDeComponentsDescriptions from './de-DE.json'\nimport enUsComponentsDescriptions from './en-US.json'\nimport esEsComponentsDescriptions from './es-ES.json'\nimport faIrComponentsDescriptions from './fa-IR.json'\nimport frFrComponentsDescriptions from './fr-FR.json'\nimport hiInComponentsDescriptions from './hi-IN.json'\nimport itItComponentsDescriptions from './it-IT.json'\nimport jaJpComponentsDescriptions from './ja-JP.json'\nimport koKrComponentsDescriptions from './ko-KR.json'\nimport srRsComponentsDescriptions from './sr-RS.json'\nimport zhCnComponentsDescriptions from './zh-CN.json'\n\nexport const rSuiteComponentsDescriptions: Record<LanguageFullCode, ComponentLibraryDescription> = {\n 'ar-EG': arEgComponentsDescriptions,\n 'de-DE': deDeComponentsDescriptions,\n 'en-US': enUsComponentsDescriptions,\n 'es-ES': esEsComponentsDescriptions,\n 'fa-IR': faIrComponentsDescriptions,\n 'fr-FR': frFrComponentsDescriptions,\n 'hi-IN': hiInComponentsDescriptions,\n 'it-IT': itItComponentsDescriptions,\n 'ja-JP': jaJpComponentsDescriptions,\n 'ko-KR': koKrComponentsDescriptions,\n 'sr-RS': srRsComponentsDescriptions,\n 'zh-CN': zhCnComponentsDescriptions,\n}\n"],"names":["rSuiteComponentsDescriptions","arEgComponentsDescriptions","deDeComponentsDescriptions","enUsComponentsDescriptions","esEsComponentsDescriptions","faIrComponentsDescriptions","frFrComponentsDescriptions","hiInComponentsDescriptions","itItComponentsDescriptions","jaJpComponentsDescriptions","koKrComponentsDescriptions","srRsComponentsDescriptions","zhCnComponentsDescriptions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcaA,IAAsF;AAAA,EACjG,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AACX;"}
|
package/dist/radio-group.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { define as
|
|
2
|
+
import { define as s, string as a, event as p, array as n, toLabeledValues as m, boolean as c, disabled as b, oneOf as R } from "@react-form-builder/core";
|
|
3
3
|
import { RadioGroup as h, Radio as g } from "rsuite";
|
|
4
|
-
import { r as v } from "./commonProperties-
|
|
4
|
+
import { r as v } from "./commonProperties-DPbE7-nD.js";
|
|
5
5
|
import { f as G } from "./categories-_98lyB3C.js";
|
|
6
6
|
import { L as y } from "./Labeled-8k9VvM4G.js";
|
|
7
|
-
const C = ({ items:
|
|
7
|
+
const C = ({ items: l, label: o, value: d, className: i, ...t }) => /* @__PURE__ */ e(y, { label: o, className: i, passAriaToChildren: !0, children: /* @__PURE__ */ e(h, { ...t, value: d ?? "", children: l?.map(({ value: r, label: u }, f) => /* @__PURE__ */ e(g, { value: r, children: u ?? r }, f)) }) }), w = s(C, "RsRadioGroup").name("Radio group").category(G).props({
|
|
8
8
|
name: a.default("RadioGroup"),
|
|
9
9
|
appearance: R("default", "picker").labeled("Default", "Picker").default("default").withEditorProps({ creatable: !1 }),
|
|
10
10
|
label: a.default("Radio"),
|
|
@@ -12,7 +12,7 @@ const C = ({ items: o, label: l, value: d, className: i, ...t }) => /* @__PURE__
|
|
|
12
12
|
readOnly: v,
|
|
13
13
|
inline: c.default(!1),
|
|
14
14
|
onChange: p,
|
|
15
|
-
items: n.default(m(["a", "b", "c"])),
|
|
15
|
+
items: n.calculable(!0).localize.default(m(["a", "b", "c"])),
|
|
16
16
|
value: a.valued
|
|
17
17
|
});
|
|
18
18
|
export {
|
package/dist/radio-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sources":["../src/components/RsRadioGroup.tsx"],"sourcesContent":["import type {LabeledValue} from '@react-form-builder/core'\nimport {array, boolean, define, disabled, event, oneOf, string, toLabeledValues} from '@react-form-builder/core'\nimport type {RadioGroupProps} from 'rsuite'\nimport {Radio, RadioGroup} from 'rsuite'\nimport {readOnly} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {Labeled} from './internal/Labeled'\n\n/**\n * Props for the RsRadioGroup component.\n */\nexport interface RsRadioGroupProps extends RadioGroupProps<string> {\n /**\n * The items for the radio group.\n */\n items: LabeledValue[]\n /**\n * The label for the radio group.\n */\n label?: string\n /**\n * Called after the value has been changed.\n * @param value the value.\n */\n onChange?: (value: string) => void\n}\n\n/**\n * Radio group component with label support.\n * @param props the component props.\n * @param props.items the items for the radio group.\n * @param props.label the label for the radio group.\n * @param props.value the value of the radio group.\n * @param props.className the CSS class name.\n * @param props.props the additional radio group props.\n * @returns the React element.\n */\nconst RsRadioGroup = ({items, label, value, className, ...props}: RsRadioGroupProps) => {\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <RadioGroup {...props as any} value={value ?? ''}>\n {items
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../src/components/RsRadioGroup.tsx"],"sourcesContent":["import type {LabeledValue} from '@react-form-builder/core'\nimport {array, boolean, define, disabled, event, oneOf, string, toLabeledValues} from '@react-form-builder/core'\nimport type {RadioGroupProps} from 'rsuite'\nimport {Radio, RadioGroup} from 'rsuite'\nimport {readOnly} from '../commonProperties'\nimport {fieldsCategory} from './categories'\nimport {Labeled} from './internal/Labeled'\n\n/**\n * Props for the RsRadioGroup component.\n */\nexport interface RsRadioGroupProps extends RadioGroupProps<string> {\n /**\n * The items for the radio group.\n */\n items: LabeledValue[]\n /**\n * The label for the radio group.\n */\n label?: string\n /**\n * Called after the value has been changed.\n * @param value the value.\n */\n onChange?: (value: string) => void\n}\n\n/**\n * Radio group component with label support.\n * @param props the component props.\n * @param props.items the items for the radio group.\n * @param props.label the label for the radio group.\n * @param props.value the value of the radio group.\n * @param props.className the CSS class name.\n * @param props.props the additional radio group props.\n * @returns the React element.\n */\nconst RsRadioGroup = ({items, label, value, className, ...props}: RsRadioGroupProps) => {\n return (\n <Labeled label={label} className={className} passAriaToChildren={true}>\n <RadioGroup {...props as any} value={value ?? ''}>\n {items?.map(({value, label}, i) => (\n <Radio value={value} key={i}>{label ?? value}</Radio>\n ))\n }\n </RadioGroup>\n </Labeled>\n )\n}\n\nexport const rsRadioGroup = define(RsRadioGroup, 'RsRadioGroup')\n .name('Radio group')\n .category(fieldsCategory)\n .props({\n name: string.default('RadioGroup'),\n appearance: oneOf('default', 'picker').labeled('Default', 'Picker').default('default')\n .withEditorProps({creatable: false}),\n label: string.default('Radio'),\n disabled: disabled.default(false),\n readOnly,\n inline: boolean.default(false),\n onChange: event,\n items: array.calculable(true).localize.default(toLabeledValues(['a', 'b', 'c'])),\n value: string.valued\n })\n"],"names":["RsRadioGroup","items","label","value","className","props","jsx","Labeled","RadioGroup","i","Radio","rsRadioGroup","define","fieldsCategory","string","oneOf","disabled","readOnly","boolean","event","array","toLabeledValues"],"mappings":";;;;;;AAqCA,MAAMA,IAAe,CAAC,EAAC,OAAAC,GAAO,OAAAC,GAAO,OAAAC,GAAO,WAAAC,GAAW,GAAGC,QAEtD,gBAAAC,EAACC,GAAA,EAAQ,OAAAL,GAAc,WAAAE,GAAsB,oBAAoB,IAC/D,UAAA,gBAAAE,EAACE,GAAA,EAAY,GAAGH,GAAc,OAAOF,KAAS,IAC3C,aAAO,IAAI,CAAC,EAAC,OAAAA,GAAO,OAAAD,EAAAA,GAAQO,MAC3B,gBAAAH,EAACI,GAAA,EAAM,OAAOP,GAAgB,UAAAD,KAASC,EAAAA,GAAbM,CAAmB,CAC9C,GAEH,GACF,GAISE,IAAeC,EAAOZ,GAAc,cAAc,EAC5D,KAAK,aAAa,EAClB,SAASa,CAAc,EACvB,MAAM;AAAA,EACL,MAAMC,EAAO,QAAQ,YAAY;AAAA,EACjC,YAAYC,EAAM,WAAW,QAAQ,EAAE,QAAQ,WAAW,QAAQ,EAAE,QAAQ,SAAS,EAClF,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOD,EAAO,QAAQ,OAAO;AAAA,EAC7B,UAAUE,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAC;AAAA,EACA,QAAQC,EAAQ,QAAQ,EAAK;AAAA,EAC7B,UAAUC;AAAA,EACV,OAAOC,EAAM,WAAW,EAAI,EAAE,SAAS,QAAQC,EAAgB,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,EAC/E,OAAOP,EAAO;AAChB,CAAC;"}
|
|
@@ -401,9 +401,7 @@
|
|
|
401
401
|
},
|
|
402
402
|
"ComponentPropsLocalization": {
|
|
403
403
|
"type": "object",
|
|
404
|
-
"additionalProperties": {
|
|
405
|
-
"type": "string"
|
|
406
|
-
},
|
|
404
|
+
"additionalProperties": {},
|
|
407
405
|
"propertyNames": {
|
|
408
406
|
"description": "The component property name."
|
|
409
407
|
},
|
|
@@ -511,7 +509,7 @@
|
|
|
511
509
|
},
|
|
512
510
|
"data": {
|
|
513
511
|
"type": "object",
|
|
514
|
-
"$ref": "#/definitions/
|
|
512
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
515
513
|
"description": "The data of component"
|
|
516
514
|
},
|
|
517
515
|
"defaultValue": {
|
|
@@ -941,7 +939,7 @@
|
|
|
941
939
|
},
|
|
942
940
|
"data": {
|
|
943
941
|
"type": "object",
|
|
944
|
-
"$ref": "#/definitions/
|
|
942
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
945
943
|
"description": "Selectable data"
|
|
946
944
|
},
|
|
947
945
|
"cleanable": {
|
|
@@ -1294,7 +1292,7 @@
|
|
|
1294
1292
|
},
|
|
1295
1293
|
"items": {
|
|
1296
1294
|
"type": "object",
|
|
1297
|
-
"$ref": "#/definitions/
|
|
1295
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
1298
1296
|
"description": "The items for the radio group"
|
|
1299
1297
|
},
|
|
1300
1298
|
"value": {
|
|
@@ -1356,7 +1354,7 @@
|
|
|
1356
1354
|
},
|
|
1357
1355
|
"data": {
|
|
1358
1356
|
"type": "object",
|
|
1359
|
-
"$ref": "#/definitions/
|
|
1357
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
1360
1358
|
"description": "Selectable data"
|
|
1361
1359
|
},
|
|
1362
1360
|
"cleanable": {
|
|
@@ -1448,7 +1446,7 @@
|
|
|
1448
1446
|
},
|
|
1449
1447
|
"data": {
|
|
1450
1448
|
"type": "object",
|
|
1451
|
-
"$ref": "#/definitions/
|
|
1449
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
1452
1450
|
"description": "Selectable data"
|
|
1453
1451
|
},
|
|
1454
1452
|
"cleanable": {
|
|
@@ -1989,7 +1987,7 @@
|
|
|
1989
1987
|
},
|
|
1990
1988
|
"items": {
|
|
1991
1989
|
"type": "object",
|
|
1992
|
-
"$ref": "#/definitions/
|
|
1990
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
1993
1991
|
"description": "The items for the menu"
|
|
1994
1992
|
},
|
|
1995
1993
|
"justified": {
|
|
@@ -2597,7 +2595,7 @@
|
|
|
2597
2595
|
},
|
|
2598
2596
|
"items": {
|
|
2599
2597
|
"type": "object",
|
|
2600
|
-
"$ref": "#/definitions/
|
|
2598
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
2601
2599
|
"description": "Array of breadcrumb items to display"
|
|
2602
2600
|
},
|
|
2603
2601
|
"additionalProperties": false
|
|
@@ -2766,7 +2764,7 @@
|
|
|
2766
2764
|
},
|
|
2767
2765
|
"items": {
|
|
2768
2766
|
"type": "object",
|
|
2769
|
-
"$ref": "#/definitions/
|
|
2767
|
+
"$ref": "#/definitions/arrayPropertyCalculableLocalizable",
|
|
2770
2768
|
"description": "Items for the tab"
|
|
2771
2769
|
},
|
|
2772
2770
|
"justified": {
|
|
@@ -3358,7 +3356,7 @@
|
|
|
3358
3356
|
}
|
|
3359
3357
|
]
|
|
3360
3358
|
},
|
|
3361
|
-
"
|
|
3359
|
+
"arrayPropertyCalculableLocalizable": {
|
|
3362
3360
|
"type": "object",
|
|
3363
3361
|
"properties": {
|
|
3364
3362
|
"value": {
|
|
@@ -3372,12 +3370,13 @@
|
|
|
3372
3370
|
"computeType": {
|
|
3373
3371
|
"type": "string",
|
|
3374
3372
|
"enum": [
|
|
3373
|
+
"localization",
|
|
3375
3374
|
"function"
|
|
3376
3375
|
],
|
|
3377
3376
|
"description": "Type of the component's calculated property. If not specified - the value from value is used."
|
|
3378
3377
|
}
|
|
3379
3378
|
},
|
|
3380
|
-
"description": "array property type, calculable",
|
|
3379
|
+
"description": "array property type, calculable, localizable",
|
|
3381
3380
|
"allOf": [
|
|
3382
3381
|
{
|
|
3383
3382
|
"if": {
|
|
@@ -3396,6 +3395,26 @@
|
|
|
3396
3395
|
]
|
|
3397
3396
|
}
|
|
3398
3397
|
},
|
|
3398
|
+
{
|
|
3399
|
+
"if": {
|
|
3400
|
+
"properties": {
|
|
3401
|
+
"computeType": {
|
|
3402
|
+
"const": "localization"
|
|
3403
|
+
}
|
|
3404
|
+
},
|
|
3405
|
+
"required": [
|
|
3406
|
+
"computeType"
|
|
3407
|
+
]
|
|
3408
|
+
},
|
|
3409
|
+
"then": {
|
|
3410
|
+
"not": {
|
|
3411
|
+
"required": [
|
|
3412
|
+
"value",
|
|
3413
|
+
"fnSource"
|
|
3414
|
+
]
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3399
3418
|
{
|
|
3400
3419
|
"if": {
|
|
3401
3420
|
"not": {
|
|
@@ -3587,6 +3606,60 @@
|
|
|
3587
3606
|
}
|
|
3588
3607
|
]
|
|
3589
3608
|
},
|
|
3609
|
+
"arrayPropertyCalculable": {
|
|
3610
|
+
"type": "object",
|
|
3611
|
+
"properties": {
|
|
3612
|
+
"value": {
|
|
3613
|
+
"type": "array",
|
|
3614
|
+
"description": "The simple value of a 'array' component property."
|
|
3615
|
+
},
|
|
3616
|
+
"fnSource": {
|
|
3617
|
+
"type": "string",
|
|
3618
|
+
"description": "Source code of the function for calculating the value of a 'allowedDecimalSeparators' component property."
|
|
3619
|
+
},
|
|
3620
|
+
"computeType": {
|
|
3621
|
+
"type": "string",
|
|
3622
|
+
"enum": [
|
|
3623
|
+
"function"
|
|
3624
|
+
],
|
|
3625
|
+
"description": "Type of the component's calculated property. If not specified - the value from value is used."
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
"description": "array property type, calculable",
|
|
3629
|
+
"allOf": [
|
|
3630
|
+
{
|
|
3631
|
+
"if": {
|
|
3632
|
+
"properties": {
|
|
3633
|
+
"computeType": {
|
|
3634
|
+
"const": "function"
|
|
3635
|
+
}
|
|
3636
|
+
},
|
|
3637
|
+
"required": [
|
|
3638
|
+
"computeType"
|
|
3639
|
+
]
|
|
3640
|
+
},
|
|
3641
|
+
"then": {
|
|
3642
|
+
"required": [
|
|
3643
|
+
"fnSource"
|
|
3644
|
+
]
|
|
3645
|
+
}
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
"if": {
|
|
3649
|
+
"not": {
|
|
3650
|
+
"required": [
|
|
3651
|
+
"computeType"
|
|
3652
|
+
]
|
|
3653
|
+
}
|
|
3654
|
+
},
|
|
3655
|
+
"then": {
|
|
3656
|
+
"required": [
|
|
3657
|
+
"value"
|
|
3658
|
+
]
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
]
|
|
3662
|
+
},
|
|
3590
3663
|
"undefinedPropertyCalculable": {
|
|
3591
3664
|
"type": "object",
|
|
3592
3665
|
"properties": {
|
package/dist/search.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Search as v } from "@rsuite/icons";
|
|
|
4
4
|
import y from "clsx";
|
|
5
5
|
import { useCallback as N, useMemo as R } from "react";
|
|
6
6
|
import { Loader as j, InputPicker as D } from "rsuite";
|
|
7
|
-
import { b as F } from "./commonProperties-
|
|
7
|
+
import { b as F } from "./commonProperties-DPbE7-nD.js";
|
|
8
8
|
import { u as M, a as O } from "./hooks-DMVtrI-b.js";
|
|
9
9
|
import { f as T } from "./categories-_98lyB3C.js";
|
|
10
10
|
import { u as E } from "./useTouchOnEvent-BPYbKiku.js";
|
package/dist/tab.js
CHANGED
|
@@ -3,7 +3,7 @@ import { define as f, node as v, boolean as y, array as h, toLabeledValues as g,
|
|
|
3
3
|
import x from "clsx";
|
|
4
4
|
import { useCallback as C } from "react";
|
|
5
5
|
import { Nav as c } from "rsuite";
|
|
6
|
-
import { n as D } from "./commonProperties-
|
|
6
|
+
import { n as D } from "./commonProperties-DPbE7-nD.js";
|
|
7
7
|
import { s as I } from "./categories-_98lyB3C.js";
|
|
8
8
|
const N = "_tabs_77wg9_1", P = {
|
|
9
9
|
tabs: N
|
|
@@ -36,13 +36,13 @@ const N = "_tabs_77wg9_1", P = {
|
|
|
36
36
|
) }),
|
|
37
37
|
/* @__PURE__ */ n("div", { children: t })
|
|
38
38
|
] });
|
|
39
|
-
},
|
|
39
|
+
}, B = f(T, "RsTab").name("Tab").category(I).props({
|
|
40
40
|
...D,
|
|
41
|
-
items: h.default(g(["Item1", "Item2", "Item3"])),
|
|
41
|
+
items: h.localize.default(g(["Item1", "Item2", "Item3"])),
|
|
42
42
|
showNavigation: y.default(!0),
|
|
43
43
|
pane: v.withSlotConditionBuilder((t) => `return parentProps.activeKey === '${t.activeKey?.value ?? t.activeKey}'`).calculable(!1)
|
|
44
44
|
});
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
B as rsTab
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=tab.js.map
|
package/dist/tab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.js","sources":["../src/components/RsTab.tsx"],"sourcesContent":["import {array, boolean, define, node, toLabeledValues, useComponentData} from '@react-form-builder/core'\nimport cx from 'clsx'\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'\nimport styles from './RsTab.module.css'\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\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.className the CSS class name.\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 className,\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 <Nav onSelect={onNavSelect} activeKey={activeKey} {...props} className={cx(styles.tabs, className)}>\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 </Nav>\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":["RsTab","pane","onSelect","showNavigation","items","className","props","componentData","useComponentData","onNavSelect","useCallback","eventKey","event","activeKey","jsxs","Fragment","jsx","Nav","cx","styles","item","index","rsTab","define","structureCategory","navProps","array","toLabeledValues","boolean","node"],"mappings":";;;;;;;;;GAsDMA,IAAQ,CAAC;AAAA,EACE,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;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,GAC3CT,IAAWS,GAAUC,CAAK;AAAA,EAC5B,GAAG,CAACL,GAAeL,CAAQ,CAAC;AAE5B,MAAI,CAACE,GAAO,OAAQ,QAAO;AAE3B,QAAMS,IAAYP,EAAM,aAAaF,IAAQ,CAAC,EAAE;AAEhD,SAAO,gBAAAU,EAAAC,GAAA,EACJ,UAAA;AAAA,IAAAZ,MAAmB,MAClB,gBAAAa,EAACC,GAAA,EAAI,UAAUR,GAAa,WAAAI,GAAuB,GAAGP,GAAO,WAAWY,EAAGC,EAAO,MAAMd,CAAS,GAC9F,UAAAD,EAAM;AAAA,MAAI,CAACgB,GAAMC,MAAU,gBAAAL;AAAA,QAACC,EAAI;AAAA,QAAJ;AAAA,UACS,UAAUG,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,gBAAAL,EAAC,SAAK,UAAAf,EAAA,CAAK;AAAA,EAAA,GACb;AACF,GAEaqB,IAAQC,EAAOvB,GAAO,OAAO,EACvC,KAAK,KAAK,EACV,SAASwB,CAAiB,EAC1B,MAAM;AAAA,EACL,GAAGC;AAAA,EACH,OAAOC,EAAM,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,
|
|
1
|
+
{"version":3,"file":"tab.js","sources":["../src/components/RsTab.tsx"],"sourcesContent":["import {array, boolean, define, node, toLabeledValues, useComponentData} from '@react-form-builder/core'\nimport cx from 'clsx'\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'\nimport styles from './RsTab.module.css'\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\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.className the CSS class name.\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 className,\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 <Nav onSelect={onNavSelect} activeKey={activeKey} {...props} className={cx(styles.tabs, className)}>\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 </Nav>\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.localize.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":["RsTab","pane","onSelect","showNavigation","items","className","props","componentData","useComponentData","onNavSelect","useCallback","eventKey","event","activeKey","jsxs","Fragment","jsx","Nav","cx","styles","item","index","rsTab","define","structureCategory","navProps","array","toLabeledValues","boolean","node"],"mappings":";;;;;;;;;GAsDMA,IAAQ,CAAC;AAAA,EACE,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;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,GAC3CT,IAAWS,GAAUC,CAAK;AAAA,EAC5B,GAAG,CAACL,GAAeL,CAAQ,CAAC;AAE5B,MAAI,CAACE,GAAO,OAAQ,QAAO;AAE3B,QAAMS,IAAYP,EAAM,aAAaF,IAAQ,CAAC,EAAE;AAEhD,SAAO,gBAAAU,EAAAC,GAAA,EACJ,UAAA;AAAA,IAAAZ,MAAmB,MAClB,gBAAAa,EAACC,GAAA,EAAI,UAAUR,GAAa,WAAAI,GAAuB,GAAGP,GAAO,WAAWY,EAAGC,EAAO,MAAMd,CAAS,GAC9F,UAAAD,EAAM;AAAA,MAAI,CAACgB,GAAMC,MAAU,gBAAAL;AAAA,QAACC,EAAI;AAAA,QAAJ;AAAA,UACS,UAAUG,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,gBAAAL,EAAC,SAAK,UAAAf,EAAA,CAAK;AAAA,EAAA,GACb;AACF,GAEaqB,IAAQC,EAAOvB,GAAO,OAAO,EACvC,KAAK,KAAK,EACV,SAASwB,CAAiB,EAC1B,MAAM;AAAA,EACL,GAAGC;AAAA,EACH,OAAOC,EAAM,SAAS,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,EAC1E,gBAAgBC,EAAQ,QAAQ,EAAI;AAAA,EACpC,MAAMC,EACH,yBAAyB,CAAAvB,MAAS,qCAAqCA,EAAM,WAAW,SAASA,EAAM,SAAS,GAAG,EACnH,WAAW,EAAK;AACrB,CAAC;"}
|
package/dist/tag-picker.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { define as p, array as s, toLabeledValues as i } from "@react-form-builder/core";
|
|
3
3
|
import { useRef as d, useEffect as g, useMemo as P } from "react";
|
|
4
4
|
import { TagPicker as T } from "rsuite";
|
|
5
|
-
import { b as n } from "./commonProperties-
|
|
5
|
+
import { b as n } from "./commonProperties-DPbE7-nD.js";
|
|
6
6
|
import { s as b } from "./hooks-DMVtrI-b.js";
|
|
7
7
|
import { f as k } from "./categories-_98lyB3C.js";
|
|
8
8
|
import { u as h } from "./useTouchOnEvent-BPYbKiku.js";
|
|
@@ -27,11 +27,11 @@ const y = ({ value: e, label: r }) => ({
|
|
|
27
27
|
ref: a
|
|
28
28
|
}
|
|
29
29
|
) });
|
|
30
|
-
}, { disableVirtualized:
|
|
30
|
+
}, { disableVirtualized: j, onLoadData: q, ...x } = n, H = p(L, "RsTagPicker").name("TagPicker").category(k).props({
|
|
31
31
|
...x,
|
|
32
32
|
value: s.valued.ofString,
|
|
33
33
|
label: n.label.default("Select"),
|
|
34
|
-
data: s.default(i(["a", "b", "c"]))
|
|
34
|
+
data: s.localize.default(i(["a", "b", "c"]))
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
37
37
|
H as rsTagPicker
|
package/dist/tag-picker.js.map
CHANGED
|
@@ -1 +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;
|
|
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.localize.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,SAAS,QAAQX,EAAgB,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;AAC/D,CAAC;"}
|
package/dist/text-area.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { define as l, event as a, string as e, disabled as d } from "@react-form-builder/core";
|
|
3
3
|
import { Input as m } from "rsuite";
|
|
4
|
-
import { r as n, s as f, d as p } from "./commonProperties-
|
|
4
|
+
import { r as n, s as f, d as p } from "./commonProperties-DPbE7-nD.js";
|
|
5
5
|
import { f as u } from "./categories-_98lyB3C.js";
|
|
6
6
|
import { L as x } from "./Labeled-8k9VvM4G.js";
|
|
7
7
|
const T = ({ style: t, className: s, label: o, ...i }) => /* @__PURE__ */ r(x, { label: o, style: t, className: s, passAriaToChildren: !0, children: /* @__PURE__ */ r(m, { as: "textarea", ...i }) }), y = l(T, "RsTextArea").name("Text area").category(u).props({
|
package/dist/time-picker.js
CHANGED
|
@@ -3,7 +3,7 @@ import { define as P, event as e, boolean as m, time as T, string as l, disabled
|
|
|
3
3
|
import { format as x, parse as y } from "date-fns";
|
|
4
4
|
import { useMemo as a, useCallback as F } from "react";
|
|
5
5
|
import { DatePicker as H } from "rsuite";
|
|
6
|
-
import { s as I, p as w, r as A } from "./commonProperties-
|
|
6
|
+
import { s as I, p as w, r as A } from "./commonProperties-DPbE7-nD.js";
|
|
7
7
|
import { f as L, t as M } from "./dateTimeUtils-C2AEniv5.js";
|
|
8
8
|
import { f as R } from "./categories-_98lyB3C.js";
|
|
9
9
|
import { u as S } from "./useTouchOnEvent-BPYbKiku.js";
|
package/dist/toggle.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { define as a, event as s, string as e, boolean as o, oneOf as d, disabled as g } from "@react-form-builder/core";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { Toggle as i } from "rsuite";
|
|
5
|
-
import { c as m, r as c } from "./commonProperties-
|
|
5
|
+
import { c as m, r as c } from "./commonProperties-DPbE7-nD.js";
|
|
6
6
|
import { f } from "./categories-_98lyB3C.js";
|
|
7
7
|
const p = "_toggle_bwzod_1", u = {
|
|
8
8
|
toggle: p
|
package/dist/uploader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { define as y, event as t, string as o, node as R, array as U, boolean as e, oneOf as x, disabled as E } from "@react-form-builder/core";
|
|
3
3
|
import { useRef as I, useEffect as C, useMemo as m } from "react";
|
|
4
4
|
import { Uploader as w } from "rsuite";
|
|
5
|
-
import { a as A, r as P } from "./commonProperties-
|
|
5
|
+
import { a as A, r as P } from "./commonProperties-DPbE7-nD.js";
|
|
6
6
|
import { s as N } from "./hooks-DMVtrI-b.js";
|
|
7
7
|
import { f as O } from "./categories-_98lyB3C.js";
|
|
8
8
|
import { u as T } from "./useTouchOnEvent-BPYbKiku.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-form-builder/components-rsuite",
|
|
3
3
|
"description": "OptimaJet Form Builder Components - RSuite",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "Optimajet",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"email": "support@optimajet.com"
|
|
206
206
|
},
|
|
207
207
|
"peerDependencies": {
|
|
208
|
-
"@react-form-builder/core": "
|
|
208
|
+
"@react-form-builder/core": "9.0.0",
|
|
209
209
|
"@rsuite/icons": "1.3.2",
|
|
210
210
|
"clsx": "^2.1.1",
|
|
211
211
|
"date-fns": "^2.30.0",
|
|
@@ -224,8 +224,8 @@
|
|
|
224
224
|
"LICENSE"
|
|
225
225
|
],
|
|
226
226
|
"devDependencies": {
|
|
227
|
-
"@react-form-builder/json-schema-generator": "^
|
|
228
|
-
"postcss": "^8.5.
|
|
227
|
+
"@react-form-builder/json-schema-generator": "^9.0.0",
|
|
228
|
+
"postcss": "^8.5.10",
|
|
229
229
|
"vite-inline-css-plugin": "^0.0.1",
|
|
230
230
|
"vite-node": "^5.2.0"
|
|
231
231
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commonProperties-X-t50qaZ.js","sources":["../src/commonProperties.ts"],"sourcesContent":["import {\n array,\n boolean,\n color,\n disabled,\n event,\n number,\n oneOf,\n readOnly as readOnlyProp,\n string,\n toLabeledValues\n} from '@react-form-builder/core'\nimport type {TypeAttributes} from 'rsuite/esm/internals/types'\n\ntype Placement = TypeAttributes.Placement;\n\nexport const nonNegNumber = number.withEditorProps({min: 0})\n\nexport const positiveNumber = number.withEditorProps({min: 1})\n\nexport const placement = oneOf<Placement>(\n 'bottomStart',\n 'bottomEnd',\n 'topStart',\n 'topEnd',\n 'leftStart',\n 'rightStart',\n 'leftEnd',\n 'rightEnd'\n)\n\nexport const size = oneOf(\n 'xs',\n 'sm',\n 'md',\n 'lg'\n).labeled(\n 'Extra small',\n 'Small',\n 'Medium',\n 'Large'\n).default('md')\n .withEditorProps({creatable: false})\n\nexport const textStyles = {\n textAlign: oneOf('start', 'center', 'end')\n .default('start')\n .radio(),\n fontSize: nonNegNumber.default(14),\n fontWeight: oneOf('lighter', 'normal', 'bold').default('normal'),\n color,\n}\n\nexport const readOnly = readOnlyProp.default(false)\n\nexport const inputProps = {\n placeholder: string,\n size,\n disabled: disabled.default(false),\n readOnly,\n onChange: event,\n}\n\nexport const headerSize = oneOf('h1', 'h2', 'h3', 'h4', 'h5', 'h6')\n .default('h4')\n .withEditorProps({creatable: false})\n\nexport const navProps = {\n activeKey: string.default('Item1'),\n appearance: oneOf('default', 'tabs', 'subtle', 'pills')\n .default('default')\n .withEditorProps({creatable: false}),\n items: array.default(toLabeledValues(['Item1', 'Item2', 'Item3'])),\n justified: boolean.default(false),\n onSelect: event,\n reversed: boolean.default(false),\n vertical: boolean.default(false)\n}\n\nexport const pickerProps = {\n label: string,\n value: string.valued,\n placeholder: string,\n placement,\n size,\n data: array,\n cleanable: boolean.default(true),\n creatable: boolean.default(false),\n disabled: disabled.default(false),\n readOnly,\n groupBy: string.default(''),\n disableVirtualized: boolean,\n onLoadData: event,\n onSelect: event,\n onClean: event,\n onClose: event,\n onCreate: event,\n onChange: event,\n onSearch: event,\n}\n\nexport const controlColor = oneOf('red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'violet')\n .withEditorProps({creatable: false})\n"],"names":["nonNegNumber","number","positiveNumber","placement","oneOf","size","textStyles","color","readOnly","readOnlyProp","inputProps","string","disabled","event","headerSize","navProps","array","toLabeledValues","boolean","pickerProps","controlColor"],"mappings":";AAgBO,MAAMA,IAAeC,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAE9CC,IAAiBD,EAAO,gBAAgB,EAAC,KAAK,GAAE,GAEhDE,IAAYC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAOD;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,QAAQ,IAAI,EACX,gBAAgB,EAAC,WAAW,IAAM,GAExBE,IAAa;AAAA,EACxB,WAAWF,EAAM,SAAS,UAAU,KAAK,EACtC,QAAQ,OAAO,EACf,MAAA;AAAA,EACH,UAAUJ,EAAa,QAAQ,EAAE;AAAA,EACjC,YAAYI,EAAM,WAAW,UAAU,MAAM,EAAE,QAAQ,QAAQ;AAAA,EAC/D,OAAAG;AACF,GAEaC,IAAWC,EAAa,QAAQ,EAAK,GAErCC,IAAa;AAAA,EACxB,aAAaC;AAAA,EACb,MAAAN;AAAA,EACA,UAAUO,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,UAAUK;AACZ,GAEaC,IAAaV,EAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,EAC/D,QAAQ,IAAI,EACZ,gBAAgB,EAAC,WAAW,IAAM,GAExBW,IAAW;AAAA,EACtB,WAAWJ,EAAO,QAAQ,OAAO;AAAA,EACjC,YAAYP,EAAM,WAAW,QAAQ,UAAU,OAAO,EACnD,QAAQ,SAAS,EACjB,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOY,EAAM,QAAQC,EAAgB,CAAC,SAAS,SAAS,OAAO,CAAC,CAAC;AAAA,EACjE,WAAWC,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUL;AAAA,EACV,UAAUK,EAAQ,QAAQ,EAAK;AAAA,EAC/B,UAAUA,EAAQ,QAAQ,EAAK;AACjC,GAEaC,IAAc;AAAA,EACzB,OAAOR;AAAA,EACP,OAAOA,EAAO;AAAA,EACd,aAAaA;AAAA,EACb,WAAAR;AAAA,EACA,MAAAE;AAAA,EACA,MAAMW;AAAA,EACN,WAAWE,EAAQ,QAAQ,EAAI;AAAA,EAC/B,WAAWA,EAAQ,QAAQ,EAAK;AAAA,EAChC,UAAUN,EAAS,QAAQ,EAAK;AAAA,EAChC,UAAAJ;AAAA,EACA,SAASG,EAAO,QAAQ,EAAE;AAAA,EAC1B,oBAAoBO;AAAA,EACpB,YAAYL;AAAA,EACZ,UAAUA;AAAA,EACV,SAASA;AAAA,EACT,SAASA;AAAA,EACT,UAAUA;AAAA,EACV,UAAUA;AAAA,EACV,UAAUA;AACZ,GAEaO,IAAehB,EAAM,OAAO,UAAU,UAAU,SAAS,QAAQ,QAAQ,QAAQ,EAC3F,gBAAgB,EAAC,WAAW,IAAM;"}
|