@plasmicpkgs/antd5 0.0.67 → 0.0.69

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 CHANGED
@@ -412,10 +412,12 @@ function themeToAntdConfig(opts) {
412
412
  controlHeight,
413
413
  sizeUnit,
414
414
  sizeStep,
415
- wireframe
415
+ wireframe,
416
+ defaultDark = false
416
417
  } = opts;
417
418
  return {
418
419
  theme: {
420
+ algorithm: defaultDark ? antd.theme.darkAlgorithm : void 0,
419
421
  token: Object.fromEntries(
420
422
  Object.entries({
421
423
  colorTextBase,
@@ -827,6 +829,10 @@ const registerConfigProvider = makeRegisterGlobalContext(
827
829
  type: "boolean",
828
830
  defaultValue: false
829
831
  },
832
+ defaultDark: {
833
+ type: "boolean",
834
+ defaultValue: false
835
+ },
830
836
  themeStyles: {
831
837
  type: "themeStyles"
832
838
  }
@@ -2571,7 +2577,10 @@ function registerForm(loader) {
2571
2577
  alignItems: "flex-start"
2572
2578
  },
2573
2579
  props: {
2574
- mode: "controlMode",
2580
+ mode: {
2581
+ type: "controlMode",
2582
+ defaultValue: true
2583
+ },
2575
2584
  formItems: {
2576
2585
  type: "array",
2577
2586
  itemType: {