sti-antd-package 0.0.8 → 0.0.9
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/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6054,7 +6054,7 @@ const NumberFormatComponent = ({ noItem, text, size, align, className, variant,
|
|
|
6054
6054
|
variant === 'borderless' && classNumberFormat.push(styleNumberFormat['number-format-borderless']);
|
|
6055
6055
|
variant === 'underlined' && classNumberFormat.push(styleNumberFormat['number-format-underlined']);
|
|
6056
6056
|
!text && align === 'right' && classNumberFormat.push(styleNumberFormat['number-format-align-right']);
|
|
6057
|
-
const
|
|
6057
|
+
const NumberFormat = () => (jsxRuntimeExports.jsx("div", Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onClick: onClick }, text && align === 'right' && {
|
|
6058
6058
|
style: { textAlign: 'right' }
|
|
6059
6059
|
}, { children: jsxRuntimeExports.jsx(NumericFormat, { thousandSeparator: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax, isAllowed: value => {
|
|
6060
6060
|
const { formattedValue, floatValue } = value;
|
|
@@ -6062,8 +6062,8 @@ const NumberFormatComponent = ({ noItem, text, size, align, className, variant,
|
|
|
6062
6062
|
return formattedValue === '' || floatValue <= ruleMax;
|
|
6063
6063
|
return true;
|
|
6064
6064
|
}, fixedDecimalScale: true, style: style, value: value !== null && value !== void 0 ? value : valueNumberFormat, onValueChange: handleChange, onBlur: onBlur, onKeyDown: onKeyDown }) })));
|
|
6065
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleMessage: ruleMessage, ruleType: ruleType, ruleMax: ruleMax, ruleMin: ruleMin, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children:
|
|
6066
|
-
:
|
|
6065
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleMessage: ruleMessage, ruleType: ruleType, ruleMax: ruleMax, ruleMin: ruleMin, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: jsxRuntimeExports.jsx(NumberFormat, {}) })))
|
|
6066
|
+
: jsxRuntimeExports.jsx(NumberFormat, {}) }));
|
|
6067
6067
|
};
|
|
6068
6068
|
|
|
6069
6069
|
var css_248z$4 = ".style-module_select__vcvBg {\n width: 100%;\n max-width: 100%;\n}\n\n.style-module_add-item-divider__mnSq1 {\n margin: 8px 0;\n}\n\n.style-module_add-item-space__yOxDs {\n padding: 0 8px 4px;\n}\n\n.style-module_add-item-link__lmjLu {\n white-space: nowrap;\n}";
|
package/dist/index.js
CHANGED
|
@@ -6074,7 +6074,7 @@ const NumberFormatComponent = ({ noItem, text, size, align, className, variant,
|
|
|
6074
6074
|
variant === 'borderless' && classNumberFormat.push(styleNumberFormat['number-format-borderless']);
|
|
6075
6075
|
variant === 'underlined' && classNumberFormat.push(styleNumberFormat['number-format-underlined']);
|
|
6076
6076
|
!text && align === 'right' && classNumberFormat.push(styleNumberFormat['number-format-align-right']);
|
|
6077
|
-
const
|
|
6077
|
+
const NumberFormat = () => (jsxRuntimeExports.jsx("div", Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onClick: onClick }, text && align === 'right' && {
|
|
6078
6078
|
style: { textAlign: 'right' }
|
|
6079
6079
|
}, { children: jsxRuntimeExports.jsx(reactNumberFormat.NumericFormat, { thousandSeparator: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax, isAllowed: value => {
|
|
6080
6080
|
const { formattedValue, floatValue } = value;
|
|
@@ -6082,8 +6082,8 @@ const NumberFormatComponent = ({ noItem, text, size, align, className, variant,
|
|
|
6082
6082
|
return formattedValue === '' || floatValue <= ruleMax;
|
|
6083
6083
|
return true;
|
|
6084
6084
|
}, fixedDecimalScale: true, style: style, value: value !== null && value !== void 0 ? value : valueNumberFormat, onValueChange: handleChange, onBlur: onBlur, onKeyDown: onKeyDown }) })));
|
|
6085
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleMessage: ruleMessage, ruleType: ruleType, ruleMax: ruleMax, ruleMin: ruleMin, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children:
|
|
6086
|
-
:
|
|
6085
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleMessage: ruleMessage, ruleType: ruleType, ruleMax: ruleMax, ruleMin: ruleMin, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: jsxRuntimeExports.jsx(NumberFormat, {}) })))
|
|
6086
|
+
: jsxRuntimeExports.jsx(NumberFormat, {}) }));
|
|
6087
6087
|
};
|
|
6088
6088
|
|
|
6089
6089
|
var css_248z$4 = ".style-module_select__vcvBg {\n width: 100%;\n max-width: 100%;\n}\n\n.style-module_add-item-divider__mnSq1 {\n margin: 8px 0;\n}\n\n.style-module_add-item-space__yOxDs {\n padding: 0 8px 4px;\n}\n\n.style-module_add-item-link__lmjLu {\n white-space: nowrap;\n}";
|