@orianatech/pire 1.5.0 → 1.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuE/B,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;2FACuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;iFAG6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAMtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sGAAsG;IACtG,aAAa,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IACzC,uDAAuD;IACvD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAgDD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK,EAAE,EAC5D,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAyB,EACzB,cAAc,EACd,cAAc,EACd,IAAW,EACX,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,GAAG,IAAI,EACR,EAAE,gBAAgB,CAAC,MAAM,CAAC,qBAkM1B"}
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgE/B,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;2FACuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;iFAG6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM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a,CAAC;CAC7B;AAgDD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK,EAAE,EAC5D,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAyB,EACzB,cAAc,EACd,cAAc,EACd,IAAW,EACX,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,GAAG,IAAI,EACR,EAAE,gBAAgB,CAAC,MAAM,CAAC,qBAkM1B"}
@@ -5,7 +5,9 @@ export interface NumPadKey {
5
5
  * the buffer directly — that covers the whole base grid plus a money keypad's multi-zero keys
6
6
  * for free. Anything else is a value NumPad cannot interpret on its own — an exact-balance
7
7
  * button, say — so it is reported through {@link NumPadProps.onAction} instead of touched.
8
- * `'backspace'` and `'clear'` are reserved: they always edit the buffer, never insert.
8
+ * `'backspace'`, `'clear'` and `'decimal'` are reserved: they always edit the buffer, never
9
+ * insert. `'decimal'` is placed on the grid by {@link NumPadProps.maxFractionDigits} rather than
10
+ * listed here, and does nothing when that prop is absent.
9
11
  */
10
12
  value: string;
11
13
  /** Visible content. Falls back to `value` for a digit key; required for anything else — an
@@ -37,6 +39,21 @@ export interface NumPadProps {
37
39
  * write into the buffer, only that it was pressed.
38
40
  */
39
41
  onAction?: (value: string) => void;
42
+ /**
43
+ * How many decimals the buffer accepts. Omitted — the default — no separator key is drawn and
44
+ * the pad types integers, which is all a unit count or a guaraní amount needs.
45
+ *
46
+ * Above 0, the locale's own separator joins the grid as a thirteenth key (the base twelve do not
47
+ * move: this is typed without looking down), the physical `,` and `.` both write it, and the
48
+ * fraction is capped at this many digits. Pass the precision the unit of measure declares — a
49
+ * kilo takes three, a metre two — because a keypad that lets `2,5678` be typed against a
50
+ * `decimal(_,3)` column is a keypad whose figure the database truncates without telling anyone.
51
+ *
52
+ * The separator is read from React Aria's `I18nProvider`, the same source `NumberField` uses.
53
+ * An app that mounts `PireIntlProvider` alone gets `.`, because that provider carries Pire's
54
+ * strings and not the locale.
55
+ */
56
+ maxFractionDigits?: number;
40
57
  /** Disables every key at once — real `aria-disabled`, and a press does nothing, not just a
41
58
  * colour change. Typical use: no line selected yet to type a quantity into. */
42
59
  isDisabled?: boolean;
@@ -57,4 +74,4 @@ export interface NumPadProps {
57
74
  * keypad in the payment overlay covering it — never has both answer the same keystroke either:
58
75
  * see {@link useNumPadKeyboard} for how the backgrounded one recognises that on its own.
59
76
  */
60
- export declare function NumPad({ 'aria-label': ariaLabel, target, value, onChange, extraKeys, onAction, isDisabled, size, className, style, }: NumPadProps): React.JSX.Element;
77
+ export declare function NumPad({ 'aria-label': ariaLabel, target, value, onChange, extraKeys, onAction, maxFractionDigits, isDisabled, size, className, style, }: NumPadProps): React.JSX.Element;
@@ -5,7 +5,9 @@ export interface NumPadKey {
5
5
  * the buffer directly — that covers the whole base grid plus a money keypad's multi-zero keys
6
6
  * for free. Anything else is a value NumPad cannot interpret on its own — an exact-balance
7
7
  * button, say — so it is reported through {@link NumPadProps.onAction} instead of touched.
8
- * `'backspace'` and `'clear'` are reserved: they always edit the buffer, never insert.
8
+ * `'backspace'`, `'clear'` and `'decimal'` are reserved: they always edit the buffer, never
9
+ * insert. `'decimal'` is placed on the grid by {@link NumPadProps.maxFractionDigits} rather than
10
+ * listed here, and does nothing when that prop is absent.
9
11
  */
10
12
  value: string;
11
13
  /** Visible content. Falls back to `value` for a digit key; required for anything else — an
@@ -37,6 +39,21 @@ export interface NumPadProps {
37
39
  * write into the buffer, only that it was pressed.
38
40
  */
39
41
  onAction?: (value: string) => void;
42
+ /**
43
+ * How many decimals the buffer accepts. Omitted — the default — no separator key is drawn and
44
+ * the pad types integers, which is all a unit count or a guaraní amount needs.
45
+ *
46
+ * Above 0, the locale's own separator joins the grid as a thirteenth key (the base twelve do not
47
+ * move: this is typed without looking down), the physical `,` and `.` both write it, and the
48
+ * fraction is capped at this many digits. Pass the precision the unit of measure declares — a
49
+ * kilo takes three, a metre two — because a keypad that lets `2,5678` be typed against a
50
+ * `decimal(_,3)` column is a keypad whose figure the database truncates without telling anyone.
51
+ *
52
+ * The separator is read from React Aria's `I18nProvider`, the same source `NumberField` uses.
53
+ * An app that mounts `PireIntlProvider` alone gets `.`, because that provider carries Pire's
54
+ * strings and not the locale.
55
+ */
56
+ maxFractionDigits?: number;
40
57
  /** Disables every key at once — real `aria-disabled`, and a press does nothing, not just a
41
58
  * colour change. Typical use: no line selected yet to type a quantity into. */
42
59
  isDisabled?: boolean;
@@ -57,5 +74,5 @@ export interface NumPadProps {
57
74
  * keypad in the payment overlay covering it — never has both answer the same keystroke either:
58
75
  * see {@link useNumPadKeyboard} for how the backgrounded one recognises that on its own.
59
76
  */
60
- export declare function NumPad({ 'aria-label': ariaLabel, target, value, onChange, extraKeys, onAction, isDisabled, size, className, style, }: NumPadProps): React.JSX.Element;
77
+ export declare function NumPad({ 'aria-label': ariaLabel, target, value, onChange, extraKeys, onAction, maxFractionDigits, isDisabled, size, className, style, }: NumPadProps): React.JSX.Element;
61
78
  //# sourceMappingURL=NumPad.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/NumPad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;wEACoE;IACpE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B;0DACsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB;;qBAEiB;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;kFAE8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;yFACqF;IACrF,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;oFACgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AA4FD;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,EACrB,YAAY,EAAE,SAAS,EACvB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAc,EACd,QAAQ,EACR,UAAU,EACV,IAAW,EACX,SAAS,EACT,KAAK,GACN,EAAE,WAAW,qBAoEb"}
1
+ {"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/NumPad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,SAAS;IACxB;;;;;;;;OAQG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;wEACoE;IACpE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B;0DACsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB;;qBAEiB;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;kFAE8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;yFACqF;IACrF,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;oFACgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAmHD;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,EACrB,YAAY,EAAE,SAAS,EACvB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,IAAW,EACX,SAAS,EACT,KAAK,GACN,EAAE,WAAW,qBA0Fb"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The character this locale puts before the fractional part — a locale property, not a formatting
3
+ * choice, so it is read without any field's `formatOptions`.
4
+ *
5
+ * Shared rather than declared twice: `NumberField` remaps a typed `.` to it, and `NumPad` draws it
6
+ * on a key. Two copies of this would be two chances for the two components to disagree about what
7
+ * `es-PY` means, on the same screen, in the same transaction.
8
+ */
9
+ export declare function decimalSeparatorFor(locale: string): string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The character this locale puts before the fractional part — a locale property, not a formatting
3
+ * choice, so it is read without any field's `formatOptions`.
4
+ *
5
+ * Shared rather than declared twice: `NumberField` remaps a typed `.` to it, and `NumPad` draws it
6
+ * on a key. Two copies of this would be two chances for the two components to disagree about what
7
+ * `es-PY` means, on the same screen, in the same transaction.
8
+ */
9
+ export declare function decimalSeparatorFor(locale: string): string;
10
+ //# sourceMappingURL=decimalSeparator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimalSeparator.d.ts","sourceRoot":"","sources":["../../../src/components/utils/decimalSeparator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAI1D"}
@@ -3902,6 +3902,14 @@
3902
3902
  .pire-numpad-key[data-span="2"] {
3903
3903
  grid-column: span 2;
3904
3904
  }
3905
+ /* The separator is the one key on the pad whose glyph is nothing but a descender or a dot on the
3906
+ baseline, so at the grid's own size it reads as an empty key — the weakest of the thirteen on a
3907
+ pad that is pressed without looking down. Scaled up and lifted so its ink lands where every
3908
+ digit's ink already is, rather than hanging at the bottom of a centred line box. */
3909
+ .pire-numpad-key[data-key="decimal"] {
3910
+ font-size: var(--fs-display);
3911
+ line-height: 1;
3912
+ }
3905
3913
 
3906
3914
  /* ---- RecordCard -----------------------------------------------------------
3907
3915
  A chosen master-data record at field scale. Deliberately not a `Card`: that is a section
@@ -140,6 +140,9 @@ export interface PireMessages {
140
140
  numPadClear: string;
141
141
  /** Accessible name of NumPad's backspace key. Its visible glyph is "⌫". */
142
142
  numPadBackspace: string;
143
+ /** Accessible name of NumPad's decimal key. Its visible glyph is the locale's own separator
144
+ * ("," or "."), which is not a name a screen reader can announce. */
145
+ numPadDecimal: string;
143
146
  /** Accessible name of the trigger. `{view}` is the view's own name. An `aria-label` on the
144
147
  * component replaces this entirely — see the prop's own note. */
145
148
  viewSwitcherName: string;
@@ -140,6 +140,9 @@ export interface PireMessages {
140
140
  numPadClear: string;
141
141
  /** Accessible name of NumPad's backspace key. Its visible glyph is "⌫". */
142
142
  numPadBackspace: string;
143
+ /** Accessible name of NumPad's decimal key. Its visible glyph is the locale's own separator
144
+ * ("," or "."), which is not a name a screen reader can announce. */
145
+ numPadDecimal: string;
143
146
  /** Accessible name of the trigger. `{view}` is the view's own name. An `aria-label` on the
144
147
  * component replaces this entirely — see the prop's own note. */
145
148
  viewSwitcherName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAC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AAuB,EAAE,MAAM,CAAC;IAEhC;4FACwF;IACxF,uBAAuB,EAAE,MAAM,CAAC;IAChC,qFAAqF;IACrF,uBAAuB,EAAE,MAAM,CAAC;IAChC,4EAA4E;IAC5E,sBAAsB,EAAE,MAAM,CAAC;IAC/B,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;IAEzB;+FAC2F;IAC3F,cAAc,EAAE,MAAM,CAAC;IACvB;;gDAE4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,cAAc,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,YAsGxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,YAsGxB,CAAC"}
package/dist/index.cjs CHANGED
@@ -52,17 +52,17 @@ __export(src_exports, {
52
52
  DialogBody: () => DialogBody,
53
53
  DialogDescription: () => DialogDescription,
54
54
  DialogTitle: () => DialogTitle,
55
- DialogTrigger: () => import_react_aria_components39.DialogTrigger,
55
+ DialogTrigger: () => import_react_aria_components40.DialogTrigger,
56
56
  DonutChart: () => DonutChart,
57
57
  EmptyState: () => EmptyState,
58
58
  FileDropZone: () => FileDropZone,
59
59
  FileUpload: () => FileUpload,
60
60
  FilterBar: () => FilterBar,
61
- Focusable: () => import_react_aria_components40.Focusable,
61
+ Focusable: () => import_react_aria_components41.Focusable,
62
62
  FooterBar: () => FooterBar,
63
63
  FormField: () => FormField,
64
64
  Heading: () => Heading,
65
- I18nProvider: () => import_react_aria_components39.I18nProvider,
65
+ I18nProvider: () => import_react_aria_components40.I18nProvider,
66
66
  ICON_NAMES: () => ICON_NAMES,
67
67
  Icon: () => Icon,
68
68
  IconButton: () => IconButton,
@@ -77,7 +77,7 @@ __export(src_exports, {
77
77
  MenuItem: () => MenuItem,
78
78
  MenuSection: () => MenuSection,
79
79
  MenuSeparator: () => MenuSeparator,
80
- MenuTrigger: () => import_react_aria_components39.MenuTrigger,
80
+ MenuTrigger: () => import_react_aria_components40.MenuTrigger,
81
81
  MultiComboBox: () => MultiComboBox,
82
82
  NumPad: () => NumPad,
83
83
  NumberField: () => NumberField,
@@ -86,14 +86,14 @@ __export(src_exports, {
86
86
  PageHeader: () => PageHeader,
87
87
  Pagination: () => Pagination,
88
88
  PireIntlProvider: () => PireIntlProvider,
89
- Popover: () => import_react_aria_components39.Popover,
89
+ Popover: () => import_react_aria_components40.Popover,
90
90
  ProgressBar: () => ProgressBar,
91
91
  QuantityStepper: () => QuantityStepper,
92
92
  Radio: () => Radio,
93
93
  RadioGroup: () => RadioGroup,
94
94
  RecordCard: () => RecordCard,
95
95
  Ribbon: () => Ribbon,
96
- RouterProvider: () => import_react_aria_components39.RouterProvider,
96
+ RouterProvider: () => import_react_aria_components40.RouterProvider,
97
97
  SectionHeader: () => SectionHeader,
98
98
  SegmentedControl: () => SegmentedControl,
99
99
  Select: () => Select,
@@ -107,7 +107,7 @@ __export(src_exports, {
107
107
  SkeletonTableRow: () => SkeletonTableRow,
108
108
  SplitPane: () => SplitPane,
109
109
  Strong: () => Strong,
110
- SubmenuTrigger: () => import_react_aria_components39.SubmenuTrigger,
110
+ SubmenuTrigger: () => import_react_aria_components40.SubmenuTrigger,
111
111
  Switch: () => Switch,
112
112
  Tabs: () => Tabs,
113
113
  Tag: () => Tag,
@@ -718,6 +718,7 @@ var enMessages = {
718
718
  chartEmpty: "No data for this period",
719
719
  numPadClear: "Clear",
720
720
  numPadBackspace: "Remove last digit",
721
+ numPadDecimal: "Decimal separator",
721
722
  viewSwitcherName: "Saved views: {view}",
722
723
  viewSwitcherNameModified: "Saved views: {view}, modified",
723
724
  viewSwitcherModifiedMark: "\xB7 modified",
@@ -802,6 +803,7 @@ var esMessages = {
802
803
  chartEmpty: "Sin datos para este per\xEDodo",
803
804
  numPadClear: "Limpiar",
804
805
  numPadBackspace: "Borrar \xFAltimo d\xEDgito",
806
+ numPadDecimal: "Separador decimal",
805
807
  viewSwitcherName: "Vistas guardadas: {view}",
806
808
  viewSwitcherNameModified: "Vistas guardadas: {view}, modificada",
807
809
  viewSwitcherModifiedMark: "\xB7 modificada",
@@ -1770,10 +1772,14 @@ function MultiComboBox({
1770
1772
  // src/components/forms/NumberField.tsx
1771
1773
  var React14 = __toESM(require("react"), 1);
1772
1774
  var import_react_aria_components18 = require("react-aria-components");
1773
- var import_jsx_runtime26 = require("react/jsx-runtime");
1775
+
1776
+ // src/components/utils/decimalSeparator.ts
1774
1777
  function decimalSeparatorFor(locale) {
1775
1778
  return new Intl.NumberFormat(locale).formatToParts(1.1).find((part) => part.type === "decimal")?.value ?? ".";
1776
1779
  }
1780
+
1781
+ // src/components/forms/NumberField.tsx
1782
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1777
1783
  function typeIntoInput(el, text) {
1778
1784
  const start = el.selectionStart ?? el.value.length;
1779
1785
  const end = el.selectionEnd ?? start;
@@ -5025,6 +5031,7 @@ function EmptyState({
5025
5031
 
5026
5032
  // src/components/patterns/NumPad.tsx
5027
5033
  var React30 = __toESM(require("react"), 1);
5034
+ var import_react_aria_components38 = require("react-aria-components");
5028
5035
  var import_jsx_runtime71 = require("react/jsx-runtime");
5029
5036
  var BASE_KEYS = [
5030
5037
  { value: "7" },
@@ -5041,6 +5048,12 @@ var BASE_KEYS = [
5041
5048
  { value: "0" }
5042
5049
  ];
5043
5050
  var isInsertable = (value) => /^[0-9]+$/.test(value);
5051
+ function fittingDigits(digits, buffer, separator, maxFractionDigits) {
5052
+ const separatorAt = buffer.indexOf(separator);
5053
+ if (separatorAt === -1) return digits;
5054
+ const room = maxFractionDigits - (buffer.length - separatorAt - 1);
5055
+ return room <= 0 ? "" : digits.slice(0, room);
5056
+ }
5044
5057
  function useNumPadKeyboard(onKey, isDisabled, containerRef) {
5045
5058
  const handler = React30.useRef(onKey);
5046
5059
  handler.current = onKey;
@@ -5068,6 +5081,10 @@ function useNumPadKeyboard(onKey, isDisabled, containerRef) {
5068
5081
  handler.current("clear");
5069
5082
  return;
5070
5083
  }
5084
+ if (event.key === "," || event.key === ".") {
5085
+ handler.current("decimal");
5086
+ return;
5087
+ }
5071
5088
  };
5072
5089
  document.addEventListener("keydown", onKeyDown);
5073
5090
  return () => document.removeEventListener("keydown", onKeyDown);
@@ -5080,6 +5097,7 @@ function NumPad({
5080
5097
  onChange,
5081
5098
  extraKeys = [],
5082
5099
  onAction,
5100
+ maxFractionDigits,
5083
5101
  isDisabled,
5084
5102
  size = "md",
5085
5103
  className,
@@ -5087,6 +5105,9 @@ function NumPad({
5087
5105
  }) {
5088
5106
  const msg = usePireMessages();
5089
5107
  const containerRef = React30.useRef(null);
5108
+ const { locale } = (0, import_react_aria_components38.useLocale)();
5109
+ const separator = decimalSeparatorFor(locale);
5110
+ const allowsDecimal = maxFractionDigits !== void 0 && maxFractionDigits > 0;
5090
5111
  const applyKey = React30.useCallback(
5091
5112
  (key) => {
5092
5113
  if (isDisabled) return;
@@ -5098,16 +5119,27 @@ function NumPad({
5098
5119
  onChange("");
5099
5120
  return;
5100
5121
  }
5122
+ if (key.value === "decimal") {
5123
+ if (!allowsDecimal || value.includes(separator)) return;
5124
+ onChange((value === "" ? "0" : value) + separator);
5125
+ return;
5126
+ }
5101
5127
  if (isInsertable(key.value)) {
5102
- onChange(value + key.value);
5128
+ onChange(
5129
+ value + (allowsDecimal ? fittingDigits(key.value, value, separator, maxFractionDigits) : key.value)
5130
+ );
5103
5131
  return;
5104
5132
  }
5105
5133
  onAction?.(key.value);
5106
5134
  },
5107
- [isDisabled, value, onChange, onAction]
5135
+ [isDisabled, value, onChange, onAction, allowsDecimal, separator, maxFractionDigits]
5108
5136
  );
5109
5137
  useNumPadKeyboard((keyValue) => applyKey({ value: keyValue }), isDisabled, containerRef);
5110
- const keys = [...BASE_KEYS, ...extraKeys];
5138
+ const keys = [
5139
+ ...BASE_KEYS,
5140
+ ...allowsDecimal ? [{ value: "decimal", label: separator }] : [],
5141
+ ...extraKeys
5142
+ ];
5111
5143
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5112
5144
  "div",
5113
5145
  {
@@ -5119,7 +5151,7 @@ function NumPad({
5119
5151
  children: [
5120
5152
  target !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "pire-numpad-target", role: "status", "aria-live": "polite", children: target }) : null,
5121
5153
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "pire-numpad-grid", role: "group", "aria-label": ariaLabel, children: keys.map((key) => {
5122
- const accessibleLabel = key.value === "backspace" ? msg.numPadBackspace : key.value === "clear" ? msg.numPadClear : void 0;
5154
+ const accessibleLabel = key.value === "backspace" ? msg.numPadBackspace : key.value === "clear" ? msg.numPadClear : key.value === "decimal" ? msg.numPadDecimal : void 0;
5123
5155
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5124
5156
  Button,
5125
5157
  {
@@ -5128,6 +5160,7 @@ function NumPad({
5128
5160
  fullWidth: true,
5129
5161
  className: "pire-numpad-key",
5130
5162
  "data-span": key.span === 2 ? "2" : void 0,
5163
+ "data-key": key.value === "decimal" ? "decimal" : void 0,
5131
5164
  isDisabled,
5132
5165
  "aria-label": accessibleLabel,
5133
5166
  onPress: () => applyKey(key),
@@ -5143,7 +5176,7 @@ function NumPad({
5143
5176
 
5144
5177
  // src/components/patterns/FileDropZone.tsx
5145
5178
  var React31 = __toESM(require("react"), 1);
5146
- var import_react_aria_components38 = require("react-aria-components");
5179
+ var import_react_aria_components39 = require("react-aria-components");
5147
5180
  var import_jsx_runtime72 = require("react/jsx-runtime");
5148
5181
  var isImage2 = (file) => file.type.startsWith("image/");
5149
5182
  function FileDropZone({
@@ -5204,21 +5237,21 @@ function FileDropZone({
5204
5237
  isRequired ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "pire-field-req", "aria-hidden": "true", children: "*" }) : null
5205
5238
  ] }) : null,
5206
5239
  /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
5207
- import_react_aria_components38.DropZone,
5240
+ import_react_aria_components39.DropZone,
5208
5241
  {
5209
5242
  className: "pire-dropzone",
5210
5243
  "aria-label": ariaLabel,
5211
5244
  "data-height": height,
5212
5245
  isDisabled: isDisabled || isReadOnly,
5213
5246
  onDrop: async (e) => {
5214
- const dropped = await Promise.all(e.items.filter(import_react_aria_components38.isFileDropItem).map((item) => item.getFile()));
5247
+ const dropped = await Promise.all(e.items.filter(import_react_aria_components39.isFileDropItem).map((item) => item.getFile()));
5215
5248
  accept(dropped);
5216
5249
  },
5217
5250
  children: [
5218
5251
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: "download", size: 24, className: "pire-dropzone-icon" }),
5219
5252
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "pire-dropzone-prompt", children: promptLabel ?? msg.fileDropZonePrompt }),
5220
5253
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5221
- import_react_aria_components38.FileTrigger,
5254
+ import_react_aria_components39.FileTrigger,
5222
5255
  {
5223
5256
  acceptedFileTypes,
5224
5257
  allowsMultiple,
@@ -5250,8 +5283,8 @@ function FileDropZone({
5250
5283
  }
5251
5284
 
5252
5285
  // src/index.ts
5253
- var import_react_aria_components39 = require("react-aria-components");
5254
5286
  var import_react_aria_components40 = require("react-aria-components");
5287
+ var import_react_aria_components41 = require("react-aria-components");
5255
5288
  // Annotate the CommonJS export names for ESM import in node:
5256
5289
  0 && (module.exports = {
5257
5290
  AppLauncher,