@nutui/nutui-react-taro 1.4.1 → 1.4.2
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/CHANGELOG.md +7 -0
- package/README.md +4 -4
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/SubSideNavBar.js +3 -3
- package/dist/esm/address.taro-c03b8b16.js +23 -21
- package/dist/esm/barrage.taro-d86c367a.js +22 -24
- package/dist/esm/calendaritem.taro-85a8c4fc.js +16 -18
- package/dist/esm/cascader.taro-459f7d45.js +234 -244
- package/dist/esm/{datepicker.taro-00a72ca3.js → datepicker.taro-7de67b85.js} +1 -1
- package/dist/esm/ellipsis.taro-c0de6ff4.js +76 -84
- package/dist/esm/{input.taro-65db24c3.js → input.taro-8b3f8381.js} +12 -24
- package/dist/esm/menuitem.taro-2f8e69a4.js +14 -16
- package/dist/esm/noticebar.taro-43c18dc9.js +31 -33
- package/dist/esm/nutui-react.es.js +6 -6
- package/dist/esm/offsetContext-bfb02c25.js +3 -0
- package/dist/esm/{picker.taro-e23bc9d1.js → picker.taro-9b7263ca.js} +11 -15
- package/dist/esm/popover.taro-7e5dff8c.js +15 -17
- package/dist/esm/pulltorefresh.taro-f26a20dd.js +75 -81
- package/dist/esm/range.taro-4cbe2469.js +67 -71
- package/dist/esm/{sidenavbar.taro-a828250a.js → sidenavbar.taro-3b1f1218.js} +13 -5
- package/dist/esm/{subsidenavbar.taro-4c80ad38.js → subsidenavbar.taro-f46b4c73.js} +12 -11
- package/dist/esm/swipe.taro-83bc248f.js +35 -37
- package/dist/esm/swiper.taro-852f6615.js +26 -28
- package/dist/esm/types/src/packages/input/input.d.ts +0 -8
- package/dist/esm/types/src/packages/input/input.taro.d.ts +0 -8
- package/dist/esm/useClientRect-bf69d7b3.js +10 -12
- package/dist/locales/base.js +2 -2
- package/dist/locales/en-US.js +2 -2
- package/dist/locales/id-ID.js +2 -2
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +2 -2
- package/dist/locales/zh-UG.js +2 -2
- package/dist/nutui.react.es.js +66 -88
- package/dist/nutui.react.umd.js +66 -88
- package/dist/packages/input/input.scss +12 -12
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -2
- package/dist/types/index.d.ts +0 -8
- package/package.json +1 -1
- package/dist/esm/offsetContext-0e3d04b3.js +0 -16
package/dist/style.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.4.
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui-react-taro v1.4.2-beta.0 Wed Jan 04 2023 15:06:29 GMT+0800 (China Standard Time)
|
|
3
|
+
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
var _default = "";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -780,14 +780,6 @@ interface InputProps extends BasicComponent {
|
|
|
780
780
|
onClickLeftIcon?: (value: any) => void;
|
|
781
781
|
onClickRightIcon?: (value: any) => void;
|
|
782
782
|
onClick?: (value: any) => void;
|
|
783
|
-
change?: (value: any, event: Event) => void;
|
|
784
|
-
blur?: (value: any, event: Event) => void;
|
|
785
|
-
focus?: (value: any, event: Event) => void;
|
|
786
|
-
clear?: (value: any, event: Event) => void;
|
|
787
|
-
clickInput?: (value: any) => void;
|
|
788
|
-
clickLeftIcon?: (value: any) => void;
|
|
789
|
-
clickRightIcon?: (value: any) => void;
|
|
790
|
-
click?: (value: any) => void;
|
|
791
783
|
}
|
|
792
784
|
declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus' | 'onClick'>>;
|
|
793
785
|
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createContext } from 'react';
|
|
2
|
-
var handleClick = function handleClick(e) {
|
|
3
|
-
e.stopPropagation();
|
|
4
|
-
var isIcon = e.target.className.includes('arrow-icon');
|
|
5
|
-
var isTitle = e.target.className.includes('__title') || isIcon;
|
|
6
|
-
var currentClass = e.currentTarget.className;
|
|
7
|
-
var isShow = currentClass.includes('nutShow');
|
|
8
|
-
var arrowIcon = e.currentTarget.querySelector('.arrow-icon');
|
|
9
|
-
var iconClass = arrowIcon.className;
|
|
10
|
-
if (isTitle) {
|
|
11
|
-
e.currentTarget.className = isShow ? currentClass.replace('nutShow', 'nutHide') : currentClass.replace('nutHide', 'nutShow');
|
|
12
|
-
arrowIcon.className = isShow ? iconClass.replace('arrow-down', 'arrow-up') : iconClass.replace('arrow-up', 'arrow-down');
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var OffsetContext = createContext(20);
|
|
16
|
-
export { OffsetContext as O, handleClick as h };
|