@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.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)("div", {
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
- const resolvedDecimalSeparator = decimalSeparator ?? ',';
1674
- return {
1675
- decimalScale: precision ?? 2,
1676
- fixedDecimalScale: true,
1677
- thousandSeparator: thousandSeparator ?? '.',
1678
- decimalSeparator: resolvedDecimalSeparator,
1679
- // Numpad decimal keys are typically ".", regardless of locale. A literal "." can never be a
1680
- // manually-typed thousand separator (grouping is auto-inserted), so it's safe to also accept
1681
- // it as a decimal keystroke even when the configured decimal separator is something else.
1682
- allowedDecimalSeparators: Array.from(new Set([
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)("p", {
2507
+ children: (0, $iA2ta$reactjsxruntime.jsx)("span", {
2502
2508
  className: styles.tagItemText,
2503
2509
  children: data.label
2504
2510
  })