@ballistix.digital/react-components 9.11.1 → 9.12.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/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +25 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -19
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -871,7 +871,7 @@ const $861db172649fba92$var$Tooltip = (props)=>{
|
|
|
871
871
|
return result;
|
|
872
872
|
};
|
|
873
873
|
const styles = handleGenerateStyle();
|
|
874
|
-
const triggerContent = (0, $iA2ta$reactjsxruntime.jsx)("
|
|
874
|
+
const triggerContent = (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
875
875
|
ref: refs.setReference,
|
|
876
876
|
...getReferenceProps(),
|
|
877
877
|
className: styles.container,
|
|
@@ -1665,31 +1665,37 @@ const $c474e734ef48f77c$var$InputGroup = (props)=>{
|
|
|
1665
1665
|
const isNumeric = htmlType === 'number' || htmlType === 'percent' || htmlType === 'currency';
|
|
1666
1666
|
const numericValueRef = (0, $iA2ta$react.useRef)(null);
|
|
1667
1667
|
const numericFormatProps = (0, $iA2ta$react.useMemo)(()=>{
|
|
1668
|
+
const resolvedDecimalSeparator = decimalSeparator ?? ',';
|
|
1668
1669
|
if (htmlType === 'percent') return {
|
|
1669
1670
|
decimalScale: precision,
|
|
1671
|
+
thousandSeparator: thousandSeparator ?? '.',
|
|
1672
|
+
decimalSeparator: resolvedDecimalSeparator,
|
|
1673
|
+
allowedDecimalSeparators: Array.from(new Set([
|
|
1674
|
+
resolvedDecimalSeparator,
|
|
1675
|
+
'.'
|
|
1676
|
+
])),
|
|
1670
1677
|
suffix: '%'
|
|
1671
1678
|
};
|
|
1672
|
-
if (htmlType === 'currency') {
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
resolvedDecimalSeparator,
|
|
1684
|
-
'.'
|
|
1685
|
-
])),
|
|
1686
|
-
prefix: `${currency ?? "\u20AC"} `
|
|
1687
|
-
};
|
|
1688
|
-
}
|
|
1679
|
+
if (htmlType === 'currency') return {
|
|
1680
|
+
decimalScale: precision ?? 2,
|
|
1681
|
+
fixedDecimalScale: true,
|
|
1682
|
+
thousandSeparator: thousandSeparator ?? '.',
|
|
1683
|
+
decimalSeparator: resolvedDecimalSeparator,
|
|
1684
|
+
allowedDecimalSeparators: Array.from(new Set([
|
|
1685
|
+
resolvedDecimalSeparator,
|
|
1686
|
+
'.'
|
|
1687
|
+
])),
|
|
1688
|
+
prefix: `${currency ?? "\u20AC"} `
|
|
1689
|
+
};
|
|
1689
1690
|
// htmlType === 'number'
|
|
1690
1691
|
return {
|
|
1691
1692
|
decimalScale: precision,
|
|
1692
1693
|
thousandSeparator: thousandSeparator,
|
|
1694
|
+
decimalSeparator: resolvedDecimalSeparator,
|
|
1695
|
+
allowedDecimalSeparators: Array.from(new Set([
|
|
1696
|
+
resolvedDecimalSeparator,
|
|
1697
|
+
'.'
|
|
1698
|
+
])),
|
|
1693
1699
|
allowNegative: min === undefined || Number(min) < 0
|
|
1694
1700
|
};
|
|
1695
1701
|
}, [
|
|
@@ -2498,7 +2504,7 @@ const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
|
|
|
2498
2504
|
if (searchInputOptionRenderer && !!data.isSearch) {
|
|
2499
2505
|
const tagItem = (0, $iA2ta$reactjsxruntime.jsx)("div", {
|
|
2500
2506
|
className: styles.tagItem,
|
|
2501
|
-
children: (0, $iA2ta$reactjsxruntime.jsx)("
|
|
2507
|
+
children: (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
2502
2508
|
className: styles.tagItemText,
|
|
2503
2509
|
children: data.label
|
|
2504
2510
|
})
|