@nutui/nutui-react-taro 2.1.0 → 2.1.1-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.
- package/dist/esm/ActionSheet.js +6 -6
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +14 -14
- package/dist/esm/Animate.js +2 -2
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Audio.js +10 -10
- package/dist/esm/Avatar.js +5 -5
- package/dist/esm/AvatarCropper.js +5 -5
- package/dist/esm/AvatarGroup.js +2 -2
- package/dist/esm/BackTop.js +2 -2
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +2 -2
- package/dist/esm/Barrage.js +2 -2
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Calendar.js +13 -13
- package/dist/esm/CalendarCard.js +5 -5
- package/dist/esm/CalendarItem.js +8 -8
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader.js +11 -11
- package/dist/esm/Cell.js +3 -3
- package/dist/esm/CellGroup.js +2 -2
- package/dist/esm/Checkbox.js +4 -4
- package/dist/esm/CheckboxGroup.js +4 -4
- package/dist/esm/CircleProgress.js +4 -4
- package/dist/esm/Col.js +3 -3
- package/dist/esm/Collapse.js +5 -5
- package/dist/esm/CollapseItem.js +2 -2
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker.js +12 -12
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +10 -10
- package/dist/esm/Divider.js +2 -2
- package/dist/esm/Drag.js +2 -2
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Elevator.js +2 -2
- package/dist/esm/Ellipsis.js +3 -3
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav.js +7 -7
- package/dist/esm/Form.js +4 -4
- package/dist/esm/FormItem.js +4 -4
- package/dist/esm/Grid.js +5 -5
- package/dist/esm/GridItem.js +4 -4
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview.js +12 -12
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/InfiniteLoading.js +4 -4
- package/dist/esm/Input.js +6 -6
- package/dist/esm/InputNumber.js +4 -4
- package/dist/esm/Layout.js +1 -1
- package/dist/esm/Loading.js +2 -2
- package/dist/esm/Menu.js +9 -9
- package/dist/esm/MenuItem.js +8 -8
- package/dist/esm/NavBar.js +2 -2
- package/dist/esm/NoticeBar.js +3 -3
- package/dist/esm/Notify.js +5 -5
- package/dist/esm/NumberKeyboard.js +8 -8
- package/dist/esm/Overlay.js +4 -4
- package/dist/esm/Pagination.js +6 -6
- package/dist/esm/Picker.js +11 -11
- package/dist/esm/Popover.js +7 -7
- package/dist/esm/Popup.js +5 -5
- package/dist/esm/Price.js +2 -2
- package/dist/esm/Progress.js +2 -2
- package/dist/esm/PullToRefresh.js +5 -5
- package/dist/esm/Radio.js +4 -4
- package/dist/esm/RadioGroup.js +4 -4
- package/dist/esm/Range.js +6 -6
- package/dist/esm/Rate.js +4 -4
- package/dist/esm/Row.js +3 -3
- package/dist/esm/SafeArea.js +1 -1
- package/dist/esm/SearchBar.js +4 -4
- package/dist/esm/ShortPassword.js +10 -10
- package/dist/esm/SideNavBar.js +7 -7
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +2 -2
- package/dist/esm/Skeleton.js +6 -6
- package/dist/esm/Space.js +1 -1
- package/dist/esm/Step.js +3 -3
- package/dist/esm/Steps.js +3 -3
- package/dist/esm/Sticky.js +4 -4
- package/dist/esm/SubSideNavBar.js +2 -2
- package/dist/esm/Swipe.js +4 -4
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Switch.js +4 -4
- package/dist/esm/TabPane.js +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +6 -6
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +3 -3
- package/dist/esm/Table.js +4 -4
- package/dist/esm/Tabs.js +6 -6
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/TextArea.js +6 -6
- package/dist/esm/TimeDetail.js +2 -2
- package/dist/esm/TimeSelect.js +9 -9
- package/dist/esm/Toast.js +9 -9
- package/dist/esm/Tour.js +8 -8
- package/dist/esm/TrendArrow.js +2 -2
- package/dist/esm/Uploader.js +9 -9
- package/dist/esm/Video.js +2 -2
- package/dist/esm/VirtualList.js +2 -2
- package/dist/esm/WaterMark.js +4 -4
- package/dist/esm/{actionsheet.taro-24a40570.js → actionsheet.taro-30M41euQ.js} +2 -2
- package/dist/esm/{address.taro-ee6e048a.js → address.taro-h9Q8IDbj.js} +5 -5
- package/dist/esm/{animate.taro-37bf4eab.js → animate.taro-m67VyUHP.js} +1 -1
- package/dist/esm/{audio.taro-aa47d7e7.js → audio.taro-lYwAL-H1.js} +4 -4
- package/dist/esm/{avatar.taro-21ad648c.js → avatar.taro-5yLsf8Zg.js} +3 -3
- package/dist/esm/{avatarcropper.taro-499d9550.js → avatarcropper.taro-5U7TdDmk.js} +4 -4
- package/dist/esm/{avatargroup.taro-1f8b7174.js → avatargroup.taro-h6dpv6UX.js} +1 -1
- package/dist/esm/{backtop.taro-7f774b6c.js → backtop.taro-XH0lVUOf.js} +1 -1
- package/dist/esm/{badge.taro-ffca952e.js → badge.taro-n0aVp8h1.js} +23 -8
- package/dist/esm/{barrage.taro-0258ca14.js → barrage.taro-hFnjd1q2.js} +1 -1
- package/dist/esm/{button.taro-7ae62bc3.js → button.taro-076zcKpr.js} +1 -1
- package/dist/esm/{calendar.taro-8302ddc2.js → calendar.taro-oIFa_mYQ.js} +5 -5
- package/dist/esm/{calendarcard.taro-783109a7.js → calendarcard.taro-NqEhKcOk.js} +3 -3
- package/dist/esm/{calendaritem.taro-835ddb04.js → calendaritem.taro-_gVfstym.js} +5 -5
- package/dist/esm/{card.taro-99868a10.js → card.taro-od399Pwi.js} +3 -3
- package/dist/esm/{cascader.taro-61269a77.js → cascader.taro-5-7ScvLI.js} +4 -4
- package/dist/esm/{cell.taro-010b73ed.js → cell.taro-3Tvgy6gl.js} +2 -2
- package/dist/esm/{cellgroup.taro-9dc59f11.js → cellgroup.taro-zHqxl7ol.js} +1 -1
- package/dist/esm/{checkbox.taro-1a7fd5c7.js → checkbox.taro-KtiGnhlG.js} +2 -2
- package/dist/esm/{circleprogress.taro-6054482f.js → circleprogress.taro-myZgamBw.js} +3 -3
- package/dist/esm/{col.taro-23d5f6bd.js → col.taro-5FMpttLE.js} +2 -2
- package/dist/esm/{collapse.taro-341f8941.js → collapse.taro-j2-ajiXA.js} +3 -3
- package/dist/esm/{collapseitem.taro-e99fb1a2.js → collapseitem.taro-Pp7qD2-T.js} +1 -1
- package/dist/esm/{configprovider.taro-03d376af.js → configprovider.taro-hS2SwHJB.js} +1 -1
- package/dist/esm/{countdown.taro-4a905523.js → countdown.taro-SqVKfR7y.js} +2 -2
- package/dist/esm/{datepicker.taro-8b8bb2fb.js → datepicker.taro-l3QzCg6y.js} +4 -4
- package/dist/esm/{dialog.taro-c4969c97.js → dialog.taro--d0uO3VQ.js} +10 -8
- package/dist/esm/{divider.taro-c61ab869.js → divider.taro-BTFED42F.js} +1 -1
- package/dist/esm/{drag.taro-ce333e51.js → drag.taro-BwcleRuB.js} +1 -1
- package/dist/esm/{elevator.taro-cdf3dba7.js → elevator.taro-hYAvey0f.js} +13 -11
- package/dist/esm/{ellipsis.taro-b1533122.js → ellipsis.taro-ov_C4kbs.js} +2 -2
- package/dist/esm/{empty.taro-610d8e5c.js → empty.taro-39MwJjPx.js} +2 -2
- package/dist/esm/{fixednav.taro-e18530bb.js → fixednav.taro-ub2wK6fK.js} +3 -3
- package/dist/esm/{formitem.taro-17dac26c.js → formitem.taro-w9qkYXEq.js} +2 -2
- package/dist/esm/{grid.taro-a1837c49.js → grid.taro-4vtMCMqo.js} +2 -2
- package/dist/esm/{griditem.taro-c0265282.js → griditem.taro-z_VW6NuV.js} +2 -2
- package/dist/esm/{image.taro-c2441b71.js → image.taro-jKXhCAIw.js} +1 -1
- package/dist/esm/{imagepreview.taro-a5e8b8fa.js → imagepreview.taro-njsGNYCl.js} +5 -5
- package/dist/esm/{index-b283d77d.js → index-oitVOJp9.js} +1 -1
- package/dist/esm/{infiniteloading.taro-b149475d.js → infiniteloading.taro-au-C-hVX.js} +2 -2
- package/dist/esm/{input.taro-ffd35ab1.js → input.taro-HbP0VUca.js} +3 -3
- package/dist/esm/{inputnumber.taro-5f60d969.js → inputnumber.taro-cwMnY2Gd.js} +2 -2
- package/dist/esm/{loading.taro-d511e398.js → loading.taro-aHN6xLIT.js} +1 -1
- package/dist/esm/{menu.taro-df22141a.js → menu.taro-GPMcYkdK.js} +2 -2
- package/dist/esm/{menuitem.taro-7b5d50fc.js → menuitem.taro-V1SR74cE.js} +4 -4
- package/dist/esm/{navbar.taro-23394f73.js → navbar.taro-uxhBXITb.js} +1 -1
- package/dist/esm/{noticebar.taro-11fe07b1.js → noticebar.taro-HnLNCT6c.js} +2 -2
- package/dist/esm/{notify.taro-b7f10692.js → notify.taro-eql4R4Mx.js} +2 -2
- package/dist/esm/{numberkeyboard.taro-74f9a790.js → numberkeyboard.taro-ToPOscOk.js} +3 -3
- package/dist/esm/nutui-react.es.js +108 -108
- package/dist/esm/{overlay.taro-2a34cbbf.js → overlay.taro-g57gqLxf.js} +3 -3
- package/dist/esm/{pagination.taro-7ef7ab28.js → pagination.taro-Mvehp6K2.js} +3 -3
- package/dist/esm/{picker.taro-00fb321a.js → picker.taro-NyIQudtd.js} +7 -7
- package/dist/esm/{popover.taro-2ca996c8.js → popover.taro--XIZLeWw.js} +3 -3
- package/dist/esm/{popup.taro-376be9fe.js → popup.taro-kjOuDvcb.js} +2 -2
- package/dist/esm/{price.taro-710cab3b.js → price.taro-15WmWCW1.js} +1 -1
- package/dist/esm/{progress.taro-421575b9.js → progress.taro-EBhB1-Vj.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-1741fda8.js → pulltorefresh.taro-_lHPzDm-.js} +3 -3
- package/dist/esm/{radio.taro-9e049135.js → radio.taro-EzXWv4Io.js} +2 -2
- package/dist/esm/{raf-a9ff50ad.js → raf-UzmDvMUW.js} +1 -1
- package/dist/esm/{range.taro-8c7e9294.js → range.taro-708Gnv2w.js} +4 -4
- package/dist/esm/{rate.taro-2f08de25.js → rate.taro-1z-c8TA3.js} +2 -2
- package/dist/esm/{row.taro-a71fbf76.js → row.taro-IxNlKKQM.js} +2 -2
- package/dist/esm/{searchbar.taro-9ffce381.js → searchbar.taro-q43_qE5Y.js} +2 -2
- package/dist/esm/{shortpassword.taro-8647cd4d.js → shortpassword.taro-Dst95kRS.js} +4 -4
- package/dist/esm/{sidenavbar.taro-53ac5b88.js → sidenavbar.taro-e_kk1OUY.js} +3 -3
- package/dist/esm/{signature.taro-3e0c2694.js → signature.taro-PPEtytig.js} +1 -1
- package/dist/esm/{skeleton.taro-67715cd4.js → skeleton.taro-uxvSUVsB.js} +2 -2
- package/dist/esm/{step.taro-02eb5edb.js → step.taro-kCAQ4Q3-.js} +2 -2
- package/dist/esm/{steps.taro-4b126463.js → steps.taro-n6BT6nWE.js} +2 -2
- package/dist/esm/{sticky.taro-bee7a130.js → sticky.taro-tOS_Ez6U.js} +3 -3
- package/dist/esm/{subsidenavbar.taro-797ce379.js → subsidenavbar.taro-2qABjgZD.js} +1 -1
- package/dist/esm/{swipe.taro-a108baac.js → swipe.taro-caPbRS8Q.js} +3 -3
- package/dist/esm/{switch.taro-1c7715e8.js → switch.taro-xcb5i3Aw.js} +2 -2
- package/dist/esm/{tabbar.taro-8fe42366.js → tabbar.taro-NpHMO2Nw.js} +3 -3
- package/dist/esm/{tabbaritem.taro-c75682f5.js → tabbaritem.taro-L63nEc64.js} +2 -2
- package/dist/esm/{table.taro-d2c266e1.js → table.taro-sTWXN1kX.js} +2 -2
- package/dist/esm/{tabs.taro-ba8788c1.js → tabs.taro-ygzv74Mx.js} +5 -5
- package/dist/esm/{tag.taro-94e17649.js → tag.taro-AOpj4lnK.js} +1 -1
- package/dist/esm/{textarea.taro-6ce0d027.js → textarea.taro-uoE3EnEN.js} +3 -3
- package/dist/esm/{timedetail.taro-958b8c07.js → timedetail.taro-U-5mkxbs.js} +1 -1
- package/dist/esm/{timeselect.taro-a2130557.js → timeselect.taro-WF2tyuNa.js} +4 -4
- package/dist/esm/{toast.taro-b847d537.js → toast.taro-1JDi9XWT.js} +4 -4
- package/dist/esm/{tour.taro-10b657d8.js → tour.taro-_s4f3Cle.js} +2 -2
- package/dist/esm/{trendarrow.taro-e6b635ae.js → trendarrow.taro-CcC-yh2h.js} +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
- package/dist/esm/{uploader.taro-9e6aa0df.js → uploader.taro-tCA41p6W.js} +6 -6
- package/dist/esm/{use-custom-event-c672f4ae.js → use-custom-event-XvsODK8c.js} +2 -2
- package/dist/esm/{use-props-value-7637d900.js → use-props-value-vKr0R0AX.js} +1 -1
- package/dist/esm/{video.taro-804f0da6.js → video.taro-MDBF77xf.js} +1 -1
- package/dist/esm/{virtuallist.taro-08c9c585.js → virtuallist.taro-vrNBr0zS.js} +1 -1
- package/dist/esm/{watermark.taro-3ea4550f.js → watermark.taro-4PxMaMaO.js} +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +214 -192
- package/dist/nutui.react.umd.js +214 -192
- package/dist/packages/badge/badge.scss +21 -4
- package/dist/packages/dialog/dialog.scss +12 -27
- package/dist/packages/elevator/elevator.scss +38 -25
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -5
- package/dist/styles/variables.scss +60 -109
- package/dist/types/packages/animate/animate.taro.d.ts +2 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +1 -0
- package/dist/types/packages/dialog/content.taro.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/esm/{UserContext-ab42ba7f.js → UserContext-9BL0cq8w.js} +0 -0
- /package/dist/esm/{context-f32a9246.js → context-6mGEMLsx.js} +0 -0
- /package/dist/esm/{context-ab42ba7f.js → context-9BL0cq8w.js} +0 -0
- /package/dist/esm/{date-04589b69.js → date-nxKOxj5-.js} +0 -0
- /package/dist/esm/{get-rect-by-taro-fe02fe2b.js → get-rect-by-taro-piSHvCGp.js} +0 -0
- /package/dist/esm/{get-scroll-parent-3d880563.js → get-scroll-parent-uywvoQMl.js} +0 -0
- /package/dist/esm/{index-00550715.js → index-YvHA__3D.js} +0 -0
- /package/dist/esm/{indicator.taro-092f9f4e.js → indicator.taro-rl-kBFJW.js} +0 -0
- /package/dist/esm/{layout.taro-7711a89c.js → layout.taro-lnN-wB0Y.js} +0 -0
- /package/dist/esm/{px-check-f83a9dc3.js → px-check-JiWLYN2v.js} +0 -0
- /package/dist/esm/{safearea.taro-776b7bf8.js → safearea.taro-afu_mY7g.js} +0 -0
- /package/dist/esm/{sidenavbaritem.taro-69b0784d.js → sidenavbaritem.taro-TQ2PoDgR.js} +0 -0
- /package/dist/esm/{space.taro-5f8f647f.js → space.taro-q3R_yq79.js} +0 -0
- /package/dist/esm/{swiperitem.taro-da39a67b.js → swiperitem.taro-BC1CE0T-.js} +0 -0
- /package/dist/esm/{tabpane.taro-96001c64.js → tabpane.taro-5k7wWimS.js} +0 -0
- /package/dist/esm/{typings-11d83a22.js → typings-buMpDfSR.js} +0 -0
- /package/dist/esm/{use-force-update-9cd7c164.js → use-force-update-0oEVD8Nr.js} +0 -0
- /package/dist/esm/{use-touch-38cf73ae.js → use-touch-DODa8svc.js} +0 -0
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.1.
|
|
8
|
+
* @nutui/nutui-react-taro v2.1.1 Wed Nov 22 2023 15:32:26 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -830,7 +830,6 @@ const a = (n2) => /* @__PURE__ */ lr(r$2, { ...n2, name: n2.name || "triangle-do
|
|
|
830
830
|
a.displayName = "NutIcontriangle-down";
|
|
831
831
|
const o = (t2) => /* @__PURE__ */ lr(r$2, { ...t2, name: t2.name || "triangle-up" });
|
|
832
832
|
o.displayName = "NutIcontriangle-up";
|
|
833
|
-
const style_iconfont = "";
|
|
834
833
|
const ComponentDefaults = {
|
|
835
834
|
className: "",
|
|
836
835
|
style: {}
|
|
@@ -1903,7 +1902,7 @@ lodash_isequal.exports;
|
|
|
1903
1902
|
function eq(value, other) {
|
|
1904
1903
|
return value === other || value !== value && other !== other;
|
|
1905
1904
|
}
|
|
1906
|
-
var isArguments = baseIsArguments(function() {
|
|
1905
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
1907
1906
|
return arguments;
|
|
1908
1907
|
}()) ? baseIsArguments : function(value) {
|
|
1909
1908
|
return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -2265,111 +2264,72 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
2265
2264
|
_setPrototypeOf$1(subClass, superClass);
|
|
2266
2265
|
}
|
|
2267
2266
|
var propTypes = { exports: {} };
|
|
2268
|
-
var
|
|
2269
|
-
var
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
var
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
var u = a2.$$typeof;
|
|
2287
|
-
switch (u) {
|
|
2288
|
-
case c2:
|
|
2289
|
-
switch (a2 = a2.type, a2) {
|
|
2290
|
-
case l:
|
|
2291
|
-
case m2:
|
|
2292
|
-
case e2:
|
|
2293
|
-
case g:
|
|
2294
|
-
case f:
|
|
2295
|
-
case p:
|
|
2296
|
-
return a2;
|
|
2297
|
-
default:
|
|
2298
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2299
|
-
case k2:
|
|
2300
|
-
case n2:
|
|
2301
|
-
case t2:
|
|
2302
|
-
case r2:
|
|
2303
|
-
case h:
|
|
2304
|
-
return a2;
|
|
2305
|
-
default:
|
|
2306
|
-
return u;
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
case d:
|
|
2310
|
-
return u;
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2267
|
+
var ReactPropTypesSecret_1;
|
|
2268
|
+
var hasRequiredReactPropTypesSecret;
|
|
2269
|
+
function requireReactPropTypesSecret() {
|
|
2270
|
+
if (hasRequiredReactPropTypesSecret)
|
|
2271
|
+
return ReactPropTypesSecret_1;
|
|
2272
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
2273
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2274
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2275
|
+
return ReactPropTypesSecret_1;
|
|
2276
|
+
}
|
|
2277
|
+
var factoryWithThrowingShims;
|
|
2278
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2279
|
+
function requireFactoryWithThrowingShims() {
|
|
2280
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2281
|
+
return factoryWithThrowingShims;
|
|
2282
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2283
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2284
|
+
function emptyFunction() {
|
|
2313
2285
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return z(a2) === m2;
|
|
2286
|
+
function emptyFunctionWithReset() {
|
|
2316
2287
|
}
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
2359
|
-
return z(a2) === g;
|
|
2360
|
-
};
|
|
2361
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
2362
|
-
return z(a2) === f;
|
|
2363
|
-
};
|
|
2364
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
2365
|
-
return z(a2) === p;
|
|
2366
|
-
};
|
|
2367
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
2368
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n2 || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
2288
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2289
|
+
factoryWithThrowingShims = function() {
|
|
2290
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2291
|
+
if (secret === ReactPropTypesSecret) {
|
|
2292
|
+
return;
|
|
2293
|
+
}
|
|
2294
|
+
var err = new Error(
|
|
2295
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2296
|
+
);
|
|
2297
|
+
err.name = "Invariant Violation";
|
|
2298
|
+
throw err;
|
|
2299
|
+
}
|
|
2300
|
+
shim.isRequired = shim;
|
|
2301
|
+
function getShim() {
|
|
2302
|
+
return shim;
|
|
2303
|
+
}
|
|
2304
|
+
var ReactPropTypes = {
|
|
2305
|
+
array: shim,
|
|
2306
|
+
bigint: shim,
|
|
2307
|
+
bool: shim,
|
|
2308
|
+
func: shim,
|
|
2309
|
+
number: shim,
|
|
2310
|
+
object: shim,
|
|
2311
|
+
string: shim,
|
|
2312
|
+
symbol: shim,
|
|
2313
|
+
any: shim,
|
|
2314
|
+
arrayOf: getShim,
|
|
2315
|
+
element: shim,
|
|
2316
|
+
elementType: shim,
|
|
2317
|
+
instanceOf: getShim,
|
|
2318
|
+
node: shim,
|
|
2319
|
+
objectOf: getShim,
|
|
2320
|
+
oneOf: getShim,
|
|
2321
|
+
oneOfType: getShim,
|
|
2322
|
+
shape: getShim,
|
|
2323
|
+
exact: getShim,
|
|
2324
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2325
|
+
resetWarningCache: emptyFunction
|
|
2326
|
+
};
|
|
2327
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2328
|
+
return ReactPropTypes;
|
|
2369
2329
|
};
|
|
2370
|
-
|
|
2371
|
-
return reactIs_production_min;
|
|
2330
|
+
return factoryWithThrowingShims;
|
|
2372
2331
|
}
|
|
2332
|
+
var reactIs = { exports: {} };
|
|
2373
2333
|
var reactIs_development = {};
|
|
2374
2334
|
/** @license React v16.13.1
|
|
2375
2335
|
* react-is.development.js
|
|
@@ -2533,6 +2493,110 @@ function requireReactIs_development() {
|
|
|
2533
2493
|
}
|
|
2534
2494
|
return reactIs_development;
|
|
2535
2495
|
}
|
|
2496
|
+
var reactIs_production_min = {};
|
|
2497
|
+
/** @license React v16.13.1
|
|
2498
|
+
* react-is.production.min.js
|
|
2499
|
+
*
|
|
2500
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2501
|
+
*
|
|
2502
|
+
* This source code is licensed under the MIT license found in the
|
|
2503
|
+
* LICENSE file in the root directory of this source tree.
|
|
2504
|
+
*/
|
|
2505
|
+
var hasRequiredReactIs_production_min;
|
|
2506
|
+
function requireReactIs_production_min() {
|
|
2507
|
+
if (hasRequiredReactIs_production_min)
|
|
2508
|
+
return reactIs_production_min;
|
|
2509
|
+
hasRequiredReactIs_production_min = 1;
|
|
2510
|
+
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
2511
|
+
function z(a2) {
|
|
2512
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
2513
|
+
var u = a2.$$typeof;
|
|
2514
|
+
switch (u) {
|
|
2515
|
+
case c2:
|
|
2516
|
+
switch (a2 = a2.type, a2) {
|
|
2517
|
+
case l:
|
|
2518
|
+
case m2:
|
|
2519
|
+
case e2:
|
|
2520
|
+
case g:
|
|
2521
|
+
case f:
|
|
2522
|
+
case p:
|
|
2523
|
+
return a2;
|
|
2524
|
+
default:
|
|
2525
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2526
|
+
case k2:
|
|
2527
|
+
case n2:
|
|
2528
|
+
case t2:
|
|
2529
|
+
case r2:
|
|
2530
|
+
case h:
|
|
2531
|
+
return a2;
|
|
2532
|
+
default:
|
|
2533
|
+
return u;
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
case d:
|
|
2537
|
+
return u;
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
function A(a2) {
|
|
2542
|
+
return z(a2) === m2;
|
|
2543
|
+
}
|
|
2544
|
+
reactIs_production_min.AsyncMode = l;
|
|
2545
|
+
reactIs_production_min.ConcurrentMode = m2;
|
|
2546
|
+
reactIs_production_min.ContextConsumer = k2;
|
|
2547
|
+
reactIs_production_min.ContextProvider = h;
|
|
2548
|
+
reactIs_production_min.Element = c2;
|
|
2549
|
+
reactIs_production_min.ForwardRef = n2;
|
|
2550
|
+
reactIs_production_min.Fragment = e2;
|
|
2551
|
+
reactIs_production_min.Lazy = t2;
|
|
2552
|
+
reactIs_production_min.Memo = r2;
|
|
2553
|
+
reactIs_production_min.Portal = d;
|
|
2554
|
+
reactIs_production_min.Profiler = g;
|
|
2555
|
+
reactIs_production_min.StrictMode = f;
|
|
2556
|
+
reactIs_production_min.Suspense = p;
|
|
2557
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
2558
|
+
return A(a2) || z(a2) === l;
|
|
2559
|
+
};
|
|
2560
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
2561
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
2562
|
+
return z(a2) === k2;
|
|
2563
|
+
};
|
|
2564
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
2565
|
+
return z(a2) === h;
|
|
2566
|
+
};
|
|
2567
|
+
reactIs_production_min.isElement = function(a2) {
|
|
2568
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
2569
|
+
};
|
|
2570
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
2571
|
+
return z(a2) === n2;
|
|
2572
|
+
};
|
|
2573
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
2574
|
+
return z(a2) === e2;
|
|
2575
|
+
};
|
|
2576
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
2577
|
+
return z(a2) === t2;
|
|
2578
|
+
};
|
|
2579
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
2580
|
+
return z(a2) === r2;
|
|
2581
|
+
};
|
|
2582
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
2583
|
+
return z(a2) === d;
|
|
2584
|
+
};
|
|
2585
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
2586
|
+
return z(a2) === g;
|
|
2587
|
+
};
|
|
2588
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
2589
|
+
return z(a2) === f;
|
|
2590
|
+
};
|
|
2591
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
2592
|
+
return z(a2) === p;
|
|
2593
|
+
};
|
|
2594
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
2595
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n2 || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
2596
|
+
};
|
|
2597
|
+
reactIs_production_min.typeOf = z;
|
|
2598
|
+
return reactIs_production_min;
|
|
2599
|
+
}
|
|
2536
2600
|
var hasRequiredReactIs;
|
|
2537
2601
|
function requireReactIs() {
|
|
2538
2602
|
if (hasRequiredReactIs)
|
|
@@ -2621,16 +2685,6 @@ function requireObjectAssign() {
|
|
|
2621
2685
|
};
|
|
2622
2686
|
return objectAssign;
|
|
2623
2687
|
}
|
|
2624
|
-
var ReactPropTypesSecret_1;
|
|
2625
|
-
var hasRequiredReactPropTypesSecret;
|
|
2626
|
-
function requireReactPropTypesSecret() {
|
|
2627
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2628
|
-
return ReactPropTypesSecret_1;
|
|
2629
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
2630
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2631
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2632
|
-
return ReactPropTypesSecret_1;
|
|
2633
|
-
}
|
|
2634
2688
|
var has;
|
|
2635
2689
|
var hasRequiredHas;
|
|
2636
2690
|
function requireHas() {
|
|
@@ -3148,61 +3202,6 @@ function requireFactoryWithTypeCheckers() {
|
|
|
3148
3202
|
};
|
|
3149
3203
|
return factoryWithTypeCheckers;
|
|
3150
3204
|
}
|
|
3151
|
-
var factoryWithThrowingShims;
|
|
3152
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
3153
|
-
function requireFactoryWithThrowingShims() {
|
|
3154
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
3155
|
-
return factoryWithThrowingShims;
|
|
3156
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
3157
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3158
|
-
function emptyFunction() {
|
|
3159
|
-
}
|
|
3160
|
-
function emptyFunctionWithReset() {
|
|
3161
|
-
}
|
|
3162
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3163
|
-
factoryWithThrowingShims = function() {
|
|
3164
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3165
|
-
if (secret === ReactPropTypesSecret) {
|
|
3166
|
-
return;
|
|
3167
|
-
}
|
|
3168
|
-
var err = new Error(
|
|
3169
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
3170
|
-
);
|
|
3171
|
-
err.name = "Invariant Violation";
|
|
3172
|
-
throw err;
|
|
3173
|
-
}
|
|
3174
|
-
shim.isRequired = shim;
|
|
3175
|
-
function getShim() {
|
|
3176
|
-
return shim;
|
|
3177
|
-
}
|
|
3178
|
-
var ReactPropTypes = {
|
|
3179
|
-
array: shim,
|
|
3180
|
-
bigint: shim,
|
|
3181
|
-
bool: shim,
|
|
3182
|
-
func: shim,
|
|
3183
|
-
number: shim,
|
|
3184
|
-
object: shim,
|
|
3185
|
-
string: shim,
|
|
3186
|
-
symbol: shim,
|
|
3187
|
-
any: shim,
|
|
3188
|
-
arrayOf: getShim,
|
|
3189
|
-
element: shim,
|
|
3190
|
-
elementType: shim,
|
|
3191
|
-
instanceOf: getShim,
|
|
3192
|
-
node: shim,
|
|
3193
|
-
objectOf: getShim,
|
|
3194
|
-
oneOf: getShim,
|
|
3195
|
-
oneOfType: getShim,
|
|
3196
|
-
shape: getShim,
|
|
3197
|
-
exact: getShim,
|
|
3198
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3199
|
-
resetWarningCache: emptyFunction
|
|
3200
|
-
};
|
|
3201
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3202
|
-
return ReactPropTypes;
|
|
3203
|
-
};
|
|
3204
|
-
return factoryWithThrowingShims;
|
|
3205
|
-
}
|
|
3206
3205
|
if (process.env.NODE_ENV !== "production") {
|
|
3207
3206
|
var ReactIs = requireReactIs();
|
|
3208
3207
|
var throwOnDirectAccess = true;
|
|
@@ -4815,10 +4814,10 @@ const Elevator = (props) => {
|
|
|
4815
4814
|
{}
|
|
4816
4815
|
);
|
|
4817
4816
|
const [currentKey, setCurrentKey] = useState("");
|
|
4818
|
-
const [currentIndex, setCurrentIndex] = useState(0);
|
|
4819
4817
|
const [codeIndex, setCodeIndex] = useState(0);
|
|
4820
4818
|
const [scrollStart, setScrollStart] = useState(false);
|
|
4821
4819
|
const state = useRef(initData);
|
|
4820
|
+
const scrolling = useRef(false);
|
|
4822
4821
|
const [scrollTop, setScrollTop] = useState(0);
|
|
4823
4822
|
const [scrollY, setScrollY] = useState(0);
|
|
4824
4823
|
const resetScrollState = () => {
|
|
@@ -4876,14 +4875,13 @@ const Elevator = (props) => {
|
|
|
4876
4875
|
resetScrollState();
|
|
4877
4876
|
};
|
|
4878
4877
|
const touchStart = (e2) => {
|
|
4879
|
-
setScrollStart(true);
|
|
4880
4878
|
const index = Number(getData(e2.target));
|
|
4881
4879
|
const firstTouch = e2.touches[0];
|
|
4880
|
+
scrolling.current = true;
|
|
4882
4881
|
touchState.current.y1 = firstTouch.pageY;
|
|
4883
4882
|
state.current.anchorIndex = +index;
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
});
|
|
4883
|
+
setScrollStart(true);
|
|
4884
|
+
setCodeIndex(index);
|
|
4887
4885
|
scrollTo(index);
|
|
4888
4886
|
};
|
|
4889
4887
|
const handleClickItem = (key, item) => {
|
|
@@ -4914,12 +4912,13 @@ const Elevator = (props) => {
|
|
|
4914
4912
|
if (sticky && scrollTop2 !== scrollY) {
|
|
4915
4913
|
setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
|
|
4916
4914
|
}
|
|
4915
|
+
if (scrolling.current)
|
|
4916
|
+
return;
|
|
4917
4917
|
for (let i = 0; i < listHeight.length - 1; i++) {
|
|
4918
4918
|
const height1 = listHeight[i];
|
|
4919
4919
|
const height2 = listHeight[i + 1];
|
|
4920
4920
|
if (state.current.scrollY >= height1 && state.current.scrollY < height2) {
|
|
4921
|
-
|
|
4922
|
-
return;
|
|
4921
|
+
return setCodeIndex(i);
|
|
4923
4922
|
}
|
|
4924
4923
|
}
|
|
4925
4924
|
};
|
|
@@ -4946,7 +4945,10 @@ const Elevator = (props) => {
|
|
|
4946
4945
|
className: `${classPrefix2}__list__inner`,
|
|
4947
4946
|
type: "list",
|
|
4948
4947
|
ref: listview,
|
|
4949
|
-
onScroll: listViewScroll
|
|
4948
|
+
onScroll: listViewScroll,
|
|
4949
|
+
onTouchStart: (e2) => {
|
|
4950
|
+
scrolling.current = false;
|
|
4951
|
+
}
|
|
4950
4952
|
},
|
|
4951
4953
|
list.map((item, idx) => {
|
|
4952
4954
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -4997,7 +4999,7 @@ const Elevator = (props) => {
|
|
|
4997
4999
|
{
|
|
4998
5000
|
className: classNames({
|
|
4999
5001
|
[`${classPrefix2}__bars__inner__item`]: true,
|
|
5000
|
-
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[
|
|
5002
|
+
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[codeIndex][floorKey]
|
|
5001
5003
|
}),
|
|
5002
5004
|
"data-index": index,
|
|
5003
5005
|
key: index,
|
|
@@ -5006,7 +5008,7 @@ const Elevator = (props) => {
|
|
|
5006
5008
|
item[floorKey]
|
|
5007
5009
|
);
|
|
5008
5010
|
})
|
|
5009
|
-
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__list__fixed` }, /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}__list__fixed__title` }, list[
|
|
5011
|
+
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__list__fixed` }, /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}__list__fixed__title` }, list[codeIndex][floorKey])) : null);
|
|
5010
5012
|
};
|
|
5011
5013
|
Elevator.defaultProps = defaultProps$1j;
|
|
5012
5014
|
Elevator.displayName = "NutElevator";
|
|
@@ -5514,30 +5516,46 @@ const defaultProps$1d = {
|
|
|
5514
5516
|
value: "",
|
|
5515
5517
|
dot: false,
|
|
5516
5518
|
max: 99,
|
|
5517
|
-
top: "
|
|
5518
|
-
right: "
|
|
5519
|
+
top: "4",
|
|
5520
|
+
right: "8",
|
|
5519
5521
|
color: ""
|
|
5520
5522
|
};
|
|
5521
5523
|
const Badge = (props) => {
|
|
5524
|
+
var _a;
|
|
5522
5525
|
const { className, style, value, max, children, dot, top, right: right2, color } = {
|
|
5523
5526
|
...defaultProps$1d,
|
|
5524
5527
|
...props
|
|
5525
5528
|
};
|
|
5526
5529
|
const classPrefix2 = "nut-badge";
|
|
5527
5530
|
const classes = classNames(classPrefix2, className);
|
|
5528
|
-
const contentClasses = classNames(
|
|
5529
|
-
{ [`${classPrefix2}__dot`]: dot },
|
|
5530
|
-
`${classPrefix2}__content`,
|
|
5531
|
-
`${classPrefix2}__sup`
|
|
5532
|
-
);
|
|
5533
5531
|
function content() {
|
|
5534
5532
|
if (dot || typeof value === "object")
|
|
5535
5533
|
return null;
|
|
5536
5534
|
if (typeof value === "number" && typeof max === "number") {
|
|
5537
|
-
return max < value ? `${max}+` : value
|
|
5535
|
+
return max < value ? `${max}+` : `${value}`;
|
|
5538
5536
|
}
|
|
5539
5537
|
return value;
|
|
5540
5538
|
}
|
|
5539
|
+
function isIcon() {
|
|
5540
|
+
if (typeof value === "object" && value)
|
|
5541
|
+
return value;
|
|
5542
|
+
}
|
|
5543
|
+
function isNumber() {
|
|
5544
|
+
if (typeof value === "number" && value)
|
|
5545
|
+
return value;
|
|
5546
|
+
}
|
|
5547
|
+
function isString() {
|
|
5548
|
+
if (typeof value === "string" && value)
|
|
5549
|
+
return value;
|
|
5550
|
+
}
|
|
5551
|
+
const contentClasses = classNames(
|
|
5552
|
+
{ [`${classPrefix2}__dot`]: dot },
|
|
5553
|
+
`${classPrefix2}__content`,
|
|
5554
|
+
{ [`${classPrefix2}__sup`]: isNumber() || isString() || dot },
|
|
5555
|
+
{
|
|
5556
|
+
[`${classPrefix2}__one`]: typeof content() === "string" && ((_a = `${content()}`) == null ? void 0 : _a.length) === 1
|
|
5557
|
+
}
|
|
5558
|
+
);
|
|
5541
5559
|
const getStyle = () => {
|
|
5542
5560
|
const style2 = {};
|
|
5543
5561
|
style2.top = `${Number(top) || parseFloat(String(top)) || 0}px`;
|
|
@@ -5545,7 +5563,7 @@ const Badge = (props) => {
|
|
|
5545
5563
|
style2.background = color;
|
|
5546
5564
|
return style2;
|
|
5547
5565
|
};
|
|
5548
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style },
|
|
5566
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__icon` }, value), children, !isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
5549
5567
|
};
|
|
5550
5568
|
Badge.defaultProps = defaultProps$1d;
|
|
5551
5569
|
Badge.displayName = "NutBadge";
|
|
@@ -5709,7 +5727,7 @@ function requestAniFrame() {
|
|
|
5709
5727
|
_window.setTimeout(callback, 1e3 / 60);
|
|
5710
5728
|
};
|
|
5711
5729
|
}
|
|
5712
|
-
return
|
|
5730
|
+
return (callback) => {
|
|
5713
5731
|
setTimeout(callback, 1e3 / 60);
|
|
5714
5732
|
};
|
|
5715
5733
|
}
|
|
@@ -13578,7 +13596,7 @@ const ActionSheet = (props) => {
|
|
|
13578
13596
|
ActionSheet.defaultProps = defaultProps$H;
|
|
13579
13597
|
ActionSheet.displayName = "NutActionSheet";
|
|
13580
13598
|
const Content = (props) => {
|
|
13581
|
-
const { visible, title, footer, footerDirection, onClick, children } = props;
|
|
13599
|
+
const { visible, title, header, footer, footerDirection, onClick, children } = props;
|
|
13582
13600
|
const classPrefix2 = "nut-dialog";
|
|
13583
13601
|
const renderHeader = () => {
|
|
13584
13602
|
return title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__header` }, title) : null;
|
|
@@ -13604,6 +13622,7 @@ const Content = (props) => {
|
|
|
13604
13622
|
style: props.style,
|
|
13605
13623
|
onClick: (e2) => handleClick(e2)
|
|
13606
13624
|
},
|
|
13625
|
+
header,
|
|
13607
13626
|
/* @__PURE__ */ React__default.createElement(
|
|
13608
13627
|
"div",
|
|
13609
13628
|
{
|
|
@@ -13660,6 +13679,7 @@ function useParams(args) {
|
|
|
13660
13679
|
const defaultProps$G = {
|
|
13661
13680
|
title: "",
|
|
13662
13681
|
content: "",
|
|
13682
|
+
header: "",
|
|
13663
13683
|
footer: "",
|
|
13664
13684
|
confirmText: "",
|
|
13665
13685
|
cancelText: "",
|
|
@@ -13685,6 +13705,7 @@ const BaseDialog = (props) => {
|
|
|
13685
13705
|
visible,
|
|
13686
13706
|
footer,
|
|
13687
13707
|
title,
|
|
13708
|
+
header,
|
|
13688
13709
|
content,
|
|
13689
13710
|
children,
|
|
13690
13711
|
footerDirection,
|
|
@@ -13736,9 +13757,9 @@ const BaseDialog = (props) => {
|
|
|
13736
13757
|
return footer || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !hideCancelButton && /* @__PURE__ */ React__default.createElement(
|
|
13737
13758
|
Button,
|
|
13738
13759
|
{
|
|
13739
|
-
size: "small",
|
|
13740
13760
|
fill: "outline",
|
|
13741
|
-
|
|
13761
|
+
size: "small",
|
|
13762
|
+
type: "default",
|
|
13742
13763
|
className: `${classPrefix2}__footer-cancel`,
|
|
13743
13764
|
onClick: (e2) => handleCancel(e2)
|
|
13744
13765
|
},
|
|
@@ -13795,6 +13816,7 @@ const BaseDialog = (props) => {
|
|
|
13795
13816
|
className,
|
|
13796
13817
|
style,
|
|
13797
13818
|
title,
|
|
13819
|
+
header,
|
|
13798
13820
|
footer: renderFooter(),
|
|
13799
13821
|
footerDirection,
|
|
13800
13822
|
visible
|