@nutui/nutui-react-taro 1.4.7-beta.0 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address.js +3 -3
- package/dist/esm/Calendar.js +3 -3
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader.js +3 -3
- package/dist/esm/DatePicker.js +4 -4
- package/dist/esm/ImagePreview.js +3 -3
- package/dist/esm/NumberKeyboard.js +3 -3
- package/dist/esm/Picker.js +3 -3
- package/dist/esm/Popup.js +2 -2
- package/dist/esm/Progress.js +3 -3
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +2 -2
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +3 -3
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/Tag.js +3 -3
- package/dist/esm/TimeSelect.js +3 -3
- package/dist/esm/Uploader.js +3 -4
- package/dist/esm/{actionsheet.taro-27121a38.js → actionsheet.taro-166ce936.js} +1 -1
- package/dist/esm/{address.taro-15ad9509.js → address.taro-55f308f1.js} +1 -1
- package/dist/esm/{calendar.taro-05c40d76.js → calendar.taro-02479e8b.js} +1 -1
- package/dist/esm/{card.taro-7e85c3da.js → card.taro-a03f0dfc.js} +1 -1
- package/dist/esm/{cascader.taro-66462c03.js → cascader.taro-e6610dd1.js} +1 -1
- package/dist/esm/{datepicker.taro-8507d826.js → datepicker.taro-c61c6586.js} +1 -1
- package/dist/esm/{imagepreview.taro-e7ae4705.js → imagepreview.taro-2d23d0ae.js} +1 -1
- package/dist/esm/{index.taro-cd52b23f.js → index.taro-84346556.js} +8 -4
- package/dist/esm/{numberkeyboard.taro-fd9a4c1a.js → numberkeyboard.taro-c6b5b0e1.js} +1 -1
- package/dist/esm/nutui-react.es.js +18 -18
- package/dist/esm/{picker.taro-6128297f.js → picker.taro-fa937ea1.js} +1 -1
- package/dist/esm/{popup.taro-89809b25.js → popup.taro-4c18f46c.js} +3 -2
- package/dist/esm/{progress.taro-18e015e4.js → progress.taro-773482ed.js} +4 -7
- package/dist/esm/{searchbar.taro-141827e2.js → searchbar.taro-6864f7bc.js} +3 -2
- package/dist/esm/{shortpassword.taro-e1f53ee7.js → shortpassword.taro-02ea4499.js} +1 -1
- package/dist/esm/{sidenavbar.taro-f44d12ac.js → sidenavbar.taro-51a133e6.js} +1 -1
- package/dist/esm/{tag.taro-213ec444.js → tag.taro-64f37bd9.js} +5 -3
- package/dist/esm/{timeselect.taro-b04b1538.js → timeselect.taro-4fb46162.js} +1 -1
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +1 -0
- package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/progress/progress.d.ts +0 -1
- package/dist/esm/types/src/packages/progress/progress.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/tag.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -0
- package/dist/esm/{uploader.taro-c70d040d.js → uploader.taro-b7b770e6.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.es.js +21 -16
- package/dist/nutui.react.umd.js +21 -16
- package/dist/packages/address/address.scss +23 -2
- package/dist/packages/calendar/calendar.scss +3 -3
- package/dist/packages/numberkeyboard/numberkeyboard.scss +10 -2
- package/dist/packages/popup/popup.scss +4 -4
- package/dist/packages/progress/progress.scss +26 -3
- package/dist/packages/radio/radio.scss +1 -1
- package/dist/packages/radiogroup/radiogroup.scss +15 -2
- package/dist/packages/searchbar/searchbar.scss +35 -7
- package/dist/packages/shortpassword/shortpassword.scss +12 -1
- package/dist/packages/swiper/swiper.scss +1 -1
- package/dist/packages/switch/switch.scss +15 -2
- package/dist/packages/tabbaritem/tabbaritem.scss +3 -3
- package/dist/packages/tag/tag.scss +3 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/theme-dark.scss +1 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/variables.scss +80 -17
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import { I as Icon } from './icon.taro-c9254a81.js';
|
|
3
4
|
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
5
|
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -12,12 +12,13 @@ const defaultProps = {
|
|
|
12
12
|
round: false,
|
|
13
13
|
mark: false,
|
|
14
14
|
closeable: false,
|
|
15
|
+
iconSize: '12px',
|
|
15
16
|
prefixCls: 'nut-tag',
|
|
16
17
|
onClose: (e) => { },
|
|
17
18
|
onClick: (e) => { },
|
|
18
19
|
};
|
|
19
20
|
const Tag = (props) => {
|
|
20
|
-
const { className, style, color, plain, type, round, prefixCls, children, mark, closeable, textColor, onClick, onClose, iconClassPrefix, iconFontClassName, } = {
|
|
21
|
+
const { className, style, color, plain, type, round, prefixCls, children, mark, closeable, iconSize, textColor, onClick, onClose, iconClassPrefix, iconFontClassName, } = {
|
|
21
22
|
...defaultProps,
|
|
22
23
|
...props,
|
|
23
24
|
};
|
|
@@ -33,6 +34,7 @@ const Tag = (props) => {
|
|
|
33
34
|
round,
|
|
34
35
|
mark,
|
|
35
36
|
closeable,
|
|
37
|
+
iconSize,
|
|
36
38
|
prefixCls,
|
|
37
39
|
onClick,
|
|
38
40
|
onClose,
|
|
@@ -76,7 +78,7 @@ const Tag = (props) => {
|
|
|
76
78
|
};
|
|
77
79
|
return (React__default.createElement(React__default.Fragment, null, closeable ? (isTagShow && (React__default.createElement("div", { className: btnName, style: { ...style, ...getStyle() }, onClick: (e) => handleClick(e) },
|
|
78
80
|
children && React__default.createElement("span", { className: "nut-tag-text" }, children),
|
|
79
|
-
React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: "_icon", name: "close", size:
|
|
81
|
+
React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: "_icon", name: "close", size: iconSize, onClick: (e) => {
|
|
80
82
|
setIsTagShow(false);
|
|
81
83
|
if (props.onClose) {
|
|
82
84
|
props.onClose(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import { P as Popup } from './popup.taro-
|
|
2
|
+
import { P as Popup } from './popup.taro-4c18f46c.js';
|
|
3
3
|
import { T as TimePannel } from './timepannel.taro-29f9dd86.js';
|
|
4
4
|
import { T as TimeDetail } from './timedetail.taro-c5f564fd.js';
|
|
5
5
|
import { c as cn } from './bem-893ad28d.js';
|
|
@@ -8,6 +8,7 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
8
8
|
errorMessageAlign: TextAlign;
|
|
9
9
|
showErrorLine: boolean;
|
|
10
10
|
showErrorMessage: boolean;
|
|
11
|
+
initialValue: string;
|
|
11
12
|
}
|
|
12
13
|
declare const defaultProps: FormItemProps;
|
|
13
14
|
export type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
@@ -21,7 +21,6 @@ export interface ProgressProps extends BasicComponent {
|
|
|
21
21
|
iconName: string;
|
|
22
22
|
iconColor: string;
|
|
23
23
|
iconSize: string;
|
|
24
|
-
rounded: boolean | string;
|
|
25
24
|
children: ReactNode;
|
|
26
25
|
}
|
|
27
26
|
export declare const Progress: FunctionComponent<Partial<ProgressProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -21,7 +21,6 @@ export interface ProgressProps extends BasicComponent {
|
|
|
21
21
|
iconName: string;
|
|
22
22
|
iconColor: string;
|
|
23
23
|
iconSize: string;
|
|
24
|
-
rounded: boolean | string;
|
|
25
24
|
children: ReactNode;
|
|
26
25
|
}
|
|
27
26
|
export declare const Progress: FunctionComponent<Partial<ProgressProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { uploadFile, getEnv, chooseImage } from '@tarojs/taro';
|
|
4
4
|
import { I as Icon } from './icon.taro-c9254a81.js';
|
|
5
5
|
import { B as Button } from './button.taro-dc4795a3.js';
|
|
6
|
-
import { P as Progress } from './progress.taro-
|
|
6
|
+
import { P as Progress } from './progress.taro-773482ed.js';
|
|
7
7
|
import { c as cn } from './bem-893ad28d.js';
|
|
8
8
|
import { u as useConfig } from './configprovider.taro-26882dd2.js';
|
|
9
9
|
import { C as ComponentDefaults } from './typings-1c5f2628.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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.4.7
|
|
2
|
+
* @nutui/nutui-react-taro v1.4.7 Wed Feb 15 2023 16:34:56 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1530,6 +1530,7 @@ const defaultProps$1p = {
|
|
|
1530
1530
|
closeable: false,
|
|
1531
1531
|
closeIconPosition: "top-right",
|
|
1532
1532
|
closeIcon: "close",
|
|
1533
|
+
closeIconSize: "12px",
|
|
1533
1534
|
destroyOnClose: true,
|
|
1534
1535
|
teleport: null,
|
|
1535
1536
|
overlay: true,
|
|
@@ -1579,7 +1580,8 @@ const Popup = (props) => {
|
|
|
1579
1580
|
onClosed,
|
|
1580
1581
|
onClick,
|
|
1581
1582
|
iconClassPrefix,
|
|
1582
|
-
iconFontClassName
|
|
1583
|
+
iconFontClassName,
|
|
1584
|
+
closeIconSize
|
|
1583
1585
|
} = props;
|
|
1584
1586
|
const [index, setIndex] = useState(zIndex || _zIndex);
|
|
1585
1587
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
@@ -1681,7 +1683,7 @@ const Popup = (props) => {
|
|
|
1681
1683
|
classPrefix: iconClassPrefix,
|
|
1682
1684
|
fontClassName: iconFontClassName,
|
|
1683
1685
|
name: closeIcon,
|
|
1684
|
-
size:
|
|
1686
|
+
size: closeIconSize
|
|
1685
1687
|
})) : ""));
|
|
1686
1688
|
};
|
|
1687
1689
|
const renderNode = () => {
|
|
@@ -6785,6 +6787,8 @@ RadioGroup.defaultProps = defaultProps$U;
|
|
|
6785
6787
|
RadioGroup.displayName = "NutRadioGroup";
|
|
6786
6788
|
const defaultProps$T = {
|
|
6787
6789
|
...ComponentDefaults,
|
|
6790
|
+
className: "",
|
|
6791
|
+
style: {},
|
|
6788
6792
|
disabled: false,
|
|
6789
6793
|
checked: false,
|
|
6790
6794
|
shape: "round",
|
|
@@ -6833,7 +6837,7 @@ const Radio$1 = (props) => {
|
|
|
6833
6837
|
};
|
|
6834
6838
|
const renderButton = () => {
|
|
6835
6839
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
6836
|
-
className: `${componentName}__button ${checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
|
|
6840
|
+
className: `${componentName}__button ${!disabledStatement && checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
|
|
6837
6841
|
}, children);
|
|
6838
6842
|
};
|
|
6839
6843
|
const color = () => {
|
|
@@ -6850,11 +6854,12 @@ const Radio$1 = (props) => {
|
|
|
6850
6854
|
return /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
6851
6855
|
classPrefix: iconClassPrefix,
|
|
6852
6856
|
fontClassName: iconFontClassName,
|
|
6853
|
-
name: checkedStatement ? iconActiveName2 : iconName2,
|
|
6857
|
+
name: !disabledStatement && checkedStatement ? iconActiveName2 : iconName2,
|
|
6854
6858
|
size: iconSize2,
|
|
6855
6859
|
className: color()
|
|
6856
6860
|
});
|
|
6857
6861
|
};
|
|
6862
|
+
const reverseState = textPosition === "left";
|
|
6858
6863
|
const renderRadioItem = () => {
|
|
6859
6864
|
if (shape === "button") {
|
|
6860
6865
|
return renderButton();
|
|
@@ -6871,9 +6876,8 @@ const Radio$1 = (props) => {
|
|
|
6871
6876
|
onChange && onChange(e2);
|
|
6872
6877
|
context && context.onChange(valueStatement);
|
|
6873
6878
|
};
|
|
6874
|
-
const reverseState = textPosition === "left";
|
|
6875
6879
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
6876
|
-
className: `nut-radio ${className}`,
|
|
6880
|
+
className: `nut-radio ${className} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
6877
6881
|
onClick: handleClick,
|
|
6878
6882
|
...rest
|
|
6879
6883
|
}, renderRadioItem());
|
|
@@ -7591,6 +7595,7 @@ const defaultProps$O = {
|
|
|
7591
7595
|
disabled: false,
|
|
7592
7596
|
maxLength: 9999,
|
|
7593
7597
|
clearable: true,
|
|
7598
|
+
clearIconSize: "12px",
|
|
7594
7599
|
align: "left",
|
|
7595
7600
|
readonly: true,
|
|
7596
7601
|
autoFocus: false,
|
|
@@ -7612,6 +7617,7 @@ const SearchBar = (props) => {
|
|
|
7612
7617
|
disabled,
|
|
7613
7618
|
maxLength,
|
|
7614
7619
|
clearable,
|
|
7620
|
+
clearIconSize,
|
|
7615
7621
|
align,
|
|
7616
7622
|
readOnly,
|
|
7617
7623
|
autoFocus,
|
|
@@ -7737,7 +7743,7 @@ const SearchBar = (props) => {
|
|
|
7737
7743
|
classPrefix: iconClassPrefix,
|
|
7738
7744
|
fontClassName: iconFontClassName,
|
|
7739
7745
|
name: "circle-close",
|
|
7740
|
-
size:
|
|
7746
|
+
size: clearIconSize,
|
|
7741
7747
|
color: "#555"
|
|
7742
7748
|
}));
|
|
7743
7749
|
};
|
|
@@ -8075,7 +8081,6 @@ const defaultProps$L = {
|
|
|
8075
8081
|
iconName: "checked",
|
|
8076
8082
|
iconColor: "#439422",
|
|
8077
8083
|
iconSize: "16px",
|
|
8078
|
-
rounded: true,
|
|
8079
8084
|
children: void 0
|
|
8080
8085
|
};
|
|
8081
8086
|
const Progress = (props) => {
|
|
@@ -8098,7 +8103,6 @@ const Progress = (props) => {
|
|
|
8098
8103
|
iconName,
|
|
8099
8104
|
iconColor,
|
|
8100
8105
|
iconSize,
|
|
8101
|
-
rounded,
|
|
8102
8106
|
children,
|
|
8103
8107
|
iconClassPrefix,
|
|
8104
8108
|
iconFontClassName,
|
|
@@ -8129,12 +8133,10 @@ const Progress = (props) => {
|
|
|
8129
8133
|
});
|
|
8130
8134
|
const stylesOuter = {
|
|
8131
8135
|
height: `${strokeWidth}px`,
|
|
8132
|
-
borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
|
|
8133
8136
|
background: `${fillColor}`
|
|
8134
8137
|
};
|
|
8135
8138
|
const stylesInner = {
|
|
8136
8139
|
width: `${percentage}%`,
|
|
8137
|
-
borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
|
|
8138
8140
|
background: `${strokeColor}`
|
|
8139
8141
|
};
|
|
8140
8142
|
const stylesInsideText = {
|
|
@@ -8167,14 +8169,14 @@ const Progress = (props) => {
|
|
|
8167
8169
|
style: stylesInsideText
|
|
8168
8170
|
}, /* @__PURE__ */ React__default.createElement("span", {
|
|
8169
8171
|
className: classesTextInner,
|
|
8170
|
-
style: { color: textColor
|
|
8172
|
+
style: { color: textColor }
|
|
8171
8173
|
}, percentage, isShowPercentage ? "%" : ""))))), showText && !textInside && /* @__PURE__ */ React__default.createElement("div", {
|
|
8172
8174
|
className: classesText,
|
|
8173
8175
|
style: stylesText
|
|
8174
8176
|
}, textType === "text" && /* @__PURE__ */ React__default.createElement("span", {
|
|
8175
8177
|
className: classesTextInner,
|
|
8176
|
-
style: { color: textColor
|
|
8177
|
-
}, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default.createElement(Icon, {
|
|
8178
|
+
style: { color: textColor }
|
|
8179
|
+
}, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
8178
8180
|
classPrefix: iconClassPrefix,
|
|
8179
8181
|
fontClassName: iconFontClassName,
|
|
8180
8182
|
size: iconSize,
|
|
@@ -17453,6 +17455,7 @@ const defaultProps$d = {
|
|
|
17453
17455
|
round: false,
|
|
17454
17456
|
mark: false,
|
|
17455
17457
|
closeable: false,
|
|
17458
|
+
iconSize: "12px",
|
|
17456
17459
|
prefixCls: "nut-tag",
|
|
17457
17460
|
onClose: (e2) => {
|
|
17458
17461
|
},
|
|
@@ -17471,6 +17474,7 @@ const Tag = (props) => {
|
|
|
17471
17474
|
children,
|
|
17472
17475
|
mark,
|
|
17473
17476
|
closeable,
|
|
17477
|
+
iconSize,
|
|
17474
17478
|
textColor,
|
|
17475
17479
|
onClick,
|
|
17476
17480
|
onClose,
|
|
@@ -17492,6 +17496,7 @@ const Tag = (props) => {
|
|
|
17492
17496
|
round,
|
|
17493
17497
|
mark,
|
|
17494
17498
|
closeable,
|
|
17499
|
+
iconSize,
|
|
17495
17500
|
prefixCls,
|
|
17496
17501
|
onClick,
|
|
17497
17502
|
onClose
|
|
@@ -17539,7 +17544,7 @@ const Tag = (props) => {
|
|
|
17539
17544
|
fontClassName: iconFontClassName,
|
|
17540
17545
|
className: "_icon",
|
|
17541
17546
|
name: "close",
|
|
17542
|
-
size:
|
|
17547
|
+
size: iconSize,
|
|
17543
17548
|
onClick: (e2) => {
|
|
17544
17549
|
setIsTagShow(false);
|
|
17545
17550
|
if (props.onClose) {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.4.7
|
|
2
|
+
* @nutui/nutui-react-taro v1.4.7 Wed Feb 15 2023 16:34:56 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1557,6 +1557,7 @@
|
|
|
1557
1557
|
closeable: false,
|
|
1558
1558
|
closeIconPosition: "top-right",
|
|
1559
1559
|
closeIcon: "close",
|
|
1560
|
+
closeIconSize: "12px",
|
|
1560
1561
|
destroyOnClose: true,
|
|
1561
1562
|
teleport: null,
|
|
1562
1563
|
overlay: true,
|
|
@@ -1606,7 +1607,8 @@
|
|
|
1606
1607
|
onClosed,
|
|
1607
1608
|
onClick,
|
|
1608
1609
|
iconClassPrefix,
|
|
1609
|
-
iconFontClassName
|
|
1610
|
+
iconFontClassName,
|
|
1611
|
+
closeIconSize
|
|
1610
1612
|
} = props;
|
|
1611
1613
|
const [index, setIndex] = React.useState(zIndex || _zIndex);
|
|
1612
1614
|
const [innerVisible, setInnerVisible] = React.useState(visible);
|
|
@@ -1708,7 +1710,7 @@
|
|
|
1708
1710
|
classPrefix: iconClassPrefix,
|
|
1709
1711
|
fontClassName: iconFontClassName,
|
|
1710
1712
|
name: closeIcon,
|
|
1711
|
-
size:
|
|
1713
|
+
size: closeIconSize
|
|
1712
1714
|
})) : ""));
|
|
1713
1715
|
};
|
|
1714
1716
|
const renderNode = () => {
|
|
@@ -6812,6 +6814,8 @@
|
|
|
6812
6814
|
RadioGroup.displayName = "NutRadioGroup";
|
|
6813
6815
|
const defaultProps$T = {
|
|
6814
6816
|
...ComponentDefaults,
|
|
6817
|
+
className: "",
|
|
6818
|
+
style: {},
|
|
6815
6819
|
disabled: false,
|
|
6816
6820
|
checked: false,
|
|
6817
6821
|
shape: "round",
|
|
@@ -6860,7 +6864,7 @@
|
|
|
6860
6864
|
};
|
|
6861
6865
|
const renderButton = () => {
|
|
6862
6866
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
6863
|
-
className: `${componentName}__button ${checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
|
|
6867
|
+
className: `${componentName}__button ${!disabledStatement && checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
|
|
6864
6868
|
}, children);
|
|
6865
6869
|
};
|
|
6866
6870
|
const color = () => {
|
|
@@ -6877,11 +6881,12 @@
|
|
|
6877
6881
|
return /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
|
|
6878
6882
|
classPrefix: iconClassPrefix,
|
|
6879
6883
|
fontClassName: iconFontClassName,
|
|
6880
|
-
name: checkedStatement ? iconActiveName2 : iconName2,
|
|
6884
|
+
name: !disabledStatement && checkedStatement ? iconActiveName2 : iconName2,
|
|
6881
6885
|
size: iconSize2,
|
|
6882
6886
|
className: color()
|
|
6883
6887
|
});
|
|
6884
6888
|
};
|
|
6889
|
+
const reverseState = textPosition === "left";
|
|
6885
6890
|
const renderRadioItem = () => {
|
|
6886
6891
|
if (shape === "button") {
|
|
6887
6892
|
return renderButton();
|
|
@@ -6898,9 +6903,8 @@
|
|
|
6898
6903
|
onChange && onChange(e2);
|
|
6899
6904
|
context && context.onChange(valueStatement);
|
|
6900
6905
|
};
|
|
6901
|
-
const reverseState = textPosition === "left";
|
|
6902
6906
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
6903
|
-
className: `nut-radio ${className}`,
|
|
6907
|
+
className: `nut-radio ${className} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
6904
6908
|
onClick: handleClick,
|
|
6905
6909
|
...rest
|
|
6906
6910
|
}, renderRadioItem());
|
|
@@ -7618,6 +7622,7 @@
|
|
|
7618
7622
|
disabled: false,
|
|
7619
7623
|
maxLength: 9999,
|
|
7620
7624
|
clearable: true,
|
|
7625
|
+
clearIconSize: "12px",
|
|
7621
7626
|
align: "left",
|
|
7622
7627
|
readonly: true,
|
|
7623
7628
|
autoFocus: false,
|
|
@@ -7639,6 +7644,7 @@
|
|
|
7639
7644
|
disabled,
|
|
7640
7645
|
maxLength,
|
|
7641
7646
|
clearable,
|
|
7647
|
+
clearIconSize,
|
|
7642
7648
|
align,
|
|
7643
7649
|
readOnly,
|
|
7644
7650
|
autoFocus,
|
|
@@ -7764,7 +7770,7 @@
|
|
|
7764
7770
|
classPrefix: iconClassPrefix,
|
|
7765
7771
|
fontClassName: iconFontClassName,
|
|
7766
7772
|
name: "circle-close",
|
|
7767
|
-
size:
|
|
7773
|
+
size: clearIconSize,
|
|
7768
7774
|
color: "#555"
|
|
7769
7775
|
}));
|
|
7770
7776
|
};
|
|
@@ -8102,7 +8108,6 @@
|
|
|
8102
8108
|
iconName: "checked",
|
|
8103
8109
|
iconColor: "#439422",
|
|
8104
8110
|
iconSize: "16px",
|
|
8105
|
-
rounded: true,
|
|
8106
8111
|
children: void 0
|
|
8107
8112
|
};
|
|
8108
8113
|
const Progress = (props) => {
|
|
@@ -8125,7 +8130,6 @@
|
|
|
8125
8130
|
iconName,
|
|
8126
8131
|
iconColor,
|
|
8127
8132
|
iconSize,
|
|
8128
|
-
rounded,
|
|
8129
8133
|
children,
|
|
8130
8134
|
iconClassPrefix,
|
|
8131
8135
|
iconFontClassName,
|
|
@@ -8156,12 +8160,10 @@
|
|
|
8156
8160
|
});
|
|
8157
8161
|
const stylesOuter = {
|
|
8158
8162
|
height: `${strokeWidth}px`,
|
|
8159
|
-
borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
|
|
8160
8163
|
background: `${fillColor}`
|
|
8161
8164
|
};
|
|
8162
8165
|
const stylesInner = {
|
|
8163
8166
|
width: `${percentage}%`,
|
|
8164
|
-
borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
|
|
8165
8167
|
background: `${strokeColor}`
|
|
8166
8168
|
};
|
|
8167
8169
|
const stylesInsideText = {
|
|
@@ -8194,14 +8196,14 @@
|
|
|
8194
8196
|
style: stylesInsideText
|
|
8195
8197
|
}, /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
8196
8198
|
className: classesTextInner,
|
|
8197
|
-
style: { color: textColor
|
|
8199
|
+
style: { color: textColor }
|
|
8198
8200
|
}, percentage, isShowPercentage ? "%" : ""))))), showText && !textInside && /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
8199
8201
|
className: classesText,
|
|
8200
8202
|
style: stylesText
|
|
8201
8203
|
}, textType === "text" && /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
8202
8204
|
className: classesTextInner,
|
|
8203
|
-
style: { color: textColor
|
|
8204
|
-
}, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default["default"].createElement(Icon, {
|
|
8205
|
+
style: { color: textColor }
|
|
8206
|
+
}, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
|
|
8205
8207
|
classPrefix: iconClassPrefix,
|
|
8206
8208
|
fontClassName: iconFontClassName,
|
|
8207
8209
|
size: iconSize,
|
|
@@ -17480,6 +17482,7 @@
|
|
|
17480
17482
|
round: false,
|
|
17481
17483
|
mark: false,
|
|
17482
17484
|
closeable: false,
|
|
17485
|
+
iconSize: "12px",
|
|
17483
17486
|
prefixCls: "nut-tag",
|
|
17484
17487
|
onClose: (e2) => {
|
|
17485
17488
|
},
|
|
@@ -17498,6 +17501,7 @@
|
|
|
17498
17501
|
children,
|
|
17499
17502
|
mark,
|
|
17500
17503
|
closeable,
|
|
17504
|
+
iconSize,
|
|
17501
17505
|
textColor,
|
|
17502
17506
|
onClick,
|
|
17503
17507
|
onClose,
|
|
@@ -17519,6 +17523,7 @@
|
|
|
17519
17523
|
round,
|
|
17520
17524
|
mark,
|
|
17521
17525
|
closeable,
|
|
17526
|
+
iconSize,
|
|
17522
17527
|
prefixCls,
|
|
17523
17528
|
onClick,
|
|
17524
17529
|
onClose
|
|
@@ -17566,7 +17571,7 @@
|
|
|
17566
17571
|
fontClassName: iconFontClassName,
|
|
17567
17572
|
className: "_icon",
|
|
17568
17573
|
name: "close",
|
|
17569
|
-
size:
|
|
17574
|
+
size: iconSize,
|
|
17570
17575
|
onClick: (e2) => {
|
|
17571
17576
|
setIsTagShow(false);
|
|
17572
17577
|
if (props.onClose) {
|