@nutui/nutui-react-taro 3.0.19-cpp.23 → 3.0.19-cpp.24-beta.1

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.
Files changed (50) hide show
  1. package/dist/cjs/packages/checkbox/checkbox.js +15 -6
  2. package/dist/cjs/packages/input/input.js +4 -3
  3. package/dist/cjs/packages/input/style/input.scss +1 -1
  4. package/dist/cjs/packages/input/style/style.css +1 -1
  5. package/dist/cjs/packages/input/style/style.harmony.css +1 -1
  6. package/dist/cjs/packages/input/style-jmapp/input.scss +1 -1
  7. package/dist/cjs/packages/input/style-jmapp/style.css +1 -1
  8. package/dist/cjs/packages/input/style-jrkf/input.scss +1 -1
  9. package/dist/cjs/packages/input/style-jrkf/style.css +1 -1
  10. package/dist/cjs/packages/navbar/style/style.css +1 -1
  11. package/dist/cjs/packages/navbar/style/style.harmony.css +1 -1
  12. package/dist/cjs/packages/radio/radio.js +7 -3
  13. package/dist/cjs/packages/toast/toast.js +2 -1
  14. package/dist/cjs/types/spec/input/base.d.ts +2 -1
  15. package/dist/cjs/utils/taro/get-system-info.d.ts +3 -0
  16. package/dist/cjs/utils/taro/get-system-info.js +4 -3
  17. package/dist/cjs/utils/taro/platform.js +6 -5
  18. package/dist/cjs/utils/taro/px-transform.js +3 -2
  19. package/dist/es/packages/checkbox/checkbox.js +19 -8
  20. package/dist/es/packages/input/input.js +4 -3
  21. package/dist/es/packages/input/style/input.scss +1 -1
  22. package/dist/es/packages/input/style/style.css +1 -1
  23. package/dist/es/packages/input/style/style.harmony.css +1 -1
  24. package/dist/es/packages/input/style-jmapp/input.scss +1 -1
  25. package/dist/es/packages/input/style-jmapp/style.css +1 -1
  26. package/dist/es/packages/input/style-jrkf/input.scss +1 -1
  27. package/dist/es/packages/input/style-jrkf/style.css +1 -1
  28. package/dist/es/packages/navbar/style/style.css +1 -1
  29. package/dist/es/packages/navbar/style/style.harmony.css +1 -1
  30. package/dist/es/packages/radio/radio.js +11 -5
  31. package/dist/es/packages/toast/toast.js +2 -1
  32. package/dist/es/types/spec/input/base.d.ts +5 -1
  33. package/dist/es/utils/taro/get-system-info.d.ts +3 -0
  34. package/dist/es/utils/taro/get-system-info.js +6 -3
  35. package/dist/es/utils/taro/platform.js +5 -5
  36. package/dist/es/utils/taro/px-transform.js +2 -2
  37. package/dist/nutui.react.umd.js +46 -23
  38. package/dist/style-jmapp.css +1 -1
  39. package/dist/style-jmapp.scss +42 -42
  40. package/dist/style-jrkf.css +1 -1
  41. package/dist/style-jrkf.scss +40 -40
  42. package/dist/style.css +1 -1
  43. package/dist/style.scss +47 -47
  44. package/dist/styles/theme-daojia.scss +369 -0
  45. package/dist/styles/theme-dark-daojia.scss +365 -0
  46. package/dist/styles/themes/daojia.css +1 -0
  47. package/dist/styles/themes/dark-daojia.css +1 -0
  48. package/dist/styles/variables-daojia.scss +2583 -0
  49. package/dist/styles/variables.scss +2 -2
  50. package/package.json +1 -1
@@ -2092,10 +2092,10 @@
2092
2092
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2093
2093
  };
2094
2094
  var getDeviceInfo = function() {
2095
- return Taro.canIUse("getDeviceInfo") ? Taro.getDeviceInfo() : Taro.getSystemInfoSync();
2095
+ return typeof Taro.getDeviceInfo === "function" ? Taro.getDeviceInfo() : Taro.getSystemInfoSync();
2096
2096
  };
2097
2097
  var getWindowInfo = function() {
2098
- return Taro.canIUse("getWindowInfo") ? Taro.getWindowInfo() : Taro.getSystemInfoSync();
2098
+ return typeof Taro.getWindowInfo === "function" ? Taro.getWindowInfo() : Taro.getSystemInfoSync();
2099
2099
  };
2100
2100
  function useWatch$1(dep, callback) {
2101
2101
  var config2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
@@ -6973,32 +6973,44 @@
6973
6973
  if (innerDisabled) {
6974
6974
  if (innerIndeterminate) {
6975
6975
  return /* @__PURE__ */ React.createElement(IconSVG$t, {
6976
- className: color()
6976
+ className: color(),
6977
+ ariaHidden: true
6977
6978
  });
6978
6979
  }
6979
6980
  if (innerChecked) {
6980
6981
  return /* @__PURE__ */ React.createElement(IconSVG$q, {
6981
- className: color()
6982
+ className: color(),
6983
+ ariaHidden: true
6982
6984
  });
6983
6985
  }
6984
6986
  return /* @__PURE__ */ React.createElement(IconSVG$t, {
6985
- className: color()
6987
+ className: color(),
6988
+ ariaHidden: true
6986
6989
  });
6987
6990
  }
6988
6991
  if (!innerChecked) {
6989
- return /* @__PURE__ */ React.isValidElement(icon) ? icon : /* @__PURE__ */ React.createElement(IconSVG$s, {
6990
- className: color()
6991
- });
6992
+ return /* @__PURE__ */ React.isValidElement(icon) ? icon : (
6993
+ // @ts-ignore
6994
+ /* @__PURE__ */ React.createElement(IconSVG$s, {
6995
+ className: color(),
6996
+ ariaHidden: true
6997
+ })
6998
+ );
6992
6999
  }
6993
7000
  if (innerIndeterminate) {
6994
- return /* @__PURE__ */ React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ React.createElement(IconSVG$t, {
6995
- className: color()
6996
- });
7001
+ return /* @__PURE__ */ React.isValidElement(indeterminateIcon) ? indeterminateIcon : (
7002
+ // @ts-ignore
7003
+ /* @__PURE__ */ React.createElement(IconSVG$t, {
7004
+ className: color(),
7005
+ ariaHidden: true
7006
+ })
7007
+ );
6997
7008
  }
6998
7009
  return /* @__PURE__ */ React.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ React.createElement(components.View, {
6999
7010
  className: "".concat(classPrefix$j, "-icon-wrap")
7000
7011
  }, /* @__PURE__ */ React.createElement(IconSVG$q, {
7001
- className: color()
7012
+ className: color(),
7013
+ ariaHidden: true
7002
7014
  }));
7003
7015
  };
