@plasmicpkgs/antd5 0.0.77 → 0.0.79

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
@@ -2703,50 +2703,6 @@ function registerForm(loader) {
2703
2703
  }),
2704
2704
  children: {
2705
2705
  type: "slot",
2706
- defaultValue: [
2707
- {
2708
- type: "component",
2709
- name: formItemComponentName,
2710
- props: {
2711
- label: {
2712
- type: "text",
2713
- value: "Name"
2714
- },
2715
- name: "name",
2716
- children: {
2717
- type: "component",
2718
- name: inputComponentName
2719
- }
2720
- }
2721
- },
2722
- {
2723
- type: "component",
2724
- name: formItemComponentName,
2725
- props: {
2726
- label: {
2727
- type: "text",
2728
- value: "Message"
2729
- },
2730
- name: "message",
2731
- children: {
2732
- type: "component",
2733
- name: textAreaComponentName
2734
- }
2735
- }
2736
- },
2737
- {
2738
- type: "component",
2739
- name: buttonComponentName,
2740
- props: {
2741
- children: {
2742
- type: "text",
2743
- value: "Submit"
2744
- },
2745
- type: "primary",
2746
- submitsForm: true
2747
- }
2748
- }
2749
- ],
2750
2706
  hidden: (props) => props.mode === "simplified"
2751
2707
  },
2752
2708
  initialValues: {
@@ -4113,11 +4069,11 @@ function AntdDatePicker(props) {
4113
4069
  (_a = props.onChange) == null ? void 0 : _a.call(props, value !== null ? value.toISOString() : null);
4114
4070
  },
4115
4071
  open,
4116
- onOpenChange: (open2) => {
4117
- if (open2 && window.innerWidth < 500) {
4072
+ onOpenChange: (_open) => {
4073
+ if (_open && window.innerWidth < 500) {
4118
4074
  nativeInput.current.showPicker();
4119
4075
  } else {
4120
- setOpen(open2);
4076
+ setOpen(_open);
4121
4077
  }
4122
4078
  }
4123
4079
  })
@@ -4127,7 +4083,7 @@ function AntdDatePicker(props) {
4127
4083
  hidden: true,
4128
4084
  ref: nativeInput,
4129
4085
  type: props.showTime ? "datetime-local" : "date",
4130
- value: strValue,
4086
+ value: strValue || "",
4131
4087
  onChange: (e) => {
4132
4088
  props.onChange(e.target.value);
4133
4089
  }