@nutui/nutui-react-taro 2.0.7 → 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 +9 -0
- package/dist/esm/Address.js +3 -3
- package/dist/esm/Cascader.js +2 -2
- 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 +6 -0
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/{address.taro-9a503694.js → address.taro-477dd6df.js} +1 -1
- package/dist/esm/{cascader.taro-b68a89ca.js → cascader.taro-96449f5a.js} +1 -1
- package/dist/esm/nutui-react.es.js +31 -29
- package/dist/esm/space.taro-a7e4ced4.js +21 -0
- package/dist/esm/{tabs.taro-927b95e4.js → tabs.taro-eceaf324.js} +0 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -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/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/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 +63 -40
- package/dist/nutui.react.umd.js +63 -40
- 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/configprovider/types.d.ts +1 -1
- package/dist/types/packages/space/index.taro.d.ts +2 -0
- package/dist/types/packages/space/space.taro.d.ts +9 -0
- package/package.json +1 -1
package/dist/nutui.react.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.0.
|
|
8
|
+
* @nutui/nutui-react-taro v2.0.8 Fri Jul 28 2023 14:55:00 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -1861,8 +1861,8 @@ const ComponentDefaults = {
|
|
|
1861
1861
|
className: "",
|
|
1862
1862
|
style: {}
|
|
1863
1863
|
};
|
|
1864
|
-
const prefixCls = "nut-button";
|
|
1865
|
-
const defaultProps$
|
|
1864
|
+
const prefixCls$1 = "nut-button";
|
|
1865
|
+
const defaultProps$1s = {
|
|
1866
1866
|
...ComponentDefaults,
|
|
1867
1867
|
color: "",
|
|
1868
1868
|
type: "default",
|
|
@@ -1894,7 +1894,7 @@ const Button = React__default.forwardRef(
|
|
|
1894
1894
|
style,
|
|
1895
1895
|
...rest
|
|
1896
1896
|
} = {
|
|
1897
|
-
...defaultProps$
|
|
1897
|
+
...defaultProps$1s,
|
|
1898
1898
|
...props
|
|
1899
1899
|
};
|
|
1900
1900
|
const getStyle = useCallback(() => {
|
|
@@ -1931,16 +1931,16 @@ const Button = React__default.forwardRef(
|
|
|
1931
1931
|
...rest,
|
|
1932
1932
|
ref,
|
|
1933
1933
|
className: classNames(
|
|
1934
|
-
prefixCls,
|
|
1934
|
+
prefixCls$1,
|
|
1935
1935
|
className,
|
|
1936
|
-
props.type ? `${prefixCls}--${type4}` : null,
|
|
1937
|
-
props.fill ? `${prefixCls}--${fill}` : null,
|
|
1936
|
+
props.type ? `${prefixCls$1}--${type4}` : null,
|
|
1937
|
+
props.fill ? `${prefixCls$1}--${fill}` : null,
|
|
1938
1938
|
{
|
|
1939
|
-
[`${prefixCls}--${size}`]: size,
|
|
1940
|
-
[`${prefixCls}--${shape}`]: shape,
|
|
1941
|
-
[`${prefixCls}--block`]: block,
|
|
1942
|
-
[`${prefixCls}--disabled`]: disabled,
|
|
1943
|
-
[`${prefixCls}--loading`]: loading
|
|
1939
|
+
[`${prefixCls$1}--${size}`]: size,
|
|
1940
|
+
[`${prefixCls$1}--${shape}`]: shape,
|
|
1941
|
+
[`${prefixCls$1}--block`]: block,
|
|
1942
|
+
[`${prefixCls$1}--disabled`]: disabled,
|
|
1943
|
+
[`${prefixCls$1}--loading`]: loading
|
|
1944
1944
|
}
|
|
1945
1945
|
),
|
|
1946
1946
|
style: { ...getStyle(), ...style },
|
|
@@ -1952,7 +1952,7 @@ const Button = React__default.forwardRef(
|
|
|
1952
1952
|
}
|
|
1953
1953
|
);
|
|
1954
1954
|
Button.displayName = "NutButton";
|
|
1955
|
-
const defaultProps$
|
|
1955
|
+
const defaultProps$1r = {
|
|
1956
1956
|
...ComponentDefaults,
|
|
1957
1957
|
title: "",
|
|
1958
1958
|
description: "",
|
|
@@ -1961,7 +1961,7 @@ const defaultProps$1q = {
|
|
|
1961
1961
|
const classPrefix$o = "nut-cell-group";
|
|
1962
1962
|
const CellGroup = (props) => {
|
|
1963
1963
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
1964
|
-
...defaultProps$
|
|
1964
|
+
...defaultProps$1r,
|
|
1965
1965
|
...props
|
|
1966
1966
|
};
|
|
1967
1967
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -1972,9 +1972,9 @@ const CellGroup = (props) => {
|
|
|
1972
1972
|
children
|
|
1973
1973
|
));
|
|
1974
1974
|
};
|
|
1975
|
-
CellGroup.defaultProps = defaultProps$
|
|
1975
|
+
CellGroup.defaultProps = defaultProps$1r;
|
|
1976
1976
|
CellGroup.displayName = "NutCellGroup";
|
|
1977
|
-
const defaultProps$
|
|
1977
|
+
const defaultProps$1q = {
|
|
1978
1978
|
...ComponentDefaults,
|
|
1979
1979
|
title: null,
|
|
1980
1980
|
description: null,
|
|
@@ -1998,7 +1998,7 @@ const Cell = (props) => {
|
|
|
1998
1998
|
style,
|
|
1999
1999
|
...rest
|
|
2000
2000
|
} = {
|
|
2001
|
-
...defaultProps$
|
|
2001
|
+
...defaultProps$1q,
|
|
2002
2002
|
...props
|
|
2003
2003
|
};
|
|
2004
2004
|
const handleClick = (event) => {
|
|
@@ -2030,7 +2030,7 @@ const Cell = (props) => {
|
|
|
2030
2030
|
) : null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2031
2031
|
);
|
|
2032
2032
|
};
|
|
2033
|
-
Cell.defaultProps = defaultProps$
|
|
2033
|
+
Cell.defaultProps = defaultProps$1q;
|
|
2034
2034
|
Cell.displayName = "NutCell";
|
|
2035
2035
|
Cell.Group = CellGroup;
|
|
2036
2036
|
var INFINITY = 1 / 0;
|
|
@@ -3163,7 +3163,7 @@ const ConfigProvider = (props) => {
|
|
|
3163
3163
|
));
|
|
3164
3164
|
};
|
|
3165
3165
|
ConfigProvider.displayName = "NutConfigProvider";
|
|
3166
|
-
const defaultProps$
|
|
3166
|
+
const defaultProps$1p = {
|
|
3167
3167
|
src: "",
|
|
3168
3168
|
error: true,
|
|
3169
3169
|
loading: true
|
|
@@ -3182,7 +3182,7 @@ const Image$1 = (props) => {
|
|
|
3182
3182
|
onLoad,
|
|
3183
3183
|
onError,
|
|
3184
3184
|
...rest
|
|
3185
|
-
} = { ...defaultProps$
|
|
3185
|
+
} = { ...defaultProps$1p, ...props };
|
|
3186
3186
|
const [innerLoading, setInnerLoading] = useState(true);
|
|
3187
3187
|
const [isError, setIsError] = useState(false);
|
|
3188
3188
|
const handleLoad = (e) => {
|
|
@@ -3243,7 +3243,7 @@ const Image$1 = (props) => {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
), renderLoading(), renderErrorImg());
|
|
3245
3245
|
};
|
|
3246
|
-
Image$1.defaultProps = defaultProps$
|
|
3246
|
+
Image$1.defaultProps = defaultProps$1p;
|
|
3247
3247
|
Image$1.displayName = "NutImage";
|
|
3248
3248
|
function _extends$1() {
|
|
3249
3249
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5078,7 +5078,7 @@ const Overlay = (props) => {
|
|
|
5078
5078
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5079
5079
|
Overlay.displayName = "NutOverlay";
|
|
5080
5080
|
const DataContext$1 = createContext({});
|
|
5081
|
-
const defaultProps$
|
|
5081
|
+
const defaultProps$1o = {
|
|
5082
5082
|
...ComponentDefaults,
|
|
5083
5083
|
span: "24",
|
|
5084
5084
|
offset: "0",
|
|
@@ -5086,7 +5086,7 @@ const defaultProps$1n = {
|
|
|
5086
5086
|
};
|
|
5087
5087
|
const Col = (props) => {
|
|
5088
5088
|
const { className, style, span, offset, children, onClick } = {
|
|
5089
|
-
...defaultProps$
|
|
5089
|
+
...defaultProps$1o,
|
|
5090
5090
|
...props
|
|
5091
5091
|
};
|
|
5092
5092
|
const [colName, setColName] = useState("");
|
|
@@ -5118,9 +5118,9 @@ const Col = (props) => {
|
|
|
5118
5118
|
children
|
|
5119
5119
|
);
|
|
5120
5120
|
};
|
|
5121
|
-
Col.defaultProps = defaultProps$
|
|
5121
|
+
Col.defaultProps = defaultProps$1o;
|
|
5122
5122
|
Col.displayName = "NutCol";
|
|
5123
|
-
const defaultProps$
|
|
5123
|
+
const defaultProps$1n = {
|
|
5124
5124
|
...ComponentDefaults,
|
|
5125
5125
|
contentPosition: "center",
|
|
5126
5126
|
direction: "horizontal"
|
|
@@ -5128,7 +5128,7 @@ const defaultProps$1m = {
|
|
|
5128
5128
|
const classPrefix$l = `nut-divider`;
|
|
5129
5129
|
const Divider = (props) => {
|
|
5130
5130
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5131
|
-
...defaultProps$
|
|
5131
|
+
...defaultProps$1n,
|
|
5132
5132
|
...props
|
|
5133
5133
|
};
|
|
5134
5134
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -5143,7 +5143,7 @@ const Divider = (props) => {
|
|
|
5143
5143
|
});
|
|
5144
5144
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5145
5145
|
};
|
|
5146
|
-
Divider.defaultProps = defaultProps$
|
|
5146
|
+
Divider.defaultProps = defaultProps$1n;
|
|
5147
5147
|
Divider.displayName = "NutDivider";
|
|
5148
5148
|
const gridContext = {
|
|
5149
5149
|
onClick: (item, index) => {
|
|
@@ -5153,7 +5153,7 @@ const GridContext = React__default.createContext(gridContext);
|
|
|
5153
5153
|
const pxCheck = (value) => {
|
|
5154
5154
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
5155
5155
|
};
|
|
5156
|
-
const defaultProps$
|
|
5156
|
+
const defaultProps$1m = {
|
|
5157
5157
|
text: "",
|
|
5158
5158
|
columns: 4,
|
|
5159
5159
|
gap: 0,
|
|
@@ -5179,7 +5179,7 @@ const GridItem = (props) => {
|
|
|
5179
5179
|
onClick,
|
|
5180
5180
|
...rest
|
|
5181
5181
|
} = {
|
|
5182
|
-
...defaultProps$
|
|
5182
|
+
...defaultProps$1m,
|
|
5183
5183
|
...props
|
|
5184
5184
|
};
|
|
5185
5185
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5237,9 +5237,9 @@ const GridItem = (props) => {
|
|
|
5237
5237
|
/* @__PURE__ */ React__default.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children), text && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5238
5238
|
);
|
|
5239
5239
|
};
|
|
5240
|
-
GridItem.defaultProps = defaultProps$
|
|
5240
|
+
GridItem.defaultProps = defaultProps$1m;
|
|
5241
5241
|
GridItem.displayName = "NutGridItem";
|
|
5242
|
-
const defaultProps$
|
|
5242
|
+
const defaultProps$1l = {
|
|
5243
5243
|
columns: 4,
|
|
5244
5244
|
gap: 0,
|
|
5245
5245
|
center: true,
|
|
@@ -5260,7 +5260,7 @@ const Grid = (props) => {
|
|
|
5260
5260
|
className,
|
|
5261
5261
|
onClick,
|
|
5262
5262
|
...rest
|
|
5263
|
-
} = { ...defaultProps$
|
|
5263
|
+
} = { ...defaultProps$1l, ...props };
|
|
5264
5264
|
const childrenDom = React__default.Children.toArray(children);
|
|
5265
5265
|
const classPrefix2 = "nut-grid";
|
|
5266
5266
|
const rootClass = () => {
|
|
@@ -5290,18 +5290,18 @@ const Grid = (props) => {
|
|
|
5290
5290
|
});
|
|
5291
5291
|
})));
|
|
5292
5292
|
};
|
|
5293
|
-
Grid.defaultProps = defaultProps$
|
|
5293
|
+
Grid.defaultProps = defaultProps$1l;
|
|
5294
5294
|
Grid.displayName = "NutGrid";
|
|
5295
5295
|
Grid.Item = GridItem;
|
|
5296
|
-
const defaultProps$
|
|
5296
|
+
const defaultProps$1k = {};
|
|
5297
5297
|
const Layout = (props) => {
|
|
5298
|
-
({ ...defaultProps$
|
|
5298
|
+
({ ...defaultProps$1k, ...props });
|
|
5299
5299
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5300
5300
|
};
|
|
5301
|
-
Layout.defaultProps = defaultProps$
|
|
5301
|
+
Layout.defaultProps = defaultProps$1k;
|
|
5302
5302
|
Layout.displayName = "NutLayout";
|
|
5303
5303
|
const classPrefix$k = "nut-row";
|
|
5304
|
-
const defaultProps$
|
|
5304
|
+
const defaultProps$1j = {
|
|
5305
5305
|
...ComponentDefaults,
|
|
5306
5306
|
type: "",
|
|
5307
5307
|
justify: "start",
|
|
@@ -5321,7 +5321,7 @@ const Row = (props) => {
|
|
|
5321
5321
|
gutter,
|
|
5322
5322
|
onClick
|
|
5323
5323
|
} = {
|
|
5324
|
-
...defaultProps$
|
|
5324
|
+
...defaultProps$1j,
|
|
5325
5325
|
...props
|
|
5326
5326
|
};
|
|
5327
5327
|
const getClass = (prefix, type22) => {
|
|
@@ -5353,8 +5353,31 @@ const Row = (props) => {
|
|
|
5353
5353
|
children
|
|
5354
5354
|
));
|
|
5355
5355
|
};
|
|
5356
|
-
Row.defaultProps = defaultProps$
|
|
5356
|
+
Row.defaultProps = defaultProps$1j;
|
|
5357
5357
|
Row.displayName = "NutRow";
|
|
5358
|
+
const prefixCls = "nut-space";
|
|
5359
|
+
const defaultProps$1i = {
|
|
5360
|
+
direction: "horizontal"
|
|
5361
|
+
};
|
|
5362
|
+
const Space = (props) => {
|
|
5363
|
+
const { className, style, children, wrap, align, direction, justify } = {
|
|
5364
|
+
...defaultProps$1i,
|
|
5365
|
+
...props
|
|
5366
|
+
};
|
|
5367
|
+
const cls = classNames(
|
|
5368
|
+
className,
|
|
5369
|
+
prefixCls,
|
|
5370
|
+
wrap && `${prefixCls}-wrap`,
|
|
5371
|
+
direction && `${prefixCls}-${direction}`,
|
|
5372
|
+
align && `${prefixCls}-align-${align}`,
|
|
5373
|
+
justify && `${prefixCls}-justify-${justify}`
|
|
5374
|
+
);
|
|
5375
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: cls, style }, React__default.Children.map(children, (child) => {
|
|
5376
|
+
return child !== null && child !== void 0 && /* @__PURE__ */ React__default.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5377
|
+
}));
|
|
5378
|
+
};
|
|
5379
|
+
Space.defaultProps = defaultProps$1i;
|
|
5380
|
+
Space.displayName = "NutSpace";
|
|
5358
5381
|
function useWatch(dep, callback, config2 = { immediate: false }) {
|
|
5359
5382
|
const { immediate } = config2;
|
|
5360
5383
|
const prev = useRef();
|
|
@@ -6662,7 +6685,6 @@ const Tabs = (props) => {
|
|
|
6662
6685
|
animate();
|
|
6663
6686
|
};
|
|
6664
6687
|
const scrollIntoView = () => {
|
|
6665
|
-
console.log(name, props);
|
|
6666
6688
|
if (!name)
|
|
6667
6689
|
return;
|
|
6668
6690
|
requestAniFrame$1(() => {
|
|
@@ -18861,6 +18883,7 @@ export {
|
|
|
18861
18883
|
SideNavBarItem,
|
|
18862
18884
|
Signature,
|
|
18863
18885
|
Skeleton,
|
|
18886
|
+
Space,
|
|
18864
18887
|
Step,
|
|
18865
18888
|
Steps,
|
|
18866
18889
|
Sticky,
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.0.
|
|
11
|
+
* @nutui/nutui-react-taro v2.0.8 Fri Jul 28 2023 14:55:00 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -1877,8 +1877,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1877
1877
|
className: "",
|
|
1878
1878
|
style: {}
|
|
1879
1879
|
};
|
|
1880
|
-
const prefixCls = "nut-button";
|
|
1881
|
-
const defaultProps$
|
|
1880
|
+
const prefixCls$1 = "nut-button";
|
|
1881
|
+
const defaultProps$1s = {
|
|
1882
1882
|
...ComponentDefaults,
|
|
1883
1883
|
color: "",
|
|
1884
1884
|
type: "default",
|
|
@@ -1910,7 +1910,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1910
1910
|
style,
|
|
1911
1911
|
...rest
|
|
1912
1912
|
} = {
|
|
1913
|
-
...defaultProps$
|
|
1913
|
+
...defaultProps$1s,
|
|
1914
1914
|
...props
|
|
1915
1915
|
};
|
|
1916
1916
|
const getStyle = React.useCallback(() => {
|
|
@@ -1947,16 +1947,16 @@ var __publicField = (obj, key, value) => {
|
|
|
1947
1947
|
...rest,
|
|
1948
1948
|
ref,
|
|
1949
1949
|
className: classNames(
|
|
1950
|
-
prefixCls,
|
|
1950
|
+
prefixCls$1,
|
|
1951
1951
|
className,
|
|
1952
|
-
props.type ? `${prefixCls}--${type2}` : null,
|
|
1953
|
-
props.fill ? `${prefixCls}--${fill}` : null,
|
|
1952
|
+
props.type ? `${prefixCls$1}--${type2}` : null,
|
|
1953
|
+
props.fill ? `${prefixCls$1}--${fill}` : null,
|
|
1954
1954
|
{
|
|
1955
|
-
[`${prefixCls}--${size}`]: size,
|
|
1956
|
-
[`${prefixCls}--${shape}`]: shape,
|
|
1957
|
-
[`${prefixCls}--block`]: block,
|
|
1958
|
-
[`${prefixCls}--disabled`]: disabled,
|
|
1959
|
-
[`${prefixCls}--loading`]: loading
|
|
1955
|
+
[`${prefixCls$1}--${size}`]: size,
|
|
1956
|
+
[`${prefixCls$1}--${shape}`]: shape,
|
|
1957
|
+
[`${prefixCls$1}--block`]: block,
|
|
1958
|
+
[`${prefixCls$1}--disabled`]: disabled,
|
|
1959
|
+
[`${prefixCls$1}--loading`]: loading
|
|
1960
1960
|
}
|
|
1961
1961
|
),
|
|
1962
1962
|
style: { ...getStyle(), ...style },
|
|
@@ -1968,7 +1968,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
);
|
|
1970
1970
|
Button.displayName = "NutButton";
|
|
1971
|
-
const defaultProps$
|
|
1971
|
+
const defaultProps$1r = {
|
|
1972
1972
|
...ComponentDefaults,
|
|
1973
1973
|
title: "",
|
|
1974
1974
|
description: "",
|
|
@@ -1977,7 +1977,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1977
1977
|
const classPrefix$o = "nut-cell-group";
|
|
1978
1978
|
const CellGroup = (props) => {
|
|
1979
1979
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
1980
|
-
...defaultProps$
|
|
1980
|
+
...defaultProps$1r,
|
|
1981
1981
|
...props
|
|
1982
1982
|
};
|
|
1983
1983
|
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(
|
|
@@ -1988,9 +1988,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1988
1988
|
children
|
|
1989
1989
|
));
|
|
1990
1990
|
};
|
|
1991
|
-
CellGroup.defaultProps = defaultProps$
|
|
1991
|
+
CellGroup.defaultProps = defaultProps$1r;
|
|
1992
1992
|
CellGroup.displayName = "NutCellGroup";
|
|
1993
|
-
const defaultProps$
|
|
1993
|
+
const defaultProps$1q = {
|
|
1994
1994
|
...ComponentDefaults,
|
|
1995
1995
|
title: null,
|
|
1996
1996
|
description: null,
|
|
@@ -2014,7 +2014,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2014
2014
|
style,
|
|
2015
2015
|
...rest
|
|
2016
2016
|
} = {
|
|
2017
|
-
...defaultProps$
|
|
2017
|
+
...defaultProps$1q,
|
|
2018
2018
|
...props
|
|
2019
2019
|
};
|
|
2020
2020
|
const handleClick = (event) => {
|
|
@@ -2046,7 +2046,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2046
2046
|
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2047
2047
|
);
|
|
2048
2048
|
};
|
|
2049
|
-
Cell.defaultProps = defaultProps$
|
|
2049
|
+
Cell.defaultProps = defaultProps$1q;
|
|
2050
2050
|
Cell.displayName = "NutCell";
|
|
2051
2051
|
Cell.Group = CellGroup;
|
|
2052
2052
|
var INFINITY = 1 / 0;
|
|
@@ -3179,7 +3179,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3179
3179
|
));
|
|
3180
3180
|
};
|
|
3181
3181
|
ConfigProvider.displayName = "NutConfigProvider";
|
|
3182
|
-
const defaultProps$
|
|
3182
|
+
const defaultProps$1p = {
|
|
3183
3183
|
src: "",
|
|
3184
3184
|
error: true,
|
|
3185
3185
|
loading: true
|
|
@@ -3198,7 +3198,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3198
3198
|
onLoad,
|
|
3199
3199
|
onError,
|
|
3200
3200
|
...rest
|
|
3201
|
-
} = { ...defaultProps$
|
|
3201
|
+
} = { ...defaultProps$1p, ...props };
|
|
3202
3202
|
const [innerLoading, setInnerLoading] = React.useState(true);
|
|
3203
3203
|
const [isError, setIsError] = React.useState(false);
|
|
3204
3204
|
const handleLoad = (e) => {
|
|
@@ -3259,7 +3259,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
), renderLoading(), renderErrorImg());
|
|
3261
3261
|
};
|
|
3262
|
-
Image$1.defaultProps = defaultProps$
|
|
3262
|
+
Image$1.defaultProps = defaultProps$1p;
|
|
3263
3263
|
Image$1.displayName = "NutImage";
|
|
3264
3264
|
function _extends$1() {
|
|
3265
3265
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5094,7 +5094,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5094
5094
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5095
5095
|
Overlay.displayName = "NutOverlay";
|
|
5096
5096
|
const DataContext$1 = React.createContext({});
|
|
5097
|
-
const defaultProps$
|
|
5097
|
+
const defaultProps$1o = {
|
|
5098
5098
|
...ComponentDefaults,
|
|
5099
5099
|
span: "24",
|
|
5100
5100
|
offset: "0",
|
|
@@ -5102,7 +5102,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5102
5102
|
};
|
|
5103
5103
|
const Col = (props) => {
|
|
5104
5104
|
const { className, style, span, offset, children, onClick } = {
|
|
5105
|
-
...defaultProps$
|
|
5105
|
+
...defaultProps$1o,
|
|
5106
5106
|
...props
|
|
5107
5107
|
};
|
|
5108
5108
|
const [colName, setColName] = React.useState("");
|
|
@@ -5134,9 +5134,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5134
5134
|
children
|
|
5135
5135
|
);
|
|
5136
5136
|
};
|
|
5137
|
-
Col.defaultProps = defaultProps$
|
|
5137
|
+
Col.defaultProps = defaultProps$1o;
|
|
5138
5138
|
Col.displayName = "NutCol";
|
|
5139
|
-
const defaultProps$
|
|
5139
|
+
const defaultProps$1n = {
|
|
5140
5140
|
...ComponentDefaults,
|
|
5141
5141
|
contentPosition: "center",
|
|
5142
5142
|
direction: "horizontal"
|
|
@@ -5144,7 +5144,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5144
5144
|
const classPrefix$l = `nut-divider`;
|
|
5145
5145
|
const Divider = (props) => {
|
|
5146
5146
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5147
|
-
...defaultProps$
|
|
5147
|
+
...defaultProps$1n,
|
|
5148
5148
|
...props
|
|
5149
5149
|
};
|
|
5150
5150
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -5159,7 +5159,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5159
5159
|
});
|
|
5160
5160
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5161
5161
|
};
|
|
5162
|
-
Divider.defaultProps = defaultProps$
|
|
5162
|
+
Divider.defaultProps = defaultProps$1n;
|
|
5163
5163
|
Divider.displayName = "NutDivider";
|
|
5164
5164
|
const gridContext = {
|
|
5165
5165
|
onClick: (item, index) => {
|
|
@@ -5169,7 +5169,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5169
5169
|
const pxCheck = (value) => {
|
|
5170
5170
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
5171
5171
|
};
|
|
5172
|
-
const defaultProps$
|
|
5172
|
+
const defaultProps$1m = {
|
|
5173
5173
|
text: "",
|
|
5174
5174
|
columns: 4,
|
|
5175
5175
|
gap: 0,
|
|
@@ -5195,7 +5195,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5195
5195
|
onClick,
|
|
5196
5196
|
...rest
|
|
5197
5197
|
} = {
|
|
5198
|
-
...defaultProps$
|
|
5198
|
+
...defaultProps$1m,
|
|
5199
5199
|
...props
|
|
5200
5200
|
};
|
|
5201
5201
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5253,9 +5253,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5253
5253
|
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5254
5254
|
);
|
|
5255
5255
|
};
|
|
5256
|
-
GridItem.defaultProps = defaultProps$
|
|
5256
|
+
GridItem.defaultProps = defaultProps$1m;
|
|
5257
5257
|
GridItem.displayName = "NutGridItem";
|
|
5258
|
-
const defaultProps$
|
|
5258
|
+
const defaultProps$1l = {
|
|
5259
5259
|
columns: 4,
|
|
5260
5260
|
gap: 0,
|
|
5261
5261
|
center: true,
|
|
@@ -5276,7 +5276,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5276
5276
|
className,
|
|
5277
5277
|
onClick,
|
|
5278
5278
|
...rest
|
|
5279
|
-
} = { ...defaultProps$
|
|
5279
|
+
} = { ...defaultProps$1l, ...props };
|
|
5280
5280
|
const childrenDom = React.Children.toArray(children);
|
|
5281
5281
|
const classPrefix2 = "nut-grid";
|
|
5282
5282
|
const rootClass = () => {
|
|
@@ -5306,18 +5306,18 @@ var __publicField = (obj, key, value) => {
|
|
|
5306
5306
|
});
|
|
5307
5307
|
})));
|
|
5308
5308
|
};
|
|
5309
|
-
Grid.defaultProps = defaultProps$
|
|
5309
|
+
Grid.defaultProps = defaultProps$1l;
|
|
5310
5310
|
Grid.displayName = "NutGrid";
|
|
5311
5311
|
Grid.Item = GridItem;
|
|
5312
|
-
const defaultProps$
|
|
5312
|
+
const defaultProps$1k = {};
|
|
5313
5313
|
const Layout = (props) => {
|
|
5314
|
-
({ ...defaultProps$
|
|
5314
|
+
({ ...defaultProps$1k, ...props });
|
|
5315
5315
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5316
5316
|
};
|
|
5317
|
-
Layout.defaultProps = defaultProps$
|
|
5317
|
+
Layout.defaultProps = defaultProps$1k;
|
|
5318
5318
|
Layout.displayName = "NutLayout";
|
|
5319
5319
|
const classPrefix$k = "nut-row";
|
|
5320
|
-
const defaultProps$
|
|
5320
|
+
const defaultProps$1j = {
|
|
5321
5321
|
...ComponentDefaults,
|
|
5322
5322
|
type: "",
|
|
5323
5323
|
justify: "start",
|
|
@@ -5337,7 +5337,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5337
5337
|
gutter,
|
|
5338
5338
|
onClick
|
|
5339
5339
|
} = {
|
|
5340
|
-
...defaultProps$
|
|
5340
|
+
...defaultProps$1j,
|
|
5341
5341
|
...props
|
|
5342
5342
|
};
|
|
5343
5343
|
const getClass = (prefix, type22) => {
|
|
@@ -5369,8 +5369,31 @@ var __publicField = (obj, key, value) => {
|
|
|
5369
5369
|
children
|
|
5370
5370
|
));
|
|
5371
5371
|
};
|
|
5372
|
-
Row.defaultProps = defaultProps$
|
|
5372
|
+
Row.defaultProps = defaultProps$1j;
|
|
5373
5373
|
Row.displayName = "NutRow";
|
|
5374
|
+
const prefixCls = "nut-space";
|
|
5375
|
+
const defaultProps$1i = {
|
|
5376
|
+
direction: "horizontal"
|
|
5377
|
+
};
|
|
5378
|
+
const Space = (props) => {
|
|
5379
|
+
const { className, style, children, wrap, align, direction, justify } = {
|
|
5380
|
+
...defaultProps$1i,
|
|
5381
|
+
...props
|
|
5382
|
+
};
|
|
5383
|
+
const cls = classNames(
|
|
5384
|
+
className,
|
|
5385
|
+
prefixCls,
|
|
5386
|
+
wrap && `${prefixCls}-wrap`,
|
|
5387
|
+
direction && `${prefixCls}-${direction}`,
|
|
5388
|
+
align && `${prefixCls}-align-${align}`,
|
|
5389
|
+
justify && `${prefixCls}-justify-${justify}`
|
|
5390
|
+
);
|
|
5391
|
+
return /* @__PURE__ */ React.createElement("div", { className: cls, style }, React.Children.map(children, (child) => {
|
|
5392
|
+
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5393
|
+
}));
|
|
5394
|
+
};
|
|
5395
|
+
Space.defaultProps = defaultProps$1i;
|
|
5396
|
+
Space.displayName = "NutSpace";
|
|
5374
5397
|
function useWatch(dep, callback, config2 = { immediate: false }) {
|
|
5375
5398
|
const { immediate } = config2;
|
|
5376
5399
|
const prev = React.useRef();
|
|
@@ -6678,7 +6701,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6678
6701
|
animate();
|
|
6679
6702
|
};
|
|
6680
6703
|
const scrollIntoView = () => {
|
|
6681
|
-
console.log(name, props);
|
|
6682
6704
|
if (!name)
|
|
6683
6705
|
return;
|
|
6684
6706
|
requestAniFrame$1(() => {
|
|
@@ -18876,6 +18898,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18876
18898
|
exports2.SideNavBarItem = SideNavBarItem;
|
|
18877
18899
|
exports2.Signature = Signature;
|
|
18878
18900
|
exports2.Skeleton = Skeleton;
|
|
18901
|
+
exports2.Space = Space;
|
|
18879
18902
|
exports2.Step = Step;
|
|
18880
18903
|
exports2.Steps = Steps;
|
|
18881
18904
|
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
|
+
}
|