@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/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.1.
|
|
11
|
+
* @nutui/nutui-react-taro v2.1.1 Wed Nov 22 2023 15:32:26 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -846,7 +846,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
846
846
|
a.displayName = "NutIcontriangle-down";
|
|
847
847
|
const o = (t2) => /* @__PURE__ */ lr(r$2, { ...t2, name: t2.name || "triangle-up" });
|
|
848
848
|
o.displayName = "NutIcontriangle-up";
|
|
849
|
-
const style_iconfont = "";
|
|
850
849
|
const ComponentDefaults = {
|
|
851
850
|
className: "",
|
|
852
851
|
style: {}
|
|
@@ -1919,7 +1918,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1919
1918
|
function eq(value, other) {
|
|
1920
1919
|
return value === other || value !== value && other !== other;
|
|
1921
1920
|
}
|
|
1922
|
-
var isArguments = baseIsArguments(function() {
|
|
1921
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
1923
1922
|
return arguments;
|
|
1924
1923
|
}()) ? baseIsArguments : function(value) {
|
|
1925
1924
|
return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -2281,111 +2280,72 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2281
2280
|
_setPrototypeOf$1(subClass, superClass);
|
|
2282
2281
|
}
|
|
2283
2282
|
var propTypes = { exports: {} };
|
|
2284
|
-
var
|
|
2285
|
-
var
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
var
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
var u = a2.$$typeof;
|
|
2303
|
-
switch (u) {
|
|
2304
|
-
case c2:
|
|
2305
|
-
switch (a2 = a2.type, a2) {
|
|
2306
|
-
case l:
|
|
2307
|
-
case m2:
|
|
2308
|
-
case e2:
|
|
2309
|
-
case g:
|
|
2310
|
-
case f:
|
|
2311
|
-
case p:
|
|
2312
|
-
return a2;
|
|
2313
|
-
default:
|
|
2314
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2315
|
-
case k2:
|
|
2316
|
-
case n2:
|
|
2317
|
-
case t2:
|
|
2318
|
-
case r2:
|
|
2319
|
-
case h:
|
|
2320
|
-
return a2;
|
|
2321
|
-
default:
|
|
2322
|
-
return u;
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
case d:
|
|
2326
|
-
return u;
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2283
|
+
var ReactPropTypesSecret_1;
|
|
2284
|
+
var hasRequiredReactPropTypesSecret;
|
|
2285
|
+
function requireReactPropTypesSecret() {
|
|
2286
|
+
if (hasRequiredReactPropTypesSecret)
|
|
2287
|
+
return ReactPropTypesSecret_1;
|
|
2288
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
2289
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2290
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2291
|
+
return ReactPropTypesSecret_1;
|
|
2292
|
+
}
|
|
2293
|
+
var factoryWithThrowingShims;
|
|
2294
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2295
|
+
function requireFactoryWithThrowingShims() {
|
|
2296
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2297
|
+
return factoryWithThrowingShims;
|
|
2298
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2299
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2300
|
+
function emptyFunction() {
|
|
2329
2301
|
}
|
|
2330
|
-
function
|
|
2331
|
-
return z(a2) === m2;
|
|
2302
|
+
function emptyFunctionWithReset() {
|
|
2332
2303
|
}
|
|
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
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
2375
|
-
return z(a2) === g;
|
|
2376
|
-
};
|
|
2377
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
2378
|
-
return z(a2) === f;
|
|
2379
|
-
};
|
|
2380
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
2381
|
-
return z(a2) === p;
|
|
2382
|
-
};
|
|
2383
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
2384
|
-
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);
|
|
2304
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2305
|
+
factoryWithThrowingShims = function() {
|
|
2306
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2307
|
+
if (secret === ReactPropTypesSecret) {
|
|
2308
|
+
return;
|
|
2309
|
+
}
|
|
2310
|
+
var err = new Error(
|
|
2311
|
+
"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"
|
|
2312
|
+
);
|
|
2313
|
+
err.name = "Invariant Violation";
|
|
2314
|
+
throw err;
|
|
2315
|
+
}
|
|
2316
|
+
shim.isRequired = shim;
|
|
2317
|
+
function getShim() {
|
|
2318
|
+
return shim;
|
|
2319
|
+
}
|
|
2320
|
+
var ReactPropTypes = {
|
|
2321
|
+
array: shim,
|
|
2322
|
+
bigint: shim,
|
|
2323
|
+
bool: shim,
|
|
2324
|
+
func: shim,
|
|
2325
|
+
number: shim,
|
|
2326
|
+
object: shim,
|
|
2327
|
+
string: shim,
|
|
2328
|
+
symbol: shim,
|
|
2329
|
+
any: shim,
|
|
2330
|
+
arrayOf: getShim,
|
|
2331
|
+
element: shim,
|
|
2332
|
+
elementType: shim,
|
|
2333
|
+
instanceOf: getShim,
|
|
2334
|
+
node: shim,
|
|
2335
|
+
objectOf: getShim,
|
|
2336
|
+
oneOf: getShim,
|
|
2337
|
+
oneOfType: getShim,
|
|
2338
|
+
shape: getShim,
|
|
2339
|
+
exact: getShim,
|
|
2340
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2341
|
+
resetWarningCache: emptyFunction
|
|
2342
|
+
};
|
|
2343
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2344
|
+
return ReactPropTypes;
|
|
2385
2345
|
};
|
|
2386
|
-
|
|
2387
|
-
return reactIs_production_min;
|
|
2346
|
+
return factoryWithThrowingShims;
|
|
2388
2347
|
}
|
|
2348
|
+
var reactIs = { exports: {} };
|
|
2389
2349
|
var reactIs_development = {};
|
|
2390
2350
|
/** @license React v16.13.1
|
|
2391
2351
|
* react-is.development.js
|
|
@@ -2549,6 +2509,110 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2549
2509
|
}
|
|
2550
2510
|
return reactIs_development;
|
|
2551
2511
|
}
|
|
2512
|
+
var reactIs_production_min = {};
|
|
2513
|
+
/** @license React v16.13.1
|
|
2514
|
+
* react-is.production.min.js
|
|
2515
|
+
*
|
|
2516
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2517
|
+
*
|
|
2518
|
+
* This source code is licensed under the MIT license found in the
|
|
2519
|
+
* LICENSE file in the root directory of this source tree.
|
|
2520
|
+
*/
|
|
2521
|
+
var hasRequiredReactIs_production_min;
|
|
2522
|
+
function requireReactIs_production_min() {
|
|
2523
|
+
if (hasRequiredReactIs_production_min)
|
|
2524
|
+
return reactIs_production_min;
|
|
2525
|
+
hasRequiredReactIs_production_min = 1;
|
|
2526
|
+
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;
|
|
2527
|
+
function z(a2) {
|
|
2528
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
2529
|
+
var u = a2.$$typeof;
|
|
2530
|
+
switch (u) {
|
|
2531
|
+
case c2:
|
|
2532
|
+
switch (a2 = a2.type, a2) {
|
|
2533
|
+
case l:
|
|
2534
|
+
case m2:
|
|
2535
|
+
case e2:
|
|
2536
|
+
case g:
|
|
2537
|
+
case f:
|
|
2538
|
+
case p:
|
|
2539
|
+
return a2;
|
|
2540
|
+
default:
|
|
2541
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2542
|
+
case k2:
|
|
2543
|
+
case n2:
|
|
2544
|
+
case t2:
|
|
2545
|
+
case r2:
|
|
2546
|
+
case h:
|
|
2547
|
+
return a2;
|
|
2548
|
+
default:
|
|
2549
|
+
return u;
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
case d:
|
|
2553
|
+
return u;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
function A(a2) {
|
|
2558
|
+
return z(a2) === m2;
|
|
2559
|
+
}
|
|
2560
|
+
reactIs_production_min.AsyncMode = l;
|
|
2561
|
+
reactIs_production_min.ConcurrentMode = m2;
|
|
2562
|
+
reactIs_production_min.ContextConsumer = k2;
|
|
2563
|
+
reactIs_production_min.ContextProvider = h;
|
|
2564
|
+
reactIs_production_min.Element = c2;
|
|
2565
|
+
reactIs_production_min.ForwardRef = n2;
|
|
2566
|
+
reactIs_production_min.Fragment = e2;
|
|
2567
|
+
reactIs_production_min.Lazy = t2;
|
|
2568
|
+
reactIs_production_min.Memo = r2;
|
|
2569
|
+
reactIs_production_min.Portal = d;
|
|
2570
|
+
reactIs_production_min.Profiler = g;
|
|
2571
|
+
reactIs_production_min.StrictMode = f;
|
|
2572
|
+
reactIs_production_min.Suspense = p;
|
|
2573
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
2574
|
+
return A(a2) || z(a2) === l;
|
|
2575
|
+
};
|
|
2576
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
2577
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
2578
|
+
return z(a2) === k2;
|
|
2579
|
+
};
|
|
2580
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
2581
|
+
return z(a2) === h;
|
|
2582
|
+
};
|
|
2583
|
+
reactIs_production_min.isElement = function(a2) {
|
|
2584
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
2585
|
+
};
|
|
2586
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
2587
|
+
return z(a2) === n2;
|
|
2588
|
+
};
|
|
2589
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
2590
|
+
return z(a2) === e2;
|
|
2591
|
+
};
|
|
2592
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
2593
|
+
return z(a2) === t2;
|
|
2594
|
+
};
|
|
2595
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
2596
|
+
return z(a2) === r2;
|
|
2597
|
+
};
|
|
2598
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
2599
|
+
return z(a2) === d;
|
|
2600
|
+
};
|
|
2601
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
2602
|
+
return z(a2) === g;
|
|
2603
|
+
};
|
|
2604
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
2605
|
+
return z(a2) === f;
|
|
2606
|
+
};
|
|
2607
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
2608
|
+
return z(a2) === p;
|
|
2609
|
+
};
|
|
2610
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
2611
|
+
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);
|
|
2612
|
+
};
|
|
2613
|
+
reactIs_production_min.typeOf = z;
|
|
2614
|
+
return reactIs_production_min;
|
|
2615
|
+
}
|
|
2552
2616
|
var hasRequiredReactIs;
|
|
2553
2617
|
function requireReactIs() {
|
|
2554
2618
|
if (hasRequiredReactIs)
|
|
@@ -2637,16 +2701,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2637
2701
|
};
|
|
2638
2702
|
return objectAssign;
|
|
2639
2703
|
}
|
|
2640
|
-
var ReactPropTypesSecret_1;
|
|
2641
|
-
var hasRequiredReactPropTypesSecret;
|
|
2642
|
-
function requireReactPropTypesSecret() {
|
|
2643
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2644
|
-
return ReactPropTypesSecret_1;
|
|
2645
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
2646
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2647
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2648
|
-
return ReactPropTypesSecret_1;
|
|
2649
|
-
}
|
|
2650
2704
|
var has;
|
|
2651
2705
|
var hasRequiredHas;
|
|
2652
2706
|
function requireHas() {
|
|
@@ -3164,61 +3218,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
3164
3218
|
};
|
|
3165
3219
|
return factoryWithTypeCheckers;
|
|
3166
3220
|
}
|
|
3167
|
-
var factoryWithThrowingShims;
|
|
3168
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
3169
|
-
function requireFactoryWithThrowingShims() {
|
|
3170
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
3171
|
-
return factoryWithThrowingShims;
|
|
3172
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
3173
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3174
|
-
function emptyFunction() {
|
|
3175
|
-
}
|
|
3176
|
-
function emptyFunctionWithReset() {
|
|
3177
|
-
}
|
|
3178
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3179
|
-
factoryWithThrowingShims = function() {
|
|
3180
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3181
|
-
if (secret === ReactPropTypesSecret) {
|
|
3182
|
-
return;
|
|
3183
|
-
}
|
|
3184
|
-
var err = new Error(
|
|
3185
|
-
"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"
|
|
3186
|
-
);
|
|
3187
|
-
err.name = "Invariant Violation";
|
|
3188
|
-
throw err;
|
|
3189
|
-
}
|
|
3190
|
-
shim.isRequired = shim;
|
|
3191
|
-
function getShim() {
|
|
3192
|
-
return shim;
|
|
3193
|
-
}
|
|
3194
|
-
var ReactPropTypes = {
|
|
3195
|
-
array: shim,
|
|
3196
|
-
bigint: shim,
|
|
3197
|
-
bool: shim,
|
|
3198
|
-
func: shim,
|
|
3199
|
-
number: shim,
|
|
3200
|
-
object: shim,
|
|
3201
|
-
string: shim,
|
|
3202
|
-
symbol: shim,
|
|
3203
|
-
any: shim,
|
|
3204
|
-
arrayOf: getShim,
|
|
3205
|
-
element: shim,
|
|
3206
|
-
elementType: shim,
|
|
3207
|
-
instanceOf: getShim,
|
|
3208
|
-
node: shim,
|
|
3209
|
-
objectOf: getShim,
|
|
3210
|
-
oneOf: getShim,
|
|
3211
|
-
oneOfType: getShim,
|
|
3212
|
-
shape: getShim,
|
|
3213
|
-
exact: getShim,
|
|
3214
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3215
|
-
resetWarningCache: emptyFunction
|
|
3216
|
-
};
|
|
3217
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3218
|
-
return ReactPropTypes;
|
|
3219
|
-
};
|
|
3220
|
-
return factoryWithThrowingShims;
|
|
3221
|
-
}
|
|
3222
3221
|
if (process.env.NODE_ENV !== "production") {
|
|
3223
3222
|
var ReactIs = requireReactIs();
|
|
3224
3223
|
var throwOnDirectAccess = true;
|
|
@@ -4831,10 +4830,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4831
4830
|
{}
|
|
4832
4831
|
);
|
|
4833
4832
|
const [currentKey, setCurrentKey] = React.useState("");
|
|
4834
|
-
const [currentIndex, setCurrentIndex] = React.useState(0);
|
|
4835
4833
|
const [codeIndex, setCodeIndex] = React.useState(0);
|
|
4836
4834
|
const [scrollStart, setScrollStart] = React.useState(false);
|
|
4837
4835
|
const state = React.useRef(initData);
|
|
4836
|
+
const scrolling = React.useRef(false);
|
|
4838
4837
|
const [scrollTop, setScrollTop] = React.useState(0);
|
|
4839
4838
|
const [scrollY, setScrollY] = React.useState(0);
|
|
4840
4839
|
const resetScrollState = () => {
|
|
@@ -4892,14 +4891,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4892
4891
|
resetScrollState();
|
|
4893
4892
|
};
|
|
4894
4893
|
const touchStart = (e2) => {
|
|
4895
|
-
setScrollStart(true);
|
|
4896
4894
|
const index = Number(getData(e2.target));
|
|
4897
4895
|
const firstTouch = e2.touches[0];
|
|
4896
|
+
scrolling.current = true;
|
|
4898
4897
|
touchState.current.y1 = firstTouch.pageY;
|
|
4899
4898
|
state.current.anchorIndex = +index;
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
});
|
|
4899
|
+
setScrollStart(true);
|
|
4900
|
+
setCodeIndex(index);
|
|
4903
4901
|
scrollTo(index);
|
|
4904
4902
|
};
|
|
4905
4903
|
const handleClickItem = (key, item) => {
|
|
@@ -4930,12 +4928,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4930
4928
|
if (sticky && scrollTop2 !== scrollY) {
|
|
4931
4929
|
setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
|
|
4932
4930
|
}
|
|
4931
|
+
if (scrolling.current)
|
|
4932
|
+
return;
|
|
4933
4933
|
for (let i = 0; i < listHeight.length - 1; i++) {
|
|
4934
4934
|
const height1 = listHeight[i];
|
|
4935
4935
|
const height2 = listHeight[i + 1];
|
|
4936
4936
|
if (state.current.scrollY >= height1 && state.current.scrollY < height2) {
|
|
4937
|
-
|
|
4938
|
-
return;
|
|
4937
|
+
return setCodeIndex(i);
|
|
4939
4938
|
}
|
|
4940
4939
|
}
|
|
4941
4940
|
};
|
|
@@ -4962,7 +4961,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4962
4961
|
className: `${classPrefix2}__list__inner`,
|
|
4963
4962
|
type: "list",
|
|
4964
4963
|
ref: listview,
|
|
4965
|
-
onScroll: listViewScroll
|
|
4964
|
+
onScroll: listViewScroll,
|
|
4965
|
+
onTouchStart: (e2) => {
|
|
4966
|
+
scrolling.current = false;
|
|
4967
|
+
}
|
|
4966
4968
|
},
|
|
4967
4969
|
list.map((item, idx) => {
|
|
4968
4970
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -5013,7 +5015,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5013
5015
|
{
|
|
5014
5016
|
className: classNames({
|
|
5015
5017
|
[`${classPrefix2}__bars__inner__item`]: true,
|
|
5016
|
-
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[
|
|
5018
|
+
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[codeIndex][floorKey]
|
|
5017
5019
|
}),
|
|
5018
5020
|
"data-index": index,
|
|
5019
5021
|
key: index,
|
|
@@ -5022,7 +5024,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5022
5024
|
item[floorKey]
|
|
5023
5025
|
);
|
|
5024
5026
|
})
|
|
5025
|
-
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__list__fixed` }, /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}__list__fixed__title` }, list[
|
|
5027
|
+
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__list__fixed` }, /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}__list__fixed__title` }, list[codeIndex][floorKey])) : null);
|
|
5026
5028
|
};
|
|
5027
5029
|
Elevator.defaultProps = defaultProps$1j;
|
|
5028
5030
|
Elevator.displayName = "NutElevator";
|
|
@@ -5530,30 +5532,46 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5530
5532
|
value: "",
|
|
5531
5533
|
dot: false,
|
|
5532
5534
|
max: 99,
|
|
5533
|
-
top: "
|
|
5534
|
-
right: "
|
|
5535
|
+
top: "4",
|
|
5536
|
+
right: "8",
|
|
5535
5537
|
color: ""
|
|
5536
5538
|
};
|
|
5537
5539
|
const Badge = (props) => {
|
|
5540
|
+
var _a;
|
|
5538
5541
|
const { className, style, value, max, children, dot, top, right: right2, color } = {
|
|
5539
5542
|
...defaultProps$1d,
|
|
5540
5543
|
...props
|
|
5541
5544
|
};
|
|
5542
5545
|
const classPrefix2 = "nut-badge";
|
|
5543
5546
|
const classes = classNames(classPrefix2, className);
|
|
5544
|
-
const contentClasses = classNames(
|
|
5545
|
-
{ [`${classPrefix2}__dot`]: dot },
|
|
5546
|
-
`${classPrefix2}__content`,
|
|
5547
|
-
`${classPrefix2}__sup`
|
|
5548
|
-
);
|
|
5549
5547
|
function content() {
|
|
5550
5548
|
if (dot || typeof value === "object")
|
|
5551
5549
|
return null;
|
|
5552
5550
|
if (typeof value === "number" && typeof max === "number") {
|
|
5553
|
-
return max < value ? `${max}+` : value
|
|
5551
|
+
return max < value ? `${max}+` : `${value}`;
|
|
5554
5552
|
}
|
|
5555
5553
|
return value;
|
|
5556
5554
|
}
|
|
5555
|
+
function isIcon() {
|
|
5556
|
+
if (typeof value === "object" && value)
|
|
5557
|
+
return value;
|
|
5558
|
+
}
|
|
5559
|
+
function isNumber() {
|
|
5560
|
+
if (typeof value === "number" && value)
|
|
5561
|
+
return value;
|
|
5562
|
+
}
|
|
5563
|
+
function isString() {
|
|
5564
|
+
if (typeof value === "string" && value)
|
|
5565
|
+
return value;
|
|
5566
|
+
}
|
|
5567
|
+
const contentClasses = classNames(
|
|
5568
|
+
{ [`${classPrefix2}__dot`]: dot },
|
|
5569
|
+
`${classPrefix2}__content`,
|
|
5570
|
+
{ [`${classPrefix2}__sup`]: isNumber() || isString() || dot },
|
|
5571
|
+
{
|
|
5572
|
+
[`${classPrefix2}__one`]: typeof content() === "string" && ((_a = `${content()}`) == null ? void 0 : _a.length) === 1
|
|
5573
|
+
}
|
|
5574
|
+
);
|
|
5557
5575
|
const getStyle = () => {
|
|
5558
5576
|
const style2 = {};
|
|
5559
5577
|
style2.top = `${Number(top) || parseFloat(String(top)) || 0}px`;
|
|
@@ -5561,7 +5579,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5561
5579
|
style2.background = color;
|
|
5562
5580
|
return style2;
|
|
5563
5581
|
};
|
|
5564
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, style },
|
|
5582
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__icon` }, value), children, !isIcon() && /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
5565
5583
|
};
|
|
5566
5584
|
Badge.defaultProps = defaultProps$1d;
|
|
5567
5585
|
Badge.displayName = "NutBadge";
|
|
@@ -5725,7 +5743,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5725
5743
|
_window.setTimeout(callback, 1e3 / 60);
|
|
5726
5744
|
};
|
|
5727
5745
|
}
|
|
5728
|
-
return
|
|
5746
|
+
return (callback) => {
|
|
5729
5747
|
setTimeout(callback, 1e3 / 60);
|
|
5730
5748
|
};
|
|
5731
5749
|
}
|
|
@@ -13594,7 +13612,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13594
13612
|
ActionSheet.defaultProps = defaultProps$H;
|
|
13595
13613
|
ActionSheet.displayName = "NutActionSheet";
|
|
13596
13614
|
const Content = (props) => {
|
|
13597
|
-
const { visible, title, footer, footerDirection, onClick, children } = props;
|
|
13615
|
+
const { visible, title, header, footer, footerDirection, onClick, children } = props;
|
|
13598
13616
|
const classPrefix2 = "nut-dialog";
|
|
13599
13617
|
const renderHeader = () => {
|
|
13600
13618
|
return title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__header` }, title) : null;
|
|
@@ -13620,6 +13638,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13620
13638
|
style: props.style,
|
|
13621
13639
|
onClick: (e2) => handleClick(e2)
|
|
13622
13640
|
},
|
|
13641
|
+
header,
|
|
13623
13642
|
/* @__PURE__ */ React.createElement(
|
|
13624
13643
|
"div",
|
|
13625
13644
|
{
|
|
@@ -13676,6 +13695,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13676
13695
|
const defaultProps$G = {
|
|
13677
13696
|
title: "",
|
|
13678
13697
|
content: "",
|
|
13698
|
+
header: "",
|
|
13679
13699
|
footer: "",
|
|
13680
13700
|
confirmText: "",
|
|
13681
13701
|
cancelText: "",
|
|
@@ -13701,6 +13721,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13701
13721
|
visible,
|
|
13702
13722
|
footer,
|
|
13703
13723
|
title,
|
|
13724
|
+
header,
|
|
13704
13725
|
content,
|
|
13705
13726
|
children,
|
|
13706
13727
|
footerDirection,
|
|
@@ -13752,9 +13773,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13752
13773
|
return footer || /* @__PURE__ */ React.createElement(React.Fragment, null, !hideCancelButton && /* @__PURE__ */ React.createElement(
|
|
13753
13774
|
Button,
|
|
13754
13775
|
{
|
|
13755
|
-
size: "small",
|
|
13756
13776
|
fill: "outline",
|
|
13757
|
-
|
|
13777
|
+
size: "small",
|
|
13778
|
+
type: "default",
|
|
13758
13779
|
className: `${classPrefix2}__footer-cancel`,
|
|
13759
13780
|
onClick: (e2) => handleCancel(e2)
|
|
13760
13781
|
},
|
|
@@ -13811,6 +13832,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13811
13832
|
className,
|
|
13812
13833
|
style,
|
|
13813
13834
|
title,
|
|
13835
|
+
header,
|
|
13814
13836
|
footer: renderFooter(),
|
|
13815
13837
|
footerDirection,
|
|
13816
13838
|
visible
|
|
@@ -3,32 +3,49 @@
|
|
|
3
3
|
display: inline-block;
|
|
4
4
|
|
|
5
5
|
&__icon {
|
|
6
|
-
display: flex;
|
|
7
6
|
position: absolute;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
8
10
|
background: $badge-background-color;
|
|
9
|
-
top: -
|
|
10
|
-
right: -
|
|
11
|
+
top: -10%;
|
|
12
|
+
right: -15%;
|
|
11
13
|
padding: $badge-icon-padding;
|
|
12
14
|
text-align: center;
|
|
13
15
|
border: $badge-border;
|
|
14
16
|
border-radius: $badge-border-radius;
|
|
15
17
|
z-index: $badge-z-index;
|
|
18
|
+
|
|
19
|
+
.nut-icon {
|
|
20
|
+
width: $badge-icon-size;
|
|
21
|
+
height: $badge-icon-size;
|
|
22
|
+
font-size: $badge-icon-size;
|
|
23
|
+
}
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
&__sup {
|
|
27
|
+
height: $badge-height;
|
|
19
28
|
position: absolute;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
20
32
|
background: $badge-background-color;
|
|
21
33
|
color: $badge-color;
|
|
22
34
|
padding: $badge-padding;
|
|
23
35
|
font-size: $badge-font-size;
|
|
24
36
|
font-weight: normal;
|
|
25
37
|
text-align: center;
|
|
26
|
-
line-height: 16px;
|
|
27
38
|
border: $badge-border;
|
|
28
39
|
border-radius: $badge-border-radius;
|
|
29
40
|
min-width: $badge-min-width;
|
|
30
41
|
}
|
|
31
42
|
|
|
43
|
+
&__one {
|
|
44
|
+
height: $badge-height;
|
|
45
|
+
width: $badge-height;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
&__content {
|
|
33
50
|
transform: $badge-content-transform;
|
|
34
51
|
}
|