@pablo-v/number-field 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pablo Viniegra
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
- # Temporary Holding Version
1
+ # @pablo-v/number-field
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Numeric input with stepper buttons and keyboard increments
4
+
5
+ ```bash
6
+ pnpm add @pablo-v/number-field @pablo-v/tokens
7
+ ```
8
+
9
+ It reuses the styles of `@pablo-v/input`; import those stylesheets before its own.
10
+
11
+ ```tsx
12
+ import '@pablo-v/tokens/styles.css';
13
+ import '@pablo-v/input/style.css';
14
+ import '@pablo-v/number-field/style.css';
15
+ import { NumberField } from '@pablo-v/number-field';
16
+ ```
@@ -0,0 +1,25 @@
1
+ import { type PixelSize } from '@pablo-v/core';
2
+ import { type ComponentPropsWithRef, type CSSProperties } from 'react';
3
+ export interface NumberFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step' | 'type'> {
4
+ value?: number | null;
5
+ defaultValue?: number | null;
6
+ /** Fires when a typed value is committed (blur or Enter) and on every step. */
7
+ onChange?: (value: number | null) => void;
8
+ min?: number;
9
+ max?: number;
10
+ /** @default 1 */
11
+ step?: number;
12
+ /** @default 'md' */
13
+ size?: PixelSize;
14
+ /** Shows the error style. Inside a `Field` with `error` this is automatic. */
15
+ invalid?: boolean;
16
+ /** Applied to the outer box; `className` goes there too. */
17
+ style?: CSSProperties;
18
+ }
19
+ /**
20
+ * Numeric entry (`spinbutton`) between decrement and increment compartments.
21
+ * Arrow keys step, Page keys step ×10, Home and End jump to the bounds. Shares
22
+ * the Input box, so import `@pablo-v/input/style.css` too.
23
+ */
24
+ export declare function NumberField({ value: valueProp, defaultValue, onChange, min, max, step, size, invalid, className, style, onBlur, onKeyDown, readOnly, ...rest }: NumberFieldProps): import("react").JSX.Element;
25
+ //# sourceMappingURL=NumberField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../src/NumberField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,SAAS,EAAwB,MAAM,eAAe,CAAC;AAGhF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAGnB,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,qBAAqB,CAAC,OAAO,CAAC,EAC9B,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CACjF;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EAAE,SAAS,EAChB,YAAmB,EACnB,QAAQ,EACR,GAA8B,EAC9B,GAA8B,EAC9B,IAAQ,EACR,IAAW,EACX,OAAO,EACP,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAkGlB"}
@@ -0,0 +1,67 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { clamp, cx, useControllableState } from '@pablo-v/core';
4
+ import { useFieldControl } from '@pablo-v/field';
5
+ import { MinusIcon, PlusIcon } from '@pablo-v/pixel-icons';
6
+ import { useState, } from 'react';
7
+ function decimals(n) {
8
+ return (String(n).split('.')[1] ?? '').length;
9
+ }
10
+ /**
11
+ * Numeric entry (`spinbutton`) between decrement and increment compartments.
12
+ * Arrow keys step, Page keys step ×10, Home and End jump to the bounds. Shares
13
+ * the Input box, so import `@pablo-v/input/style.css` too.
14
+ */
15
+ export function NumberField({ value: valueProp, defaultValue = null, onChange, min = Number.NEGATIVE_INFINITY, max = Number.POSITIVE_INFINITY, step = 1, size = 'md', invalid, className, style, onBlur, onKeyDown, readOnly, ...rest }) {
16
+ const [value, setValue] = useControllableState({
17
+ value: valueProp,
18
+ defaultValue,
19
+ onChange,
20
+ });
21
+ const [draft, setDraft] = useState(null);
22
+ const props = useFieldControl(rest, invalid);
23
+ const locked = props.disabled || readOnly;
24
+ const precision = decimals(step);
25
+ const commit = (next) => {
26
+ setDraft(null);
27
+ const normalized = next == null ? null : Number(clamp(next, min, max).toFixed(precision));
28
+ if (normalized !== value)
29
+ setValue(normalized);
30
+ };
31
+ const parse = () => {
32
+ if (draft == null)
33
+ return value;
34
+ const n = Number(draft.trim().replace(',', '.'));
35
+ return draft.trim() === '' ? null : Number.isFinite(n) ? n : value;
36
+ };
37
+ const stepBy = (delta) => {
38
+ const base = parse();
39
+ commit(base == null ? (Number.isFinite(min) ? min : 0) : base + delta * step);
40
+ };
41
+ const handleKeyDown = (event) => {
42
+ onKeyDown?.(event);
43
+ if (event.defaultPrevented || locked)
44
+ return;
45
+ const steps = { ArrowUp: 1, ArrowDown: -1, PageUp: 10, PageDown: -10 };
46
+ if (event.key in steps) {
47
+ event.preventDefault();
48
+ stepBy(steps[event.key] ?? 0);
49
+ }
50
+ else if (event.key === 'Enter')
51
+ commit(parse());
52
+ else if (event.key === 'Home' && Number.isFinite(min)) {
53
+ event.preventDefault();
54
+ commit(min);
55
+ }
56
+ else if (event.key === 'End' && Number.isFinite(max)) {
57
+ event.preventDefault();
58
+ commit(max);
59
+ }
60
+ };
61
+ return (_jsxs("span", { className: cx('pxl-input', 'pxl-number-field', className), style: style, "data-size": size, "data-invalid": props['aria-invalid'] ? true : undefined, "data-disabled": props.disabled || undefined, children: [_jsx("span", { className: "pxl-input__affix", children: _jsx("button", { type: "button", tabIndex: -1, className: "pxl-number-field__step", "aria-label": "Decrease", disabled: locked || (value != null && value <= min), onClick: () => stepBy(-1), children: _jsx(MinusIcon, {}) }) }), _jsx("input", { type: "text", inputMode: precision > 0 || min < 0 ? 'decimal' : 'numeric', role: "spinbutton", autoComplete: "off", className: "pxl-input__control", "aria-valuenow": value ?? undefined, "aria-valuemin": Number.isFinite(min) ? min : undefined, "aria-valuemax": Number.isFinite(max) ? max : undefined, readOnly: readOnly, ...props, value: draft ?? (value == null ? '' : String(value)), onChange: (event) => setDraft(event.target.value), onKeyDown: handleKeyDown, onBlur: (event) => {
62
+ onBlur?.(event);
63
+ if (draft != null)
64
+ commit(parse());
65
+ } }), _jsx("span", { className: "pxl-input__affix", children: _jsx("button", { type: "button", tabIndex: -1, className: "pxl-number-field__step", "aria-label": "Increase", disabled: locked || (value != null && value >= max), onClick: () => stepBy(1), children: _jsx(PlusIcon, {}) }) })] }));
66
+ }
67
+ //# sourceMappingURL=NumberField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../src/NumberField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,EAAE,EAAkB,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAIL,QAAQ,GACT,MAAM,OAAO,CAAC;AAuBf,SAAS,QAAQ,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;AAChD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EAAE,SAAS,EAChB,YAAY,GAAG,IAAI,EACnB,QAAQ,EACR,GAAG,GAAG,MAAM,CAAC,iBAAiB,EAC9B,GAAG,GAAG,MAAM,CAAC,iBAAiB,EAC9B,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,IAAI,EACX,OAAO,EACP,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACU;IACjB,M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EAAE,CAAC,KAAK,EAAE,EAAE;oBAChB,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;oBAChB,IAAI,KAAK,IAAI,IAAI;wBAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;gBACrC,CAAC,GACD,EACF,eAAM,SAAS,EAAC,kBAAkB,YAChC,iBACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAC,wBAAwB,gBACvB,UAAU,EACrB,QAAQ,EAAE,MAAM,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,GAAG,CAAC,EACnD,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,YAExB,KAAC,QAAQ,KAAG,GACL,GACJ,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { NumberField, type NumberFieldProps } from './NumberField.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { NumberField } from './NumberField.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,39 @@
1
+ .pxl-number-field .pxl-input__affix:has(> .pxl-number-field__step) {
2
+ padding: 0;
3
+ }
4
+
5
+ .pxl-number-field .pxl-input__control {
6
+ text-align: center;
7
+ font-family: var(--pxl-font-mono);
8
+ }
9
+
10
+ .pxl-number-field__step {
11
+ display: grid;
12
+ place-items: center;
13
+ align-self: stretch;
14
+ aspect-ratio: 1;
15
+ height: 100%;
16
+ padding: 0;
17
+ border: 0;
18
+ border-radius: inherit;
19
+ background: transparent;
20
+ color: inherit;
21
+ cursor: pointer;
22
+ transition:
23
+ background-color var(--pxl-dur-fast) linear,
24
+ color var(--pxl-dur-fast) linear;
25
+ }
26
+
27
+ .pxl-number-field__step:hover:not(:disabled) {
28
+ background: var(--pxl-accent-subtle);
29
+ color: var(--pxl-accent-text);
30
+ }
31
+
32
+ .pxl-number-field__step:active:not(:disabled) {
33
+ background: color-mix(in srgb, var(--pxl-accent-subtle), var(--pxl-accent) 12%);
34
+ }
35
+
36
+ .pxl-number-field__step:disabled {
37
+ opacity: var(--pxl-opacity-disabled);
38
+ cursor: not-allowed;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,47 @@
1
1
  {
2
2
  "name": "@pablo-v/number-field",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Numeric input with stepper buttons and keyboard increments",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/PabloViniegra/pixel-ui.git",
9
+ "directory": "packages/number-field"
10
+ },
11
+ "type": "module",
12
+ "sideEffects": [
13
+ "*.css"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "source": "./src/index.ts",
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "./style.css": {
22
+ "source": "./src/number-field.css",
23
+ "default": "./dist/number-field.css"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "dependencies": {
31
+ "@pablo-v/core": "^0.2.1",
32
+ "@pablo-v/input": "^1.0.2",
33
+ "@pablo-v/pixel-icons": "^1.3.0",
34
+ "@pablo-v/field": "^1.1.1"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "^19.0.0",
38
+ "@pablo-v/tokens": "^0.2.4"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "scripts": {
44
+ "build": "tsc -b && node ../../scripts/copy-assets.mjs",
45
+ "clean": "rm -rf dist *.tsbuildinfo"
46
+ }
6
47
  }