@nutui/nutui-react-taro 1.5.11-beta.2 → 1.5.12-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 -0
- package/dist/esm/GridItem.js +1 -1
- package/dist/esm/{griditem.taro-cdb3f119.js → griditem.taro-8c77a891.js} +6 -6
- package/dist/esm/nutui-react.es.js +1 -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 +71 -98
- package/dist/nutui.react.umd.js +71 -98
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/esm/GridItem.js
CHANGED
|
@@ -26,7 +26,7 @@ const defaultProps = {
|
|
|
26
26
|
};
|
|
27
27
|
const GridItem = (props) => {
|
|
28
28
|
useConfig();
|
|
29
|
-
const { children, columnNum, index, gutter, square, text, fontSize, color, icon, iconColor, iconSize, parentIconSize, parentIconColor, border, center, reverse, direction, iconClassPrefix, iconFontClassName, className, onClick, ...rest } = {
|
|
29
|
+
const { children, columnNum, index, gutter, square, text, fontSize, color, icon, iconColor, iconSize, parentIconSize, parentIconColor, border, center, reverse, direction, iconClassPrefix, iconFontClassName, className, onClick, style, ...rest } = {
|
|
30
30
|
...defaultProps,
|
|
31
31
|
...props,
|
|
32
32
|
};
|
|
@@ -37,19 +37,19 @@ const GridItem = (props) => {
|
|
|
37
37
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
38
38
|
};
|
|
39
39
|
const rootStyle = () => {
|
|
40
|
-
const
|
|
40
|
+
const rootStyle = {
|
|
41
41
|
flexBasis: `${100 / +columnNum}%`,
|
|
42
42
|
};
|
|
43
43
|
if (square) {
|
|
44
|
-
|
|
44
|
+
rootStyle.paddingTop = `${100 / +columnNum}%`;
|
|
45
45
|
}
|
|
46
46
|
else if (gutter) {
|
|
47
|
-
|
|
47
|
+
rootStyle.paddingRight = pxCheck(gutter);
|
|
48
48
|
if (index >= columnNum) {
|
|
49
|
-
|
|
49
|
+
rootStyle.marginTop = pxCheck(gutter);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
return style;
|
|
52
|
+
return { ...rootStyle, ...style };
|
|
53
53
|
};
|
|
54
54
|
const contentClass = () => {
|
|
55
55
|
return classNames(b('content'), {
|
|
@@ -9,7 +9,7 @@ export { P as Popup } from './popup.taro-01676bff.js';
|
|
|
9
9
|
export { C as Col } from './col.taro-53eed3cc.js';
|
|
10
10
|
export { D as Divider } from './divider.taro-26d1d8b4.js';
|
|
11
11
|
export { G as Grid } from './grid.taro-3503b82c.js';
|
|
12
|
-
export { G as GridItem } from './griditem.taro-
|
|
12
|
+
export { G as GridItem } from './griditem.taro-8c77a891.js';
|
|
13
13
|
export { L as Layout } from './layout.taro-9046d093.js';
|
|
14
14
|
export { R as Row } from './row.taro-f64d4a13.js';
|
|
15
15
|
export { S as Sticky } from './sticky.taro-218bda37.js';
|
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
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.5.
|
|
8
|
+
* @nutui/nutui-react-taro v1.5.12-beta.0 Wed Jul 12 2023 16:47:44 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -15,15 +15,10 @@ import Taro, { redirectTo, navigateTo, getEnv, usePageScroll, getSystemInfoSync,
|
|
|
15
15
|
import { View, ScrollView, PickerView, PickerViewColumn, Image as Image$2 } from "@tarojs/components";
|
|
16
16
|
import ReactDOM, { 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$1v = {
|
|
139
133
|
name: "",
|
|
@@ -749,6 +743,7 @@ function words(string, pattern, guard) {
|
|
|
749
743
|
return string.match(pattern) || [];
|
|
750
744
|
}
|
|
751
745
|
var lodash_kebabcase = kebabCase;
|
|
746
|
+
const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
|
|
752
747
|
const zhCN = {
|
|
753
748
|
save: "保存",
|
|
754
749
|
confirm: "确认",
|
|
@@ -896,7 +891,7 @@ const useConfig$1 = () => {
|
|
|
896
891
|
function convertThemeVarsToCSSVars(themeVars) {
|
|
897
892
|
const cssVars = {};
|
|
898
893
|
Object.keys(themeVars).forEach((key) => {
|
|
899
|
-
cssVars[`--${
|
|
894
|
+
cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
|
|
900
895
|
});
|
|
901
896
|
return cssVars;
|
|
902
897
|
}
|
|
@@ -1013,15 +1008,7 @@ const Image$1 = (props) => {
|
|
|
1013
1008
|
};
|
|
1014
1009
|
Image$1.defaultProps = defaultProps$1q;
|
|
1015
1010
|
Image$1.displayName = "NutImage";
|
|
1016
|
-
var
|
|
1017
|
-
var classnames = {
|
|
1018
|
-
get exports() {
|
|
1019
|
-
return classnamesExports;
|
|
1020
|
-
},
|
|
1021
|
-
set exports(v) {
|
|
1022
|
-
classnamesExports = v;
|
|
1023
|
-
}
|
|
1024
|
-
};
|
|
1011
|
+
var classnames = { exports: {} };
|
|
1025
1012
|
/*!
|
|
1026
1013
|
Copyright (c) 2018 Jed Watson.
|
|
1027
1014
|
Licensed under the MIT License (MIT), see
|
|
@@ -1068,7 +1055,8 @@ var classnames = {
|
|
|
1068
1055
|
}
|
|
1069
1056
|
})();
|
|
1070
1057
|
})(classnames);
|
|
1071
|
-
|
|
1058
|
+
var classnamesExports = classnames.exports;
|
|
1059
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
1072
1060
|
const defaultOverlayProps = {
|
|
1073
1061
|
zIndex: 2e3,
|
|
1074
1062
|
duration: 0.3,
|
|
@@ -1194,24 +1182,8 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
1194
1182
|
subClass.prototype.constructor = subClass;
|
|
1195
1183
|
_setPrototypeOf(subClass, superClass);
|
|
1196
1184
|
}
|
|
1197
|
-
var
|
|
1198
|
-
var
|
|
1199
|
-
get exports() {
|
|
1200
|
-
return propTypesExports;
|
|
1201
|
-
},
|
|
1202
|
-
set exports(v) {
|
|
1203
|
-
propTypesExports = v;
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
var reactIsExports = {};
|
|
1207
|
-
var reactIs = {
|
|
1208
|
-
get exports() {
|
|
1209
|
-
return reactIsExports;
|
|
1210
|
-
},
|
|
1211
|
-
set exports(v) {
|
|
1212
|
-
reactIsExports = v;
|
|
1213
|
-
}
|
|
1214
|
-
};
|
|
1185
|
+
var propTypes = { exports: {} };
|
|
1186
|
+
var reactIs = { exports: {} };
|
|
1215
1187
|
var reactIs_production_min = {};
|
|
1216
1188
|
/** @license React v16.13.1
|
|
1217
1189
|
* react-is.production.min.js
|
|
@@ -1482,16 +1454,14 @@ function requireReactIs_development() {
|
|
|
1482
1454
|
var hasRequiredReactIs;
|
|
1483
1455
|
function requireReactIs() {
|
|
1484
1456
|
if (hasRequiredReactIs)
|
|
1485
|
-
return
|
|
1457
|
+
return reactIs.exports;
|
|
1486
1458
|
hasRequiredReactIs = 1;
|
|
1487
|
-
(
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
})(reactIs);
|
|
1494
|
-
return reactIsExports;
|
|
1459
|
+
if (process.env.NODE_ENV === "production") {
|
|
1460
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1461
|
+
} else {
|
|
1462
|
+
reactIs.exports = requireReactIs_development();
|
|
1463
|
+
}
|
|
1464
|
+
return reactIs.exports;
|
|
1495
1465
|
}
|
|
1496
1466
|
/*
|
|
1497
1467
|
object-assign
|
|
@@ -2158,6 +2128,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2158
2128
|
} else {
|
|
2159
2129
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2160
2130
|
}
|
|
2131
|
+
var propTypesExports = propTypes.exports;
|
|
2132
|
+
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2161
2133
|
function hasClass(element, className) {
|
|
2162
2134
|
if (element.classList)
|
|
2163
2135
|
return !!className && element.classList.contains(className);
|
|
@@ -2187,22 +2159,22 @@ function removeClass$1(element, className) {
|
|
|
2187
2159
|
const config$1 = {
|
|
2188
2160
|
disabled: false
|
|
2189
2161
|
};
|
|
2190
|
-
var timeoutsShape = process.env.NODE_ENV !== "production" ?
|
|
2191
|
-
enter:
|
|
2192
|
-
exit:
|
|
2193
|
-
appear:
|
|
2162
|
+
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
2163
|
+
enter: PropTypes.number,
|
|
2164
|
+
exit: PropTypes.number,
|
|
2165
|
+
appear: PropTypes.number
|
|
2194
2166
|
}).isRequired]) : null;
|
|
2195
|
-
var classNamesShape = process.env.NODE_ENV !== "production" ?
|
|
2196
|
-
enter:
|
|
2197
|
-
exit:
|
|
2198
|
-
active:
|
|
2199
|
-
}),
|
|
2200
|
-
enter:
|
|
2201
|
-
enterDone:
|
|
2202
|
-
enterActive:
|
|
2203
|
-
exit:
|
|
2204
|
-
exitDone:
|
|
2205
|
-
exitActive:
|
|
2167
|
+
var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2168
|
+
enter: PropTypes.string,
|
|
2169
|
+
exit: PropTypes.string,
|
|
2170
|
+
active: PropTypes.string
|
|
2171
|
+
}), PropTypes.shape({
|
|
2172
|
+
enter: PropTypes.string,
|
|
2173
|
+
enterDone: PropTypes.string,
|
|
2174
|
+
enterActive: PropTypes.string,
|
|
2175
|
+
exit: PropTypes.string,
|
|
2176
|
+
exitDone: PropTypes.string,
|
|
2177
|
+
exitActive: PropTypes.string
|
|
2206
2178
|
})]) : null;
|
|
2207
2179
|
const TransitionGroupContext = React__default.createContext(null);
|
|
2208
2180
|
var forceReflow = function forceReflow2(node) {
|
|
@@ -2452,10 +2424,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2452
2424
|
* (see
|
|
2453
2425
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2454
2426
|
*/
|
|
2455
|
-
nodeRef:
|
|
2456
|
-
current: typeof Element === "undefined" ?
|
|
2427
|
+
nodeRef: PropTypes.shape({
|
|
2428
|
+
current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
|
|
2457
2429
|
var value = propValue[key];
|
|
2458
|
-
return
|
|
2430
|
+
return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
2459
2431
|
}
|
|
2460
2432
|
}),
|
|
2461
2433
|
/**
|
|
@@ -2472,23 +2444,23 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2472
2444
|
* </Transition>
|
|
2473
2445
|
* ```
|
|
2474
2446
|
*/
|
|
2475
|
-
children:
|
|
2447
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
2476
2448
|
/**
|
|
2477
2449
|
* Show the component; triggers the enter or exit states
|
|
2478
2450
|
*/
|
|
2479
|
-
in:
|
|
2451
|
+
in: PropTypes.bool,
|
|
2480
2452
|
/**
|
|
2481
2453
|
* By default the child component is mounted immediately along with
|
|
2482
2454
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2483
2455
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2484
2456
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2485
2457
|
*/
|
|
2486
|
-
mountOnEnter:
|
|
2458
|
+
mountOnEnter: PropTypes.bool,
|
|
2487
2459
|
/**
|
|
2488
2460
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2489
2461
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2490
2462
|
*/
|
|
2491
|
-
unmountOnExit:
|
|
2463
|
+
unmountOnExit: PropTypes.bool,
|
|
2492
2464
|
/**
|
|
2493
2465
|
* By default the child component does not perform the enter transition when
|
|
2494
2466
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -2500,15 +2472,15 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2500
2472
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
2501
2473
|
* > differently.
|
|
2502
2474
|
*/
|
|
2503
|
-
appear:
|
|
2475
|
+
appear: PropTypes.bool,
|
|
2504
2476
|
/**
|
|
2505
2477
|
* Enable or disable enter transitions.
|
|
2506
2478
|
*/
|
|
2507
|
-
enter:
|
|
2479
|
+
enter: PropTypes.bool,
|
|
2508
2480
|
/**
|
|
2509
2481
|
* Enable or disable exit transitions.
|
|
2510
2482
|
*/
|
|
2511
|
-
exit:
|
|
2483
|
+
exit: PropTypes.bool,
|
|
2512
2484
|
/**
|
|
2513
2485
|
* The duration of the transition, in milliseconds.
|
|
2514
2486
|
* Required unless `addEndListener` is provided.
|
|
@@ -2558,7 +2530,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2558
2530
|
* }}
|
|
2559
2531
|
* ```
|
|
2560
2532
|
*/
|
|
2561
|
-
addEndListener:
|
|
2533
|
+
addEndListener: PropTypes.func,
|
|
2562
2534
|
/**
|
|
2563
2535
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
2564
2536
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2567,7 +2539,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2567
2539
|
*
|
|
2568
2540
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2569
2541
|
*/
|
|
2570
|
-
onEnter:
|
|
2542
|
+
onEnter: PropTypes.func,
|
|
2571
2543
|
/**
|
|
2572
2544
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
2573
2545
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2576,7 +2548,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2576
2548
|
*
|
|
2577
2549
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2578
2550
|
*/
|
|
2579
|
-
onEntering:
|
|
2551
|
+
onEntering: PropTypes.func,
|
|
2580
2552
|
/**
|
|
2581
2553
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
2582
2554
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2585,7 +2557,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2585
2557
|
*
|
|
2586
2558
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2587
2559
|
*/
|
|
2588
|
-
onEntered:
|
|
2560
|
+
onEntered: PropTypes.func,
|
|
2589
2561
|
/**
|
|
2590
2562
|
* Callback fired before the "exiting" status is applied.
|
|
2591
2563
|
*
|
|
@@ -2593,7 +2565,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2593
2565
|
*
|
|
2594
2566
|
* @type Function(node: HtmlElement) -> void
|
|
2595
2567
|
*/
|
|
2596
|
-
onExit:
|
|
2568
|
+
onExit: PropTypes.func,
|
|
2597
2569
|
/**
|
|
2598
2570
|
* Callback fired after the "exiting" status is applied.
|
|
2599
2571
|
*
|
|
@@ -2601,7 +2573,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2601
2573
|
*
|
|
2602
2574
|
* @type Function(node: HtmlElement) -> void
|
|
2603
2575
|
*/
|
|
2604
|
-
onExiting:
|
|
2576
|
+
onExiting: PropTypes.func,
|
|
2605
2577
|
/**
|
|
2606
2578
|
* Callback fired after the "exited" status is applied.
|
|
2607
2579
|
*
|
|
@@ -2609,7 +2581,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2609
2581
|
*
|
|
2610
2582
|
* @type Function(node: HtmlElement) -> void
|
|
2611
2583
|
*/
|
|
2612
|
-
onExited:
|
|
2584
|
+
onExited: PropTypes.func
|
|
2613
2585
|
} : {};
|
|
2614
2586
|
function noop$2() {
|
|
2615
2587
|
}
|
|
@@ -2848,7 +2820,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2848
2820
|
*
|
|
2849
2821
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2850
2822
|
*/
|
|
2851
|
-
onEnter:
|
|
2823
|
+
onEnter: PropTypes.func,
|
|
2852
2824
|
/**
|
|
2853
2825
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
2854
2826
|
* 'appear-active' class is applied.
|
|
@@ -2857,7 +2829,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2857
2829
|
*
|
|
2858
2830
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2859
2831
|
*/
|
|
2860
|
-
onEntering:
|
|
2832
|
+
onEntering: PropTypes.func,
|
|
2861
2833
|
/**
|
|
2862
2834
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
2863
2835
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -2866,7 +2838,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2866
2838
|
*
|
|
2867
2839
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2868
2840
|
*/
|
|
2869
|
-
onEntered:
|
|
2841
|
+
onEntered: PropTypes.func,
|
|
2870
2842
|
/**
|
|
2871
2843
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
2872
2844
|
* applied.
|
|
@@ -2875,7 +2847,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2875
2847
|
*
|
|
2876
2848
|
* @type Function(node: HtmlElement)
|
|
2877
2849
|
*/
|
|
2878
|
-
onExit:
|
|
2850
|
+
onExit: PropTypes.func,
|
|
2879
2851
|
/**
|
|
2880
2852
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
2881
2853
|
*
|
|
@@ -2883,7 +2855,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2883
2855
|
*
|
|
2884
2856
|
* @type Function(node: HtmlElement)
|
|
2885
2857
|
*/
|
|
2886
|
-
onExiting:
|
|
2858
|
+
onExiting: PropTypes.func,
|
|
2887
2859
|
/**
|
|
2888
2860
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
2889
2861
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -2892,7 +2864,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2892
2864
|
*
|
|
2893
2865
|
* @type Function(node: HtmlElement)
|
|
2894
2866
|
*/
|
|
2895
|
-
onExited:
|
|
2867
|
+
onExited: PropTypes.func
|
|
2896
2868
|
}) : {};
|
|
2897
2869
|
const CSSTransition$1 = CSSTransition;
|
|
2898
2870
|
const defaultProps$1p = {
|
|
@@ -3285,6 +3257,7 @@ const GridItem = (props) => {
|
|
|
3285
3257
|
iconFontClassName,
|
|
3286
3258
|
className,
|
|
3287
3259
|
onClick,
|
|
3260
|
+
style,
|
|
3288
3261
|
...rest
|
|
3289
3262
|
} = {
|
|
3290
3263
|
...defaultProps$1l,
|
|
@@ -3297,18 +3270,18 @@ const GridItem = (props) => {
|
|
|
3297
3270
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3298
3271
|
};
|
|
3299
3272
|
const rootStyle = () => {
|
|
3300
|
-
const
|
|
3273
|
+
const rootStyle2 = {
|
|
3301
3274
|
flexBasis: `${100 / +columnNum}%`
|
|
3302
3275
|
};
|
|
3303
3276
|
if (square) {
|
|
3304
|
-
|
|
3277
|
+
rootStyle2.paddingTop = `${100 / +columnNum}%`;
|
|
3305
3278
|
} else if (gutter) {
|
|
3306
|
-
|
|
3279
|
+
rootStyle2.paddingRight = pxCheck2(gutter);
|
|
3307
3280
|
if (index >= columnNum) {
|
|
3308
|
-
|
|
3281
|
+
rootStyle2.marginTop = pxCheck2(gutter);
|
|
3309
3282
|
}
|
|
3310
3283
|
}
|
|
3311
|
-
return style;
|
|
3284
|
+
return { ...rootStyle2, ...style };
|
|
3312
3285
|
};
|
|
3313
3286
|
const contentClass = () => {
|
|
3314
3287
|
return classNames(b2("content"), {
|