x-ui-design 0.5.39 → 0.5.41

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.
@@ -19,5 +19,6 @@ declare const Checkbox: React.ForwardRefExoticComponent<import("../../types").De
19
19
  required?: boolean;
20
20
  defaultChecked?: boolean;
21
21
  checked?: boolean;
22
+ titleClick?: boolean;
22
23
  } & React.RefAttributes<HTMLDivElement>>;
23
24
  export default Checkbox;
@@ -19,6 +19,7 @@ declare const Checkbox: import("react").ComponentType<import("@/types").DefaultP
19
19
  required?: boolean;
20
20
  defaultChecked?: boolean;
21
21
  checked?: boolean;
22
+ titleClick?: boolean;
22
23
  } & import("react").RefAttributes<HTMLDivElement>>;
23
24
  declare const Switch: import("react").ComponentType<import("./types/switch").SwitchProps>;
24
25
  declare const Empty: import("react").ComponentType<import("./types/empty").EmptyContentProps>;
@@ -19,4 +19,5 @@ export type CheckboxProps = DefaultProps & {
19
19
  required?: boolean;
20
20
  defaultChecked?: boolean;
21
21
  checked?: boolean;
22
+ titleClick?: boolean;
22
23
  };
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ declare const Checkbox: react.ComponentType<__types.DefaultProps & {
121
121
  required?: boolean;
122
122
  defaultChecked?: boolean;
123
123
  checked?: boolean;
124
+ titleClick?: boolean;
124
125
  } & react.RefAttributes<HTMLDivElement>>;
125
126
  declare const Switch: react.ComponentType<SwitchProps>;
126
127
  declare const Empty: react.ComponentType<EmptyContentProps>;
package/dist/index.esm.js CHANGED
@@ -1454,7 +1454,8 @@ const Checkbox = /*#__PURE__*/forwardRef(({
1454
1454
  type = 'checkbox',
1455
1455
  value = false,
1456
1456
  required = false,
1457
- noStyle
1457
+ noStyle,
1458
+ titleClick
1458
1459
  }, ref) => {
1459
1460
  const isChecked = checked !== undefined ? checked : defaultChecked || value;
1460
1461
  const [internalChecked, setInternalChecked] = useState(isChecked);
@@ -1503,7 +1504,9 @@ const Checkbox = /*#__PURE__*/forwardRef(({
1503
1504
  style: {
1504
1505
  opacity: internalChecked ? 1 : 0
1505
1506
  }
1506
- }))), children && /*#__PURE__*/React.createElement("span", {
1507
+ }))), titleClick ? /*#__PURE__*/React.createElement("div", {
1508
+ onClick: handleClick
1509
+ }, children) : children && /*#__PURE__*/React.createElement("span", {
1507
1510
  className: `${prefixCls}-label`
1508
1511
  }, children));
1509
1512
  });
@@ -3628,6 +3631,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3628
3631
  }
3629
3632
  }, filterable && /*#__PURE__*/React.createElement("input", {
3630
3633
  type: "text",
3634
+ inputMode: "text",
3631
3635
  className: `${prefixCls}-search`,
3632
3636
  value: searchQuery,
3633
3637
  onChange: handleSearch,