@pathscale/ui 0.0.65 → 0.0.66
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 +9 -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 } = (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,11 @@ 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
|
|
7259
7263
|
}));
|
|
7260
7264
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FormValidationContext.Provider, {
|
|
7261
7265
|
get value () {
|
|
@@ -7271,7 +7275,7 @@ function ValidatedForm_ValidatedForm(props) {
|
|
|
7271
7275
|
}
|
|
7272
7276
|
});
|
|
7273
7277
|
}
|
|
7274
|
-
const
|
|
7278
|
+
const form_ValidatedForm = ValidatedForm;
|
|
7275
7279
|
var Form_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form role=form>");
|
|
7276
7280
|
const Form = (props)=>{
|
|
7277
7281
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7298,7 +7302,7 @@ const Form = (props)=>{
|
|
|
7298
7302
|
};
|
|
7299
7303
|
const form_Form = Object.assign(Form, {
|
|
7300
7304
|
Label: form_Label,
|
|
7301
|
-
Validated:
|
|
7305
|
+
Validated: form_ValidatedForm
|
|
7302
7306
|
});
|
|
7303
7307
|
const colsMap = {
|
|
7304
7308
|
1: "grid-cols-1",
|