7004
7016
  var color = function() {
@@ -9988,7 +10000,7 @@
9988
10000
  var classPrefix2 = "nut-input";
9989
10001
  var rtl = useRtl();
9990
10002
  var locale = useConfig().locale;
9991
- var _ref = _object_spread({}, defaultProps$Y, props), focus = _ref.focus, type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, plain = _ref.plain, onChange = _ref.onChange, onFocus = _ref.onFocus;
10003
+ var _ref = _object_spread({}, defaultProps$Y, props), focus = _ref.focus, type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, plain = _ref.plain, inputStyle = _ref.inputStyle, onChange = _ref.onChange, onFocus = _ref.onFocus;
9992
10004
  _ref.onBlur;
9993
10005
  var onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, defaultValue = _ref.defaultValue, _value = _ref.value, rest = _object_without_properties(_ref, [
9994
10006
  "focus",
@@ -10006,6 +10018,7 @@
10006
10018
  "style",
10007
10019
  "className",
10008
10020
  "plain",
10021
+ "inputStyle",
10009
10022
  "onChange",
10010
10023
  "onFocus",
10011
10024
  "onBlur",
@@ -10123,9 +10136,9 @@
10123
10136
  name: name2,
10124
10137
  className: "nut-input-native",
10125
10138
  ref: inputRef,
10126
- style: {
10139
+ style: _object_spread({}, {
10127
10140
  textAlign: getTextAlign()
10128
- },
10141
+ }, inputStyle),
10129
10142
  type: inputType(type2),
10130
10143
  password: type2 === "password",
10131
10144
  maxlength: maxLength,
@@ -12696,21 +12709,30 @@
12696
12709
  var icon = props.icon, activeIcon = props.activeIcon;
12697
12710
  if (disabled && !checkedStatement) {
12698
12711
  return /* @__PURE__ */ React.createElement(IconSVG$t, {
12699
- className: classNames(color())
12712
+ className: classNames(color()),
12713
+ ariaHidden: true
12700
12714
  });
12701
12715
  }
12702
12716
  if (checkedStatement) {
12703
12717
  return /* @__PURE__ */ React.isValidElement(activeIcon) ? /* @__PURE__ */ React.cloneElement(activeIcon, _object_spread_props(_object_spread({}, activeIcon.props), {
12704
12718
  className: classNames(activeIcon.props.className, color())
12705
- })) : /* @__PURE__ */ React.createElement(IconSVG$u, {
12706
- className: classNames(color())
12707
- });
12719
+ })) : (
12720
+ // @ts-ignore
12721
+ /* @__PURE__ */ React.createElement(IconSVG$u, {
12722
+ className: classNames(color()),
12723
+ ariaHidden: true
12724
+ })
12725
+ );
12708
12726
  }
12709
12727
  return /* @__PURE__ */ React.isValidElement(icon) ? /* @__PURE__ */ React.cloneElement(icon, _object_spread_props(_object_spread({}, icon.props), {
12710
12728
  className: classNames(icon.props.className, color())
12711
- })) : /* @__PURE__ */ React.createElement(IconSVG$s, {
12712
- className: classNames(color())
12713
- });
12729
+ })) : (
12730
+ // @ts-ignore
12731
+ /* @__PURE__ */ React.createElement(IconSVG$s, {
12732
+ className: classNames(color()),
12733
+ ariaHidden: true
12734
+ })
12735
+ );
12714
12736
  };
12715
12737
  var renderLabel = function() {
12716
12738
  var labelcls = classNames("".concat(classPrefix2, "-label"), _define_property({}, "".concat(classPrefix2, "-label-disabled"), disabled));
@@ -17436,7 +17458,8 @@
17436
17458
  }, /* @__PURE__ */ React.createElement(components.View, {
17437
17459
  className: classNames("".concat(classPrefix2, "-inner"), "".concat(classPrefix2, "-").concat(position2), contentClassName, "".concat(classPrefix2, "-inner-").concat(size), "".concat(classPrefix2, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix2, "-inner-descrption"), content2)),
17438
17460
  style: _object_spread({}, styles, contentStyle),
17439
- ariaRole: "alert"
17461
+ ariaRole: "alert",
17462
+ ariaLabel: title + content2
17440
17463
  }, renderIcon(), title && /* @__PURE__ */ React.createElement(components.Text, {
17441
17464
  className: "".concat(classPrefix2, "-title")
17442
17465
  }, title), content2 && (td() ? /* @__PURE__ */ React.createElement(components.Text, {