@pathscale/ui 0.0.65 → 0.0.67
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.js +10 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7234,14 +7234,14 @@ function useFormValidation() {
|
|
|
7234
7234
|
if (!context) throw new Error("useFormValidation must be used within a ValidatedForm");
|
|
7235
7235
|
return context;
|
|
7236
7236
|
}
|
|
7237
|
-
function
|
|
7237
|
+
function ValidatedForm(props) {
|
|
7238
7238
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7239
7239
|
"children",
|
|
7240
7240
|
"schema",
|
|
7241
7241
|
"onSubmit",
|
|
7242
7242
|
"initialValues"
|
|
7243
7243
|
]);
|
|
7244
|
-
const { form, errors, touched, data, isValid, isSubmitting } = (0, __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__.createForm)({
|
|
7244
|
+
const { form, errors, touched, data, isValid, isSubmitting, setData, setErrors, setWarnings, setTouched, reset } = (0, __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__.createForm)({
|
|
7245
7245
|
initialValues: local.initialValues,
|
|
7246
7246
|
extend: [
|
|
7247
7247
|
(0, __WEBPACK_EXTERNAL_MODULE__felte_validator_zod_bb07151a__.validator)({
|
|
@@ -7255,7 +7255,12 @@ function ValidatedForm_ValidatedForm(props) {
|
|
|
7255
7255
|
touched,
|
|
7256
7256
|
data,
|
|
7257
7257
|
isValid,
|
|
7258
|
-
isSubmitting
|
|
7258
|
+
isSubmitting,
|
|
7259
|
+
setData,
|
|
7260
|
+
setErrors,
|
|
7261
|
+
setWarnings,
|
|
7262
|
+
setTouched,
|
|
7263
|
+
reset
|
|
7259
7264
|
}));
|
|
7260
7265
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FormValidationContext.Provider, {
|
|
7261
7266
|
get value () {
|
|
@@ -7271,7 +7276,7 @@ function ValidatedForm_ValidatedForm(props) {
|
|
|
7271
7276
|
}
|
|
7272
7277
|
});
|
|
7273
7278
|
}
|
|
7274
|
-
const
|
|
7279
|
+
const form_ValidatedForm = ValidatedForm;
|
|
7275
7280
|
var Form_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form role=form>");
|
|
7276
7281
|
const Form = (props)=>{
|
|
7277
7282
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7298,7 +7303,7 @@ const Form = (props)=>{
|
|
|
7298
7303
|
};
|
|
7299
7304
|
const form_Form = Object.assign(Form, {
|
|
7300
7305
|
Label: form_Label,
|
|
7301
|
-
Validated:
|
|
7306
|
+
Validated: form_ValidatedForm
|
|
7302
7307
|
});
|
|
7303
7308
|
const colsMap = {
|
|
7304
7309
|
1: "grid-cols-1",
|