@plasmicpkgs/antd5 0.0.35 → 0.0.38
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +15 -6
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +15 -6
- package/dist/registerForm.d.ts +44 -0
- package/package.json +3 -3
- package/skinny/registerConfigProvider.js +3 -1
- package/skinny/registerConfigProvider.js.map +1 -1
- package/skinny/registerForm.d.ts +44 -0
- package/skinny/registerForm.js +13 -6
- package/skinny/registerForm.js.map +1 -1
package/dist/antd.esm.js
CHANGED
|
@@ -414,7 +414,9 @@ function InnerConfigProvider(props) {
|
|
|
414
414
|
if (!GlobalActionsProvider) {
|
|
415
415
|
warnOutdatedDeps();
|
|
416
416
|
}
|
|
417
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style",
|
|
417
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", {
|
|
418
|
+
dangerouslySetInnerHTML: { __html: cssStyles }
|
|
419
|
+
}), GlobalActionsProvider ? /* @__PURE__ */ React.createElement(GlobalActionsProvider, {
|
|
418
420
|
contextName: "plasmic-antd5-config-provider",
|
|
419
421
|
actions
|
|
420
422
|
}, children) : children, /* @__PURE__ */ React.createElement(GlobalLoadingIndicator, null));
|
|
@@ -1051,7 +1053,7 @@ const Internal = (props) => {
|
|
|
1051
1053
|
labelCol: ((_a = props.labelCol) == null ? void 0 : _a.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.labelCol,
|
|
1052
1054
|
wrapperCol: ((_b = props.wrapperCol) == null ? void 0 : _b.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.wrapperCol
|
|
1053
1055
|
}), /* @__PURE__ */ React.createElement("style", null, `
|
|
1054
|
-
.ant-form-item-explain + div {
|
|
1056
|
+
.ant-form-item-explain + div, .ant-form-item-margin-offset {
|
|
1055
1057
|
display: none;
|
|
1056
1058
|
}
|
|
1057
1059
|
`), childrenNode));
|
|
@@ -1107,6 +1109,10 @@ function registerForm(loader) {
|
|
|
1107
1109
|
registerComponentHelper(loader, FormWrapper, {
|
|
1108
1110
|
name: "plasmic-antd5-form",
|
|
1109
1111
|
displayName: "Form",
|
|
1112
|
+
defaultStyles: {
|
|
1113
|
+
display: "plasmic-content-layout",
|
|
1114
|
+
gridRowGap: "10px"
|
|
1115
|
+
},
|
|
1110
1116
|
props: {
|
|
1111
1117
|
children: {
|
|
1112
1118
|
type: "slot",
|
|
@@ -1253,7 +1259,7 @@ function registerForm(loader) {
|
|
|
1253
1259
|
}
|
|
1254
1260
|
},
|
|
1255
1261
|
importPath: "@plasmicpkgs/antd5/skinny/registerForm",
|
|
1256
|
-
importName: "
|
|
1262
|
+
importName: "FormWrapper"
|
|
1257
1263
|
});
|
|
1258
1264
|
}
|
|
1259
1265
|
function plasmicRulesToAntdRules(plasmicRules) {
|
|
@@ -1397,9 +1403,6 @@ function registerFormItem(loader) {
|
|
|
1397
1403
|
initialValue: {
|
|
1398
1404
|
type: "string"
|
|
1399
1405
|
},
|
|
1400
|
-
required: {
|
|
1401
|
-
type: "boolean"
|
|
1402
|
-
},
|
|
1403
1406
|
rules: {
|
|
1404
1407
|
type: "formValidationRules"
|
|
1405
1408
|
},
|
|
@@ -1436,6 +1439,12 @@ function registerFormItem(loader) {
|
|
|
1436
1439
|
displayName: "Always re-render",
|
|
1437
1440
|
description: "Form items normally only re-render when the corresponding form value changes, for performance. This forces it to always re-render."
|
|
1438
1441
|
},
|
|
1442
|
+
dependencies: {
|
|
1443
|
+
type: "array",
|
|
1444
|
+
advanced: true,
|
|
1445
|
+
displayName: "Dependencies",
|
|
1446
|
+
description: "Form items can depend on other form items. This forces it to reevaluate the validation rules when the other form item changes."
|
|
1447
|
+
},
|
|
1439
1448
|
helpTextMode: {
|
|
1440
1449
|
type: "choice",
|
|
1441
1450
|
displayName: "Help text",
|