@nutui/nutui-react 2.0.6 → 2.0.8
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 +18 -0
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Button.js +15 -18
- package/dist/esm/Range.js +5 -13
- package/dist/esm/Space/style/css.js +1 -0
- package/dist/esm/Space/style/index.js +2 -0
- package/dist/esm/Space/style/style.css +1 -0
- package/dist/esm/Space.js +45 -0
- package/dist/esm/Uploader.js +3 -0
- package/dist/esm/nutui-react.es.js +162 -160
- package/dist/esm/types/src/packages/audio/audio.d.ts +5 -4
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +2 -1
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -1
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +6 -5
- package/dist/esm/types/src/packages/space/__test__/space.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/space/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/space/demo.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/space/index.d.ts +2 -0
- package/dist/esm/types/src/packages/space/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/space/space.d.ts +9 -0
- package/dist/esm/types/src/packages/space/space.taro.d.ts +9 -0
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +5 -4
- package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/tag/tag.d.ts +2 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/textarea/textarea.d.ts +3 -2
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -0
- package/dist/esm/types/src/utils/use-touch.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +87 -63
- package/dist/nutui.react.umd.js +87 -63
- package/dist/packages/space/space.scss +73 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/packages/audio/audio.d.ts +5 -4
- package/dist/types/packages/avatar/avatar.d.ts +2 -1
- package/dist/types/packages/backtop/backtop.d.ts +2 -1
- package/dist/types/packages/button/button.d.ts +3 -2
- package/dist/types/packages/col/col.d.ts +2 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +2 -1
- package/dist/types/packages/formitem/types.d.ts +2 -1
- package/dist/types/packages/row/row.d.ts +2 -1
- package/dist/types/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/types/packages/space/index.d.ts +2 -0
- package/dist/types/packages/space/space.d.ts +9 -0
- package/dist/types/packages/swipe/swipe.d.ts +5 -4
- package/dist/types/packages/tag/tag.d.ts +2 -1
- package/dist/types/packages/textarea/textarea.d.ts +3 -2
- package/dist/types/packages/uploader/uploader.d.ts +1 -0
- package/dist/types/utils/use-touch.d.ts +2 -2
- package/package.json +1 -1
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 v2.0.
|
|
12
|
+
* @nutui/nutui-react v2.0.8 Fri Jul 28 2023 14:56:52 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -2408,8 +2408,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2408
2408
|
className: "",
|
|
2409
2409
|
style: {}
|
|
2410
2410
|
};
|
|
2411
|
-
const prefixCls = "nut-button";
|
|
2412
|
-
const defaultProps$
|
|
2411
|
+
const prefixCls$1 = "nut-button";
|
|
2412
|
+
const defaultProps$1q = {
|
|
2413
2413
|
...ComponentDefaults,
|
|
2414
2414
|
color: "",
|
|
2415
2415
|
type: "default",
|
|
@@ -2443,7 +2443,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2443
2443
|
nativeType,
|
|
2444
2444
|
...rest
|
|
2445
2445
|
} = {
|
|
2446
|
-
...defaultProps$
|
|
2446
|
+
...defaultProps$1q,
|
|
2447
2447
|
...props
|
|
2448
2448
|
};
|
|
2449
2449
|
const getStyle = React.useCallback(() => {
|
|
@@ -2467,37 +2467,34 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2467
2467
|
onClick(e);
|
|
2468
2468
|
}
|
|
2469
2469
|
};
|
|
2470
|
-
return (
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
className
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
{
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
},
|
|
2494
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-button__warp" }, loading ? /* @__PURE__ */ React.createElement(k$3, { className: "nut-icon-loading" }) : null, !loading && icon ? icon : null, children && /* @__PURE__ */ React.createElement("div", { className: icon || loading ? "nut-button-text" : "" }, children))
|
|
2495
|
-
)
|
|
2470
|
+
return /* @__PURE__ */ React.createElement(
|
|
2471
|
+
"button",
|
|
2472
|
+
{
|
|
2473
|
+
...rest,
|
|
2474
|
+
ref,
|
|
2475
|
+
type: nativeType,
|
|
2476
|
+
className: classNames(
|
|
2477
|
+
prefixCls$1,
|
|
2478
|
+
className,
|
|
2479
|
+
props.type ? `${prefixCls$1}--${type2}` : null,
|
|
2480
|
+
props.fill ? `${prefixCls$1}--${fill}` : null,
|
|
2481
|
+
{
|
|
2482
|
+
[`${prefixCls$1}--${size}`]: size,
|
|
2483
|
+
[`${prefixCls$1}--${shape}`]: shape,
|
|
2484
|
+
[`${prefixCls$1}--block`]: block,
|
|
2485
|
+
[`${prefixCls$1}--disabled`]: disabled,
|
|
2486
|
+
[`${prefixCls$1}--loading`]: loading
|
|
2487
|
+
}
|
|
2488
|
+
),
|
|
2489
|
+
style: { ...getStyle(), ...style },
|
|
2490
|
+
onClick: (e) => handleClick2(e)
|
|
2491
|
+
},
|
|
2492
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-button__warp" }, loading ? /* @__PURE__ */ React.createElement(k$3, { className: "nut-icon-loading" }) : null, !loading && icon ? icon : null, children && /* @__PURE__ */ React.createElement("div", { className: icon || loading ? "nut-button-text" : "" }, children))
|
|
2496
2493
|
);
|
|
2497
2494
|
}
|
|
2498
2495
|
);
|
|
2499
2496
|
Button.displayName = "NutButton";
|
|
2500
|
-
const defaultProps$
|
|
2497
|
+
const defaultProps$1p = {
|
|
2501
2498
|
...ComponentDefaults,
|
|
2502
2499
|
title: "",
|
|
2503
2500
|
description: "",
|
|
@@ -2506,7 +2503,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2506
2503
|
const classPrefix$o = "nut-cell-group";
|
|
2507
2504
|
const CellGroup = (props) => {
|
|
2508
2505
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2509
|
-
...defaultProps$
|
|
2506
|
+
...defaultProps$1p,
|
|
2510
2507
|
...props
|
|
2511
2508
|
};
|
|
2512
2509
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -2517,9 +2514,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2517
2514
|
children
|
|
2518
2515
|
));
|
|
2519
2516
|
};
|
|
2520
|
-
CellGroup.defaultProps = defaultProps$
|
|
2517
|
+
CellGroup.defaultProps = defaultProps$1p;
|
|
2521
2518
|
CellGroup.displayName = "NutCellGroup";
|
|
2522
|
-
const defaultProps$
|
|
2519
|
+
const defaultProps$1o = {
|
|
2523
2520
|
...ComponentDefaults,
|
|
2524
2521
|
title: null,
|
|
2525
2522
|
description: null,
|
|
@@ -2543,7 +2540,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2543
2540
|
style,
|
|
2544
2541
|
...rest
|
|
2545
2542
|
} = {
|
|
2546
|
-
...defaultProps$
|
|
2543
|
+
...defaultProps$1o,
|
|
2547
2544
|
...props
|
|
2548
2545
|
};
|
|
2549
2546
|
const handleClick2 = (event) => {
|
|
@@ -2575,7 +2572,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2575
2572
|
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2576
2573
|
);
|
|
2577
2574
|
};
|
|
2578
|
-
Cell.defaultProps = defaultProps$
|
|
2575
|
+
Cell.defaultProps = defaultProps$1o;
|
|
2579
2576
|
Cell.displayName = "NutCell";
|
|
2580
2577
|
Cell.Group = CellGroup;
|
|
2581
2578
|
var INFINITY = 1 / 0;
|
|
@@ -3711,7 +3708,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3711
3708
|
const pxCheck = (value) => {
|
|
3712
3709
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3713
3710
|
};
|
|
3714
|
-
const defaultProps$
|
|
3711
|
+
const defaultProps$1n = {
|
|
3715
3712
|
...ComponentDefaults,
|
|
3716
3713
|
fit: "fill",
|
|
3717
3714
|
position: "center",
|
|
@@ -3740,7 +3737,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3740
3737
|
onClick,
|
|
3741
3738
|
onLoad,
|
|
3742
3739
|
onError
|
|
3743
|
-
} = { ...defaultProps$
|
|
3740
|
+
} = { ...defaultProps$1n, ...props };
|
|
3744
3741
|
const [innerLoading, setInnerLoading] = React.useState(true);
|
|
3745
3742
|
const [isError, setIsError] = React.useState(false);
|
|
3746
3743
|
const imgRef = React.useRef(null);
|
|
@@ -3867,7 +3864,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3867
3864
|
renderErrorImg()
|
|
3868
3865
|
);
|
|
3869
3866
|
};
|
|
3870
|
-
Image$1.defaultProps = defaultProps$
|
|
3867
|
+
Image$1.defaultProps = defaultProps$1n;
|
|
3871
3868
|
Image$1.displayName = "NutImage";
|
|
3872
3869
|
function _extends$4() {
|
|
3873
3870
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5692,7 +5689,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5692
5689
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5693
5690
|
Overlay.displayName = "NutOverlay";
|
|
5694
5691
|
const DataContext$2 = React.createContext({});
|
|
5695
|
-
const defaultProps$
|
|
5692
|
+
const defaultProps$1m = {
|
|
5696
5693
|
...ComponentDefaults,
|
|
5697
5694
|
span: "24",
|
|
5698
5695
|
offset: "0",
|
|
@@ -5700,7 +5697,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5700
5697
|
};
|
|
5701
5698
|
const Col = (props) => {
|
|
5702
5699
|
const { className, style, span, offset, children, onClick } = {
|
|
5703
|
-
...defaultProps$
|
|
5700
|
+
...defaultProps$1m,
|
|
5704
5701
|
...props
|
|
5705
5702
|
};
|
|
5706
5703
|
const [colName, setColName] = React.useState("");
|
|
@@ -5732,9 +5729,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5732
5729
|
children
|
|
5733
5730
|
);
|
|
5734
5731
|
};
|
|
5735
|
-
Col.defaultProps = defaultProps$
|
|
5732
|
+
Col.defaultProps = defaultProps$1m;
|
|
5736
5733
|
Col.displayName = "NutCol";
|
|
5737
|
-
const defaultProps$
|
|
5734
|
+
const defaultProps$1l = {
|
|
5738
5735
|
...ComponentDefaults,
|
|
5739
5736
|
contentPosition: "center",
|
|
5740
5737
|
direction: "horizontal"
|
|
@@ -5742,7 +5739,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5742
5739
|
const classPrefix$k = `nut-divider`;
|
|
5743
5740
|
const Divider = (props) => {
|
|
5744
5741
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5745
|
-
...defaultProps$
|
|
5742
|
+
...defaultProps$1l,
|
|
5746
5743
|
...props
|
|
5747
5744
|
};
|
|
5748
5745
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -5757,14 +5754,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5757
5754
|
});
|
|
5758
5755
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5759
5756
|
};
|
|
5760
|
-
Divider.defaultProps = defaultProps$
|
|
5757
|
+
Divider.defaultProps = defaultProps$1l;
|
|
5761
5758
|
Divider.displayName = "NutDivider";
|
|
5762
5759
|
const gridContext = {
|
|
5763
5760
|
onClick: (item, index) => {
|
|
5764
5761
|
}
|
|
5765
5762
|
};
|
|
5766
5763
|
const GridContext = React.createContext(gridContext);
|
|
5767
|
-
const defaultProps$
|
|
5764
|
+
const defaultProps$1k = {
|
|
5768
5765
|
text: "",
|
|
5769
5766
|
columns: 4,
|
|
5770
5767
|
gap: 0,
|
|
@@ -5790,7 +5787,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5790
5787
|
onClick,
|
|
5791
5788
|
...rest
|
|
5792
5789
|
} = {
|
|
5793
|
-
...defaultProps$
|
|
5790
|
+
...defaultProps$1k,
|
|
5794
5791
|
...props
|
|
5795
5792
|
};
|
|
5796
5793
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5848,9 +5845,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5848
5845
|
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5849
5846
|
);
|
|
5850
5847
|
};
|
|
5851
|
-
GridItem.defaultProps = defaultProps$
|
|
5848
|
+
GridItem.defaultProps = defaultProps$1k;
|
|
5852
5849
|
GridItem.displayName = "NutGridItem";
|
|
5853
|
-
const defaultProps$
|
|
5850
|
+
const defaultProps$1j = {
|
|
5854
5851
|
columns: 4,
|
|
5855
5852
|
gap: 0,
|
|
5856
5853
|
center: true,
|
|
@@ -5871,7 +5868,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5871
5868
|
className,
|
|
5872
5869
|
onClick,
|
|
5873
5870
|
...rest
|
|
5874
|
-
} = { ...defaultProps$
|
|
5871
|
+
} = { ...defaultProps$1j, ...props };
|
|
5875
5872
|
const childrenDom = React.Children.toArray(children);
|
|
5876
5873
|
const classPrefix2 = "nut-grid";
|
|
5877
5874
|
const rootClass = () => {
|
|
@@ -5901,18 +5898,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5901
5898
|
});
|
|
5902
5899
|
})));
|
|
5903
5900
|
};
|
|
5904
|
-
Grid.defaultProps = defaultProps$
|
|
5901
|
+
Grid.defaultProps = defaultProps$1j;
|
|
5905
5902
|
Grid.displayName = "NutGrid";
|
|
5906
5903
|
Grid.Item = GridItem;
|
|
5907
|
-
const defaultProps$
|
|
5904
|
+
const defaultProps$1i = {};
|
|
5908
5905
|
const Layout = (props) => {
|
|
5909
|
-
({ ...defaultProps$
|
|
5906
|
+
({ ...defaultProps$1i, ...props });
|
|
5910
5907
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5911
5908
|
};
|
|
5912
|
-
Layout.defaultProps = defaultProps$
|
|
5909
|
+
Layout.defaultProps = defaultProps$1i;
|
|
5913
5910
|
Layout.displayName = "NutLayout";
|
|
5914
5911
|
const classPrefix$j = "nut-row";
|
|
5915
|
-
const defaultProps$
|
|
5912
|
+
const defaultProps$1h = {
|
|
5916
5913
|
...ComponentDefaults,
|
|
5917
5914
|
type: "",
|
|
5918
5915
|
justify: "start",
|
|
@@ -5932,7 +5929,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5932
5929
|
gutter,
|
|
5933
5930
|
onClick
|
|
5934
5931
|
} = {
|
|
5935
|
-
...defaultProps$
|
|
5932
|
+
...defaultProps$1h,
|
|
5936
5933
|
...props
|
|
5937
5934
|
};
|
|
5938
5935
|
const getClass = (prefix2, type22) => {
|
|
@@ -5964,8 +5961,31 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5964
5961
|
children
|
|
5965
5962
|
));
|
|
5966
5963
|
};
|
|
5967
|
-
Row.defaultProps = defaultProps$
|
|
5964
|
+
Row.defaultProps = defaultProps$1h;
|
|
5968
5965
|
Row.displayName = "NutRow";
|
|
5966
|
+
const prefixCls = "nut-space";
|
|
5967
|
+
const defaultProps$1g = {
|
|
5968
|
+
direction: "horizontal"
|
|
5969
|
+
};
|
|
5970
|
+
const Space = (props) => {
|
|
5971
|
+
const { className, style, children, wrap, align, direction, justify } = {
|
|
5972
|
+
...defaultProps$1g,
|
|
5973
|
+
...props
|
|
5974
|
+
};
|
|
5975
|
+
const cls = classNames(
|
|
5976
|
+
className,
|
|
5977
|
+
prefixCls,
|
|
5978
|
+
wrap && `${prefixCls}-wrap`,
|
|
5979
|
+
direction && `${prefixCls}-${direction}`,
|
|
5980
|
+
align && `${prefixCls}-align-${align}`,
|
|
5981
|
+
justify && `${prefixCls}-justify-${justify}`
|
|
5982
|
+
);
|
|
5983
|
+
return /* @__PURE__ */ React.createElement("div", { className: cls, style }, React.Children.map(children, (child) => {
|
|
5984
|
+
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5985
|
+
}));
|
|
5986
|
+
};
|
|
5987
|
+
Space.defaultProps = defaultProps$1g;
|
|
5988
|
+
Space.displayName = "NutSpace";
|
|
5969
5989
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
5970
5990
|
const defaultRoot = canUseDom ? window : void 0;
|
|
5971
5991
|
const overflowStylePatterns = ["scroll", "auto", "overlay"];
|
|
@@ -18053,7 +18073,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18053
18073
|
setEaxctValue(newValue);
|
|
18054
18074
|
updateValue(newValue);
|
|
18055
18075
|
};
|
|
18056
|
-
const onTouchEnd = (
|
|
18076
|
+
const onTouchEnd = () => {
|
|
18057
18077
|
if (disabled) {
|
|
18058
18078
|
return;
|
|
18059
18079
|
}
|
|
@@ -18102,8 +18122,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18102
18122
|
onTouchStart(e);
|
|
18103
18123
|
},
|
|
18104
18124
|
onTouchMove: (e) => onTouchMove(e),
|
|
18105
|
-
onTouchEnd
|
|
18106
|
-
onTouchCancel:
|
|
18125
|
+
onTouchEnd,
|
|
18126
|
+
onTouchCancel: onTouchEnd,
|
|
18107
18127
|
onClick: (e) => e.stopPropagation()
|
|
18108
18128
|
},
|
|
18109
18129
|
renderButton(index)
|
|
@@ -18114,8 +18134,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18114
18134
|
className: "nut-range-button-wrapper",
|
|
18115
18135
|
onTouchStart: (e) => onTouchStart(e),
|
|
18116
18136
|
onTouchMove: (e) => onTouchMove(e),
|
|
18117
|
-
onTouchEnd
|
|
18118
|
-
onTouchCancel:
|
|
18137
|
+
onTouchEnd,
|
|
18138
|
+
onTouchCancel: onTouchEnd,
|
|
18119
18139
|
onClick: (e) => e.stopPropagation()
|
|
18120
18140
|
},
|
|
18121
18141
|
renderButton()
|
|
@@ -19008,6 +19028,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19008
19028
|
__publicField(this, "path");
|
|
19009
19029
|
__publicField(this, "percentage", 0);
|
|
19010
19030
|
__publicField(this, "formData", new FormData());
|
|
19031
|
+
__publicField(this, "responseText");
|
|
19011
19032
|
}
|
|
19012
19033
|
}
|
|
19013
19034
|
const InternalUploader = (props, ref) => {
|
|
@@ -19138,6 +19159,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19138
19159
|
if (item.uid === fileItem.uid) {
|
|
19139
19160
|
item.status = "success";
|
|
19140
19161
|
item.message = locale.uploader.success;
|
|
19162
|
+
item.responseText = responseText;
|
|
19141
19163
|
}
|
|
19142
19164
|
return item;
|
|
19143
19165
|
});
|
|
@@ -19155,6 +19177,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19155
19177
|
if (item.uid === fileItem.uid) {
|
|
19156
19178
|
item.status = "error";
|
|
19157
19179
|
item.message = locale.uploader.error;
|
|
19180
|
+
item.responseText = responseText;
|
|
19158
19181
|
}
|
|
19159
19182
|
return item;
|
|
19160
19183
|
});
|
|
@@ -22023,7 +22046,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22023
22046
|
}
|
|
22024
22047
|
};
|
|
22025
22048
|
const onTimeupdate = (e) => {
|
|
22026
|
-
const time = parseInt(e.target.currentTime);
|
|
22049
|
+
const time = parseInt(String(e.target.currentTime));
|
|
22027
22050
|
const formated = formatSeconds(`${time}`);
|
|
22028
22051
|
statusRef.current.currentDuration = formated;
|
|
22029
22052
|
setPercent(time / statusRef.current.second * 100);
|
|
@@ -24941,6 +24964,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24941
24964
|
exports2.SideNavBarItem = SideNavBarItem;
|
|
24942
24965
|
exports2.Signature = Signature;
|
|
24943
24966
|
exports2.Skeleton = Skeleton;
|
|
24967
|
+
exports2.Space = Space;
|
|
24944
24968
|
exports2.Step = Step;
|
|
24945
24969
|
exports2.Steps = Steps;
|
|
24946
24970
|
exports2.Sticky = Sticky;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.nut-space {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
&-item {
|
|
5
|
+
flex: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-vertical {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
> .nut-space-item {
|
|
11
|
+
margin-bottom: $space-gap;
|
|
12
|
+
&:last-child {
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-horizontal {
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
> .nut-space-item {
|
|
21
|
+
margin-right: $space-gap;
|
|
22
|
+
&:last-child {
|
|
23
|
+
margin-right: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.nut-space-wrap {
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
margin-bottom: calc(#{$space-gap} * -1);
|
|
29
|
+
> .nut-space-item {
|
|
30
|
+
padding-bottom: $space-gap;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-align {
|
|
36
|
+
&-center {
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
&-start {
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
}
|
|
42
|
+
&-end {
|
|
43
|
+
align-items: flex-end;
|
|
44
|
+
}
|
|
45
|
+
&-baseline {
|
|
46
|
+
align-items: baseline;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-justify {
|
|
51
|
+
&-center {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
&-start {
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
}
|
|
57
|
+
&-end {
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
}
|
|
60
|
+
&-between {
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
}
|
|
63
|
+
&-around {
|
|
64
|
+
justify-content: space-around;
|
|
65
|
+
}
|
|
66
|
+
&-evenly {
|
|
67
|
+
justify-content: space-evenly;
|
|
68
|
+
}
|
|
69
|
+
&-stretch {
|
|
70
|
+
justify-content: stretch;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|