@rjsf/mantine 6.1.2 → 6.2.3
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/index.cjs +23 -3
- package/dist/index.cjs.map +3 -3
- package/dist/mantine.esm.js +23 -3
- package/dist/mantine.esm.js.map +3 -3
- package/dist/mantine.umd.js +23 -3
- package/lib/templates/BaseInputTemplate.js +9 -2
- package/lib/templates/BaseInputTemplate.js.map +1 -1
- package/lib/templates/ButtonTemplates/IconButton.d.ts +1 -0
- package/lib/templates/ButtonTemplates/IconButton.js +4 -0
- package/lib/templates/ButtonTemplates/IconButton.js.map +1 -1
- package/lib/templates/ButtonTemplates/index.js +2 -1
- package/lib/templates/ButtonTemplates/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils.js +2 -0
- package/lib/utils.js.map +1 -1
- package/package.json +7 -7
- package/src/templates/BaseInputTemplate.tsx +15 -1
- package/src/templates/ButtonTemplates/IconButton.tsx +12 -0
- package/src/templates/ButtonTemplates/index.ts +2 -1
- package/src/utils.ts +2 -0
package/dist/mantine.umd.js
CHANGED
|
@@ -132,7 +132,9 @@
|
|
|
132
132
|
"removable",
|
|
133
133
|
"duplicateKeySuffixSeparator",
|
|
134
134
|
"enumOptions",
|
|
135
|
-
"enableMarkdownInDescription"
|
|
135
|
+
"enableMarkdownInDescription",
|
|
136
|
+
"enableMarkdownInHelp",
|
|
137
|
+
"globalOptions"
|
|
136
138
|
];
|
|
137
139
|
function cleanupOptions(options) {
|
|
138
140
|
const result = {};
|
|
@@ -163,8 +165,10 @@
|
|
|
163
165
|
onFocus,
|
|
164
166
|
options,
|
|
165
167
|
rawErrors,
|
|
166
|
-
children
|
|
168
|
+
children,
|
|
169
|
+
registry
|
|
167
170
|
} = props;
|
|
171
|
+
const { ClearButton: ClearButton2 } = registry.templates.ButtonTemplates;
|
|
168
172
|
const inputProps = utils.getInputProps(schema, type, options, false);
|
|
169
173
|
const description = hideLabel ? void 0 : options.description || schema.description;
|
|
170
174
|
const themeProps = cleanupOptions(options);
|
|
@@ -189,6 +193,14 @@
|
|
|
189
193
|
},
|
|
190
194
|
[onFocus, id]
|
|
191
195
|
);
|
|
196
|
+
const handleClear = react.useCallback(
|
|
197
|
+
(e) => {
|
|
198
|
+
e.preventDefault();
|
|
199
|
+
e.stopPropagation();
|
|
200
|
+
onChange(options.emptyValue ?? "");
|
|
201
|
+
},
|
|
202
|
+
[onChange, options.emptyValue]
|
|
203
|
+
);
|
|
192
204
|
const componentProps = {
|
|
193
205
|
id,
|
|
194
206
|
name: htmlName || id,
|
|
@@ -229,6 +241,7 @@
|
|
|
229
241
|
);
|
|
230
242
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
231
243
|
input,
|
|
244
|
+
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: handleClear }),
|
|
232
245
|
children,
|
|
233
246
|
Array.isArray(schema.examples) && /* @__PURE__ */ jsxRuntime.jsx("datalist", { id: utils.examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
|
|
234
247
|
return /* @__PURE__ */ jsxRuntime.jsx("option", { value: example }, example);
|
|
@@ -469,6 +482,12 @@
|
|
|
469
482
|
}
|
|
470
483
|
);
|
|
471
484
|
}
|
|
485
|
+
function ClearButton(props) {
|
|
486
|
+
const {
|
|
487
|
+
registry: { translateString }
|
|
488
|
+
} = props;
|
|
489
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.ClearButton), variant: "subtle", ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(X, {}) });
|
|
490
|
+
}
|
|
472
491
|
function AddButton(props) {
|
|
473
492
|
const {
|
|
474
493
|
registry: { translateString }
|
|
@@ -484,7 +503,8 @@
|
|
|
484
503
|
CopyButton,
|
|
485
504
|
MoveDownButton,
|
|
486
505
|
MoveUpButton,
|
|
487
|
-
RemoveButton
|
|
506
|
+
RemoveButton,
|
|
507
|
+
ClearButton
|
|
488
508
|
};
|
|
489
509
|
}
|
|
490
510
|
var ButtonTemplates_default = buttonTemplates;
|
|
@@ -10,7 +10,8 @@ import { cleanupOptions } from '../utils';
|
|
|
10
10
|
* @param props - The `WidgetProps` for this template
|
|
11
11
|
*/
|
|
12
12
|
export default function BaseInputTemplate(props) {
|
|
13
|
-
const { id, htmlName, type, schema, value, placeholder, required, disabled, readonly, autofocus, label, hideLabel, onChange, onChangeOverride, onBlur, onFocus, options, rawErrors, children, } = props;
|
|
13
|
+
const { id, htmlName, type, schema, value, placeholder, required, disabled, readonly, autofocus, label, hideLabel, onChange, onChangeOverride, onBlur, onFocus, options, rawErrors, children, registry, } = props;
|
|
14
|
+
const { ClearButton } = registry.templates.ButtonTemplates;
|
|
14
15
|
const inputProps = getInputProps(schema, type, options, false);
|
|
15
16
|
const description = hideLabel ? undefined : options.description || schema.description;
|
|
16
17
|
const themeProps = cleanupOptions(options);
|
|
@@ -26,6 +27,12 @@ export default function BaseInputTemplate(props) {
|
|
|
26
27
|
const handleFocus = useCallback((e) => {
|
|
27
28
|
onFocus(id, e.target && e.target.value);
|
|
28
29
|
}, [onFocus, id]);
|
|
30
|
+
const handleClear = useCallback((e) => {
|
|
31
|
+
var _a;
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
onChange((_a = options.emptyValue) !== null && _a !== void 0 ? _a : '');
|
|
35
|
+
}, [onChange, options.emptyValue]);
|
|
29
36
|
const componentProps = {
|
|
30
37
|
id,
|
|
31
38
|
name: htmlName || id,
|
|
@@ -40,7 +47,7 @@ export default function BaseInputTemplate(props) {
|
|
|
40
47
|
list: schema.examples ? examplesId(id) : undefined,
|
|
41
48
|
};
|
|
42
49
|
const input = inputProps.type === 'number' || inputProps.type === 'integer' ? (_jsx(NumberInput, { onChange: !readonly ? handleNumberChange : undefined, ...componentProps, ...inputProps, ...themeProps, step: typeof inputProps.step === 'number' ? inputProps.step : 1, type: 'text', description: description, value: value, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) })) : (_jsx(TextInput, { onChange: !readonly ? handleChange : undefined, ...componentProps, ...inputProps, ...themeProps, description: description, value: value, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }));
|
|
43
|
-
return (_jsxs(_Fragment, { children: [input, children, Array.isArray(schema.examples) && (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
50
|
+
return (_jsxs(_Fragment, { children: [input, options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: handleClear })), children, Array.isArray(schema.examples) && (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
44
51
|
.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : [])
|
|
45
52
|
.map((example) => {
|
|
46
53
|
return _jsx("option", { value: example }, example);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuC,WAAW,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,kBAAkB,EAElB,UAAU,EACV,aAAa,EACb,UAAU,GAIX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,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CAAC,CAAC,CAAC,EAAE,CAAC;qBACzG,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;oBACf,OAAO,iBAAsB,KAAK,EAAE,OAAO,IAAvB,OAAO,CAAoB,CAAC;gBAClD,CAAC,CAAC,GACK,CACZ,IACA,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -6,3 +6,4 @@ export declare function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSch
|
|
|
6
6
|
export declare function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,4 +22,8 @@ export function RemoveButton(props) {
|
|
|
22
22
|
const { registry: { translateString }, } = props;
|
|
23
23
|
return (_jsx(IconButton, { title: translateString(TranslatableString.RemoveButton), variant: 'subtle', color: 'red', ...props, icon: _jsx(X, {}) }));
|
|
24
24
|
}
|
|
25
|
+
export function ClearButton(props) {
|
|
26
|
+
const { registry: { translateString }, } = props;
|
|
27
|
+
return (_jsx(IconButton, { title: translateString(TranslatableString.ClearButton), variant: 'subtle', ...props, icon: _jsx(X, {}) }));
|
|
28
|
+
}
|
|
25
29
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/IconButton.tsx"],"names":[],"m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B,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,KAAC,UAAU,IAAC,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,OAAO,EAAC,QAAQ,KAAK,KAAK,EAAE,IAAI,EAAE,KAAC,CAAC,KAAG,GAAI,CAChH,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SubmitButton from './SubmitButton';
|
|
2
2
|
import AddButton from './AddButton';
|
|
3
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from './IconButton';
|
|
3
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from './IconButton';
|
|
4
4
|
function buttonTemplates() {
|
|
5
5
|
return {
|
|
6
6
|
SubmitButton,
|
|
@@ -9,6 +9,7 @@ function buttonTemplates() {
|
|
|
9
9
|
MoveDownButton,
|
|
10
10
|
MoveUpButton,
|
|
11
11
|
RemoveButton,
|
|
12
|
+
ClearButton,
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
export default buttonTemplates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/index.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/index.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnG,SAAS,eAAe;IAKtB,OAAO;QACL,YAAY;QACZ,SAAS;QACT,UAAU;QACV,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,WAAW;KACZ,CAAC;AACJ,CAAC;AAED,eAAe,eAAe,CAAC"}
|