@plasmicpkgs/antd5 0.0.66 → 0.0.68

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
  }
@@ -2424,7 +2430,8 @@ const Internal = (props) => {
2424
2430
  antd.Radio.Group,
2425
2431
  {
2426
2432
  options: formItem.options,
2427
- optionType: formItem.optionType
2433
+ optionType: formItem.optionType,
2434
+ style: { padding: "8px" }
2428
2435
  }
2429
2436
  ) : null
2430
2437
  )), props.submitSlot);