@nutui/nutui-react 1.5.3 → 1.5.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +65 -93
- package/dist/nutui.react.umd.js +65 -93
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v1.5.
|
|
9
|
+
* @nutui/nutui-react v1.5.4-beta.0 Wed May 10 2023 17:00:22 GMT+0800 (中国标准时间)
|
|
10
10
|
* (c) 2023 @jdf2e.
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
@@ -15,15 +15,10 @@ import React__default, { useCallback, useState, useEffect, createContext, useMem
|
|
|
15
15
|
import * as ReactDOM from "react-dom";
|
|
16
16
|
import ReactDOM__default, { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
17
17
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
set exports(v) {
|
|
24
|
-
classnameExports = v;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
18
|
+
function getDefaultExportFromCjs(x) {
|
|
19
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
20
|
+
}
|
|
21
|
+
var classname = { exports: {} };
|
|
27
22
|
var classname_production_min = {};
|
|
28
23
|
var hasRequiredClassname_production_min;
|
|
29
24
|
function requireClassname_production_min() {
|
|
@@ -127,13 +122,12 @@ function requireClassname_development() {
|
|
|
127
122
|
classname_development.withNaming = withNaming;
|
|
128
123
|
return classname_development;
|
|
129
124
|
}
|
|
130
|
-
(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})(classname);
|
|
125
|
+
if (process.env.NODE_ENV === "production") {
|
|
126
|
+
classname.exports = requireClassname_production_min();
|
|
127
|
+
} else {
|
|
128
|
+
classname.exports = requireClassname_development();
|
|
129
|
+
}
|
|
130
|
+
var classnameExports = classname.exports;
|
|
137
131
|
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
138
132
|
const defaultProps$1s = {
|
|
139
133
|
name: "",
|
|
@@ -745,6 +739,7 @@ function words(string3, pattern4, guard) {
|
|
|
745
739
|
return string3.match(pattern4) || [];
|
|
746
740
|
}
|
|
747
741
|
var lodash_kebabcase = kebabCase;
|
|
742
|
+
const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
|
|
748
743
|
const zhCN = {
|
|
749
744
|
save: "保存",
|
|
750
745
|
confirm: "确认",
|
|
@@ -892,7 +887,7 @@ const useConfig = () => {
|
|
|
892
887
|
function convertThemeVarsToCSSVars(themeVars) {
|
|
893
888
|
const cssVars = {};
|
|
894
889
|
Object.keys(themeVars).forEach((key) => {
|
|
895
|
-
cssVars[`--${
|
|
890
|
+
cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
|
|
896
891
|
});
|
|
897
892
|
return cssVars;
|
|
898
893
|
}
|
|
@@ -1068,15 +1063,7 @@ const Image$1 = (props) => {
|
|
|
1068
1063
|
};
|
|
1069
1064
|
Image$1.defaultProps = defaultProps$1n;
|
|
1070
1065
|
Image$1.displayName = "NutImage";
|
|
1071
|
-
var
|
|
1072
|
-
var classnames = {
|
|
1073
|
-
get exports() {
|
|
1074
|
-
return classnamesExports;
|
|
1075
|
-
},
|
|
1076
|
-
set exports(v) {
|
|
1077
|
-
classnamesExports = v;
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1066
|
+
var classnames = { exports: {} };
|
|
1080
1067
|
/*!
|
|
1081
1068
|
Copyright (c) 2018 Jed Watson.
|
|
1082
1069
|
Licensed under the MIT License (MIT), see
|
|
@@ -1123,7 +1110,8 @@ var classnames = {
|
|
|
1123
1110
|
}
|
|
1124
1111
|
})();
|
|
1125
1112
|
})(classnames);
|
|
1126
|
-
|
|
1113
|
+
var classnamesExports = classnames.exports;
|
|
1114
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
1127
1115
|
const defaultOverlayProps = {
|
|
1128
1116
|
zIndex: 1e3,
|
|
1129
1117
|
duration: 0.3,
|
|
@@ -1238,24 +1226,8 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
1238
1226
|
subClass.prototype.constructor = subClass;
|
|
1239
1227
|
_setPrototypeOf$1(subClass, superClass);
|
|
1240
1228
|
}
|
|
1241
|
-
var
|
|
1242
|
-
var
|
|
1243
|
-
get exports() {
|
|
1244
|
-
return propTypesExports;
|
|
1245
|
-
},
|
|
1246
|
-
set exports(v) {
|
|
1247
|
-
propTypesExports = v;
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
var reactIsExports = {};
|
|
1251
|
-
var reactIs = {
|
|
1252
|
-
get exports() {
|
|
1253
|
-
return reactIsExports;
|
|
1254
|
-
},
|
|
1255
|
-
set exports(v) {
|
|
1256
|
-
reactIsExports = v;
|
|
1257
|
-
}
|
|
1258
|
-
};
|
|
1229
|
+
var propTypes = { exports: {} };
|
|
1230
|
+
var reactIs = { exports: {} };
|
|
1259
1231
|
var reactIs_production_min = {};
|
|
1260
1232
|
/** @license React v16.13.1
|
|
1261
1233
|
* react-is.production.min.js
|
|
@@ -1526,16 +1498,14 @@ function requireReactIs_development() {
|
|
|
1526
1498
|
var hasRequiredReactIs;
|
|
1527
1499
|
function requireReactIs() {
|
|
1528
1500
|
if (hasRequiredReactIs)
|
|
1529
|
-
return
|
|
1501
|
+
return reactIs.exports;
|
|
1530
1502
|
hasRequiredReactIs = 1;
|
|
1531
|
-
(
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
})(reactIs);
|
|
1538
|
-
return reactIsExports;
|
|
1503
|
+
if (process.env.NODE_ENV === "production") {
|
|
1504
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1505
|
+
} else {
|
|
1506
|
+
reactIs.exports = requireReactIs_development();
|
|
1507
|
+
}
|
|
1508
|
+
return reactIs.exports;
|
|
1539
1509
|
}
|
|
1540
1510
|
/*
|
|
1541
1511
|
object-assign
|
|
@@ -2202,6 +2172,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2202
2172
|
} else {
|
|
2203
2173
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2204
2174
|
}
|
|
2175
|
+
var propTypesExports = propTypes.exports;
|
|
2176
|
+
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2205
2177
|
function hasClass(element, className) {
|
|
2206
2178
|
if (element.classList)
|
|
2207
2179
|
return !!className && element.classList.contains(className);
|
|
@@ -2231,22 +2203,22 @@ function removeClass$1(element, className) {
|
|
|
2231
2203
|
const config$1 = {
|
|
2232
2204
|
disabled: false
|
|
2233
2205
|
};
|
|
2234
|
-
var timeoutsShape = process.env.NODE_ENV !== "production" ?
|
|
2235
|
-
enter:
|
|
2236
|
-
exit:
|
|
2237
|
-
appear:
|
|
2206
|
+
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
2207
|
+
enter: PropTypes.number,
|
|
2208
|
+
exit: PropTypes.number,
|
|
2209
|
+
appear: PropTypes.number
|
|
2238
2210
|
}).isRequired]) : null;
|
|
2239
|
-
var classNamesShape = process.env.NODE_ENV !== "production" ?
|
|
2240
|
-
enter:
|
|
2241
|
-
exit:
|
|
2242
|
-
active:
|
|
2243
|
-
}),
|
|
2244
|
-
enter:
|
|
2245
|
-
enterDone:
|
|
2246
|
-
enterActive:
|
|
2247
|
-
exit:
|
|
2248
|
-
exitDone:
|
|
2249
|
-
exitActive:
|
|
2211
|
+
var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2212
|
+
enter: PropTypes.string,
|
|
2213
|
+
exit: PropTypes.string,
|
|
2214
|
+
active: PropTypes.string
|
|
2215
|
+
}), PropTypes.shape({
|
|
2216
|
+
enter: PropTypes.string,
|
|
2217
|
+
enterDone: PropTypes.string,
|
|
2218
|
+
enterActive: PropTypes.string,
|
|
2219
|
+
exit: PropTypes.string,
|
|
2220
|
+
exitDone: PropTypes.string,
|
|
2221
|
+
exitActive: PropTypes.string
|
|
2250
2222
|
})]) : null;
|
|
2251
2223
|
const TransitionGroupContext = React__default.createContext(null);
|
|
2252
2224
|
var forceReflow = function forceReflow2(node) {
|
|
@@ -2496,10 +2468,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2496
2468
|
* (see
|
|
2497
2469
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2498
2470
|
*/
|
|
2499
|
-
nodeRef:
|
|
2500
|
-
current: typeof Element === "undefined" ?
|
|
2471
|
+
nodeRef: PropTypes.shape({
|
|
2472
|
+
current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
|
|
2501
2473
|
var value = propValue[key];
|
|
2502
|
-
return
|
|
2474
|
+
return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
2503
2475
|
}
|
|
2504
2476
|
}),
|
|
2505
2477
|
/**
|
|
@@ -2516,23 +2488,23 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2516
2488
|
* </Transition>
|
|
2517
2489
|
* ```
|
|
2518
2490
|
*/
|
|
2519
|
-
children:
|
|
2491
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
2520
2492
|
/**
|
|
2521
2493
|
* Show the component; triggers the enter or exit states
|
|
2522
2494
|
*/
|
|
2523
|
-
in:
|
|
2495
|
+
in: PropTypes.bool,
|
|
2524
2496
|
/**
|
|
2525
2497
|
* By default the child component is mounted immediately along with
|
|
2526
2498
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2527
2499
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2528
2500
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2529
2501
|
*/
|
|
2530
|
-
mountOnEnter:
|
|
2502
|
+
mountOnEnter: PropTypes.bool,
|
|
2531
2503
|
/**
|
|
2532
2504
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2533
2505
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2534
2506
|
*/
|
|
2535
|
-
unmountOnExit:
|
|
2507
|
+
unmountOnExit: PropTypes.bool,
|
|
2536
2508
|
/**
|
|
2537
2509
|
* By default the child component does not perform the enter transition when
|
|
2538
2510
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -2544,15 +2516,15 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2544
2516
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
2545
2517
|
* > differently.
|
|
2546
2518
|
*/
|
|
2547
|
-
appear:
|
|
2519
|
+
appear: PropTypes.bool,
|
|
2548
2520
|
/**
|
|
2549
2521
|
* Enable or disable enter transitions.
|
|
2550
2522
|
*/
|
|
2551
|
-
enter:
|
|
2523
|
+
enter: PropTypes.bool,
|
|
2552
2524
|
/**
|
|
2553
2525
|
* Enable or disable exit transitions.
|
|
2554
2526
|
*/
|
|
2555
|
-
exit:
|
|
2527
|
+
exit: PropTypes.bool,
|
|
2556
2528
|
/**
|
|
2557
2529
|
* The duration of the transition, in milliseconds.
|
|
2558
2530
|
* Required unless `addEndListener` is provided.
|
|
@@ -2602,7 +2574,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2602
2574
|
* }}
|
|
2603
2575
|
* ```
|
|
2604
2576
|
*/
|
|
2605
|
-
addEndListener:
|
|
2577
|
+
addEndListener: PropTypes.func,
|
|
2606
2578
|
/**
|
|
2607
2579
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
2608
2580
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2611,7 +2583,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2611
2583
|
*
|
|
2612
2584
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2613
2585
|
*/
|
|
2614
|
-
onEnter:
|
|
2586
|
+
onEnter: PropTypes.func,
|
|
2615
2587
|
/**
|
|
2616
2588
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
2617
2589
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2620,7 +2592,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2620
2592
|
*
|
|
2621
2593
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2622
2594
|
*/
|
|
2623
|
-
onEntering:
|
|
2595
|
+
onEntering: PropTypes.func,
|
|
2624
2596
|
/**
|
|
2625
2597
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
2626
2598
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2629,7 +2601,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2629
2601
|
*
|
|
2630
2602
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2631
2603
|
*/
|
|
2632
|
-
onEntered:
|
|
2604
|
+
onEntered: PropTypes.func,
|
|
2633
2605
|
/**
|
|
2634
2606
|
* Callback fired before the "exiting" status is applied.
|
|
2635
2607
|
*
|
|
@@ -2637,7 +2609,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2637
2609
|
*
|
|
2638
2610
|
* @type Function(node: HtmlElement) -> void
|
|
2639
2611
|
*/
|
|
2640
|
-
onExit:
|
|
2612
|
+
onExit: PropTypes.func,
|
|
2641
2613
|
/**
|
|
2642
2614
|
* Callback fired after the "exiting" status is applied.
|
|
2643
2615
|
*
|
|
@@ -2645,7 +2617,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2645
2617
|
*
|
|
2646
2618
|
* @type Function(node: HtmlElement) -> void
|
|
2647
2619
|
*/
|
|
2648
|
-
onExiting:
|
|
2620
|
+
onExiting: PropTypes.func,
|
|
2649
2621
|
/**
|
|
2650
2622
|
* Callback fired after the "exited" status is applied.
|
|
2651
2623
|
*
|
|
@@ -2653,7 +2625,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2653
2625
|
*
|
|
2654
2626
|
* @type Function(node: HtmlElement) -> void
|
|
2655
2627
|
*/
|
|
2656
|
-
onExited:
|
|
2628
|
+
onExited: PropTypes.func
|
|
2657
2629
|
} : {};
|
|
2658
2630
|
function noop$2() {
|
|
2659
2631
|
}
|
|
@@ -2892,7 +2864,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2892
2864
|
*
|
|
2893
2865
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2894
2866
|
*/
|
|
2895
|
-
onEnter:
|
|
2867
|
+
onEnter: PropTypes.func,
|
|
2896
2868
|
/**
|
|
2897
2869
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
2898
2870
|
* 'appear-active' class is applied.
|
|
@@ -2901,7 +2873,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2901
2873
|
*
|
|
2902
2874
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2903
2875
|
*/
|
|
2904
|
-
onEntering:
|
|
2876
|
+
onEntering: PropTypes.func,
|
|
2905
2877
|
/**
|
|
2906
2878
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
2907
2879
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -2910,7 +2882,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2910
2882
|
*
|
|
2911
2883
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2912
2884
|
*/
|
|
2913
|
-
onEntered:
|
|
2885
|
+
onEntered: PropTypes.func,
|
|
2914
2886
|
/**
|
|
2915
2887
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
2916
2888
|
* applied.
|
|
@@ -2919,7 +2891,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2919
2891
|
*
|
|
2920
2892
|
* @type Function(node: HtmlElement)
|
|
2921
2893
|
*/
|
|
2922
|
-
onExit:
|
|
2894
|
+
onExit: PropTypes.func,
|
|
2923
2895
|
/**
|
|
2924
2896
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
2925
2897
|
*
|
|
@@ -2927,7 +2899,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2927
2899
|
*
|
|
2928
2900
|
* @type Function(node: HtmlElement)
|
|
2929
2901
|
*/
|
|
2930
|
-
onExiting:
|
|
2902
|
+
onExiting: PropTypes.func,
|
|
2931
2903
|
/**
|
|
2932
2904
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
2933
2905
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -2936,7 +2908,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
|
|
|
2936
2908
|
*
|
|
2937
2909
|
* @type Function(node: HtmlElement)
|
|
2938
2910
|
*/
|
|
2939
|
-
onExited:
|
|
2911
|
+
onExited: PropTypes.func
|
|
2940
2912
|
}) : {};
|
|
2941
2913
|
const CSSTransition$1 = CSSTransition;
|
|
2942
2914
|
const defaultProps$1m = {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v1.5.
|
|
12
|
+
* @nutui/nutui-react v1.5.4-beta.0 Wed May 10 2023 17:00:22 GMT+0800 (中国标准时间)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -33,15 +33,10 @@ var __publicField = (obj, key, value) => {
|
|
|
33
33
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
34
34
|
const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
|
|
35
35
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
set exports(v) {
|
|
42
|
-
classnameExports = v;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
36
|
+
function getDefaultExportFromCjs(x) {
|
|
37
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
38
|
+
}
|
|
39
|
+
var classname = { exports: {} };
|
|
45
40
|
var classname_production_min = {};
|
|
46
41
|
var hasRequiredClassname_production_min;
|
|
47
42
|
function requireClassname_production_min() {
|
|
@@ -145,13 +140,12 @@ var __publicField = (obj, key, value) => {
|
|
|
145
140
|
classname_development.withNaming = withNaming;
|
|
146
141
|
return classname_development;
|
|
147
142
|
}
|
|
148
|
-
(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
})(classname);
|
|
143
|
+
if (process.env.NODE_ENV === "production") {
|
|
144
|
+
classname.exports = requireClassname_production_min();
|
|
145
|
+
} else {
|
|
146
|
+
classname.exports = requireClassname_development();
|
|
147
|
+
}
|
|
148
|
+
var classnameExports = classname.exports;
|
|
155
149
|
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
156
150
|
const defaultProps$1s = {
|
|
157
151
|
name: "",
|
|
@@ -763,6 +757,7 @@ var __publicField = (obj, key, value) => {
|
|
|
763
757
|
return string2.match(pattern2) || [];
|
|
764
758
|
}
|
|
765
759
|
var lodash_kebabcase = kebabCase;
|
|
760
|
+
const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
|
|
766
761
|
const zhCN = {
|
|
767
762
|
save: "保存",
|
|
768
763
|
confirm: "确认",
|
|
@@ -910,7 +905,7 @@ var __publicField = (obj, key, value) => {
|
|
|
910
905
|
function convertThemeVarsToCSSVars(themeVars) {
|
|
911
906
|
const cssVars = {};
|
|
912
907
|
Object.keys(themeVars).forEach((key) => {
|
|
913
|
-
cssVars[`--${
|
|
908
|
+
cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
|
|
914
909
|
});
|
|
915
910
|
return cssVars;
|
|
916
911
|
}
|
|
@@ -1086,15 +1081,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1086
1081
|
};
|
|
1087
1082
|
Image$1.defaultProps = defaultProps$1n;
|
|
1088
1083
|
Image$1.displayName = "NutImage";
|
|
1089
|
-
var
|
|
1090
|
-
var classnames = {
|
|
1091
|
-
get exports() {
|
|
1092
|
-
return classnamesExports;
|
|
1093
|
-
},
|
|
1094
|
-
set exports(v) {
|
|
1095
|
-
classnamesExports = v;
|
|
1096
|
-
}
|
|
1097
|
-
};
|
|
1084
|
+
var classnames = { exports: {} };
|
|
1098
1085
|
/*!
|
|
1099
1086
|
Copyright (c) 2018 Jed Watson.
|
|
1100
1087
|
Licensed under the MIT License (MIT), see
|
|
@@ -1141,7 +1128,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1141
1128
|
}
|
|
1142
1129
|
})();
|
|
1143
1130
|
})(classnames);
|
|
1144
|
-
|
|
1131
|
+
var classnamesExports = classnames.exports;
|
|
1132
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
1145
1133
|
const defaultOverlayProps = {
|
|
1146
1134
|
zIndex: 1e3,
|
|
1147
1135
|
duration: 0.3,
|
|
@@ -1256,24 +1244,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1256
1244
|
subClass.prototype.constructor = subClass;
|
|
1257
1245
|
_setPrototypeOf$1(subClass, superClass);
|
|
1258
1246
|
}
|
|
1259
|
-
var
|
|
1260
|
-
var
|
|
1261
|
-
get exports() {
|
|
1262
|
-
return propTypesExports;
|
|
1263
|
-
},
|
|
1264
|
-
set exports(v) {
|
|
1265
|
-
propTypesExports = v;
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
var reactIsExports = {};
|
|
1269
|
-
var reactIs = {
|
|
1270
|
-
get exports() {
|
|
1271
|
-
return reactIsExports;
|
|
1272
|
-
},
|
|
1273
|
-
set exports(v) {
|
|
1274
|
-
reactIsExports = v;
|
|
1275
|
-
}
|
|
1276
|
-
};
|
|
1247
|
+
var propTypes = { exports: {} };
|
|
1248
|
+
var reactIs = { exports: {} };
|
|
1277
1249
|
var reactIs_production_min = {};
|
|
1278
1250
|
/** @license React v16.13.1
|
|
1279
1251
|
* react-is.production.min.js
|
|
@@ -1544,16 +1516,14 @@ var __publicField = (obj, key, value) => {
|
|
|
1544
1516
|
var hasRequiredReactIs;
|
|
1545
1517
|
function requireReactIs() {
|
|
1546
1518
|
if (hasRequiredReactIs)
|
|
1547
|
-
return
|
|
1519
|
+
return reactIs.exports;
|
|
1548
1520
|
hasRequiredReactIs = 1;
|
|
1549
|
-
(
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
})(reactIs);
|
|
1556
|
-
return reactIsExports;
|
|
1521
|
+
if (process.env.NODE_ENV === "production") {
|
|
1522
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1523
|
+
} else {
|
|
1524
|
+
reactIs.exports = requireReactIs_development();
|
|
1525
|
+
}
|
|
1526
|
+
return reactIs.exports;
|
|
1557
1527
|
}
|
|
1558
1528
|
/*
|
|
1559
1529
|
object-assign
|
|
@@ -2220,6 +2190,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2220
2190
|
} else {
|
|
2221
2191
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2222
2192
|
}
|
|
2193
|
+
var propTypesExports = propTypes.exports;
|
|
2194
|
+
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2223
2195
|
function hasClass(element, className) {
|
|
2224
2196
|
if (element.classList)
|
|
2225
2197
|
return !!className && element.classList.contains(className);
|
|
@@ -2249,22 +2221,22 @@ var __publicField = (obj, key, value) => {
|
|
|
2249
2221
|
const config$1 = {
|
|
2250
2222
|
disabled: false
|
|
2251
2223
|
};
|
|
2252
|
-
var timeoutsShape = process.env.NODE_ENV !== "production" ?
|
|
2253
|
-
enter:
|
|
2254
|
-
exit:
|
|
2255
|
-
appear:
|
|
2224
|
+
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
2225
|
+
enter: PropTypes.number,
|
|
2226
|
+
exit: PropTypes.number,
|
|
2227
|
+
appear: PropTypes.number
|
|
2256
2228
|
}).isRequired]) : null;
|
|
2257
|
-
var classNamesShape = process.env.NODE_ENV !== "production" ?
|
|
2258
|
-
enter:
|
|
2259
|
-
exit:
|
|
2260
|
-
active:
|
|
2261
|
-
}),
|
|
2262
|
-
enter:
|
|
2263
|
-
enterDone:
|
|
2264
|
-
enterActive:
|
|
2265
|
-
exit:
|
|
2266
|
-
exitDone:
|
|
2267
|
-
exitActive:
|
|
2229
|
+
var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2230
|
+
enter: PropTypes.string,
|
|
2231
|
+
exit: PropTypes.string,
|
|
2232
|
+
active: PropTypes.string
|
|
2233
|
+
}), PropTypes.shape({
|
|
2234
|
+
enter: PropTypes.string,
|
|
2235
|
+
enterDone: PropTypes.string,
|
|
2236
|
+
enterActive: PropTypes.string,
|
|
2237
|
+
exit: PropTypes.string,
|
|
2238
|
+
exitDone: PropTypes.string,
|
|
2239
|
+
exitActive: PropTypes.string
|
|
2268
2240
|
})]) : null;
|
|
2269
2241
|
const TransitionGroupContext = React.createContext(null);
|
|
2270
2242
|
var forceReflow = function forceReflow2(node) {
|
|
@@ -2514,10 +2486,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2514
2486
|
* (see
|
|
2515
2487
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2516
2488
|
*/
|
|
2517
|
-
nodeRef:
|
|
2518
|
-
current: typeof Element === "undefined" ?
|
|
2489
|
+
nodeRef: PropTypes.shape({
|
|
2490
|
+
current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
|
|
2519
2491
|
var value = propValue[key];
|
|
2520
|
-
return
|
|
2492
|
+
return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
2521
2493
|
}
|
|
2522
2494
|
}),
|
|
2523
2495
|
/**
|
|
@@ -2534,23 +2506,23 @@ var __publicField = (obj, key, value) => {
|
|
|
2534
2506
|
* </Transition>
|
|
2535
2507
|
* ```
|
|
2536
2508
|
*/
|
|
2537
|
-
children:
|
|
2509
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
2538
2510
|
/**
|
|
2539
2511
|
* Show the component; triggers the enter or exit states
|
|
2540
2512
|
*/
|
|
2541
|
-
in:
|
|
2513
|
+
in: PropTypes.bool,
|
|
2542
2514
|
/**
|
|
2543
2515
|
* By default the child component is mounted immediately along with
|
|
2544
2516
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2545
2517
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2546
2518
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2547
2519
|
*/
|
|
2548
|
-
mountOnEnter:
|
|
2520
|
+
mountOnEnter: PropTypes.bool,
|
|
2549
2521
|
/**
|
|
2550
2522
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2551
2523
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2552
2524
|
*/
|
|
2553
|
-
unmountOnExit:
|
|
2525
|
+
unmountOnExit: PropTypes.bool,
|
|
2554
2526
|
/**
|
|
2555
2527
|
* By default the child component does not perform the enter transition when
|
|
2556
2528
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -2562,15 +2534,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2562
2534
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
2563
2535
|
* > differently.
|
|
2564
2536
|
*/
|
|
2565
|
-
appear:
|
|
2537
|
+
appear: PropTypes.bool,
|
|
2566
2538
|
/**
|
|
2567
2539
|
* Enable or disable enter transitions.
|
|
2568
2540
|
*/
|
|
2569
|
-
enter:
|
|
2541
|
+
enter: PropTypes.bool,
|
|
2570
2542
|
/**
|
|
2571
2543
|
* Enable or disable exit transitions.
|
|
2572
2544
|
*/
|
|
2573
|
-
exit:
|
|
2545
|
+
exit: PropTypes.bool,
|
|
2574
2546
|
/**
|
|
2575
2547
|
* The duration of the transition, in milliseconds.
|
|
2576
2548
|
* Required unless `addEndListener` is provided.
|
|
@@ -2620,7 +2592,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2620
2592
|
* }}
|
|
2621
2593
|
* ```
|
|
2622
2594
|
*/
|
|
2623
|
-
addEndListener:
|
|
2595
|
+
addEndListener: PropTypes.func,
|
|
2624
2596
|
/**
|
|
2625
2597
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
2626
2598
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2629,7 +2601,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2629
2601
|
*
|
|
2630
2602
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2631
2603
|
*/
|
|
2632
|
-
onEnter:
|
|
2604
|
+
onEnter: PropTypes.func,
|
|
2633
2605
|
/**
|
|
2634
2606
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
2635
2607
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2638,7 +2610,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2638
2610
|
*
|
|
2639
2611
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2640
2612
|
*/
|
|
2641
|
-
onEntering:
|
|
2613
|
+
onEntering: PropTypes.func,
|
|
2642
2614
|
/**
|
|
2643
2615
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
2644
2616
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2647,7 +2619,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2647
2619
|
*
|
|
2648
2620
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2649
2621
|
*/
|
|
2650
|
-
onEntered:
|
|
2622
|
+
onEntered: PropTypes.func,
|
|
2651
2623
|
/**
|
|
2652
2624
|
* Callback fired before the "exiting" status is applied.
|
|
2653
2625
|
*
|
|
@@ -2655,7 +2627,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2655
2627
|
*
|
|
2656
2628
|
* @type Function(node: HtmlElement) -> void
|
|
2657
2629
|
*/
|
|
2658
|
-
onExit:
|
|
2630
|
+
onExit: PropTypes.func,
|
|
2659
2631
|
/**
|
|
2660
2632
|
* Callback fired after the "exiting" status is applied.
|
|
2661
2633
|
*
|
|
@@ -2663,7 +2635,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2663
2635
|
*
|
|
2664
2636
|
* @type Function(node: HtmlElement) -> void
|
|
2665
2637
|
*/
|
|
2666
|
-
onExiting:
|
|
2638
|
+
onExiting: PropTypes.func,
|
|
2667
2639
|
/**
|
|
2668
2640
|
* Callback fired after the "exited" status is applied.
|
|
2669
2641
|
*
|
|
@@ -2671,7 +2643,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2671
2643
|
*
|
|
2672
2644
|
* @type Function(node: HtmlElement) -> void
|
|
2673
2645
|
*/
|
|
2674
|
-
onExited:
|
|
2646
|
+
onExited: PropTypes.func
|
|
2675
2647
|
} : {};
|
|
2676
2648
|
function noop$2() {
|
|
2677
2649
|
}
|
|
@@ -2910,7 +2882,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2910
2882
|
*
|
|
2911
2883
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2912
2884
|
*/
|
|
2913
|
-
onEnter:
|
|
2885
|
+
onEnter: PropTypes.func,
|
|
2914
2886
|
/**
|
|
2915
2887
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
2916
2888
|
* 'appear-active' class is applied.
|
|
@@ -2919,7 +2891,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2919
2891
|
*
|
|
2920
2892
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2921
2893
|
*/
|
|
2922
|
-
onEntering:
|
|
2894
|
+
onEntering: PropTypes.func,
|
|
2923
2895
|
/**
|
|
2924
2896
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
2925
2897
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -2928,7 +2900,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2928
2900
|
*
|
|
2929
2901
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2930
2902
|
*/
|
|
2931
|
-
onEntered:
|
|
2903
|
+
onEntered: PropTypes.func,
|
|
2932
2904
|
/**
|
|
2933
2905
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
2934
2906
|
* applied.
|
|
@@ -2937,7 +2909,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2937
2909
|
*
|
|
2938
2910
|
* @type Function(node: HtmlElement)
|
|
2939
2911
|
*/
|
|
2940
|
-
onExit:
|
|
2912
|
+
onExit: PropTypes.func,
|
|
2941
2913
|
/**
|
|
2942
2914
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
2943
2915
|
*
|
|
@@ -2945,7 +2917,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2945
2917
|
*
|
|
2946
2918
|
* @type Function(node: HtmlElement)
|
|
2947
2919
|
*/
|
|
2948
|
-
onExiting:
|
|
2920
|
+
onExiting: PropTypes.func,
|
|
2949
2921
|
/**
|
|
2950
2922
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
2951
2923
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -2954,7 +2926,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2954
2926
|
*
|
|
2955
2927
|
* @type Function(node: HtmlElement)
|
|
2956
2928
|
*/
|
|
2957
|
-
onExited:
|
|
2929
|
+
onExited: PropTypes.func
|
|
2958
2930
|
}) : {};
|
|
2959
2931
|
const CSSTransition$1 = CSSTransition;
|
|
2960
2932
|
const defaultProps$1m = {
|
package/dist/style.mjs
CHANGED