@nutui/nutui-react 3.0.0-beta.5 → 3.0.0-beta.7
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/README.md +39 -9
- package/dist/cjs/packages/actionsheet/actionsheet.js +6 -3
- package/dist/cjs/packages/actionsheet/style/actionsheet.scss +10 -4
- package/dist/cjs/packages/actionsheet/style/style.css +14 -6
- package/dist/cjs/packages/address/style/style.css +60 -92
- package/dist/cjs/packages/animate/style/animate.scss +0 -3
- package/dist/cjs/packages/animate/style/style.css +4 -3
- package/dist/cjs/packages/animatingnumbers/style/style.css +4 -0
- package/dist/cjs/packages/audio/style/style.css +4 -0
- package/dist/cjs/packages/avatar/style/style.css +4 -0
- package/dist/cjs/packages/avatarcropper/style/style.css +4 -0
- package/dist/cjs/packages/avatargroup/style/style.css +4 -0
- package/dist/cjs/packages/backtop/style/style.css +4 -0
- package/dist/cjs/packages/badge/style/style.css +4 -0
- package/dist/cjs/packages/barrage/style/style.css +4 -0
- package/dist/cjs/packages/button/style/style.css +4 -0
- package/dist/cjs/packages/calendar/style/style.css +4 -3
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +1 -1
- package/dist/cjs/packages/calendarcard/style/style.css +4 -0
- package/dist/cjs/packages/calendaritem/style/style.css +4 -0
- package/dist/cjs/packages/card/style/style.css +4 -0
- package/dist/cjs/packages/cascader/style/style.css +53 -88
- package/dist/cjs/packages/cell/style/style.css +4 -0
- package/dist/cjs/packages/cellgroup/style/style.css +4 -0
- package/dist/cjs/packages/checkbox/style/style.css +4 -0
- package/dist/cjs/packages/checkboxgroup/style/style.css +4 -0
- package/dist/cjs/packages/circleprogress/style/style.css +4 -0
- package/dist/cjs/packages/col/style/style.css +4 -0
- package/dist/cjs/packages/collapse/style/style.css +4 -0
- package/dist/cjs/packages/collapseitem/style/style.css +4 -0
- package/dist/cjs/packages/configprovider/style/style.css +4 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/countdown.scss +21 -2
- package/dist/cjs/packages/countdown/style/style.css +24 -2
- package/dist/cjs/packages/countup/style/style.css +4 -0
- package/dist/cjs/packages/datepicker/style/style.css +4 -3
- package/dist/cjs/packages/dialog/style/style.css +4 -0
- package/dist/cjs/packages/divider/style/style.css +4 -0
- package/dist/cjs/packages/drag/style/style.css +4 -0
- package/dist/cjs/packages/elevator/style/elevator.scss +7 -4
- package/dist/cjs/packages/elevator/style/style.css +11 -4
- package/dist/cjs/packages/ellipsis/style/style.css +4 -0
- package/dist/cjs/packages/empty/empty.js +1 -1
- package/dist/cjs/packages/empty/style/empty.scss +9 -5
- package/dist/cjs/packages/empty/style/style.css +16 -7
- package/dist/cjs/packages/fixednav/style/style.css +4 -0
- package/dist/cjs/packages/form/style/style.css +4 -0
- package/dist/cjs/packages/formitem/style/style.css +4 -0
- package/dist/cjs/packages/grid/style/style.css +4 -0
- package/dist/cjs/packages/griditem/style/style.css +4 -0
- package/dist/cjs/packages/hoverbutton/hoverbutton.js +2 -1
- package/dist/cjs/packages/hoverbutton/style/style.css +37 -12
- package/dist/cjs/packages/hoverbutton/utils.d.ts +1 -0
- package/dist/cjs/packages/hoverbutton/utils.js +11 -0
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +17 -8
- package/dist/cjs/packages/hoverbuttonitem/style/hoverbuttonitem.scss +25 -0
- package/dist/cjs/packages/hoverbuttonitem/style/style.css +33 -8
- package/dist/cjs/packages/hoverbuttonitem/utils.d.ts +2 -0
- package/dist/cjs/packages/hoverbuttonitem/utils.js +18 -0
- package/dist/cjs/packages/image/style/style.css +4 -0
- package/dist/cjs/packages/imagepreview/style/imagepreview.scss +7 -0
- package/dist/cjs/packages/imagepreview/style/style.css +12 -3
- package/dist/cjs/packages/indicator/style/style.css +4 -0
- package/dist/cjs/packages/infiniteloading/style/style.css +4 -0
- package/dist/cjs/packages/input/style/style.css +4 -0
- package/dist/cjs/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/cjs/packages/inputnumber/style/style.css +25 -19
- package/dist/cjs/packages/layout/style/style.css +4 -0
- package/dist/cjs/packages/loading/style/style.css +4 -0
- package/dist/cjs/packages/menu/style/style.css +4 -0
- package/dist/cjs/packages/menuitem/style/style.css +4 -0
- package/dist/cjs/packages/navbar/style/style.css +4 -0
- package/dist/cjs/packages/noticebar/style/style.css +4 -0
- package/dist/cjs/packages/notify/style/style.css +4 -0
- package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +16 -3
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +4 -0
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +5 -0
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/style/style.css +4 -0
- package/dist/cjs/packages/pagination/style/style.css +4 -0
- package/dist/cjs/packages/picker/style/style.css +4 -3
- package/dist/cjs/packages/popover/style/popover.scss +16 -11
- package/dist/cjs/packages/popover/style/style.css +18 -5
- package/dist/cjs/packages/popup/style/popup.scss +0 -3
- package/dist/cjs/packages/popup/style/style.css +4 -3
- package/dist/cjs/packages/price/style/style.css +4 -0
- package/dist/cjs/packages/progress/style/style.css +4 -0
- package/dist/cjs/packages/pulltorefresh/style/style.css +4 -0
- package/dist/cjs/packages/radio/style/style.css +4 -0
- package/dist/cjs/packages/radiogroup/style/style.css +4 -0
- package/dist/cjs/packages/range/style/style.css +4 -0
- package/dist/cjs/packages/rate/index.d.ts +1 -1
- package/dist/cjs/packages/rate/rate.d.ts +2 -16
- package/dist/cjs/packages/rate/rate.js +7 -3
- package/dist/cjs/packages/rate/style/rate.scss +94 -8
- package/dist/cjs/packages/rate/style/style.css +86 -8
- package/dist/cjs/packages/rate/types.d.ts +18 -0
- package/dist/cjs/packages/rate/types.js +4 -0
- package/dist/cjs/packages/resultpage/style/style.css +4 -0
- package/dist/cjs/packages/row/style/style.css +4 -0
- package/dist/cjs/packages/safearea/style/style.css +4 -0
- package/dist/cjs/packages/searchbar/style/style.css +4 -0
- package/dist/cjs/packages/segmented/index.d.ts +3 -0
- package/dist/cjs/packages/segmented/index.js +12 -0
- package/dist/cjs/packages/segmented/segmented.d.ts +3 -0
- package/dist/cjs/packages/segmented/segmented.js +75 -0
- package/dist/cjs/packages/segmented/style/css.js +1 -0
- package/dist/cjs/packages/segmented/style/index.js +1 -0
- package/dist/cjs/packages/segmented/style/segmented.scss +38 -0
- package/dist/cjs/packages/segmented/style/style.css +42 -0
- package/dist/cjs/packages/segmented/types.d.ts +15 -0
- package/dist/cjs/packages/segmented/types.js +4 -0
- package/dist/cjs/packages/shortpassword/style/style.css +4 -3
- package/dist/cjs/packages/sidenavbar/style/style.css +4 -3
- package/dist/cjs/packages/sidenavbaritem/style/style.css +4 -0
- package/dist/cjs/packages/signature/style/style.css +4 -0
- package/dist/cjs/packages/skeleton/style/style.css +4 -0
- package/dist/cjs/packages/space/style/style.css +4 -0
- package/dist/cjs/packages/step/style/style.css +4 -0
- package/dist/cjs/packages/steps/style/style.css +4 -0
- package/dist/cjs/packages/sticky/style/style.css +4 -0
- package/dist/cjs/packages/subsidenavbar/style/style.css +4 -0
- package/dist/cjs/packages/swipe/style/style.css +4 -0
- package/dist/cjs/packages/swiper/style/style.css +4 -0
- package/dist/cjs/packages/swiperitem/style/style.css +4 -0
- package/dist/cjs/packages/switch/style/style.css +50 -30
- package/dist/cjs/packages/switch/style/switch.scss +44 -28
- package/dist/cjs/packages/switch/switch.d.ts +2 -2
- package/dist/cjs/packages/switch/switch.js +3 -11
- package/dist/cjs/packages/tabbar/style/style.css +4 -0
- package/dist/cjs/packages/tabbaritem/style/style.css +4 -0
- package/dist/cjs/packages/table/style/style.css +4 -0
- package/dist/cjs/packages/tabpane/style/style.css +4 -0
- package/dist/cjs/packages/tabs/style/style.css +53 -85
- package/dist/cjs/packages/tabs/style/tabs.scss +68 -106
- package/dist/cjs/packages/tag/style/style.css +4 -0
- package/dist/cjs/packages/textarea/style/style.css +4 -0
- package/dist/cjs/packages/timedetail/style/style.css +6 -0
- package/dist/cjs/packages/timedetail/style/timedetail.scss +2 -0
- package/dist/cjs/packages/timeselect/style/style.css +6 -3
- package/dist/cjs/packages/toast/Notification.js +4 -4
- package/dist/cjs/packages/toast/style/style.css +17 -10
- package/dist/cjs/packages/toast/style/toast.scss +14 -8
- package/dist/cjs/packages/tour/style/style.css +18 -5
- package/dist/cjs/packages/trendarrow/style/style.css +4 -0
- package/dist/cjs/packages/uploader/style/style.css +4 -0
- package/dist/cjs/packages/video/style/style.css +4 -0
- package/dist/cjs/packages/video/video.d.ts +6 -2
- package/dist/cjs/packages/video/video.js +16 -2
- package/dist/cjs/packages/virtuallist/style/style.css +4 -0
- package/dist/cjs/packages/watermark/style/style.css +4 -0
- package/dist/es/packages/actionsheet/actionsheet.d.ts +7 -35
- package/dist/es/packages/actionsheet/actionsheet.js +6 -3
- package/dist/es/packages/actionsheet/style/actionsheet.scss +10 -4
- package/dist/es/packages/actionsheet/style/style.css +14 -6
- package/dist/es/packages/address/style/style.css +60 -92
- package/dist/es/packages/animate/style/animate.scss +0 -3
- package/dist/es/packages/animate/style/style.css +4 -3
- package/dist/es/packages/animatingnumbers/style/style.css +4 -0
- package/dist/es/packages/audio/style/style.css +4 -0
- package/dist/es/packages/avatar/style/style.css +4 -0
- package/dist/es/packages/avatarcropper/style/style.css +4 -0
- package/dist/es/packages/avatargroup/style/style.css +4 -0
- package/dist/es/packages/backtop/style/style.css +4 -0
- package/dist/es/packages/badge/style/style.css +4 -0
- package/dist/es/packages/barrage/style/style.css +4 -0
- package/dist/es/packages/button/style/style.css +4 -0
- package/dist/es/packages/calendar/style/style.css +4 -3
- package/dist/es/packages/calendarcard/style/calendarcard.scss +1 -1
- package/dist/es/packages/calendarcard/style/style.css +4 -0
- package/dist/es/packages/calendaritem/style/style.css +4 -0
- package/dist/es/packages/card/style/style.css +4 -0
- package/dist/es/packages/cascader/style/style.css +53 -88
- package/dist/es/packages/cell/style/style.css +4 -0
- package/dist/es/packages/cellgroup/style/style.css +4 -0
- package/dist/es/packages/checkbox/style/style.css +4 -0
- package/dist/es/packages/checkboxgroup/style/style.css +4 -0
- package/dist/es/packages/circleprogress/style/style.css +4 -0
- package/dist/es/packages/col/style/style.css +4 -0
- package/dist/es/packages/collapse/style/style.css +4 -0
- package/dist/es/packages/collapseitem/style/style.css +4 -0
- package/dist/es/packages/configprovider/style/style.css +4 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/countdown.scss +21 -2
- package/dist/es/packages/countdown/style/style.css +24 -2
- package/dist/es/packages/countup/style/style.css +4 -0
- package/dist/es/packages/datepicker/style/style.css +4 -3
- package/dist/es/packages/dialog/style/style.css +4 -0
- package/dist/es/packages/divider/style/style.css +4 -0
- package/dist/es/packages/drag/style/style.css +4 -0
- package/dist/es/packages/elevator/elevator.d.ts +9 -45
- package/dist/es/packages/elevator/style/elevator.scss +7 -4
- package/dist/es/packages/elevator/style/style.css +11 -4
- package/dist/es/packages/ellipsis/style/style.css +4 -0
- package/dist/es/packages/empty/empty.js +1 -1
- package/dist/es/packages/empty/style/empty.scss +9 -5
- package/dist/es/packages/empty/style/style.css +16 -7
- package/dist/es/packages/fixednav/style/style.css +4 -0
- package/dist/es/packages/form/style/style.css +4 -0
- package/dist/es/packages/formitem/style/style.css +4 -0
- package/dist/es/packages/grid/style/style.css +4 -0
- package/dist/es/packages/griditem/style/style.css +4 -0
- package/dist/es/packages/hoverbutton/hoverbutton.js +2 -1
- package/dist/es/packages/hoverbutton/style/style.css +37 -12
- package/dist/es/packages/hoverbutton/utils.d.ts +1 -0
- package/dist/es/packages/hoverbutton/utils.js +1 -0
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +17 -8
- package/dist/es/packages/hoverbuttonitem/style/hoverbuttonitem.scss +25 -0
- package/dist/es/packages/hoverbuttonitem/style/style.css +33 -8
- package/dist/es/packages/hoverbuttonitem/utils.d.ts +2 -0
- package/dist/es/packages/hoverbuttonitem/utils.js +7 -0
- package/dist/es/packages/image/style/style.css +4 -0
- package/dist/es/packages/imagepreview/style/imagepreview.scss +7 -0
- package/dist/es/packages/imagepreview/style/style.css +12 -3
- package/dist/es/packages/indicator/style/style.css +4 -0
- package/dist/es/packages/infiniteloading/style/style.css +4 -0
- package/dist/es/packages/input/style/style.css +4 -0
- package/dist/es/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/es/packages/inputnumber/style/style.css +25 -19
- package/dist/es/packages/layout/style/style.css +4 -0
- package/dist/es/packages/loading/style/style.css +4 -0
- package/dist/es/packages/menu/style/style.css +4 -0
- package/dist/es/packages/menuitem/style/style.css +4 -0
- package/dist/es/packages/navbar/style/style.css +4 -0
- package/dist/es/packages/noticebar/style/style.css +4 -0
- package/dist/es/packages/notify/style/style.css +4 -0
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +10 -50
- package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/es/packages/numberkeyboard/style/style.css +16 -3
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/style/style.css +4 -0
- package/dist/es/packages/pagination/style/style.css +4 -0
- package/dist/es/packages/picker/style/style.css +4 -3
- package/dist/es/packages/popover/style/popover.scss +16 -11
- package/dist/es/packages/popover/style/style.css +18 -5
- package/dist/es/packages/popup/style/popup.scss +0 -3
- package/dist/es/packages/popup/style/style.css +4 -3
- package/dist/es/packages/price/style/style.css +4 -0
- package/dist/es/packages/progress/style/style.css +4 -0
- package/dist/es/packages/pulltorefresh/style/style.css +4 -0
- package/dist/es/packages/radio/style/style.css +4 -0
- package/dist/es/packages/radiogroup/style/style.css +4 -0
- package/dist/es/packages/range/style/style.css +4 -0
- package/dist/es/packages/rate/index.d.ts +1 -1
- package/dist/es/packages/rate/rate.d.ts +2 -16
- package/dist/es/packages/rate/rate.js +7 -3
- package/dist/es/packages/rate/style/rate.scss +94 -8
- package/dist/es/packages/rate/style/style.css +86 -8
- package/dist/es/packages/rate/types.d.ts +18 -0
- package/dist/es/packages/rate/types.js +1 -0
- package/dist/es/packages/resultpage/style/style.css +4 -0
- package/dist/es/packages/row/style/style.css +4 -0
- package/dist/es/packages/safearea/style/style.css +4 -0
- package/dist/es/packages/searchbar/style/style.css +4 -0
- package/dist/es/packages/segmented/index.d.ts +3 -0
- package/dist/es/packages/segmented/index.js +2 -0
- package/dist/es/packages/segmented/segmented.d.ts +3 -0
- package/dist/es/packages/segmented/segmented.js +63 -0
- package/dist/es/packages/segmented/style/css.js +1 -0
- package/dist/es/packages/segmented/style/index.js +1 -0
- package/dist/es/packages/segmented/style/segmented.scss +38 -0
- package/dist/es/packages/segmented/style/style.css +42 -0
- package/dist/es/packages/segmented/types.d.ts +15 -0
- package/dist/es/packages/segmented/types.js +1 -0
- package/dist/es/packages/shortpassword/style/style.css +4 -3
- package/dist/es/packages/sidenavbar/style/style.css +4 -3
- package/dist/es/packages/sidenavbaritem/style/style.css +4 -0
- package/dist/es/packages/signature/style/style.css +4 -0
- package/dist/es/packages/skeleton/style/style.css +4 -0
- package/dist/es/packages/space/style/style.css +4 -0
- package/dist/es/packages/step/style/style.css +4 -0
- package/dist/es/packages/steps/style/style.css +4 -0
- package/dist/es/packages/sticky/style/style.css +4 -0
- package/dist/es/packages/subsidenavbar/style/style.css +4 -0
- package/dist/es/packages/swipe/style/style.css +4 -0
- package/dist/es/packages/swiper/style/style.css +4 -0
- package/dist/es/packages/swiperitem/style/style.css +4 -0
- package/dist/es/packages/switch/style/style.css +50 -30
- package/dist/es/packages/switch/style/switch.scss +44 -28
- package/dist/es/packages/switch/switch.d.ts +2 -2
- package/dist/es/packages/switch/switch.js +3 -11
- package/dist/es/packages/tabbar/style/style.css +4 -0
- package/dist/es/packages/tabbaritem/style/style.css +4 -0
- package/dist/es/packages/table/style/style.css +4 -0
- package/dist/es/packages/tabpane/style/style.css +4 -0
- package/dist/es/packages/tabpane/tabpane.d.ts +3 -15
- package/dist/es/packages/tabs/style/style.css +53 -85
- package/dist/es/packages/tabs/style/tabs.scss +68 -106
- package/dist/es/packages/tabs/tabs.d.ts +12 -60
- package/dist/es/packages/tag/style/style.css +4 -0
- package/dist/es/packages/textarea/style/style.css +4 -0
- package/dist/es/packages/timedetail/style/style.css +6 -0
- package/dist/es/packages/timedetail/style/timedetail.scss +2 -0
- package/dist/es/packages/timeselect/style/style.css +6 -3
- package/dist/es/packages/timeselect/timeselect.d.ts +9 -45
- package/dist/es/packages/toast/Notification.js +4 -4
- package/dist/es/packages/toast/style/style.css +17 -10
- package/dist/es/packages/toast/style/toast.scss +14 -8
- package/dist/es/packages/tour/style/style.css +18 -5
- package/dist/es/packages/trendarrow/style/style.css +4 -0
- package/dist/es/packages/uploader/style/style.css +4 -0
- package/dist/es/packages/video/style/style.css +4 -0
- package/dist/es/packages/video/video.d.ts +6 -2
- package/dist/es/packages/video/video.js +16 -2
- package/dist/es/packages/virtuallist/style/style.css +4 -0
- package/dist/es/packages/watermark/style/style.css +4 -0
- package/dist/nutui.react.umd.js +333 -263
- package/dist/style.css +1 -1
- package/dist/styles/theme-dark.scss +105 -94
- package/dist/styles/theme-default.scss +97 -90
- package/dist/styles/variables.scss +112 -66
- package/package.json +2 -2
package/dist/nutui.react.umd.js
CHANGED
|
@@ -171,18 +171,18 @@
|
|
|
171
171
|
if (Ce)
|
|
172
172
|
return $;
|
|
173
173
|
Ce = 1;
|
|
174
|
-
var F = React, E = Symbol.for("react.element"), D = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, x = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
175
|
-
function
|
|
174
|
+
var F = React, E = Symbol.for("react.element"), D = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, x = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: true, ref: true, __self: true, __source: true };
|
|
175
|
+
function R(m2, f, T) {
|
|
176
176
|
var d2, h = {}, g = null, P = null;
|
|
177
|
-
|
|
177
|
+
T !== void 0 && (g = "" + T), f.key !== void 0 && (g = "" + f.key), f.ref !== void 0 && (P = f.ref);
|
|
178
178
|
for (d2 in f)
|
|
179
|
-
_.call(f, d2) && !
|
|
179
|
+
_.call(f, d2) && !C.hasOwnProperty(d2) && (h[d2] = f[d2]);
|
|
180
180
|
if (m2 && m2.defaultProps)
|
|
181
181
|
for (d2 in f = m2.defaultProps, f)
|
|
182
182
|
h[d2] === void 0 && (h[d2] = f[d2]);
|
|
183
183
|
return { $$typeof: E, type: m2, key: g, ref: P, props: h, _owner: x.current };
|
|
184
184
|
}
|
|
185
|
-
return $.Fragment = D, $.jsx =
|
|
185
|
+
return $.Fragment = D, $.jsx = R, $.jsxs = R, $;
|
|
186
186
|
}
|
|
187
187
|
var W = {};
|
|
188
188
|
/**
|
|
@@ -197,14 +197,14 @@
|
|
|
197
197
|
var Oe;
|
|
198
198
|
function cr() {
|
|
199
199
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
200
|
-
var F = React, E = Symbol.for("react.element"), D = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"),
|
|
200
|
+
var F = React, E = Symbol.for("react.element"), D = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), m2 = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d2 = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), S = Symbol.iterator, N = "@@iterator";
|
|
201
201
|
function Y(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return null;
|
|
204
204
|
var r = S && e[S] || e[N];
|
|
205
205
|
return typeof r == "function" ? r : null;
|
|
206
206
|
}
|
|
207
|
-
var
|
|
207
|
+
var w = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
208
208
|
function s2(e) {
|
|
209
209
|
{
|
|
210
210
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n2 = 1; n2 < r; n2++)
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
}
|
|
215
215
|
function Se(e, r, t) {
|
|
216
216
|
{
|
|
217
|
-
var n2 =
|
|
217
|
+
var n2 = w.ReactDebugCurrentFrame, i2 = n2.getStackAddendum();
|
|
218
218
|
i2 !== "" && (r += "%s", t = t.concat([i2]));
|
|
219
219
|
var u = t.map(function(o) {
|
|
220
220
|
return String(o);
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
var je = false, ke = false, Fe = false, De = false, Ae = false, re;
|
|
226
226
|
re = Symbol.for("react.module.reference");
|
|
227
227
|
function Ie(e) {
|
|
228
|
-
return !!(typeof e == "string" || typeof e == "function" || e === _ || e ===
|
|
228
|
+
return !!(typeof e == "string" || typeof e == "function" || e === _ || e === C || Ae || e === x || e === T || e === d2 || De || e === P || je || ke || Fe || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === h || e.$$typeof === R || e.$$typeof === m2 || e.$$typeof === f || // This needs to include all possible module reference object
|
|
229
229
|
// types supported by any Flight configuration anywhere since
|
|
230
230
|
// we don't know which Flight build this will end up being used
|
|
231
231
|
// with.
|
|
@@ -253,11 +253,11 @@
|
|
|
253
253
|
return "Fragment";
|
|
254
254
|
case D:
|
|
255
255
|
return "Portal";
|
|
256
|
-
case
|
|
256
|
+
case C:
|
|
257
257
|
return "Profiler";
|
|
258
258
|
case x:
|
|
259
259
|
return "StrictMode";
|
|
260
|
-
case
|
|
260
|
+
case T:
|
|
261
261
|
return "Suspense";
|
|
262
262
|
case d2:
|
|
263
263
|
return "SuspenseList";
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
case m2:
|
|
268
268
|
var r = e;
|
|
269
269
|
return te(r) + ".Consumer";
|
|
270
|
-
case
|
|
270
|
+
case R:
|
|
271
271
|
var t = e;
|
|
272
272
|
return te(t._context) + ".Provider";
|
|
273
273
|
case f:
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
A < 0 && s2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var q =
|
|
351
|
+
var q = w.ReactCurrentDispatcher, J;
|
|
352
352
|
function L(e, r, t) {
|
|
353
353
|
{
|
|
354
354
|
if (J === void 0)
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
if (typeof e == "string")
|
|
454
454
|
return L(e);
|
|
455
455
|
switch (e) {
|
|
456
|
-
case
|
|
456
|
+
case T:
|
|
457
457
|
return L("Suspense");
|
|
458
458
|
case d2:
|
|
459
459
|
return L("SuspenseList");
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
}
|
|
475
475
|
return "";
|
|
476
476
|
}
|
|
477
|
-
var U = Object.prototype.hasOwnProperty, de = {}, ve =
|
|
477
|
+
var U = Object.prototype.hasOwnProperty, de = {}, ve = w.ReactDebugCurrentFrame;
|
|
478
478
|
function B(e) {
|
|
479
479
|
if (e) {
|
|
480
480
|
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
if (qe(e))
|
|
526
526
|
return s2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), pe(e);
|
|
527
527
|
}
|
|
528
|
-
var I =
|
|
528
|
+
var I = w.ReactCurrentOwner, Je = {
|
|
529
529
|
key: true,
|
|
530
530
|
ref: true,
|
|
531
531
|
__self: true,
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
return Ze(e, a, v, i2, n2, I.current, o);
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
var K =
|
|
626
|
+
var K = w.ReactCurrentOwner, be = w.ReactDebugCurrentFrame;
|
|
627
627
|
function j(e) {
|
|
628
628
|
if (e) {
|
|
629
629
|
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
@@ -787,11 +787,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
787
787
|
onClick: () => {
|
|
788
788
|
}
|
|
789
789
|
}, vr = (F) => {
|
|
790
|
-
const E = n$7.classPrefix, { viewBox: D, className: _, style: x, name:
|
|
790
|
+
const E = n$7.classPrefix, { viewBox: D, className: _, style: x, name: C, color: R, width: m2, height: f, children: T, onClick: d2 } = { ...dr, ...F }, h = (s2) => {
|
|
791
791
|
d2 && d2(s2);
|
|
792
|
-
}, g = (s2) => s2 === "" ? "" : isNaN(Number(s2)) ? String(s2) : s2 + "px", P = () => `${E} ${E}-${
|
|
792
|
+
}, g = (s2) => s2 === "" ? "" : isNaN(Number(s2)) ? String(s2) : s2 + "px", P = () => `${E} ${E}-${C} ${_}`, S = {}, N = g(m2 || ""), Y = g(f || "");
|
|
793
793
|
N && (S.width = N), Y && (S.height = Y);
|
|
794
|
-
const
|
|
794
|
+
const w = () => ({
|
|
795
|
+
color: R,
|
|
795
796
|
...x,
|
|
796
797
|
...S
|
|
797
798
|
});
|
|
@@ -799,14 +800,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
799
800
|
"svg",
|
|
800
801
|
{
|
|
801
802
|
className: P(),
|
|
802
|
-
style:
|
|
803
|
+
style: w(),
|
|
803
804
|
onClick: h,
|
|
804
805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
805
|
-
color:
|
|
806
|
+
color: R,
|
|
806
807
|
viewBox: D,
|
|
807
|
-
"aria-labelledby":
|
|
808
|
+
"aria-labelledby": C,
|
|
808
809
|
role: "presentation",
|
|
809
|
-
children:
|
|
810
|
+
children: T
|
|
810
811
|
}
|
|
811
812
|
) });
|
|
812
813
|
}, mr = vr;
|
|
@@ -1332,7 +1333,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1332
1333
|
style: {}
|
|
1333
1334
|
};
|
|
1334
1335
|
var prefixCls$2 = "nut-button";
|
|
1335
|
-
var defaultProps$
|
|
1336
|
+
var defaultProps$1x = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
1336
1337
|
color: "",
|
|
1337
1338
|
type: "default",
|
|
1338
1339
|
size: "normal",
|
|
@@ -1348,7 +1349,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1348
1349
|
}
|
|
1349
1350
|
});
|
|
1350
1351
|
var Button = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
1351
|
-
var _ref = _object_spread({}, defaultProps$
|
|
1352
|
+
var _ref = _object_spread({}, defaultProps$1x, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type2 = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style, nativeType = _ref.nativeType, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
|
|
1352
1353
|
"color",
|
|
1353
1354
|
"shape",
|
|
1354
1355
|
"fill",
|
|
@@ -1408,14 +1409,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1408
1409
|
});
|
|
1409
1410
|
Button.displayName = "NutButton";
|
|
1410
1411
|
var CellGroupContext = React.createContext(null);
|
|
1411
|
-
var defaultProps$
|
|
1412
|
+
var defaultProps$1w = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
1412
1413
|
title: "",
|
|
1413
1414
|
description: "",
|
|
1414
1415
|
divider: true
|
|
1415
1416
|
});
|
|
1416
1417
|
var classPrefix$u = "nut-cell-group";
|
|
1417
1418
|
var CellGroup = function(props) {
|
|
1418
|
-
var _ref = _object_spread({}, defaultProps$
|
|
1419
|
+
var _ref = _object_spread({}, defaultProps$1w, props), children = _ref.children, className = _ref.className, title = _ref.title, description = _ref.description, divider = _ref.divider, rest = _object_without_properties(_ref, [
|
|
1419
1420
|
"children",
|
|
1420
1421
|
"className",
|
|
1421
1422
|
"title",
|
|
@@ -2628,7 +2629,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2628
2629
|
}, children));
|
|
2629
2630
|
};
|
|
2630
2631
|
ConfigProvider.displayName = "NutConfigProvider";
|
|
2631
|
-
var defaultProps$
|
|
2632
|
+
var defaultProps$1v = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
2632
2633
|
title: null,
|
|
2633
2634
|
description: null,
|
|
2634
2635
|
extra: null,
|
|
@@ -2642,7 +2643,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2642
2643
|
var classPrefix$s = "nut-cell";
|
|
2643
2644
|
var Cell = function(props) {
|
|
2644
2645
|
var ctx2 = React.useContext(CellGroupContext);
|
|
2645
|
-
var _ref = _object_spread({}, defaultProps$
|
|
2646
|
+
var _ref = _object_spread({}, defaultProps$1v, props), children = _ref.children, clickable = _ref.clickable, onClick = _ref.onClick, title = _ref.title, description = _ref.description, extra = _ref.extra, radius = _ref.radius, align = _ref.align, isLast = _ref.isLast, className = _ref.className, style = _ref.style, rest = _object_without_properties(_ref, [
|
|
2646
2647
|
"children",
|
|
2647
2648
|
"clickable",
|
|
2648
2649
|
"onClick",
|
|
@@ -2738,7 +2739,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2738
2739
|
function _sliced_to_array(arr, i2) {
|
|
2739
2740
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i2) || _unsupported_iterable_to_array(arr, i2) || _non_iterable_rest();
|
|
2740
2741
|
}
|
|
2741
|
-
var defaultProps$
|
|
2742
|
+
var defaultProps$1u = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
2742
2743
|
fit: "fill",
|
|
2743
2744
|
position: "center",
|
|
2744
2745
|
alt: "",
|
|
@@ -2750,7 +2751,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2750
2751
|
});
|
|
2751
2752
|
var classPrefix$r = "nut-image";
|
|
2752
2753
|
var Image$1 = function(props) {
|
|
2753
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
2754
|
+
var _$_object_spread = _object_spread({}, defaultProps$1u, props), className = _$_object_spread.className, style = _$_object_spread.style, src = _$_object_spread.src, fit = _$_object_spread.fit, position = _$_object_spread.position, alt = _$_object_spread.alt, width = _$_object_spread.width, height = _$_object_spread.height, radius = _$_object_spread.radius, error = _$_object_spread.error, loading = _$_object_spread.loading, lazy = _$_object_spread.lazy, draggable = _$_object_spread.draggable, onClick = _$_object_spread.onClick, onLoad = _$_object_spread.onLoad, onError = _$_object_spread.onError;
|
|
2754
2755
|
var _useState = _sliced_to_array(React.useState(false), 2), innerLoading = _useState[0], setInnerLoading = _useState[1];
|
|
2755
2756
|
var _useState1 = _sliced_to_array(React.useState(false), 2), isError = _useState1[0], setIsError = _useState1[1];
|
|
2756
2757
|
var _useState2 = _sliced_to_array(React.useState(false), 2), complete = _useState2[0], setComplete = _useState2[1];
|
|
@@ -4729,19 +4730,6 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4729
4730
|
}
|
|
4730
4731
|
return getAllScrollableParents(element.parentElement, scrollableParents);
|
|
4731
4732
|
}
|
|
4732
|
-
var passiveSupported = false;
|
|
4733
|
-
if (canUseDom) {
|
|
4734
|
-
try {
|
|
4735
|
-
var opts = Object.defineProperty({}, "passive", {
|
|
4736
|
-
get: function get() {
|
|
4737
|
-
passiveSupported = true;
|
|
4738
|
-
}
|
|
4739
|
-
});
|
|
4740
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
4741
|
-
} catch (e) {
|
|
4742
|
-
console.log(e);
|
|
4743
|
-
}
|
|
4744
|
-
}
|
|
4745
4733
|
var totalLockCount = 0;
|
|
4746
4734
|
var BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
4747
4735
|
function getScrollableElement(el) {
|
|
@@ -4783,9 +4771,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4783
4771
|
};
|
|
4784
4772
|
var lock = function() {
|
|
4785
4773
|
document.addEventListener("touchstart", touch.start);
|
|
4786
|
-
document.addEventListener("touchmove", onTouchMove,
|
|
4787
|
-
passive: false
|
|
4788
|
-
} : false);
|
|
4774
|
+
document.addEventListener("touchmove", onTouchMove, false);
|
|
4789
4775
|
if (!totalLockCount) {
|
|
4790
4776
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
4791
4777
|
}
|
|
@@ -4882,7 +4868,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4882
4868
|
};
|
|
4883
4869
|
Overlay.displayName = "NutOverlay";
|
|
4884
4870
|
var DataContext$1 = React.createContext({});
|
|
4885
|
-
var defaultProps$
|
|
4871
|
+
var defaultProps$1t = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
4886
4872
|
span: "24",
|
|
4887
4873
|
offset: "0",
|
|
4888
4874
|
gutter: "0",
|
|
@@ -4890,7 +4876,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4890
4876
|
isLast: false
|
|
4891
4877
|
});
|
|
4892
4878
|
var Col = function(props) {
|
|
4893
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
4879
|
+
var _$_object_spread = _object_spread({}, defaultProps$1t, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
|
|
4894
4880
|
var _useState = _sliced_to_array(React.useState(""), 2), colName = _useState[0], setColName = _useState[1];
|
|
4895
4881
|
var _useState1 = _sliced_to_array(React.useState({}), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
|
|
4896
4882
|
var gutter = React.useContext(DataContext$1).gutter;
|
|
@@ -4925,13 +4911,13 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4925
4911
|
}, children);
|
|
4926
4912
|
};
|
|
4927
4913
|
Col.displayName = "NutCol";
|
|
4928
|
-
var defaultProps$
|
|
4914
|
+
var defaultProps$1s = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
4929
4915
|
contentPosition: "center",
|
|
4930
4916
|
direction: "horizontal"
|
|
4931
4917
|
});
|
|
4932
4918
|
var classPrefix$q = "nut-divider";
|
|
4933
4919
|
var Divider = function(props) {
|
|
4934
|
-
var _ref = _object_spread({}, defaultProps$
|
|
4920
|
+
var _ref = _object_spread({}, defaultProps$1s, props), children = _ref.children, contentPosition = _ref.contentPosition, style = _ref.style, className = _ref.className, direction = _ref.direction, rest = _object_without_properties(_ref, [
|
|
4935
4921
|
"children",
|
|
4936
4922
|
"contentPosition",
|
|
4937
4923
|
"style",
|
|
@@ -4969,7 +4955,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4969
4955
|
var pxCheck = function(value) {
|
|
4970
4956
|
return parseFloat(value.toString());
|
|
4971
4957
|
};
|
|
4972
|
-
var defaultProps$
|
|
4958
|
+
var defaultProps$1r = {
|
|
4973
4959
|
text: "",
|
|
4974
4960
|
columns: 4,
|
|
4975
4961
|
gap: 9,
|
|
@@ -4979,7 +4965,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4979
4965
|
direction: "vertical"
|
|
4980
4966
|
};
|
|
4981
4967
|
var GridItem = function(props) {
|
|
4982
|
-
var _ref = _object_spread({}, defaultProps$
|
|
4968
|
+
var _ref = _object_spread({}, defaultProps$1r, props), children = _ref.children, style = _ref.style, columns = _ref.columns, index = _ref.index, gap = _ref.gap, square = _ref.square, text = _ref.text, center = _ref.center, reverse = _ref.reverse, direction = _ref.direction, className = _ref.className, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
|
|
4983
4969
|
"children",
|
|
4984
4970
|
"style",
|
|
4985
4971
|
"columns",
|
|
@@ -5049,7 +5035,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5049
5035
|
}, text)));
|
|
5050
5036
|
};
|
|
5051
5037
|
GridItem.displayName = "NutGridItem";
|
|
5052
|
-
var defaultProps$
|
|
5038
|
+
var defaultProps$1q = {
|
|
5053
5039
|
columns: 4,
|
|
5054
5040
|
gap: 9,
|
|
5055
5041
|
center: true,
|
|
@@ -5058,7 +5044,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5058
5044
|
direction: "vertical"
|
|
5059
5045
|
};
|
|
5060
5046
|
var Grid = function(props) {
|
|
5061
|
-
var _ref = _object_spread({}, defaultProps$
|
|
5047
|
+
var _ref = _object_spread({}, defaultProps$1q, props), children = _ref.children, columns = _ref.columns, gap = _ref.gap, center = _ref.center, square = _ref.square, reverse = _ref.reverse, direction = _ref.direction, style = _ref.style, className = _ref.className, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
|
|
5062
5048
|
"children",
|
|
5063
5049
|
"columns",
|
|
5064
5050
|
"gap",
|
|
@@ -5110,7 +5096,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5110
5096
|
};
|
|
5111
5097
|
Layout.displayName = "NutLayout";
|
|
5112
5098
|
var classPrefix$p = "nut-row";
|
|
5113
|
-
var defaultProps$
|
|
5099
|
+
var defaultProps$1p = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
5114
5100
|
type: "",
|
|
5115
5101
|
justify: "start",
|
|
5116
5102
|
align: "flex-start",
|
|
@@ -5118,7 +5104,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5118
5104
|
gutter: "0"
|
|
5119
5105
|
});
|
|
5120
5106
|
var Row = function(props) {
|
|
5121
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
5107
|
+
var _$_object_spread = _object_spread({}, defaultProps$1p, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, type2 = _$_object_spread.type, justify = _$_object_spread.justify, align = _$_object_spread.align, wrap = _$_object_spread.wrap, gutter = _$_object_spread.gutter, onClick = _$_object_spread.onClick;
|
|
5122
5108
|
var getClass = function(prefix2, type3) {
|
|
5123
5109
|
var classType = type3 ? "nut-row-".concat(prefix2, "-").concat(type3) : "";
|
|
5124
5110
|
if (prefix2) return classType;
|
|
@@ -5149,11 +5135,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5149
5135
|
};
|
|
5150
5136
|
Row.displayName = "NutRow";
|
|
5151
5137
|
var prefixCls$1 = "nut-space";
|
|
5152
|
-
var defaultProps$
|
|
5138
|
+
var defaultProps$1o = {
|
|
5153
5139
|
direction: "horizontal"
|
|
5154
5140
|
};
|
|
5155
5141
|
var Space = function(props) {
|
|
5156
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
5142
|
+
var _$_object_spread = _object_spread({}, defaultProps$1o, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, wrap = _$_object_spread.wrap, align = _$_object_spread.align, direction = _$_object_spread.direction, justify = _$_object_spread.justify;
|
|
5157
5143
|
var _obj;
|
|
5158
5144
|
var cls = classNames(prefixCls$1, (_obj = {}, _define_property(_obj, "".concat(prefixCls$1, "-").concat(direction), direction), _define_property(_obj, "".concat(prefixCls$1, "-").concat(direction, "-wrap"), wrap), _define_property(_obj, "".concat(prefixCls$1, "-align-").concat(align), align), _define_property(_obj, "".concat(prefixCls$1, "-justify-").concat(justify), justify), _define_property(_obj, "".concat(className), className), _obj));
|
|
5159
5145
|
var _obj1;
|
|
@@ -5229,14 +5215,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5229
5215
|
stop2.current = true;
|
|
5230
5216
|
};
|
|
5231
5217
|
}
|
|
5232
|
-
var defaultProps$
|
|
5218
|
+
var defaultProps$1n = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
5233
5219
|
position: "top",
|
|
5234
5220
|
threshold: 0,
|
|
5235
5221
|
zIndex: 900
|
|
5236
5222
|
});
|
|
5237
5223
|
var classPrefix$o = "nut-sticky";
|
|
5238
5224
|
var Sticky = function(props) {
|
|
5239
|
-
var _ref = _object_spread({}, defaultProps$
|
|
5225
|
+
var _ref = _object_spread({}, defaultProps$1n, props), position = _ref.position, zIndex = _ref.zIndex, children = _ref.children, container = _ref.container, style = _ref.style, className = _ref.className, threshold = _ref.threshold, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
|
|
5240
5226
|
"position",
|
|
5241
5227
|
"zIndex",
|
|
5242
5228
|
"children",
|
|
@@ -5383,7 +5369,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5383
5369
|
return !!right[Symbol.hasInstance](left);
|
|
5384
5370
|
} else return left instanceof right;
|
|
5385
5371
|
}
|
|
5386
|
-
var defaultProps$
|
|
5372
|
+
var defaultProps$1m = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
5387
5373
|
target: "",
|
|
5388
5374
|
threshold: 200,
|
|
5389
5375
|
zIndex: 900,
|
|
@@ -5391,7 +5377,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5391
5377
|
});
|
|
5392
5378
|
var BackTop = function(props) {
|
|
5393
5379
|
var rtl = useRtl();
|
|
5394
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
5380
|
+
var _$_object_spread = _object_spread({}, defaultProps$1m, props), children = _$_object_spread.children, target = _$_object_spread.target, threshold = _$_object_spread.threshold, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, duration = _$_object_spread.duration, style = _$_object_spread.style, onClick = _$_object_spread.onClick;
|
|
5395
5381
|
var classPrefix2 = "nut-backtop";
|
|
5396
5382
|
var _useState = _sliced_to_array(React.useState(false), 2), backTop = _useState[0], setBackTop = _useState[1];
|
|
5397
5383
|
var _useState1 = _sliced_to_array(React.useState(0), 2), scrollTop = _useState1[0], setScrollTop = _useState1[1];
|
|
@@ -10418,7 +10404,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10418
10404
|
});
|
|
10419
10405
|
const animated = host.animated;
|
|
10420
10406
|
var elevatorContext = /* @__PURE__ */ React.createContext({});
|
|
10421
|
-
var defaultProps$
|
|
10407
|
+
var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10422
10408
|
height: "200px",
|
|
10423
10409
|
floorKey: "title",
|
|
10424
10410
|
list: [],
|
|
@@ -10428,7 +10414,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10428
10414
|
showKeys: true
|
|
10429
10415
|
});
|
|
10430
10416
|
var Elevator = function(props) {
|
|
10431
|
-
var _ref = _object_spread({}, defaultProps$
|
|
10417
|
+
var _ref = _object_spread({}, defaultProps$1l, props), height = _ref.height, floorKey = _ref.floorKey, list = _ref.list, sticky = _ref.sticky, spaceHeight = _ref.spaceHeight;
|
|
10432
10418
|
_ref.titleHeight;
|
|
10433
10419
|
var showKeys = _ref.showKeys, className = _ref.className, style = _ref.style, onItemClick = _ref.onItemClick, onIndexClick = _ref.onIndexClick, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
10434
10420
|
"height",
|
|
@@ -10624,7 +10610,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10624
10610
|
};
|
|
10625
10611
|
Elevator.displayName = "NutElevator";
|
|
10626
10612
|
Elevator.Context = elevatorContext;
|
|
10627
|
-
var defaultProps$
|
|
10613
|
+
var defaultProps$1k = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10628
10614
|
activeText: "",
|
|
10629
10615
|
inactiveText: "",
|
|
10630
10616
|
type: "right",
|
|
@@ -10635,7 +10621,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10635
10621
|
});
|
|
10636
10622
|
var FixedNav = function(props) {
|
|
10637
10623
|
var locale = useConfig().locale;
|
|
10638
|
-
var _ref = _object_spread({}, defaultProps$
|
|
10624
|
+
var _ref = _object_spread({}, defaultProps$1k, props), className = _ref.className, overlay = _ref.overlay, visible = _ref.visible, list = _ref.list, activeText = _ref.activeText, inactiveText = _ref.inactiveText, position = _ref.position, onChange = _ref.onChange, onSelect = _ref.onSelect, type2 = _ref.type, children = _ref.children, style = _ref.style, content = _ref.content, rest = _object_without_properties(_ref, [
|
|
10639
10625
|
"className",
|
|
10640
10626
|
"overlay",
|
|
10641
10627
|
"visible",
|
|
@@ -10703,42 +10689,56 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10703
10689
|
}, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText))));
|
|
10704
10690
|
};
|
|
10705
10691
|
FixedNav.displayName = "NutFixedNav";
|
|
10706
|
-
var
|
|
10692
|
+
var getIcon = function(icon) {
|
|
10693
|
+
return React.isValidElement(icon) ? React.cloneElement(icon, {
|
|
10694
|
+
// @ts-ignore
|
|
10695
|
+
className: "nut-icon"
|
|
10696
|
+
}) : icon;
|
|
10697
|
+
};
|
|
10698
|
+
var defaultProps$1j = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10707
10699
|
icon: null,
|
|
10708
10700
|
onClick: function(event) {
|
|
10709
10701
|
}
|
|
10710
10702
|
});
|
|
10711
10703
|
var classPrefix$m = "nut-hoverbutton-item";
|
|
10712
10704
|
var HoverButtonItem = function(props) {
|
|
10713
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
10705
|
+
var _$_object_spread = _object_spread({}, defaultProps$1j, props), className = _$_object_spread.className, children = _$_object_spread.children, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
|
|
10714
10706
|
var handleClick2 = function(event) {
|
|
10715
10707
|
if (onClick) {
|
|
10716
10708
|
onClick(event);
|
|
10717
10709
|
}
|
|
10718
10710
|
};
|
|
10711
|
+
var renderBody = function() {
|
|
10712
|
+
if (icon && !children) return /* @__PURE__ */ React.createElement("div", {
|
|
10713
|
+
className: "".concat(classPrefix$m, "-icon")
|
|
10714
|
+
}, getIcon(icon));
|
|
10715
|
+
if (icon && children) {
|
|
10716
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
10717
|
+
className: classNames(_define_property({}, "".concat(classPrefix$m, "-text-icon"), true))
|
|
10718
|
+
}), getIcon(icon), /* @__PURE__ */ React.createElement("div", {
|
|
10719
|
+
className: classNames(_define_property({}, "".concat(classPrefix$m, "-text"), true))
|
|
10720
|
+
}, children));
|
|
10721
|
+
}
|
|
10722
|
+
};
|
|
10719
10723
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10720
10724
|
className: classNames([
|
|
10721
10725
|
"".concat(classPrefix$m, "-container"),
|
|
10722
10726
|
className
|
|
10723
|
-
]),
|
|
10727
|
+
], _define_property({}, "".concat(classPrefix$m, "-container-icontext"), icon && children)),
|
|
10724
10728
|
style,
|
|
10725
10729
|
onClick: handleClick2
|
|
10726
|
-
},
|
|
10727
|
-
className: "".concat(classPrefix$m, "-icon")
|
|
10728
|
-
}, /* @__PURE__ */ React.isValidElement(icon) ? /* @__PURE__ */ React.cloneElement(icon, {
|
|
10729
|
-
// @ts-ignore
|
|
10730
|
-
size: 20
|
|
10731
|
-
}) : icon));
|
|
10730
|
+
}, renderBody());
|
|
10732
10731
|
};
|
|
10733
10732
|
HoverButtonItem.displayName = "NutHoverButtonItem";
|
|
10734
|
-
var
|
|
10733
|
+
var UI_BOTTOM_DISTANCE = 60;
|
|
10734
|
+
var defaultProps$1i = _object_spread({}, ComponentDefaults);
|
|
10735
10735
|
var classPrefix$l = "nut-hoverbutton";
|
|
10736
10736
|
var HoverButton = function(props) {
|
|
10737
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
10737
|
+
var _$_object_spread = _object_spread({}, defaultProps$1i, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, tabbarHeight = _$_object_spread.tabbarHeight, className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
|
|
10738
10738
|
var rtl = useRtl();
|
|
10739
10739
|
var baseStyle = _object_spread({}, style);
|
|
10740
10740
|
if (tabbarHeight) {
|
|
10741
|
-
var bottom = tabbarHeight +
|
|
10741
|
+
var bottom = tabbarHeight + UI_BOTTOM_DISTANCE;
|
|
10742
10742
|
baseStyle.bottom = "".concat(bottom, "px");
|
|
10743
10743
|
}
|
|
10744
10744
|
if (typeof zIndex !== "undefined") {
|
|
@@ -10761,7 +10761,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10761
10761
|
};
|
|
10762
10762
|
HoverButton.displayName = "NutHoverButton";
|
|
10763
10763
|
HoverButton.Item = HoverButtonItem;
|
|
10764
|
-
var defaultProps$
|
|
10764
|
+
var defaultProps$1h = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10765
10765
|
left: "",
|
|
10766
10766
|
right: "",
|
|
10767
10767
|
titleAlign: "center",
|
|
@@ -10772,7 +10772,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10772
10772
|
zIndex: 10
|
|
10773
10773
|
});
|
|
10774
10774
|
var NavBar = function(props) {
|
|
10775
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
10775
|
+
var _$_object_spread = _object_spread({}, defaultProps$1h, props), right = _$_object_spread.right, left = _$_object_spread.left, titleAlign = _$_object_spread.titleAlign, className = _$_object_spread.className, style = _$_object_spread.style, back = _$_object_spread.back, fixed = _$_object_spread.fixed, safeAreaInsetTop = _$_object_spread.safeAreaInsetTop, placeholder = _$_object_spread.placeholder, zIndex = _$_object_spread.zIndex, onBackClick = _$_object_spread.onBackClick;
|
|
10776
10776
|
var classPrefix2 = "nut-navbar";
|
|
10777
10777
|
var rtl = useRtl();
|
|
10778
10778
|
var children = Array.isArray(props.children) ? props.children : [
|
|
@@ -10868,7 +10868,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10868
10868
|
}, renderWrapper()) : renderWrapper());
|
|
10869
10869
|
};
|
|
10870
10870
|
NavBar.displayName = "NutNavBar";
|
|
10871
|
-
var defaultProps$
|
|
10871
|
+
var defaultProps$1g = _object_spread(_object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10872
10872
|
position: "center",
|
|
10873
10873
|
transition: "",
|
|
10874
10874
|
overlayStyle: {},
|
|
@@ -10893,7 +10893,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10893
10893
|
}), defaultOverlayProps);
|
|
10894
10894
|
var _zIndex = 1100;
|
|
10895
10895
|
var Popup = function(props) {
|
|
10896
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
10896
|
+
var _$_object_spread = _object_spread({}, defaultProps$1g, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left = _$_object_spread.left, title = _$_object_spread.title, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick;
|
|
10897
10897
|
var nodeRef = React.useRef(null);
|
|
10898
10898
|
var innerIndex = zIndex || _zIndex;
|
|
10899
10899
|
var _useState = _sliced_to_array(React.useState(innerIndex), 2), index = _useState[0], setIndex = _useState[1];
|
|
@@ -11045,13 +11045,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11045
11045
|
}
|
|
11046
11046
|
};
|
|
11047
11047
|
var OffsetContext = React.createContext(20);
|
|
11048
|
-
var defaultProps$
|
|
11048
|
+
var defaultProps$1f = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11049
11049
|
position: "left",
|
|
11050
11050
|
width: "80%"
|
|
11051
11051
|
});
|
|
11052
11052
|
var SideNavBar = function(props) {
|
|
11053
11053
|
var classPrefix2 = "nut-sidenavbar";
|
|
11054
|
-
var _ref = _object_spread({}, defaultProps$
|
|
11054
|
+
var _ref = _object_spread({}, defaultProps$1f, props), title = _ref.title, visible = _ref.visible, width = _ref.width, position = _ref.position, children = _ref.children, className = _ref.className, onClose = _ref.onClose, indent = _ref.indent, rest = _object_without_properties(_ref, [
|
|
11055
11055
|
"title",
|
|
11056
11056
|
"visible",
|
|
11057
11057
|
"width",
|
|
@@ -11113,12 +11113,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11113
11113
|
onClick: clickFn
|
|
11114
11114
|
}, rest), title);
|
|
11115
11115
|
};
|
|
11116
|
-
var defaultProps$
|
|
11116
|
+
var defaultProps$1e = {
|
|
11117
11117
|
open: true
|
|
11118
11118
|
};
|
|
11119
11119
|
var SubSideNavBar = function(props) {
|
|
11120
11120
|
var classPrefix2 = "nut-subsidenavbar";
|
|
11121
|
-
var _ref = _object_spread({}, defaultProps$
|
|
11121
|
+
var _ref = _object_spread({}, defaultProps$1e, props), title = _ref.title, value = _ref.value, children = _ref.children, onClick = _ref.onClick, open = _ref.open, rest = _object_without_properties(_ref, [
|
|
11122
11122
|
"title",
|
|
11123
11123
|
"value",
|
|
11124
11124
|
"children",
|
|
@@ -11221,7 +11221,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11221
11221
|
"@swc/helpers - typeof";
|
|
11222
11222
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11223
11223
|
}
|
|
11224
|
-
var defaultProps$
|
|
11224
|
+
var defaultProps$1d = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11225
11225
|
value: "",
|
|
11226
11226
|
dot: false,
|
|
11227
11227
|
max: 99,
|
|
@@ -11249,7 +11249,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11249
11249
|
};
|
|
11250
11250
|
var _this;
|
|
11251
11251
|
var rtl = useRtl();
|
|
11252
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
11252
|
+
var _$_object_spread = _object_spread({}, defaultProps$1d, props), className = _$_object_spread.className, style = _$_object_spread.style, value = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right = _$_object_spread.right, color = _$_object_spread.color, fill = _$_object_spread.fill;
|
|
11253
11253
|
var classPrefix2 = "nut-badge";
|
|
11254
11254
|
var classes = classNames(classPrefix2, className, _define_property({}, "".concat(classPrefix2, "-").concat(fill), fill === "outline"));
|
|
11255
11255
|
var _obj;
|
|
@@ -11286,7 +11286,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11286
11286
|
};
|
|
11287
11287
|
Badge.displayName = "NutBadge";
|
|
11288
11288
|
const TabbarContext = React.createContext(null);
|
|
11289
|
-
var defaultProps$
|
|
11289
|
+
var defaultProps$1c = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11290
11290
|
title: "",
|
|
11291
11291
|
icon: null,
|
|
11292
11292
|
value: "",
|
|
@@ -11297,7 +11297,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11297
11297
|
});
|
|
11298
11298
|
var TabbarItem = function(props) {
|
|
11299
11299
|
var ctx2 = React.useContext(TabbarContext);
|
|
11300
|
-
var _ref = _object_spread({}, defaultProps$
|
|
11300
|
+
var _ref = _object_spread({}, defaultProps$1c, props), className = _ref.className, style = _ref.style, title = _ref.title, icon = _ref.icon, value = _ref.value, dot = _ref.dot, max = _ref.max, top = _ref.top, right = _ref.right, index = _ref.index, rest = _object_without_properties(_ref, [
|
|
11301
11301
|
"className",
|
|
11302
11302
|
"style",
|
|
11303
11303
|
"title",
|
|
@@ -11338,7 +11338,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11338
11338
|
className: titleClass
|
|
11339
11339
|
}, title)));
|
|
11340
11340
|
};
|
|
11341
|
-
var defaultProps$
|
|
11341
|
+
var defaultProps$1b = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11342
11342
|
defaultValue: 0,
|
|
11343
11343
|
fixed: false,
|
|
11344
11344
|
inactiveColor: "",
|
|
@@ -11348,7 +11348,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11348
11348
|
}
|
|
11349
11349
|
});
|
|
11350
11350
|
var Tabbar = function(props) {
|
|
11351
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
11351
|
+
var _$_object_spread = _object_spread({}, defaultProps$1b, props), children = _$_object_spread.children, defaultValue = _$_object_spread.defaultValue, value = _$_object_spread.value, fixed = _$_object_spread.fixed, activeColor = _$_object_spread.activeColor, inactiveColor = _$_object_spread.inactiveColor, safeArea = _$_object_spread.safeArea, className = _$_object_spread.className, style = _$_object_spread.style, onSwitch = _$_object_spread.onSwitch;
|
|
11352
11352
|
var classPrefix2 = "nut-tabbar";
|
|
11353
11353
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
11354
11354
|
value,
|
|
@@ -11379,13 +11379,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11379
11379
|
};
|
|
11380
11380
|
Tabbar.displayName = "NutTabbar";
|
|
11381
11381
|
Tabbar.Item = TabbarItem;
|
|
11382
|
-
var defaultProps$
|
|
11382
|
+
var defaultProps$1a = {
|
|
11383
11383
|
title: "",
|
|
11384
11384
|
value: "",
|
|
11385
11385
|
disabled: false
|
|
11386
11386
|
};
|
|
11387
11387
|
var TabPane = function(props) {
|
|
11388
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
11388
|
+
var _$_object_spread = _object_spread({}, defaultProps$1a, props), children = _$_object_spread.children, autoHeightClassName = _$_object_spread.autoHeightClassName, className = _$_object_spread.className, disabled = _$_object_spread.disabled;
|
|
11389
11389
|
var classPrefix2 = "nut-tabpane";
|
|
11390
11390
|
var classes = classNames(classPrefix2, {
|
|
11391
11391
|
active: !disabled && props.active
|
|
@@ -11394,7 +11394,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11394
11394
|
className: classes
|
|
11395
11395
|
}, !disabled && children) : null;
|
|
11396
11396
|
};
|
|
11397
|
-
var defaultProps$
|
|
11397
|
+
var defaultProps$19 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11398
11398
|
tabStyle: {},
|
|
11399
11399
|
activeColor: "",
|
|
11400
11400
|
direction: "horizontal",
|
|
@@ -11405,7 +11405,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11405
11405
|
var classPrefix$k = "nut-tabs";
|
|
11406
11406
|
var Tabs = function(props) {
|
|
11407
11407
|
var rtl = useRtl();
|
|
11408
|
-
var _ref = _object_spread({}, defaultProps$
|
|
11408
|
+
var _ref = _object_spread({}, defaultProps$19, props), activeColor = _ref.activeColor, tabStyle = _ref.tabStyle, direction = _ref.direction, activeType = _ref.activeType, duration = _ref.duration, align = _ref.align, title = _ref.title, children = _ref.children, onClick = _ref.onClick, onChange = _ref.onChange, className = _ref.className, autoHeight = _ref.autoHeight, outerValue = _ref.value, outerDefaultValue = _ref.defaultValue, rest = _object_without_properties(_ref, [
|
|
11409
11409
|
"activeColor",
|
|
11410
11410
|
"tabStyle",
|
|
11411
11411
|
"direction",
|
|
@@ -11868,7 +11868,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11868
11868
|
]);
|
|
11869
11869
|
return Tree2;
|
|
11870
11870
|
}();
|
|
11871
|
-
var defaultProps$
|
|
11871
|
+
var defaultProps$18 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11872
11872
|
activeColor: "",
|
|
11873
11873
|
activeIcon: "checklist",
|
|
11874
11874
|
popup: true,
|
|
@@ -11894,7 +11894,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11894
11894
|
});
|
|
11895
11895
|
var InternalCascader = function(props, ref) {
|
|
11896
11896
|
var locale = useConfig().locale;
|
|
11897
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
11897
|
+
var _$_object_spread = _object_spread({}, defaultProps$18, props), className = _$_object_spread.className, style = _$_object_spread.style, activeColor = _$_object_spread.activeColor, activeIcon = _$_object_spread.activeIcon, popup = _$_object_spread.popup, _object_spread_popupProps = _$_object_spread.popupProps, popupProps = _object_spread_popupProps === void 0 ? {} : _object_spread_popupProps, visible = _$_object_spread.visible, options2 = _$_object_spread.options, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, optionKey = _$_object_spread.optionKey, format2 = _$_object_spread.format, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, lazy = _$_object_spread.lazy, title = _$_object_spread.title, left = _$_object_spread.left, onLoad = _$_object_spread.onLoad, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange, onPathChange = _$_object_spread.onPathChange;
|
|
11898
11898
|
var _useState = _sliced_to_array(React.useState("c1"), 2), tabvalue = _useState[0], setTabvalue = _useState[1];
|
|
11899
11899
|
var _useState1 = _sliced_to_array(React.useState([]), 2), optionsData = _useState1[0], setOptionsData = _useState1[1];
|
|
11900
11900
|
var isLazy = function() {
|
|
@@ -12349,7 +12349,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12349
12349
|
};
|
|
12350
12350
|
var Cascader = /* @__PURE__ */ React.forwardRef(InternalCascader);
|
|
12351
12351
|
Cascader.displayName = "NutCascader";
|
|
12352
|
-
var defaultProps$
|
|
12352
|
+
var defaultProps$17 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12353
12353
|
visible: false,
|
|
12354
12354
|
type: "custom",
|
|
12355
12355
|
options: [],
|
|
@@ -12362,7 +12362,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12362
12362
|
height: "200px"
|
|
12363
12363
|
});
|
|
12364
12364
|
var CustomRender = function(props) {
|
|
12365
|
-
var _ref = _object_spread({}, defaultProps$
|
|
12365
|
+
var _ref = _object_spread({}, defaultProps$17, props);
|
|
12366
12366
|
_ref.children;
|
|
12367
12367
|
var visible = _ref.visible, type2 = _ref.type;
|
|
12368
12368
|
_ref.height;
|
|
@@ -12400,7 +12400,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12400
12400
|
onPathChange
|
|
12401
12401
|
}, rest)));
|
|
12402
12402
|
};
|
|
12403
|
-
var defaultProps$
|
|
12403
|
+
var defaultProps$16 = {
|
|
12404
12404
|
type: "custom",
|
|
12405
12405
|
existList: [],
|
|
12406
12406
|
defaultIcon: null,
|
|
@@ -12409,7 +12409,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12409
12409
|
};
|
|
12410
12410
|
var ExistRender = function(props) {
|
|
12411
12411
|
var locale = useConfig().locale;
|
|
12412
|
-
var _ref = _object_spread({}, defaultProps$
|
|
12412
|
+
var _ref = _object_spread({}, defaultProps$16, props);
|
|
12413
12413
|
_ref.children;
|
|
12414
12414
|
var type2 = _ref.type, existList = _ref.existList, selectIcon = _ref.selectIcon, defaultIcon = _ref.defaultIcon, custom = _ref.custom, onSelect = _ref.onSelect, onSwitch = _ref.onSwitch;
|
|
12415
12415
|
_object_without_properties(_ref, [
|
|
@@ -12458,7 +12458,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12458
12458
|
className: "".concat(classPrefix2, "-footer-btn")
|
|
12459
12459
|
}, custom)));
|
|
12460
12460
|
};
|
|
12461
|
-
var defaultProps$
|
|
12461
|
+
var defaultProps$15 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12462
12462
|
defaultValue: [],
|
|
12463
12463
|
type: "custom",
|
|
12464
12464
|
options: [],
|
|
@@ -12478,7 +12478,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12478
12478
|
});
|
|
12479
12479
|
var InternalAddress = function(props, ref) {
|
|
12480
12480
|
var locale = useConfig().locale;
|
|
12481
|
-
var _ref = _object_spread({}, defaultProps$
|
|
12481
|
+
var _ref = _object_spread({}, defaultProps$15, props), style = _ref.style, className = _ref.className, visible = _ref.visible, defaultVisible = _ref.defaultVisible, defaultValue = _ref.defaultValue;
|
|
12482
12482
|
_ref.children;
|
|
12483
12483
|
var type2 = _ref.type, options2 = _ref.options, optionKey = _ref.optionKey, format2 = _ref.format, height = _ref.height, title = _ref.title, existList = _ref.existList, custom = _ref.custom, selectIcon = _ref.selectIcon, defaultIcon = _ref.defaultIcon, closeIcon = _ref.closeIcon, backIcon = _ref.backIcon, onChange = _ref.onChange, onExistSelect = _ref.onExistSelect, onClose = _ref.onClose, onSwitch = _ref.onSwitch;
|
|
12484
12484
|
_object_without_properties(_ref, [
|
|
@@ -12859,7 +12859,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12859
12859
|
var isStartAndEnd = function(days) {
|
|
12860
12860
|
return days.length >= 2 && Utils$1.isEqual(days[0], days[1]);
|
|
12861
12861
|
};
|
|
12862
|
-
var defaultProps$
|
|
12862
|
+
var defaultProps$14 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12863
12863
|
type: "single",
|
|
12864
12864
|
autoBackfill: false,
|
|
12865
12865
|
popup: true,
|
|
@@ -12892,7 +12892,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12892
12892
|
});
|
|
12893
12893
|
var CalendarItem = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
12894
12894
|
var locale = useConfig().locale;
|
|
12895
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
12895
|
+
var _$_object_spread = _object_spread({}, defaultProps$14, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderBottomButton = _$_object_spread.renderBottomButton, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, value = _$_object_spread.value, onConfirm = _$_object_spread.onConfirm, onUpdate = _$_object_spread.onUpdate, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
|
|
12896
12896
|
var weekdays = locale.calendaritem.weekdays;
|
|
12897
12897
|
var weeks = _to_consumable_array(weekdays.slice(firstDayOfWeek, 7)).concat(_to_consumable_array(weekdays.slice(0, firstDayOfWeek)));
|
|
12898
12898
|
var monthTitle = locale.calendaritem.monthTitle;
|
|
@@ -13452,7 +13452,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13452
13452
|
}, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : "");
|
|
13453
13453
|
});
|
|
13454
13454
|
CalendarItem.displayName = "NutCalendarItem";
|
|
13455
|
-
var defaultProps$
|
|
13455
|
+
var defaultProps$13 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13456
13456
|
type: "single",
|
|
13457
13457
|
autoBackfill: false,
|
|
13458
13458
|
popup: true,
|
|
@@ -13487,7 +13487,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13487
13487
|
});
|
|
13488
13488
|
var Calendar = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
13489
13489
|
var locale = useConfig().locale;
|
|
13490
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
13490
|
+
var _$_object_spread = _object_spread({}, defaultProps$13, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, visible = _$_object_spread.visible, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, closeIcon = _$_object_spread.closeIcon, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderBottomButton = _$_object_spread.renderBottomButton, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onClose = _$_object_spread.onClose, onConfirm = _$_object_spread.onConfirm, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
|
|
13491
13491
|
var calendarRef = React.useRef(null);
|
|
13492
13492
|
var close = function() {
|
|
13493
13493
|
onClose && onClose();
|
|
@@ -13654,14 +13654,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13654
13654
|
convertDateToDay(new Date(current.getTime() + 24 * 60 * 60 * 1e3 * (6 - count)))
|
|
13655
13655
|
];
|
|
13656
13656
|
};
|
|
13657
|
-
var defaultProps$
|
|
13657
|
+
var defaultProps$12 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13658
13658
|
type: "single",
|
|
13659
13659
|
firstDayOfWeek: 0
|
|
13660
13660
|
});
|
|
13661
13661
|
var prefixCls = "nut-calendarcard";
|
|
13662
13662
|
var CalendarCard = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
13663
13663
|
var locale = useConfig().locale;
|
|
13664
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
13664
|
+
var _$_object_spread = _object_spread({}, defaultProps$12, props), style = _$_object_spread.style, className = _$_object_spread.className, type2 = _$_object_spread.type, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, firstDayOfWeek = _$_object_spread.firstDayOfWeek, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, disableDay = _$_object_spread.disableDay, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange, onChange = _$_object_spread.onChange;
|
|
13665
13665
|
var _useState = _sliced_to_array(React.useState(function() {
|
|
13666
13666
|
var date2 = new Date(Date.now());
|
|
13667
13667
|
var val = value || defaultValue;
|
|
@@ -14039,7 +14039,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14039
14039
|
});
|
|
14040
14040
|
CalendarCard.displayName = "NutCalendarCard";
|
|
14041
14041
|
var CheckboxGroupContext = React.createContext(null);
|
|
14042
|
-
var defaultProps$
|
|
14042
|
+
var defaultProps$11 = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14043
14043
|
disabled: false,
|
|
14044
14044
|
shape: "round",
|
|
14045
14045
|
labelPosition: "right",
|
|
@@ -14051,7 +14051,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14051
14051
|
});
|
|
14052
14052
|
var classPrefix$j = "nut-checkbox";
|
|
14053
14053
|
var Checkbox = function(props) {
|
|
14054
|
-
var children = _object_spread({}, defaultProps$
|
|
14054
|
+
var children = _object_spread({}, defaultProps$11, props).children;
|
|
14055
14055
|
var icon = props.icon, label = props.label, className = props.className, activeIcon = props.activeIcon, checked = props.checked, value = props.value, defaultChecked = props.defaultChecked, shape = props.shape, disabled = props.disabled, onChange = props.onChange, indeterminate = props.indeterminate, indeterminateIcon = props.indeterminateIcon, others = _object_without_properties(props, [
|
|
14056
14056
|
"icon",
|
|
14057
14057
|
"label",
|
|
@@ -14188,7 +14188,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14188
14188
|
}), renderCheckboxItem());
|
|
14189
14189
|
};
|
|
14190
14190
|
Checkbox.displayName = "NutCheckBox";
|
|
14191
|
-
var defaultProps
|
|
14191
|
+
var defaultProps$10 = {
|
|
14192
14192
|
max: void 0,
|
|
14193
14193
|
min: void 0,
|
|
14194
14194
|
list: false,
|
|
@@ -14202,7 +14202,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14202
14202
|
};
|
|
14203
14203
|
var classPrefix$i = "nut-checkboxgroup";
|
|
14204
14204
|
var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
14205
|
-
var _ref = _object_spread({}, defaultProps
|
|
14205
|
+
var _ref = _object_spread({}, defaultProps$10, props), children = _ref.children, className = _ref.className, disabled = _ref.disabled, list = _ref.list, value = _ref.value, defaultValue = _ref.defaultValue, max = _ref.max, min = _ref.min, labelPosition = _ref.labelPosition, direction = _ref.direction, options2 = _ref.options, onChange = _ref.onChange, onLimit = _ref.onLimit, rest = _object_without_properties(_ref, [
|
|
14206
14206
|
"children",
|
|
14207
14207
|
"className",
|
|
14208
14208
|
"disabled",
|
|
@@ -14311,6 +14311,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14311
14311
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
14312
14312
|
var InnerCheckbox = Checkbox;
|
|
14313
14313
|
InnerCheckbox.Group = CheckboxGroup;
|
|
14314
|
+
const InnerCheckbox$1 = InnerCheckbox;
|
|
14314
14315
|
var InternalPickerPanel = function(props, ref) {
|
|
14315
14316
|
var _props_keyIndex = props.keyIndex, keyIndex = _props_keyIndex === void 0 ? 0 : _props_keyIndex, defaultValue = props.defaultValue, _props_options = props.options, options2 = _props_options === void 0 ? [] : _props_options, _props_threeDimensional = props.threeDimensional, threeDimensional = _props_threeDimensional === void 0 ? true : _props_threeDimensional, _props_duration = props.duration, duration = _props_duration === void 0 ? 1e3 : _props_duration, chooseItem = props.chooseItem;
|
|
14316
14317
|
var touch = useTouch();
|
|
@@ -14474,9 +14475,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14474
14475
|
});
|
|
14475
14476
|
React.useEffect(function() {
|
|
14476
14477
|
var _PickerPanelRef_current, _PickerPanelRef_current1, _PickerPanelRef_current2;
|
|
14477
|
-
var options3 =
|
|
14478
|
-
passive: false
|
|
14479
|
-
} : false;
|
|
14478
|
+
var options3 = false;
|
|
14480
14479
|
(_PickerPanelRef_current = PickerPanelRef.current) === null || _PickerPanelRef_current === void 0 ? void 0 : _PickerPanelRef_current.addEventListener("touchstart", touchStart, options3);
|
|
14481
14480
|
(_PickerPanelRef_current1 = PickerPanelRef.current) === null || _PickerPanelRef_current1 === void 0 ? void 0 : _PickerPanelRef_current1.addEventListener("touchmove", touchMove, options3);
|
|
14482
14481
|
(_PickerPanelRef_current2 = PickerPanelRef.current) === null || _PickerPanelRef_current2 === void 0 ? void 0 : _PickerPanelRef_current2.addEventListener("touchend", touchEnd, options3);
|
|
@@ -14534,7 +14533,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14534
14533
|
reset
|
|
14535
14534
|
];
|
|
14536
14535
|
}
|
|
14537
|
-
var defaultProps
|
|
14536
|
+
var defaultProps$$ = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14538
14537
|
title: "",
|
|
14539
14538
|
options: [],
|
|
14540
14539
|
value: [],
|
|
@@ -14545,7 +14544,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14545
14544
|
});
|
|
14546
14545
|
var InternalPicker = function(props, ref) {
|
|
14547
14546
|
var locale = useConfig().locale;
|
|
14548
|
-
var _ref = _object_spread({}, defaultProps
|
|
14547
|
+
var _ref = _object_spread({}, defaultProps$$, props), children = _ref.children;
|
|
14549
14548
|
_ref.visible;
|
|
14550
14549
|
var title = _ref.title, _ref_options = _ref.options, options2 = _ref_options === void 0 ? [] : _ref_options, closeOnOverlayClick = _ref.closeOnOverlayClick, _ref_popupProps = _ref.popupProps, popupProps = _ref_popupProps === void 0 ? {} : _ref_popupProps, _ref_defaultValue = _ref.defaultValue, defaultValue = _ref_defaultValue === void 0 ? [] : _ref_defaultValue, className = _ref.className, style = _ref.style, threeDimensional = _ref.threeDimensional, duration = _ref.duration;
|
|
14551
14550
|
_ref.onConfirm;
|
|
@@ -14815,7 +14814,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14815
14814
|
return str;
|
|
14816
14815
|
};
|
|
14817
14816
|
var currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14818
|
-
var defaultProps$
|
|
14817
|
+
var defaultProps$_ = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14819
14818
|
visible: false,
|
|
14820
14819
|
title: "",
|
|
14821
14820
|
type: "date",
|
|
@@ -14829,7 +14828,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14829
14828
|
var getMonthEndDay = function getMonthEndDay2(year, month) {
|
|
14830
14829
|
return new Date(year, month, 0).getDate();
|
|
14831
14830
|
};
|
|
14832
|
-
var _ref = _object_spread({}, defaultProps$
|
|
14831
|
+
var _ref = _object_spread({}, defaultProps$_, props), startDate = _ref.startDate, endDate = _ref.endDate, type2 = _ref.type, showChinese = _ref.showChinese, minuteStep = _ref.minuteStep, visible = _ref.visible, title = _ref.title, defaultValue = _ref.defaultValue, _ref_pickerProps = _ref.pickerProps, pickerProps = _ref_pickerProps === void 0 ? {} : _ref_pickerProps, formatter = _ref.formatter, onClose = _ref.onClose, onCancel = _ref.onCancel, onConfirm = _ref.onConfirm, filter = _ref.filter, onChange = _ref.onChange, threeDimensional = _ref.threeDimensional, className = _ref.className, style = _ref.style, rest = _object_without_properties(_ref, [
|
|
14833
14832
|
"startDate",
|
|
14834
14833
|
"endDate",
|
|
14835
14834
|
"type",
|
|
@@ -16471,7 +16470,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16471
16470
|
formRef.current
|
|
16472
16471
|
];
|
|
16473
16472
|
};
|
|
16474
|
-
var defaultProps$
|
|
16473
|
+
var defaultProps$Z = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
16475
16474
|
labelPosition: "right",
|
|
16476
16475
|
starPosition: "left",
|
|
16477
16476
|
divider: false,
|
|
@@ -16487,7 +16486,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16487
16486
|
};
|
|
16488
16487
|
var Form = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
16489
16488
|
var classPrefix2 = "nut-form";
|
|
16490
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
16489
|
+
var _$_object_spread = _object_spread({}, defaultProps$Z, props), className = _$_object_spread.className, style = _$_object_spread.style, footer = _$_object_spread.footer, children = _$_object_spread.children, initialValues = _$_object_spread.initialValues, divider = _$_object_spread.divider, onFinish = _$_object_spread.onFinish, onFinishFailed = _$_object_spread.onFinishFailed, labelPosition = _$_object_spread.labelPosition, starPosition = _$_object_spread.starPosition, form = _$_object_spread.form;
|
|
16491
16490
|
var formInstance;
|
|
16492
16491
|
if (form !== void 0) {
|
|
16493
16492
|
formInstance = form;
|
|
@@ -16586,7 +16585,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16586
16585
|
}
|
|
16587
16586
|
).$$typeof === component.type.$$typeof;
|
|
16588
16587
|
}
|
|
16589
|
-
var defaultProps$
|
|
16588
|
+
var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
16590
16589
|
required: false,
|
|
16591
16590
|
name: "",
|
|
16592
16591
|
label: "",
|
|
@@ -16689,7 +16688,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16689
16688
|
_this.forceUpdate();
|
|
16690
16689
|
}
|
|
16691
16690
|
}), _define_property(_this, "renderLayout", function(childNode) {
|
|
16692
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
16691
|
+
var _$_object_spread = _object_spread({}, defaultProps$Y, _this.props), label = _$_object_spread.label, name = _$_object_spread.name, required2 = _$_object_spread.required, rules2 = _$_object_spread.rules, className = _$_object_spread.className, style = _$_object_spread.style, errorMessageAlign = _$_object_spread.errorMessageAlign, align = _$_object_spread.align;
|
|
16693
16692
|
var requiredInRules = rules2 === null || rules2 === void 0 ? void 0 : rules2.some(function(rule) {
|
|
16694
16693
|
return rule.required;
|
|
16695
16694
|
});
|
|
@@ -16768,11 +16767,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16768
16767
|
]);
|
|
16769
16768
|
return FormItem2;
|
|
16770
16769
|
}(React.Component);
|
|
16771
|
-
_define_property(FormItem, "defaultProps", defaultProps$
|
|
16770
|
+
_define_property(FormItem, "defaultProps", defaultProps$Y);
|
|
16772
16771
|
_define_property(FormItem, "contextType", Context);
|
|
16773
16772
|
var InnerForm = Form;
|
|
16774
16773
|
InnerForm.Item = FormItem;
|
|
16775
16774
|
InnerForm.useForm = useForm;
|
|
16775
|
+
const InnerForm$1 = InnerForm;
|
|
16776
16776
|
function trimExtraChar(value, char, regExp) {
|
|
16777
16777
|
var index = value.indexOf(char);
|
|
16778
16778
|
if (index === -1) {
|
|
@@ -16798,7 +16798,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16798
16798
|
var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16799
16799
|
return value.replace(regExp, "");
|
|
16800
16800
|
}
|
|
16801
|
-
var defaultProps$
|
|
16801
|
+
var defaultProps$X = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
16802
16802
|
type: "text",
|
|
16803
16803
|
name: "",
|
|
16804
16804
|
placeholder: void 0,
|
|
@@ -16816,7 +16816,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16816
16816
|
var Input = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
16817
16817
|
var rtl = useRtl();
|
|
16818
16818
|
var locale = useConfig().locale;
|
|
16819
|
-
var _ref = _object_spread({}, defaultProps$
|
|
16819
|
+
var _ref = _object_spread({}, defaultProps$X, props), type2 = _ref.type, name = _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, onChange = _ref.onChange, onFocus = _ref.onFocus, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, defaultValue = _ref.defaultValue, _value = _ref.value, onCompositionStart = _ref.onCompositionStart, onCompositionEnd = _ref.onCompositionEnd, rest = _object_without_properties(_ref, [
|
|
16820
16820
|
"type",
|
|
16821
16821
|
"name",
|
|
16822
16822
|
"placeholder",
|
|
@@ -16975,7 +16975,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16975
16975
|
})) : null);
|
|
16976
16976
|
});
|
|
16977
16977
|
Input.displayName = "NutInput";
|
|
16978
|
-
var defaultProps$
|
|
16978
|
+
var defaultProps$W = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
16979
16979
|
disabled: false,
|
|
16980
16980
|
readOnly: false,
|
|
16981
16981
|
allowEmpty: false,
|
|
@@ -16988,7 +16988,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16988
16988
|
});
|
|
16989
16989
|
var classPrefix$h = "nut-inputnumber";
|
|
16990
16990
|
var InputNumber = function(props) {
|
|
16991
|
-
var _ref = _object_spread({}, defaultProps$
|
|
16991
|
+
var _ref = _object_spread({}, defaultProps$W, props);
|
|
16992
16992
|
_ref.children;
|
|
16993
16993
|
var disabled = _ref.disabled, min = _ref.min, max = _ref.max, readOnly = _ref.readOnly, value = _ref.value, defaultValue = _ref.defaultValue, allowEmpty = _ref.allowEmpty, digits = _ref.digits, step = _ref.step, async = _ref.async, select = _ref.select, className = _ref.className, style = _ref.style, formatter = _ref.formatter, onPlus = _ref.onPlus, onMinus = _ref.onMinus, onOverlimit = _ref.onOverlimit, onBlur = _ref.onBlur, onFocus = _ref.onFocus, onChange = _ref.onChange, restProps = _object_without_properties(_ref, [
|
|
16994
16994
|
"children",
|
|
@@ -17234,7 +17234,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17234
17234
|
target
|
|
17235
17235
|
]);
|
|
17236
17236
|
}
|
|
17237
|
-
var defaultProps$
|
|
17237
|
+
var defaultProps$V = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
17238
17238
|
titleIcon: null,
|
|
17239
17239
|
columns: 1,
|
|
17240
17240
|
direction: "down",
|
|
@@ -17247,7 +17247,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17247
17247
|
}
|
|
17248
17248
|
});
|
|
17249
17249
|
var MenuItem = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
17250
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
17250
|
+
var _$_object_spread = _object_spread({}, defaultProps$V, props), className = _$_object_spread.className, style = _$_object_spread.style, options2 = _$_object_spread.options, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, columns = _$_object_spread.columns, title = _$_object_spread.title, icon = _$_object_spread.icon, direction = _$_object_spread.direction, onChange = _$_object_spread.onChange, activeTitleClass = _$_object_spread.activeTitleClass, inactiveTitleClass = _$_object_spread.inactiveTitleClass, closeOnClickAway = _$_object_spread.closeOnClickAway, children = _$_object_spread.children, activeColor = _$_object_spread.activeColor, show2 = _$_object_spread.show, parent = _$_object_spread.parent, index = _$_object_spread.index;
|
|
17251
17251
|
var _useState = _sliced_to_array(React.useState(show2), 2), showPopup = _useState[0], setShowPopup = _useState[1];
|
|
17252
17252
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
17253
17253
|
defaultValue,
|
|
@@ -17413,7 +17413,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17413
17413
|
}), children))));
|
|
17414
17414
|
});
|
|
17415
17415
|
MenuItem.displayName = "NutMenuItem";
|
|
17416
|
-
var defaultProps$
|
|
17416
|
+
var defaultProps$U = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
17417
17417
|
activeColor: "",
|
|
17418
17418
|
closeOnOverlayClick: true,
|
|
17419
17419
|
scrollFixed: false,
|
|
@@ -17426,7 +17426,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17426
17426
|
}
|
|
17427
17427
|
});
|
|
17428
17428
|
var Menu = function(props) {
|
|
17429
|
-
var _ref = _object_spread({}, defaultProps$
|
|
17429
|
+
var _ref = _object_spread({}, defaultProps$U, props), className = _ref.className, icon = _ref.icon, scrollFixed = _ref.scrollFixed, lockScroll = _ref.lockScroll, overlay = _ref.overlay, closeOnOverlayClick = _ref.closeOnOverlayClick, children = _ref.children, activeColor = _ref.activeColor, onClose = _ref.onClose, onOpen = _ref.onOpen, rest = _object_without_properties(_ref, [
|
|
17430
17430
|
"className",
|
|
17431
17431
|
"icon",
|
|
17432
17432
|
"scrollFixed",
|
|
@@ -17565,7 +17565,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17565
17565
|
};
|
|
17566
17566
|
Menu.displayName = "NutMenu";
|
|
17567
17567
|
Menu.Item = MenuItem;
|
|
17568
|
-
var defaultProps$
|
|
17568
|
+
var defaultProps$T = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
17569
17569
|
visible: false,
|
|
17570
17570
|
rightActions: "",
|
|
17571
17571
|
type: "default",
|
|
@@ -17576,7 +17576,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17576
17576
|
});
|
|
17577
17577
|
var NumberKeyboard = function(props) {
|
|
17578
17578
|
var locale = useConfig().locale;
|
|
17579
|
-
var _ref = _object_spread({}, defaultProps$
|
|
17579
|
+
var _ref = _object_spread({}, defaultProps$T, props), title = _ref.title, rightActions = _ref.rightActions, confirmText = _ref.confirmText, visible = _ref.visible, type2 = _ref.type, custom = _ref.custom, random = _ref.random, style = _ref.style, className = _ref.className, onChange = _ref.onChange, onDelete = _ref.onDelete, onClose = _ref.onClose, onConfirm = _ref.onConfirm, rest = _object_without_properties(_ref, [
|
|
17580
17580
|
"title",
|
|
17581
17581
|
"rightActions",
|
|
17582
17582
|
"confirmText",
|
|
@@ -17763,7 +17763,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17763
17763
|
};
|
|
17764
17764
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17765
17765
|
const RadioContext = React.createContext(null);
|
|
17766
|
-
var defaultProps$
|
|
17766
|
+
var defaultProps$S = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
17767
17767
|
disabled: false,
|
|
17768
17768
|
shape: "round",
|
|
17769
17769
|
value: "",
|
|
@@ -17773,9 +17773,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17773
17773
|
onChange: function(checked) {
|
|
17774
17774
|
}
|
|
17775
17775
|
});
|
|
17776
|
-
var Radio = function(props) {
|
|
17776
|
+
var Radio$1 = function(props) {
|
|
17777
17777
|
var classPrefix2 = "nut-radio";
|
|
17778
|
-
var _ref = _object_spread({}, defaultProps$
|
|
17778
|
+
var _ref = _object_spread({}, defaultProps$S, props), children = _ref.children, className = _ref.className, style = _ref.style, checked = _ref.checked, defaultChecked = _ref.defaultChecked, shape = _ref.shape, value = _ref.value;
|
|
17779
17779
|
_ref.icon;
|
|
17780
17780
|
_ref.activeIcon;
|
|
17781
17781
|
var onChange = _ref.onChange, others = _object_without_properties(_ref, [
|
|
@@ -17871,8 +17871,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17871
17871
|
onClick: handleClick2
|
|
17872
17872
|
}, rest), renderRadioItem());
|
|
17873
17873
|
};
|
|
17874
|
-
Radio.displayName = "NutRadio";
|
|
17875
|
-
var defaultProps$
|
|
17874
|
+
Radio$1.displayName = "NutRadio";
|
|
17875
|
+
var defaultProps$R = {
|
|
17876
17876
|
labelPosition: "right",
|
|
17877
17877
|
onChange: function(value) {
|
|
17878
17878
|
},
|
|
@@ -17881,7 +17881,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17881
17881
|
};
|
|
17882
17882
|
var classPrefix$g = "nut-radiogroup";
|
|
17883
17883
|
var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
17884
|
-
var _ref = _object_spread({}, defaultProps$
|
|
17884
|
+
var _ref = _object_spread({}, defaultProps$R, props), children = _ref.children, className = _ref.className;
|
|
17885
17885
|
_ref.value;
|
|
17886
17886
|
_ref.defaultValue;
|
|
17887
17887
|
var onChange = _ref.onChange, shape = _ref.shape, labelPosition = _ref.labelPosition, direction = _ref.direction, options2 = _ref.options, disabled = _ref.disabled, rest = _object_without_properties(_ref, [
|
|
@@ -17911,7 +17911,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17911
17911
|
"disabled",
|
|
17912
17912
|
"onChange"
|
|
17913
17913
|
]);
|
|
17914
|
-
return /* @__PURE__ */ React.createElement(
|
|
17914
|
+
return /* @__PURE__ */ React.createElement(Radio, _object_spread_props(_object_spread({}, rest2), {
|
|
17915
17915
|
key: value === null || value === void 0 ? void 0 : value.toString(),
|
|
17916
17916
|
children: label,
|
|
17917
17917
|
value,
|
|
@@ -17944,9 +17944,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17944
17944
|
}, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptionsChildren() : children));
|
|
17945
17945
|
});
|
|
17946
17946
|
RadioGroup.displayName = "NutRadioGroup";
|
|
17947
|
-
var InnerRadio = Radio;
|
|
17947
|
+
var InnerRadio = Radio$1;
|
|
17948
17948
|
InnerRadio.Group = RadioGroup;
|
|
17949
|
-
|
|
17949
|
+
const Radio = InnerRadio;
|
|
17950
|
+
var defaultProps$Q = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
17950
17951
|
range: false,
|
|
17951
17952
|
min: 0,
|
|
17952
17953
|
max: 100,
|
|
@@ -17967,7 +17968,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17967
17968
|
};
|
|
17968
17969
|
var Range = function(props) {
|
|
17969
17970
|
var rtl = useRtl();
|
|
17970
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
17971
|
+
var _$_object_spread = _object_spread({}, defaultProps$Q, props), className = _$_object_spread.className, style = _$_object_spread.style, range2 = _$_object_spread.range, disabled = _$_object_spread.disabled, button = _$_object_spread.button, vertical = _$_object_spread.vertical, marks = _$_object_spread.marks, minDescription = _$_object_spread.minDescription, maxDescription = _$_object_spread.maxDescription, currentDescription = _$_object_spread.currentDescription, min = _$_object_spread.min, max = _$_object_spread.max, step = _$_object_spread.step, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, onChange = _$_object_spread.onChange, onStart = _$_object_spread.onStart, onEnd = _$_object_spread.onEnd;
|
|
17971
17972
|
var rtlClassPrefix = React.useMemo(function() {
|
|
17972
17973
|
return "rtl-".concat(vertical ? verticalClassPrefix : classPrefix$f);
|
|
17973
17974
|
}, [
|
|
@@ -18425,7 +18426,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18425
18426
|
}, maxDescription || max));
|
|
18426
18427
|
};
|
|
18427
18428
|
Range.displayName = "NutRange";
|
|
18428
|
-
var defaultProps$
|
|
18429
|
+
var defaultProps$P = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
18430
|
+
size: "normal",
|
|
18431
|
+
showScore: false,
|
|
18429
18432
|
count: 5,
|
|
18430
18433
|
min: 0,
|
|
18431
18434
|
checkedIcon: null,
|
|
@@ -18436,7 +18439,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18436
18439
|
touchable: false
|
|
18437
18440
|
});
|
|
18438
18441
|
var Rate = function(props) {
|
|
18439
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
18442
|
+
var _$_object_spread = _object_spread({}, defaultProps$P, props), className = _$_object_spread.className, style = _$_object_spread.style, size = _$_object_spread.size, showScore = _$_object_spread.showScore, count = _$_object_spread.count, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, min = _$_object_spread.min, checkedIcon = _$_object_spread.checkedIcon, uncheckedIcon = _$_object_spread.uncheckedIcon, disabled = _$_object_spread.disabled, readOnly = _$_object_spread.readOnly, allowHalf = _$_object_spread.allowHalf, touchable = _$_object_spread.touchable, onChange = _$_object_spread.onChange, onTouchEnd = _$_object_spread.onTouchEnd;
|
|
18440
18443
|
var classPrefix2 = "nut-rate";
|
|
18441
18444
|
var _useState = _sliced_to_array(React.useState([
|
|
18442
18445
|
1,
|
|
@@ -18572,7 +18575,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18572
18575
|
style
|
|
18573
18576
|
}, countArray.map(function(n2, index) {
|
|
18574
18577
|
return /* @__PURE__ */ React.createElement("div", {
|
|
18575
|
-
className: "".concat(classPrefix2, "-item"),
|
|
18578
|
+
className: "".concat(classPrefix2, "-item ").concat(classPrefix2, "-item-").concat(size),
|
|
18576
18579
|
key: n2,
|
|
18577
18580
|
ref: setRefs(index),
|
|
18578
18581
|
onClick: function(event) {
|
|
@@ -18586,10 +18589,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18586
18589
|
return onHalfClick(event, n2);
|
|
18587
18590
|
}
|
|
18588
18591
|
}, renderIcon(n2)));
|
|
18589
|
-
})
|
|
18592
|
+
}), showScore ? /* @__PURE__ */ React.createElement("span", {
|
|
18593
|
+
className: classNames("".concat(classPrefix2, "-score"), "".concat(classPrefix2, "-score-").concat(size), _define_property({}, "".concat(classPrefix2, "-score-disabled"), disabled))
|
|
18594
|
+
}, score.toFixed(1)) : null);
|
|
18590
18595
|
};
|
|
18591
18596
|
Rate.displayName = "NutRate";
|
|
18592
|
-
var defaultProps$
|
|
18597
|
+
var defaultProps$O = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
18593
18598
|
placeholder: "",
|
|
18594
18599
|
shape: "square",
|
|
18595
18600
|
disabled: false,
|
|
@@ -18610,7 +18615,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18610
18615
|
var classPrefix2 = "nut-searchbar";
|
|
18611
18616
|
var locale = useConfig().locale;
|
|
18612
18617
|
var searchRef = React.useRef(null);
|
|
18613
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
18618
|
+
var _$_object_spread = _object_spread({}, defaultProps$O, props), outerValue = _$_object_spread.value, style = _$_object_spread.style, placeholder = _$_object_spread.placeholder, shape = _$_object_spread.shape, className = _$_object_spread.className, disabled = _$_object_spread.disabled, maxLength = _$_object_spread.maxLength, clearable = _$_object_spread.clearable, readOnly = _$_object_spread.readOnly, autoFocus = _$_object_spread.autoFocus, backable = _$_object_spread.backable, right = _$_object_spread.right, left = _$_object_spread.left, leftIn = _$_object_spread.leftIn, rightIn = _$_object_spread.rightIn, onChange = _$_object_spread.onChange, onFocus = _$_object_spread.onFocus, onBlur = _$_object_spread.onBlur, onClear = _$_object_spread.onClear, onSearch = _$_object_spread.onSearch, onInputClick = _$_object_spread.onInputClick;
|
|
18614
18619
|
var _useState = _sliced_to_array(React.useState(function() {
|
|
18615
18620
|
return outerValue;
|
|
18616
18621
|
}), 2), value = _useState[0], setValue = _useState[1];
|
|
@@ -18732,7 +18737,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18732
18737
|
}, renderLeftIn(), renderField(), clearable && !value && renderRightIn(), clearable && value && handleClear()), renderRight());
|
|
18733
18738
|
};
|
|
18734
18739
|
SearchBar.displayName = "NutSearchBar";
|
|
18735
|
-
var defaultProps$
|
|
18740
|
+
var defaultProps$N = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
18736
18741
|
value: "",
|
|
18737
18742
|
visible: false,
|
|
18738
18743
|
plain: false,
|
|
@@ -18742,7 +18747,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18742
18747
|
});
|
|
18743
18748
|
var InternalShortPassword = function(props, ref) {
|
|
18744
18749
|
var locale = useConfig().locale;
|
|
18745
|
-
var _ref = _object_spread({}, defaultProps$
|
|
18750
|
+
var _ref = _object_spread({}, defaultProps$N, props), title = _ref.title, description = _ref.description, tips = _ref.tips, outerVisible = _ref.visible, value = _ref.value, error = _ref.error, hideFooter = _ref.hideFooter, length = _ref.length, plain = _ref.plain, style = _ref.style, className = _ref.className;
|
|
18746
18751
|
_ref.closeable;
|
|
18747
18752
|
var autoFocus = _ref.autoFocus, onFocus = _ref.onFocus, onChange = _ref.onChange, onConfirm = _ref.onConfirm, onTips = _ref.onTips, onCancel = _ref.onCancel, onClose = _ref.onClose, onComplete = _ref.onComplete;
|
|
18748
18753
|
_ref.onOverlayClick;
|
|
@@ -18875,7 +18880,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18875
18880
|
}, locale.confirm))));
|
|
18876
18881
|
};
|
|
18877
18882
|
var ShortPassword = /* @__PURE__ */ React.forwardRef(InternalShortPassword);
|
|
18878
|
-
var defaultProps$
|
|
18883
|
+
var defaultProps$M = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
18879
18884
|
type: "png",
|
|
18880
18885
|
lineWidth: 2,
|
|
18881
18886
|
strokeStyle: "#1A1A1A",
|
|
@@ -18883,7 +18888,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18883
18888
|
});
|
|
18884
18889
|
var InternalSignature = function(props, ref) {
|
|
18885
18890
|
var locale = useConfig().locale;
|
|
18886
|
-
var _ref = _object_spread({}, defaultProps$
|
|
18891
|
+
var _ref = _object_spread({}, defaultProps$M, props), type2 = _ref.type, lineWidth = _ref.lineWidth, strokeStyle = _ref.strokeStyle, unsupported = _ref.unsupported, className = _ref.className, style = _ref.style, onConfirm = _ref.onConfirm, onClear = _ref.onClear, rest = _object_without_properties(_ref, [
|
|
18887
18892
|
"type",
|
|
18888
18893
|
"lineWidth",
|
|
18889
18894
|
"strokeStyle",
|
|
@@ -19025,13 +19030,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19025
19030
|
};
|
|
19026
19031
|
var Signature = /* @__PURE__ */ React.forwardRef(InternalSignature);
|
|
19027
19032
|
Signature.displayName = "NutSignature";
|
|
19028
|
-
var defaultProps$
|
|
19033
|
+
var defaultProps$L = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
19029
19034
|
disabled: false,
|
|
19030
19035
|
activeText: "",
|
|
19031
19036
|
inactiveText: ""
|
|
19032
19037
|
});
|
|
19033
19038
|
var Switch = function(props) {
|
|
19034
|
-
var _ref = _object_spread({}, defaultProps$
|
|
19039
|
+
var _ref = _object_spread({}, defaultProps$L, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, className = _ref.className, style = _ref.style, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
|
|
19035
19040
|
"checked",
|
|
19036
19041
|
"defaultChecked",
|
|
19037
19042
|
"disabled",
|
|
@@ -19079,20 +19084,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19079
19084
|
])
|
|
19080
19085
|
}, !value && !activeText && /* @__PURE__ */ React.createElement("div", {
|
|
19081
19086
|
className: "".concat(classPrefix2, "-close-line")
|
|
19082
|
-
}), activeText && /* @__PURE__ */ React.createElement("div", {
|
|
19083
|
-
className: classNames(
|
|
19084
|
-
|
|
19085
|
-
"".concat(classPrefix2, "-label")
|
|
19086
|
-
],
|
|
19087
|
-
[
|
|
19088
|
-
value ? "".concat(classPrefix2, "-label-open") : "".concat(classPrefix2, "-label-close")
|
|
19089
|
-
],
|
|
19090
|
-
(_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-label-open-rtl"), rtl && value), _define_property(_obj1, "".concat(classPrefix2, "-button-close-rtl"), rtl && !value), _obj1)
|
|
19091
|
-
])
|
|
19092
|
-
}, value ? activeText : inactiveText)));
|
|
19087
|
+
})), activeText && /* @__PURE__ */ React.createElement("div", {
|
|
19088
|
+
className: classNames("".concat(classPrefix2, "-label"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-label-open"), value), _define_property(_obj1, "".concat(classPrefix2, "-label-close"), !value), _define_property(_obj1, "".concat(classPrefix2, "-label-open-rtl"), rtl && value), _define_property(_obj1, "".concat(classPrefix2, "-label-close-rtl"), rtl && !value), _define_property(_obj1, "".concat(classPrefix2, "-label-close-disabled"), disabled && !value), _obj1))
|
|
19089
|
+
}, value ? activeText : inactiveText));
|
|
19093
19090
|
};
|
|
19094
19091
|
Switch.displayName = "NutSwitch";
|
|
19095
|
-
var defaultProps$
|
|
19092
|
+
var defaultProps$K = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
19096
19093
|
defaultValue: "",
|
|
19097
19094
|
showCount: false,
|
|
19098
19095
|
rows: 2,
|
|
@@ -19104,7 +19101,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19104
19101
|
});
|
|
19105
19102
|
var TextArea = function(props) {
|
|
19106
19103
|
var locale = useConfig().locale;
|
|
19107
|
-
var _ref = _object_spread({}, defaultProps$
|
|
19104
|
+
var _ref = _object_spread({}, defaultProps$K, props), className = _ref.className, value = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
|
|
19108
19105
|
"className",
|
|
19109
19106
|
"value",
|
|
19110
19107
|
"defaultValue",
|
|
@@ -19313,7 +19310,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19313
19310
|
done();
|
|
19314
19311
|
}
|
|
19315
19312
|
};
|
|
19316
|
-
var defaultProps$
|
|
19313
|
+
var defaultProps$J = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
19317
19314
|
percent: 0,
|
|
19318
19315
|
showText: false,
|
|
19319
19316
|
animated: false,
|
|
@@ -19322,7 +19319,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19322
19319
|
});
|
|
19323
19320
|
var Progress = function(props) {
|
|
19324
19321
|
var rtl = useRtl();
|
|
19325
|
-
var _ref = _object_spread({}, defaultProps$
|
|
19322
|
+
var _ref = _object_spread({}, defaultProps$J, props), className = _ref.className, style = _ref.style, percent = _ref.percent, background = _ref.background, color = _ref.color, strokeWidth = _ref.strokeWidth, showText = _ref.showText, animated2 = _ref.animated, children = _ref.children, lazy = _ref.lazy, delay = _ref.delay, rest = _object_without_properties(_ref, [
|
|
19326
19323
|
"className",
|
|
19327
19324
|
"style",
|
|
19328
19325
|
"percent",
|
|
@@ -19520,7 +19517,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19520
19517
|
_define_property(this, "loadingIcon", void 0);
|
|
19521
19518
|
_define_property(this, "failIcon", void 0);
|
|
19522
19519
|
};
|
|
19523
|
-
var defaultProps$
|
|
19520
|
+
var defaultProps$I = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
19524
19521
|
url: "",
|
|
19525
19522
|
maxCount: 1,
|
|
19526
19523
|
previewType: "picture",
|
|
@@ -19556,7 +19553,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19556
19553
|
var InternalUploader = function(props, ref) {
|
|
19557
19554
|
var locale = useConfig().locale;
|
|
19558
19555
|
var fileListRef = React.useRef([]);
|
|
19559
|
-
var _ref = _object_spread({}, defaultProps$
|
|
19556
|
+
var _ref = _object_spread({}, defaultProps$I, props), children = _ref.children, uploadIcon = _ref.uploadIcon, deleteIcon = _ref.deleteIcon, uploadLabel = _ref.uploadLabel, name = _ref.name, accept = _ref.accept, defaultValue = _ref.defaultValue, value = _ref.value, previewType = _ref.previewType;
|
|
19560
19557
|
_ref.fit;
|
|
19561
19558
|
var disabled = _ref.disabled, multiple = _ref.multiple, url = _ref.url, previewUrl = _ref.previewUrl, headers = _ref.headers, timeout = _ref.timeout, method2 = _ref.method, xhrState = _ref.xhrState, withCredentials = _ref.withCredentials, data = _ref.data, preview = _ref.preview, deletable = _ref.deletable, maxCount = _ref.maxCount, capture = _ref.capture, maxFileSize = _ref.maxFileSize, className = _ref.className, autoUpload = _ref.autoUpload, clearInput = _ref.clearInput, onStart = _ref.onStart, onDelete = _ref.onDelete, onChange = _ref.onChange, onFileItemClick = _ref.onFileItemClick, onProgress = _ref.onProgress, onSuccess = _ref.onSuccess, onUpdate = _ref.onUpdate, onFailure = _ref.onFailure, onOversize = _ref.onOversize, beforeUpload = _ref.beforeUpload, beforeXhrUpload = _ref.beforeXhrUpload, beforeDelete = _ref.beforeDelete, restProps = _object_without_properties(_ref, [
|
|
19562
19559
|
"children",
|
|
@@ -19899,7 +19896,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19899
19896
|
});
|
|
19900
19897
|
return ret;
|
|
19901
19898
|
}
|
|
19902
|
-
var defaultProps$
|
|
19899
|
+
var defaultProps$H = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
19903
19900
|
visible: false,
|
|
19904
19901
|
description: "",
|
|
19905
19902
|
options: [],
|
|
@@ -19914,7 +19911,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19914
19911
|
}
|
|
19915
19912
|
});
|
|
19916
19913
|
var ActionSheet = function(props) {
|
|
19917
|
-
var _mergeProps = mergeProps(defaultProps$
|
|
19914
|
+
var _mergeProps = mergeProps(defaultProps$H, props), children = _mergeProps.children, cancelText = _mergeProps.cancelText, optionKey = _mergeProps.optionKey, title = _mergeProps.title, description = _mergeProps.description, options2 = _mergeProps.options, onCancel = _mergeProps.onCancel, onSelect = _mergeProps.onSelect, visible = _mergeProps.visible, className = _mergeProps.className, style = _mergeProps.style, rest = _object_without_properties(_mergeProps, [
|
|
19918
19915
|
"children",
|
|
19919
19916
|
"cancelText",
|
|
19920
19917
|
"optionKey",
|
|
@@ -19952,14 +19949,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19952
19949
|
}, options2.length ? /* @__PURE__ */ React.createElement("div", {
|
|
19953
19950
|
className: "".concat(classPrefix2, "-list")
|
|
19954
19951
|
}, options2.map(function(item, index) {
|
|
19952
|
+
var statusClass = "".concat(item.disabled ? "".concat(classPrefix2, "-item-disabled") : "", " ").concat(item.danger ? "".concat(classPrefix2, "-item-danger") : "");
|
|
19955
19953
|
return /* @__PURE__ */ React.createElement("div", {
|
|
19956
|
-
className: "".concat(classPrefix2, "-item ").concat(
|
|
19954
|
+
className: "".concat(classPrefix2, "-item ").concat(statusClass),
|
|
19957
19955
|
key: index,
|
|
19958
19956
|
onClick: function() {
|
|
19959
19957
|
return chooseItem(item, index);
|
|
19960
19958
|
}
|
|
19961
|
-
},
|
|
19962
|
-
className: "".concat(classPrefix2, "-item-
|
|
19959
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
19960
|
+
className: "".concat(classPrefix2, "-item-name ").concat(statusClass)
|
|
19961
|
+
}, item[optionKey.name]), /* @__PURE__ */ React.createElement("div", {
|
|
19962
|
+
className: "".concat(classPrefix2, "-item-description ").concat(statusClass)
|
|
19963
19963
|
}, item[optionKey.description]));
|
|
19964
19964
|
})) : children, cancelText && /* @__PURE__ */ React.createElement("div", {
|
|
19965
19965
|
className: "".concat(classPrefix2, "-cancel"),
|
|
@@ -20191,7 +20191,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20191
20191
|
}))));
|
|
20192
20192
|
};
|
|
20193
20193
|
DialogWrap.displayName = "NutDialogWrap";
|
|
20194
|
-
var defaultProps$
|
|
20194
|
+
var defaultProps$G = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20195
20195
|
confirmText: "",
|
|
20196
20196
|
cancelText: "",
|
|
20197
20197
|
overlay: true,
|
|
@@ -20212,7 +20212,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20212
20212
|
});
|
|
20213
20213
|
var BaseDialog = function(props, ref) {
|
|
20214
20214
|
var locale = useConfig().locale;
|
|
20215
|
-
var _mergeProps = mergeProps(defaultProps$
|
|
20215
|
+
var _mergeProps = mergeProps(defaultProps$G, props), visible = _mergeProps.visible, footer = _mergeProps.footer, hideConfirmButton = _mergeProps.hideConfirmButton, hideCancelButton = _mergeProps.hideCancelButton, lockScroll = _mergeProps.lockScroll, disableConfirmButton = _mergeProps.disableConfirmButton;
|
|
20216
20216
|
_mergeProps.closeOnOverlayClick;
|
|
20217
20217
|
var confirmText = _mergeProps.confirmText, cancelText = _mergeProps.cancelText, closeIconPosition = _mergeProps.closeIconPosition, closeIcon = _mergeProps.closeIcon, onClose = _mergeProps.onClose, onCancel = _mergeProps.onCancel, onConfirm = _mergeProps.onConfirm, beforeCancel = _mergeProps.beforeCancel, beforeClose = _mergeProps.beforeClose;
|
|
20218
20218
|
_object_without_properties(_mergeProps, [
|
|
@@ -20350,7 +20350,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20350
20350
|
};
|
|
20351
20351
|
});
|
|
20352
20352
|
Dialog.displayName = "NutDialog";
|
|
20353
|
-
var defaultProps$
|
|
20353
|
+
var defaultProps$F = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20354
20354
|
attract: false,
|
|
20355
20355
|
direction: void 0,
|
|
20356
20356
|
boundary: {
|
|
@@ -20361,7 +20361,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20361
20361
|
}
|
|
20362
20362
|
});
|
|
20363
20363
|
var Drag = function(props) {
|
|
20364
|
-
var _ref = _object_spread({}, defaultProps$
|
|
20364
|
+
var _ref = _object_spread({}, defaultProps$F, props), attract = _ref.attract, direction = _ref.direction, boundary = _ref.boundary, onDrag = _ref.onDrag, onDragStart = _ref.onDragStart, onDragEnd = _ref.onDragEnd, children = _ref.children, className = _ref.className, style = _ref.style, reset = _object_without_properties(_ref, [
|
|
20365
20365
|
"attract",
|
|
20366
20366
|
"direction",
|
|
20367
20367
|
"boundary",
|
|
@@ -20467,7 +20467,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20467
20467
|
error: "https://storage.360buyimg.com/imgtools/f3278d0ebb-0ce360c0-c0ac-11ee-8375-193101bb1a46.png",
|
|
20468
20468
|
network: "https://storage.360buyimg.com/imgtools/43c30f7e29-0d483d10-c0ac-11ee-bec4-eb4d2a09a51d.png"
|
|
20469
20469
|
};
|
|
20470
|
-
var defaultProps$
|
|
20470
|
+
var defaultProps$E = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20471
20471
|
title: "",
|
|
20472
20472
|
description: "",
|
|
20473
20473
|
imageSize: "",
|
|
@@ -20477,7 +20477,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20477
20477
|
});
|
|
20478
20478
|
var classPrefix$e = "nut-empty";
|
|
20479
20479
|
var Empty = function(props) {
|
|
20480
|
-
var _ref = _object_spread({}, defaultProps$
|
|
20480
|
+
var _ref = _object_spread({}, defaultProps$E, props), image = _ref.image, imageSize = _ref.imageSize, title = _ref.title, description = _ref.description, children = _ref.children, className = _ref.className, size = _ref.size, status = _ref.status, actions = _ref.actions;
|
|
20481
20481
|
_ref.style;
|
|
20482
20482
|
var rest = _object_without_properties(_ref, [
|
|
20483
20483
|
"image",
|
|
@@ -20531,7 +20531,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20531
20531
|
}, title) : title, typeof description === "string" ? /* @__PURE__ */ React.createElement("div", {
|
|
20532
20532
|
className: "".concat(classPrefix$e, "-description")
|
|
20533
20533
|
}, description) : description, actions.length ? /* @__PURE__ */ React.createElement("div", {
|
|
20534
|
-
className: "".concat(classPrefix$e, "-actions")
|
|
20534
|
+
className: "".concat(classPrefix$e, "-actions-").concat(size)
|
|
20535
20535
|
}, actions.map(function(action, index) {
|
|
20536
20536
|
action.text;
|
|
20537
20537
|
var rest2 = _object_without_properties(action, [
|
|
@@ -20544,7 +20544,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20544
20544
|
})) : null, children);
|
|
20545
20545
|
};
|
|
20546
20546
|
Empty.displayName = "NutEmpty";
|
|
20547
|
-
var defaultProps$
|
|
20547
|
+
var defaultProps$D = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20548
20548
|
title: null,
|
|
20549
20549
|
description: null,
|
|
20550
20550
|
icon: "",
|
|
@@ -20552,7 +20552,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20552
20552
|
actions: []
|
|
20553
20553
|
});
|
|
20554
20554
|
var ResultPage = function(props) {
|
|
20555
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
20555
|
+
var _$_object_spread = _object_spread({}, defaultProps$D, props), className = _$_object_spread.className, style = _$_object_spread.style, title = _$_object_spread.title, description = _$_object_spread.description, icon = _$_object_spread.icon, status = _$_object_spread.status, actions = _$_object_spread.actions, children = _$_object_spread.children;
|
|
20556
20556
|
var classPrefix2 = "nut-resultpage";
|
|
20557
20557
|
var cls = classNames(classPrefix2, className);
|
|
20558
20558
|
var defaultStatus2 = {
|
|
@@ -20597,7 +20597,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20597
20597
|
})) : null, children);
|
|
20598
20598
|
};
|
|
20599
20599
|
ResultPage.displayName = "NutResultPage";
|
|
20600
|
-
var defaultProps$
|
|
20600
|
+
var defaultProps$C = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20601
20601
|
type: "default",
|
|
20602
20602
|
hasMore: true,
|
|
20603
20603
|
threshold: 200,
|
|
@@ -20617,7 +20617,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20617
20617
|
return null;
|
|
20618
20618
|
};
|
|
20619
20619
|
var locale = useConfig().locale;
|
|
20620
|
-
var _ref = _object_spread({}, defaultProps$
|
|
20620
|
+
var _ref = _object_spread({}, defaultProps$C, props), children = _ref.children, type2 = _ref.type, hasMore = _ref.hasMore, threshold = _ref.threshold, target = _ref.target, capture = _ref.capture, pullRefresh = _ref.pullRefresh, pullingText = _ref.pullingText, loadingText = _ref.loadingText, loadMoreText = _ref.loadMoreText, className = _ref.className, onRefresh = _ref.onRefresh, onLoadMore = _ref.onLoadMore, onScroll = _ref.onScroll, restProps = _object_without_properties(_ref, [
|
|
20621
20621
|
"children",
|
|
20622
20622
|
"type",
|
|
20623
20623
|
"hasMore",
|
|
@@ -20830,13 +20830,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20830
20830
|
circular: n$3,
|
|
20831
20831
|
spinner: n$4
|
|
20832
20832
|
};
|
|
20833
|
-
var defaultProps$
|
|
20833
|
+
var defaultProps$B = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20834
20834
|
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
20835
20835
|
type: "circular",
|
|
20836
20836
|
direction: "horizontal"
|
|
20837
20837
|
});
|
|
20838
20838
|
var Loading = function(props) {
|
|
20839
|
-
var _ref = _object_spread({}, defaultProps$
|
|
20839
|
+
var _ref = _object_spread({}, defaultProps$B, props), className = _ref.className, style = _ref.style, children = _ref.children, direction = _ref.direction, icon = _ref.icon, rest = _object_without_properties(_ref, [
|
|
20840
20840
|
"className",
|
|
20841
20841
|
"style",
|
|
20842
20842
|
"children",
|
|
@@ -20857,7 +20857,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20857
20857
|
}, children) : "");
|
|
20858
20858
|
};
|
|
20859
20859
|
Loading.displayName = "NutLoading";
|
|
20860
|
-
var defaultProps$
|
|
20860
|
+
var defaultProps$A = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
20861
20861
|
align: "left",
|
|
20862
20862
|
direction: "horizontal",
|
|
20863
20863
|
list: [],
|
|
@@ -20878,7 +20878,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20878
20878
|
});
|
|
20879
20879
|
var NoticeBar = function(props) {
|
|
20880
20880
|
var rtl = useRtl();
|
|
20881
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
20881
|
+
var _$_object_spread = _object_spread({}, defaultProps$A, props), children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style, align = _$_object_spread.align, direction = _$_object_spread.direction, list = _$_object_spread.list, duration = _$_object_spread.duration, height = _$_object_spread.height, content = _$_object_spread.content, closeable = _$_object_spread.closeable, wrap = _$_object_spread.wrap, leftIcon = _$_object_spread.leftIcon, rightIcon = _$_object_spread.rightIcon, right = _$_object_spread.right, delay = _$_object_spread.delay, scrollable = _$_object_spread.scrollable, speed = _$_object_spread.speed, close = _$_object_spread.close, click = _$_object_spread.click, onClose = _$_object_spread.onClose, onClick = _$_object_spread.onClick, onItemClick = _$_object_spread.onItemClick;
|
|
20882
20882
|
var classPrefix2 = "nut-noticebar";
|
|
20883
20883
|
var wrapRef = React.useRef(null);
|
|
20884
20884
|
var contentRef = React.useRef(null);
|
|
@@ -21396,9 +21396,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21396
21396
|
return callback && callback(notification);
|
|
21397
21397
|
});
|
|
21398
21398
|
}
|
|
21399
|
-
function notice$1(
|
|
21400
|
-
|
|
21401
|
-
getInstance$1(
|
|
21399
|
+
function notice$1(opts) {
|
|
21400
|
+
opts = _object_spread({}, options$1, opts);
|
|
21401
|
+
getInstance$1(opts, function(notification) {
|
|
21402
21402
|
messageInstance$1 = notification;
|
|
21403
21403
|
});
|
|
21404
21404
|
}
|
|
@@ -21455,7 +21455,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21455
21455
|
}
|
|
21456
21456
|
}
|
|
21457
21457
|
};
|
|
21458
|
-
var defaultProps$
|
|
21458
|
+
var defaultProps$z = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
21459
21459
|
list: [],
|
|
21460
21460
|
theme: "light",
|
|
21461
21461
|
location: "bottom",
|
|
@@ -21480,7 +21480,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21480
21480
|
var classPrefix$b = "nut-popover";
|
|
21481
21481
|
var Popover = function(props) {
|
|
21482
21482
|
var rtl = useRtl();
|
|
21483
|
-
var _ref = _object_spread({}, defaultProps$
|
|
21483
|
+
var _ref = _object_spread({}, defaultProps$z, props), children = _ref.children, list = _ref.list, theme = _ref.theme, location = _ref.location, visible = _ref.visible, offset = _ref.offset, arrowOffset = _ref.arrowOffset, targetId = _ref.targetId, overlay = _ref.overlay, closeOnOutsideClick = _ref.closeOnOutsideClick, closeOnActionClick = _ref.closeOnActionClick, className = _ref.className, showArrow = _ref.showArrow, style = _ref.style, onClick = _ref.onClick, onOpen = _ref.onOpen, onClose = _ref.onClose, onSelect = _ref.onSelect, rest = _object_without_properties(_ref, [
|
|
21484
21484
|
"children",
|
|
21485
21485
|
"list",
|
|
21486
21486
|
"theme",
|
|
@@ -21751,7 +21751,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21751
21751
|
return setTimeout(resolve, time);
|
|
21752
21752
|
});
|
|
21753
21753
|
};
|
|
21754
|
-
var defaultProps$
|
|
21754
|
+
var defaultProps$y = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
21755
21755
|
type: "default",
|
|
21756
21756
|
pullingText: "",
|
|
21757
21757
|
canReleaseText: "",
|
|
@@ -21770,7 +21770,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21770
21770
|
};
|
|
21771
21771
|
var classPrefix2 = "nut-pulltorefresh";
|
|
21772
21772
|
var locale = useConfig().locale;
|
|
21773
|
-
var props = _object_spread({}, defaultProps$
|
|
21773
|
+
var props = _object_spread({}, defaultProps$y, p2, {
|
|
21774
21774
|
pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
|
|
21775
21775
|
canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
|
|
21776
21776
|
refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
|
|
@@ -21956,9 +21956,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21956
21956
|
axis: "y",
|
|
21957
21957
|
target: elementRef,
|
|
21958
21958
|
enabled: !props.disabled,
|
|
21959
|
-
eventOptions:
|
|
21960
|
-
passive: false
|
|
21961
|
-
} : false
|
|
21959
|
+
eventOptions: false
|
|
21962
21960
|
});
|
|
21963
21961
|
var renderIcons = function(status2) {
|
|
21964
21962
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("i", {
|
|
@@ -22006,7 +22004,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22006
22004
|
};
|
|
22007
22005
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
22008
22006
|
var AvatarContext = React.createContext({});
|
|
22009
|
-
var defaultProps$
|
|
22007
|
+
var defaultProps$x = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22010
22008
|
maxContent: "",
|
|
22011
22009
|
max: "",
|
|
22012
22010
|
maxBackground: "#eee",
|
|
@@ -22016,7 +22014,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22016
22014
|
});
|
|
22017
22015
|
var classPrefix$a = "nut-avatar-group";
|
|
22018
22016
|
var AvatarGroup = function(props) {
|
|
22019
|
-
var propAvatarGroup = _object_spread({}, defaultProps$
|
|
22017
|
+
var propAvatarGroup = _object_spread({}, defaultProps$x, props);
|
|
22020
22018
|
var className = propAvatarGroup.className, style = propAvatarGroup.style, children = propAvatarGroup.children;
|
|
22021
22019
|
var avatarGroupRef = React.useRef(null);
|
|
22022
22020
|
var cls = classNames(classPrefix$a, className);
|
|
@@ -22033,7 +22031,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22033
22031
|
}, children));
|
|
22034
22032
|
};
|
|
22035
22033
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
22036
|
-
var defaultProps$
|
|
22034
|
+
var defaultProps$w = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22037
22035
|
size: "",
|
|
22038
22036
|
shape: "round",
|
|
22039
22037
|
icon: "",
|
|
@@ -22045,7 +22043,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22045
22043
|
});
|
|
22046
22044
|
var classPrefix$9 = "nut-avatar";
|
|
22047
22045
|
var Avatar = function(props) {
|
|
22048
|
-
var _ref = _object_spread({}, defaultProps$
|
|
22046
|
+
var _ref = _object_spread({}, defaultProps$w, props), children = _ref.children, size = _ref.size, shape = _ref.shape, background = _ref.background, color = _ref.color, src = _ref.src, alt = _ref.alt, icon = _ref.icon, fit = _ref.fit, className = _ref.className, style = _ref.style, onClick = _ref.onClick, onError = _ref.onError, rest = _object_without_properties(_ref, [
|
|
22049
22047
|
"children",
|
|
22050
22048
|
"size",
|
|
22051
22049
|
"shape",
|
|
@@ -22144,7 +22142,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22144
22142
|
};
|
|
22145
22143
|
Avatar.displayName = "NutAvatar";
|
|
22146
22144
|
Avatar.Group = AvatarGroup;
|
|
22147
|
-
var defaultProps$
|
|
22145
|
+
var defaultProps$v = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22148
22146
|
rows: 1,
|
|
22149
22147
|
animated: false,
|
|
22150
22148
|
title: false,
|
|
@@ -22154,7 +22152,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22154
22152
|
avatarShape: "round"
|
|
22155
22153
|
});
|
|
22156
22154
|
var Skeleton = function(props) {
|
|
22157
|
-
var _ref = _object_spread({}, defaultProps$
|
|
22155
|
+
var _ref = _object_spread({}, defaultProps$v, props), className = _ref.className, animated2 = _ref.animated, rows = _ref.rows, title = _ref.title, avatar = _ref.avatar, avatarSize = _ref.avatarSize, visible = _ref.visible, children = _ref.children, avatarShape = _ref.avatarShape, rest = _object_without_properties(_ref, [
|
|
22158
22156
|
"className",
|
|
22159
22157
|
"animated",
|
|
22160
22158
|
"rows",
|
|
@@ -22221,13 +22219,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22221
22219
|
event.stopPropagation();
|
|
22222
22220
|
}
|
|
22223
22221
|
}
|
|
22224
|
-
var defaultProps$
|
|
22222
|
+
var defaultProps$u = {
|
|
22225
22223
|
name: ""
|
|
22226
22224
|
};
|
|
22227
22225
|
var Swipe = /* @__PURE__ */ React.forwardRef(function(props, instanceRef) {
|
|
22228
22226
|
var classPrefix2 = "nut-swipe";
|
|
22229
22227
|
var touch = useTouch();
|
|
22230
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
22228
|
+
var _$_object_spread = _object_spread({}, defaultProps$u, props), children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
22231
22229
|
var root2 = React.useRef();
|
|
22232
22230
|
var opened = React.useRef(false);
|
|
22233
22231
|
var lockClick = React.useRef(false);
|
|
@@ -22544,13 +22542,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22544
22542
|
className: "".concat(classPrefix$8, " ").concat(classes),
|
|
22545
22543
|
id: "toast-".concat(id)
|
|
22546
22544
|
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
22547
|
-
className: "".concat(classPrefix$8, "-inner "
|
|
22545
|
+
className: classNames("".concat(classPrefix$8, "-inner"), "".concat(classPrefix$8, "-").concat(position), contentClassName, "".concat(classPrefix$8, "-inner-").concat(size), "".concat(classPrefix$8, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix$8, "-inner-descrption"), content)),
|
|
22548
22546
|
style: _object_spread({}, contentStyle)
|
|
22549
22547
|
}, this.renderIcon(), title ? /* @__PURE__ */ React__namespace.createElement("div", {
|
|
22550
22548
|
className: "".concat(classPrefix$8, "-title")
|
|
22551
|
-
}, title) : null, /* @__PURE__ */ React__namespace.createElement("span", {
|
|
22552
|
-
className: "".concat(classPrefix$8, "-text
|
|
22553
|
-
}, content)))));
|
|
22549
|
+
}, title) : null, content ? /* @__PURE__ */ React__namespace.createElement("span", {
|
|
22550
|
+
className: "".concat(classPrefix$8, "-text")
|
|
22551
|
+
}, content) : null))));
|
|
22554
22552
|
}
|
|
22555
22553
|
}
|
|
22556
22554
|
]);
|
|
@@ -22605,18 +22603,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22605
22603
|
return callback && callback(notification);
|
|
22606
22604
|
});
|
|
22607
22605
|
}
|
|
22608
|
-
function notice(
|
|
22606
|
+
function notice(opts) {
|
|
22609
22607
|
function close() {
|
|
22610
22608
|
if (messageInstance) {
|
|
22611
22609
|
messageInstance.destroy();
|
|
22612
22610
|
messageInstance = null;
|
|
22613
|
-
|
|
22611
|
+
opts.onClose && opts.onClose();
|
|
22614
22612
|
}
|
|
22615
22613
|
}
|
|
22616
|
-
var
|
|
22614
|
+
var opts2 = _object_spread_props(_object_spread({}, options, opts), {
|
|
22617
22615
|
onClose: close
|
|
22618
22616
|
});
|
|
22619
|
-
getInstance(
|
|
22617
|
+
getInstance(opts2, function(notification) {
|
|
22620
22618
|
messageInstance = notification;
|
|
22621
22619
|
});
|
|
22622
22620
|
}
|
|
@@ -22648,7 +22646,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22648
22646
|
}
|
|
22649
22647
|
}
|
|
22650
22648
|
};
|
|
22651
|
-
var defaultProps$
|
|
22649
|
+
var defaultProps$t = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22652
22650
|
type: "shake",
|
|
22653
22651
|
action: "initial",
|
|
22654
22652
|
loop: false,
|
|
@@ -22657,7 +22655,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22657
22655
|
});
|
|
22658
22656
|
var classPrefix$7 = "nut-animate";
|
|
22659
22657
|
var Animate = function(props) {
|
|
22660
|
-
var _ref = _object_spread({}, defaultProps$
|
|
22658
|
+
var _ref = _object_spread({}, defaultProps$t, props), className = _ref.className, type2 = _ref.type, action = _ref.action, loop2 = _ref.loop, onClick = _ref.onClick, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
22661
22659
|
"className",
|
|
22662
22660
|
"type",
|
|
22663
22661
|
"action",
|
|
@@ -22688,7 +22686,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22688
22686
|
}, rest), children));
|
|
22689
22687
|
};
|
|
22690
22688
|
Animate.displayName = "NutAnimate";
|
|
22691
|
-
var defaultProps$
|
|
22689
|
+
var defaultProps$s = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22692
22690
|
length: 0,
|
|
22693
22691
|
value: "",
|
|
22694
22692
|
delay: 300,
|
|
@@ -22696,7 +22694,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22696
22694
|
thousands: false
|
|
22697
22695
|
});
|
|
22698
22696
|
var CountUp = function(props) {
|
|
22699
|
-
var _mergeProps = mergeProps(defaultProps$
|
|
22697
|
+
var _mergeProps = mergeProps(defaultProps$s, props), length = _mergeProps.length, value = _mergeProps.value, delay = _mergeProps.delay, duration = _mergeProps.duration, className = _mergeProps.className, thousands = _mergeProps.thousands;
|
|
22700
22698
|
_mergeProps.style;
|
|
22701
22699
|
_object_without_properties(_mergeProps, [
|
|
22702
22700
|
"length",
|
|
@@ -22783,7 +22781,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22783
22781
|
})));
|
|
22784
22782
|
};
|
|
22785
22783
|
CountUp.displayName = "NutCountUp";
|
|
22786
|
-
var defaultProps$
|
|
22784
|
+
var defaultProps$r = {};
|
|
22787
22785
|
var AnimatingNumbers = /* @__PURE__ */ function(Component) {
|
|
22788
22786
|
_inherits(AnimatingNumbers2, Component);
|
|
22789
22787
|
function AnimatingNumbers2(props) {
|
|
@@ -22807,11 +22805,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22807
22805
|
]);
|
|
22808
22806
|
return AnimatingNumbers2;
|
|
22809
22807
|
}(React.Component);
|
|
22810
|
-
_define_property(AnimatingNumbers, "defaultProps", defaultProps$
|
|
22808
|
+
_define_property(AnimatingNumbers, "defaultProps", defaultProps$r);
|
|
22811
22809
|
_define_property(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
22812
22810
|
_define_property(AnimatingNumbers, "CountUp", CountUp);
|
|
22813
22811
|
AnimatingNumbers.CountUp = CountUp;
|
|
22814
|
-
var defaultProps$
|
|
22812
|
+
var defaultProps$q = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
22815
22813
|
src: "",
|
|
22816
22814
|
muted: false,
|
|
22817
22815
|
autoPlay: false,
|
|
@@ -22841,7 +22839,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22841
22839
|
}
|
|
22842
22840
|
};
|
|
22843
22841
|
var locale = useConfig().locale;
|
|
22844
|
-
var _ref = _object_spread({}, defaultProps$
|
|
22842
|
+
var _ref = _object_spread({}, defaultProps$q, props), className = _ref.className, src = _ref.src, style = _ref.style, muted = _ref.muted, autoPlay = _ref.autoPlay, loop2 = _ref.loop, preload = _ref.preload, type2 = _ref.type, onBack = _ref.onBack, onForward = _ref.onForward, onPause = _ref.onPause, onEnd = _ref.onEnd, onMute = _ref.onMute, onCanPlay = _ref.onCanPlay, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
22845
22843
|
"className",
|
|
22846
22844
|
"src",
|
|
22847
22845
|
"style",
|
|
@@ -23049,7 +23047,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23049
23047
|
})));
|
|
23050
23048
|
};
|
|
23051
23049
|
Audio.displayName = "NutAudio";
|
|
23052
|
-
var defaultProps$
|
|
23050
|
+
var defaultProps$p = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23053
23051
|
strokeWidth: 5,
|
|
23054
23052
|
radius: 50,
|
|
23055
23053
|
strokeLinecap: "round",
|
|
@@ -23060,7 +23058,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23060
23058
|
var classPrefix$6 = "nut-circleprogress";
|
|
23061
23059
|
var CircleProgress = function(props) {
|
|
23062
23060
|
var _stop;
|
|
23063
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23061
|
+
var _ref = _object_spread({}, defaultProps$p, props), children = _ref.children, percent = _ref.percent, className = _ref.className, radius = _ref.radius, clockwise = _ref.clockwise, strokeWidth = _ref.strokeWidth, color = _ref.color, background = _ref.background, style = _ref.style, strokeLinecap = _ref.strokeLinecap, restProps = _object_without_properties(_ref, [
|
|
23064
23062
|
"children",
|
|
23065
23063
|
"percent",
|
|
23066
23064
|
"className",
|
|
@@ -23158,7 +23156,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23158
23156
|
rotate: 180
|
|
23159
23157
|
};
|
|
23160
23158
|
const CollapseContext = React.createContext(collapseContext);
|
|
23161
|
-
var defaultProps$
|
|
23159
|
+
var defaultProps$o = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23162
23160
|
title: null,
|
|
23163
23161
|
name: "",
|
|
23164
23162
|
expandIcon: null,
|
|
@@ -23166,7 +23164,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23166
23164
|
extra: null
|
|
23167
23165
|
});
|
|
23168
23166
|
var CollapseItem = function(props) {
|
|
23169
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23167
|
+
var _ref = _object_spread({}, defaultProps$o, props), children = _ref.children, title = _ref.title, name = _ref.name, disabled = _ref.disabled, expandIcon = _ref.expandIcon, rotate = _ref.rotate, extra = _ref.extra, style = _ref.style, className = _ref.className, rest = _object_without_properties(_ref, [
|
|
23170
23168
|
"children",
|
|
23171
23169
|
"title",
|
|
23172
23170
|
"name",
|
|
@@ -23271,14 +23269,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23271
23269
|
}, children)));
|
|
23272
23270
|
};
|
|
23273
23271
|
CollapseItem.displayName = "NutCollapseItem";
|
|
23274
|
-
var defaultProps$
|
|
23272
|
+
var defaultProps$n = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23275
23273
|
defaultActiveName: [],
|
|
23276
23274
|
accordion: false,
|
|
23277
23275
|
expandIcon: null,
|
|
23278
23276
|
rotate: 180
|
|
23279
23277
|
});
|
|
23280
23278
|
var Collapse = function(props) {
|
|
23281
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
23279
|
+
var _$_object_spread = _object_spread({}, defaultProps$n, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, activeName = _$_object_spread.activeName, defaultActiveName = _$_object_spread.defaultActiveName, accordion = _$_object_spread.accordion, expandIcon = _$_object_spread.expandIcon, rotate = _$_object_spread.rotate, onChange = _$_object_spread.onChange;
|
|
23282
23280
|
var classPrefix2 = "nut-collapse";
|
|
23283
23281
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
23284
23282
|
value: activeName,
|
|
@@ -23338,7 +23336,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23338
23336
|
};
|
|
23339
23337
|
Collapse.displayName = "NutCollapse";
|
|
23340
23338
|
Collapse.Item = CollapseItem;
|
|
23341
|
-
var defaultProps$
|
|
23339
|
+
var defaultProps$m = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23342
23340
|
type: "default",
|
|
23343
23341
|
paused: false,
|
|
23344
23342
|
startTime: Date.now(),
|
|
@@ -23351,7 +23349,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23351
23349
|
destroy: false
|
|
23352
23350
|
});
|
|
23353
23351
|
var InternalCountDown = function(props, ref) {
|
|
23354
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23352
|
+
var _ref = _object_spread({}, defaultProps$m, props), type2 = _ref.type, paused = _ref.paused, startTime = _ref.startTime, endTime = _ref.endTime, remainingTime = _ref.remainingTime;
|
|
23355
23353
|
_ref.millisecond;
|
|
23356
23354
|
var format2 = _ref.format, autoStart = _ref.autoStart, time = _ref.time, destroy = _ref.destroy, className = _ref.className, style = _ref.style, onEnd = _ref.onEnd, onPaused = _ref.onPaused, onRestart = _ref.onRestart, onUpdate = _ref.onUpdate, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
23357
23355
|
"type",
|
|
@@ -23571,7 +23569,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23571
23569
|
var CountDown = /* @__PURE__ */ React.forwardRef(InternalCountDown);
|
|
23572
23570
|
CountDown.displayName = "NutCountDown";
|
|
23573
23571
|
var useIsomorphicLayoutEffect = canUseDom ? React.useLayoutEffect : React.useEffect;
|
|
23574
|
-
var defaultProps$
|
|
23572
|
+
var defaultProps$l = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23575
23573
|
content: "",
|
|
23576
23574
|
direction: "end",
|
|
23577
23575
|
rows: 1,
|
|
@@ -23583,7 +23581,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23583
23581
|
var classPrefix$5 = "nut-ellipsis";
|
|
23584
23582
|
var Ellipsis = function(props) {
|
|
23585
23583
|
var _ellipsis_current, _ellipsis_current1;
|
|
23586
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23584
|
+
var _ref = _object_spread({}, defaultProps$l, props);
|
|
23587
23585
|
_ref.children;
|
|
23588
23586
|
var content = _ref.content, className = _ref.className, direction = _ref.direction, rows = _ref.rows, expandText = _ref.expandText, collapseText = _ref.collapseText, symbol = _ref.symbol, lineHeight = _ref.lineHeight, onClick = _ref.onClick, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
|
|
23589
23587
|
"children",
|
|
@@ -23752,7 +23750,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23752
23750
|
}, collapseText) : null) : null);
|
|
23753
23751
|
};
|
|
23754
23752
|
Ellipsis.displayName = "NutEllipsis";
|
|
23755
|
-
var defaultProps$
|
|
23753
|
+
var defaultProps$k = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
23756
23754
|
source: {
|
|
23757
23755
|
type: {},
|
|
23758
23756
|
src: ""
|
|
@@ -23767,8 +23765,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23767
23765
|
}
|
|
23768
23766
|
});
|
|
23769
23767
|
var classPrefix$4 = "nut-video";
|
|
23770
|
-
var Video = function(props) {
|
|
23771
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23768
|
+
var Video = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23769
|
+
var _ref = _object_spread({}, defaultProps$k, props);
|
|
23772
23770
|
_ref.children;
|
|
23773
23771
|
var source = _ref.source, options2 = _ref.options, className = _ref.className, onPlay = _ref.onPlay, onPause = _ref.onPause, onPlayEnd = _ref.onPlayEnd, restProps = _object_without_properties(_ref, [
|
|
23774
23772
|
"children",
|
|
@@ -23810,6 +23808,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23810
23808
|
});
|
|
23811
23809
|
}
|
|
23812
23810
|
};
|
|
23811
|
+
var pause = function() {
|
|
23812
|
+
var _rootRef_current;
|
|
23813
|
+
rootRef === null || rootRef === void 0 ? void 0 : (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.pause();
|
|
23814
|
+
};
|
|
23815
|
+
var play = function() {
|
|
23816
|
+
var _rootRef_current;
|
|
23817
|
+
rootRef === null || rootRef === void 0 ? void 0 : (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.play();
|
|
23818
|
+
};
|
|
23819
|
+
React.useImperativeHandle(ref, function() {
|
|
23820
|
+
return {
|
|
23821
|
+
pause,
|
|
23822
|
+
play
|
|
23823
|
+
};
|
|
23824
|
+
});
|
|
23813
23825
|
return /* @__PURE__ */ React.createElement("div", _object_spread({
|
|
23814
23826
|
className: classes
|
|
23815
23827
|
}, restProps), /* @__PURE__ */ React.createElement("video", {
|
|
@@ -23827,16 +23839,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23827
23839
|
}), /* @__PURE__ */ React.createElement("track", {
|
|
23828
23840
|
kind: "captions"
|
|
23829
23841
|
})));
|
|
23830
|
-
};
|
|
23842
|
+
});
|
|
23831
23843
|
Video.displayName = "NutVideo";
|
|
23832
|
-
var defaultProps$
|
|
23844
|
+
var defaultProps$j = {
|
|
23833
23845
|
total: 3,
|
|
23834
23846
|
current: 0,
|
|
23835
23847
|
direction: "horizontal"
|
|
23836
23848
|
};
|
|
23837
23849
|
var classPrefix$3 = "nut-indicator";
|
|
23838
23850
|
var Indicator = function(props) {
|
|
23839
|
-
var _ref = _object_spread({}, defaultProps$
|
|
23851
|
+
var _ref = _object_spread({}, defaultProps$j, props), total = _ref.total, current = _ref.current, children = _ref.children, className = _ref.className, direction = _ref.direction, rest = _object_without_properties(_ref, [
|
|
23840
23852
|
"total",
|
|
23841
23853
|
"current",
|
|
23842
23854
|
"children",
|
|
@@ -23966,7 +23978,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23966
23978
|
);
|
|
23967
23979
|
}));
|
|
23968
23980
|
};
|
|
23969
|
-
var defaultProps$
|
|
23981
|
+
var defaultProps$i = {
|
|
23970
23982
|
direction: "horizontal",
|
|
23971
23983
|
indicator: false,
|
|
23972
23984
|
loop: false,
|
|
@@ -23976,7 +23988,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23976
23988
|
touchable: true,
|
|
23977
23989
|
effect: void 0
|
|
23978
23990
|
};
|
|
23979
|
-
var Swiper = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23991
|
+
var Swiper$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23980
23992
|
var boundIndex = function boundIndex2(current2) {
|
|
23981
23993
|
var min = 0;
|
|
23982
23994
|
var max = count - 1;
|
|
@@ -23989,7 +24001,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23989
24001
|
return current2;
|
|
23990
24002
|
};
|
|
23991
24003
|
var classPrefix2 = "nut-swiper";
|
|
23992
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
24004
|
+
var _$_object_spread = _object_spread({}, defaultProps$i, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop2 = _$_object_spread.loop, effect = _$_object_spread.effect, autoPlay = _$_object_spread.autoPlay, touchable = _$_object_spread.touchable, defaultValue = _$_object_spread.defaultValue, duration = _$_object_spread.duration, style = _$_object_spread.style, className = _$_object_spread.className;
|
|
23993
24005
|
var isVertical = direction === "vertical";
|
|
23994
24006
|
var count = React.useMemo(function() {
|
|
23995
24007
|
var c6 = 0;
|
|
@@ -24213,15 +24225,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24213
24225
|
ref: swiperRef
|
|
24214
24226
|
}, bind()), renderSlides(), renderIndicator());
|
|
24215
24227
|
});
|
|
24216
|
-
Swiper.displayName = "NutSwiper";
|
|
24217
|
-
var defaultProps$
|
|
24228
|
+
Swiper$1.displayName = "NutSwiper";
|
|
24229
|
+
var defaultProps$h = {
|
|
24218
24230
|
onClick: function(e) {
|
|
24219
24231
|
return void 0;
|
|
24220
24232
|
}
|
|
24221
24233
|
};
|
|
24222
24234
|
var SwiperItem = function(props) {
|
|
24223
24235
|
var classPrefix2 = "nut-swiper-item";
|
|
24224
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
24236
|
+
var _$_object_spread = _object_spread({}, defaultProps$h, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children;
|
|
24225
24237
|
var classes = classNames(classPrefix2, className);
|
|
24226
24238
|
return /* @__PURE__ */ React.createElement("div", {
|
|
24227
24239
|
className: classes,
|
|
@@ -24230,9 +24242,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24230
24242
|
}, children);
|
|
24231
24243
|
};
|
|
24232
24244
|
SwiperItem.displayName = "NutSwiperItem";
|
|
24233
|
-
var InnerSwiper = Swiper;
|
|
24245
|
+
var InnerSwiper = Swiper$1;
|
|
24234
24246
|
InnerSwiper.Item = SwiperItem;
|
|
24235
|
-
|
|
24247
|
+
const Swiper = InnerSwiper;
|
|
24248
|
+
var defaultProps$g = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
24236
24249
|
images: [],
|
|
24237
24250
|
videos: [],
|
|
24238
24251
|
visible: false,
|
|
@@ -24250,7 +24263,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24250
24263
|
}
|
|
24251
24264
|
});
|
|
24252
24265
|
var ImagePreview = function(props) {
|
|
24253
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
24266
|
+
var _$_object_spread = _object_spread({}, defaultProps$g, props), value = _$_object_spread.value, className = _$_object_spread.className, style = _$_object_spread.style, images = _$_object_spread.images, videos = _$_object_spread.videos, visible = _$_object_spread.visible, defaultValue = _$_object_spread.defaultValue, indicatorColor = _$_object_spread.indicatorColor, pagination = _$_object_spread.pagination, indicator = _$_object_spread.indicator, autoPlay = _$_object_spread.autoPlay, closeOnContentClick = _$_object_spread.closeOnContentClick, closeIcon = _$_object_spread.closeIcon, closeIconPosition = _$_object_spread.closeIconPosition, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange;
|
|
24254
24267
|
var classPrefix2 = "nut-imagepreview";
|
|
24255
24268
|
var ref = React.useRef(null);
|
|
24256
24269
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
@@ -24399,7 +24412,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24399
24412
|
style,
|
|
24400
24413
|
ref,
|
|
24401
24414
|
onTouchStart
|
|
24402
|
-
}, showPop ? /* @__PURE__ */ React.createElement(
|
|
24415
|
+
}, showPop ? /* @__PURE__ */ React.createElement(Swiper, {
|
|
24403
24416
|
autoPlay: !!duration,
|
|
24404
24417
|
duration,
|
|
24405
24418
|
className: "".concat(classPrefix2, "-swiper"),
|
|
@@ -24457,7 +24470,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24457
24470
|
}, closeIcon === true ? /* @__PURE__ */ React.createElement(n$5, null) : closeIcon) : null);
|
|
24458
24471
|
};
|
|
24459
24472
|
ImagePreview.displayName = "NutImagePreview";
|
|
24460
|
-
var defaultProps$
|
|
24473
|
+
var defaultProps$f = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
24461
24474
|
defaultValue: 1,
|
|
24462
24475
|
mode: "multi",
|
|
24463
24476
|
prev: null,
|
|
@@ -24469,7 +24482,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24469
24482
|
});
|
|
24470
24483
|
var Pagination = function(props) {
|
|
24471
24484
|
var locale = useConfig().locale;
|
|
24472
|
-
var _ref = _object_spread({}, defaultProps$
|
|
24485
|
+
var _ref = _object_spread({}, defaultProps$f, props), value = _ref.value, mode = _ref.mode, prev = _ref.prev, next = _ref.next, total = _ref.total, pageSize = _ref.pageSize, itemSize = _ref.itemSize, onChange = _ref.onChange, ellipse = _ref.ellipse, itemRender = _ref.itemRender, defaultValue = _ref.defaultValue, className = _ref.className;
|
|
24473
24486
|
_ref.style;
|
|
24474
24487
|
var rest = _object_without_properties(_ref, [
|
|
24475
24488
|
"value",
|
|
@@ -24580,6 +24593,62 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24580
24593
|
}, pageCount)));
|
|
24581
24594
|
};
|
|
24582
24595
|
Pagination.displayName = "NutPagination";
|
|
24596
|
+
var defaultProps$e = {
|
|
24597
|
+
options: [],
|
|
24598
|
+
onChange: function(value) {
|
|
24599
|
+
}
|
|
24600
|
+
};
|
|
24601
|
+
var Segmented = function(props) {
|
|
24602
|
+
var classPrefix2 = "nut-segmented";
|
|
24603
|
+
var itemClassPrefix = "nut-segmented-item";
|
|
24604
|
+
var mergedProps = mergeProps(defaultProps$e, props);
|
|
24605
|
+
var options2 = mergedProps.options;
|
|
24606
|
+
mergedProps.onChange;
|
|
24607
|
+
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
24608
|
+
value: mergedProps.value,
|
|
24609
|
+
defaultValue: mergedProps.defaultValue,
|
|
24610
|
+
finalValue: 0,
|
|
24611
|
+
onChange: mergedProps.onChange
|
|
24612
|
+
}), 2), value = _usePropsValue[0], setValue = _usePropsValue[1];
|
|
24613
|
+
var renderItems = React.useCallback(function(options3, value2) {
|
|
24614
|
+
return options3.map(function(option, index) {
|
|
24615
|
+
var optionType = typeof option === "undefined" ? "undefined" : _type_of(option);
|
|
24616
|
+
switch (optionType) {
|
|
24617
|
+
case "object":
|
|
24618
|
+
var opt = option;
|
|
24619
|
+
var _obj;
|
|
24620
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
24621
|
+
className: classNames(itemClassPrefix, (_obj = {}, _define_property(_obj, "".concat(itemClassPrefix, "-active"), opt.value === value2), _define_property(_obj, "".concat(opt.className), !!opt.className), _obj)),
|
|
24622
|
+
key: opt.value,
|
|
24623
|
+
onClick: function() {
|
|
24624
|
+
if (opt.disabled) return;
|
|
24625
|
+
setValue(opt.value);
|
|
24626
|
+
}
|
|
24627
|
+
}, opt.icon ? /* @__PURE__ */ React.createElement("span", {
|
|
24628
|
+
className: "nut-segmented-icon"
|
|
24629
|
+
}, opt.icon) : null, opt.label);
|
|
24630
|
+
default: {
|
|
24631
|
+
if (typeof option !== "string" && typeof option !== "number") {
|
|
24632
|
+
console.warn("Unsupported option type:", optionType);
|
|
24633
|
+
}
|
|
24634
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
24635
|
+
className: classNames(itemClassPrefix, _define_property({}, "".concat(itemClassPrefix, "-active"), index === value2)),
|
|
24636
|
+
key: option.toString(),
|
|
24637
|
+
onClick: function() {
|
|
24638
|
+
setValue(index);
|
|
24639
|
+
}
|
|
24640
|
+
}, option);
|
|
24641
|
+
}
|
|
24642
|
+
}
|
|
24643
|
+
});
|
|
24644
|
+
}, [
|
|
24645
|
+
value
|
|
24646
|
+
]);
|
|
24647
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
24648
|
+
className: classNames(classPrefix2),
|
|
24649
|
+
style: mergedProps.style
|
|
24650
|
+
}, renderItems(options2, value));
|
|
24651
|
+
};
|
|
24583
24652
|
var defaultProps$d = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
24584
24653
|
price: 0,
|
|
24585
24654
|
symbol: "¥",
|
|
@@ -26494,7 +26563,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26494
26563
|
exports2.Cascader = Cascader;
|
|
26495
26564
|
exports2.Cell = Cell;
|
|
26496
26565
|
exports2.CellGroup = CellGroup;
|
|
26497
|
-
exports2.Checkbox = InnerCheckbox;
|
|
26566
|
+
exports2.Checkbox = InnerCheckbox$1;
|
|
26498
26567
|
exports2.CheckboxGroup = CheckboxGroup;
|
|
26499
26568
|
exports2.CircleProgress = CircleProgress;
|
|
26500
26569
|
exports2.Col = Col;
|
|
@@ -26510,7 +26579,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26510
26579
|
exports2.Ellipsis = Ellipsis;
|
|
26511
26580
|
exports2.Empty = Empty;
|
|
26512
26581
|
exports2.FixedNav = FixedNav;
|
|
26513
|
-
exports2.Form = InnerForm;
|
|
26582
|
+
exports2.Form = InnerForm$1;
|
|
26514
26583
|
exports2.FormItem = FormItem;
|
|
26515
26584
|
exports2.Grid = Grid;
|
|
26516
26585
|
exports2.GridItem = GridItem;
|
|
@@ -26538,7 +26607,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26538
26607
|
exports2.Price = Price;
|
|
26539
26608
|
exports2.Progress = Progress;
|
|
26540
26609
|
exports2.PullToRefresh = PullToRefresh;
|
|
26541
|
-
exports2.Radio =
|
|
26610
|
+
exports2.Radio = Radio;
|
|
26542
26611
|
exports2.RadioGroup = RadioGroup;
|
|
26543
26612
|
exports2.Range = Range;
|
|
26544
26613
|
exports2.Rate = Rate;
|
|
@@ -26546,6 +26615,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26546
26615
|
exports2.Row = Row;
|
|
26547
26616
|
exports2.SafeArea = SafeArea;
|
|
26548
26617
|
exports2.SearchBar = SearchBar;
|
|
26618
|
+
exports2.Segmented = Segmented;
|
|
26549
26619
|
exports2.ShortPassword = ShortPassword;
|
|
26550
26620
|
exports2.SideNavBar = SideNavBar;
|
|
26551
26621
|
exports2.SideNavBarItem = SideNavBarItem;
|
|
@@ -26557,7 +26627,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26557
26627
|
exports2.Sticky = Sticky;
|
|
26558
26628
|
exports2.SubSideNavBar = SubSideNavBar;
|
|
26559
26629
|
exports2.Swipe = Swipe;
|
|
26560
|
-
exports2.Swiper =
|
|
26630
|
+
exports2.Swiper = Swiper;
|
|
26561
26631
|
exports2.SwiperItem = SwiperItem;
|
|
26562
26632
|
exports2.Switch = Switch;
|
|
26563
26633
|
exports2.TabPane = TabPane;
|