@newtone-dev/ui-react-web 0.48.0 → 0.49.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 +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/outline/index.d.ts +3 -0
- package/dist/outline/index.d.ts.map +1 -0
- package/dist/outline/index.js +2 -0
- package/dist/outline/index.js.map +1 -0
- package/dist/outline/outline.css +244 -0
- package/dist/outline/outline.d.ts +78 -0
- package/dist/outline/outline.d.ts.map +1 -0
- package/dist/outline/outline.js +246 -0
- package/dist/outline/outline.js.map +1 -0
- package/dist/when-field/index.d.ts +5 -0
- package/dist/when-field/index.d.ts.map +1 -0
- package/dist/when-field/index.js +3 -0
- package/dist/when-field/index.js.map +1 -0
- package/dist/when-field/period.d.ts +41 -0
- package/dist/when-field/period.d.ts.map +1 -0
- package/dist/when-field/period.js +230 -0
- package/dist/when-field/period.js.map +1 -0
- package/dist/when-field/when-field.css +70 -0
- package/dist/when-field/when-field.d.ts +35 -0
- package/dist/when-field/when-field.d.ts.map +1 -0
- package/dist/when-field/when-field.js +138 -0
- package/dist/when-field/when-field.js.map +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* WhenField -- blueprint components/when-field.md. A date as exact as it is known, typed as words, in a pill.
|
|
2
|
+
*
|
|
3
|
+
* LENGTHS IT DECIDES:
|
|
4
|
+
* 36px the pill: the smallest rung of the ladder, as NumberField's beside it in a panel's rows
|
|
5
|
+
* 1px its hairline; 2px the focus ring outside it, as NumberField's
|
|
6
|
+
* 999px the pill's ends, as NumberField's */
|
|
7
|
+
.newtone-when-field {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
/* As NumberField: the whole of its row. */
|
|
10
|
+
inline-size: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--newtone-space-1);
|
|
14
|
+
block-size: 36px;
|
|
15
|
+
min-inline-size: 0;
|
|
16
|
+
padding-inline: var(--newtone-space-3);
|
|
17
|
+
border: 1px solid var(--newtone-role-divider-secondary);
|
|
18
|
+
border-radius: 999px;
|
|
19
|
+
background: var(--newtone-role-surface-primary);
|
|
20
|
+
color: var(--newtone-role-text-primary);
|
|
21
|
+
font-family: var(--newtone-font-body-family);
|
|
22
|
+
font-size: var(--newtone-typography-size-sm);
|
|
23
|
+
/* One date under another in a panel: their figures line up. The input takes it with the rest of the font. */
|
|
24
|
+
font-variant-numeric: tabular-nums;
|
|
25
|
+
}
|
|
26
|
+
.newtone-when-field:focus-within {
|
|
27
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
28
|
+
outline-offset: 1px;
|
|
29
|
+
}
|
|
30
|
+
/* Words that do not read as a date: the hairline in the error ink, and the mark at the field's end. Never the ink
|
|
31
|
+
* alone: the mark is a glyph with the consumer's words. */
|
|
32
|
+
.newtone-when-field:where([data-invalid]) {
|
|
33
|
+
border-color: var(--newtone-role-text-error);
|
|
34
|
+
}
|
|
35
|
+
.newtone-when-field:where([data-disabled]) {
|
|
36
|
+
color: var(--newtone-role-text-disabled);
|
|
37
|
+
}
|
|
38
|
+
.newtone-when-field-input {
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-inline-size: 0;
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0;
|
|
43
|
+
border: 0;
|
|
44
|
+
background: none;
|
|
45
|
+
color: inherit;
|
|
46
|
+
font: inherit;
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
/* A user agent's own fade on a natively disabled input (WebKit on iOS: its opacity and its text fill) is taken away,
|
|
50
|
+
* as NumberField does, so a disabled date is the same pixels on every device (CHARTER non-negotiable 8). The
|
|
51
|
+
* placeholder keeps its own ink: it says its fill itself rather than take the input's. */
|
|
52
|
+
.newtone-when-field-input:where([data-disabled] *) {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
-webkit-text-fill-color: currentColor;
|
|
55
|
+
}
|
|
56
|
+
.newtone-when-field-input::placeholder {
|
|
57
|
+
color: var(--newtone-role-text-secondary);
|
|
58
|
+
-webkit-text-fill-color: currentColor;
|
|
59
|
+
}
|
|
60
|
+
.newtone-when-field-mark {
|
|
61
|
+
flex: none;
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
color: var(--newtone-role-text-error);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Disabled, it dims as a whole, as NumberField does (Joshua 2026-11-13): the placeholder takes the disabled ink too.
|
|
67
|
+
* After the placeholder's own rule, at the same weight, so the order here decides. */
|
|
68
|
+
.newtone-when-field-input:where([data-disabled] *)::placeholder {
|
|
69
|
+
color: var(--newtone-role-text-disabled);
|
|
70
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type PeriodExactness } from './period.js';
|
|
3
|
+
export interface WhenFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* The field's name, as a screen reader says it (*Target*). The field shows no name of its own: in an
|
|
6
|
+
* `Inspector.Row` the row's name stands beside it, and this is that same word.
|
|
7
|
+
*/
|
|
8
|
+
label: string;
|
|
9
|
+
/** The date, as a period: `2027`, `2027-Q1`, `2027-03` or `2027-03-15`. Null: none. */
|
|
10
|
+
value: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Told the period every time what is typed reads as a date, at once: no Enter, no leaving the field. Told null
|
|
13
|
+
* when the words are emptied. Words that do not read as a date tell nothing.
|
|
14
|
+
*/
|
|
15
|
+
onChange?: (value: string | null) => void;
|
|
16
|
+
/**
|
|
17
|
+
* A change ended (the field left, Enter, Escape, a step), with the value it ended on: one change, for the
|
|
18
|
+
* consumer's history.
|
|
19
|
+
*/
|
|
20
|
+
onCommit?: (value: string | null) => void;
|
|
21
|
+
/** Which exactness it takes; all four when left out. What reads as another is not a date here. */
|
|
22
|
+
exactness?: readonly PeriodExactness[];
|
|
23
|
+
/** Said, and shown on the mark at the field's end, where what was typed does not read as a date (*Not a date*). */
|
|
24
|
+
invalidLabel: string;
|
|
25
|
+
/** Shown while it is empty. */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/** Native disabled: shown, not typed in, out of the Tab order. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A date as exact as it is known: a day, a month, a quarter or a year, typed as words (`2028`, `Q1 2027`, `Dec 2026`,
|
|
32
|
+
* `Dec 5, 2026`) and kept as it is typed. Blueprint components/when-field.md; contracts/when-field.md.
|
|
33
|
+
*/
|
|
34
|
+
export declare function WhenField({ label, value, onChange, onCommit, exactness, invalidLabel, placeholder, disabled, className, ...rest }: WhenFieldProps): import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=when-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when-field.d.ts","sourceRoot":"","sources":["../../src/when-field/when-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,cAAc,EAAsB,MAAM,OAAO,CAAA;AAExF,OAAO,EAKH,KAAK,eAAe,EACvB,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,IAAI,CACxC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CAC1B;IACG;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,uFAAuF;IACvF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,kGAAkG;IAClG,SAAS,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IACtC,mHAAmH;IACnH,YAAY,EAAE,MAAM,CAAA;IACpB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACV,EAAE,cAAc,+BAuJhB"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId, useRef, useState } from 'react';
|
|
4
|
+
import { Icon } from '../icon/index.js';
|
|
5
|
+
import { periodExactness, readPeriod, stepPeriod, writePeriod, } from './period.js';
|
|
6
|
+
/**
|
|
7
|
+
* A date as exact as it is known: a day, a month, a quarter or a year, typed as words (`2028`, `Q1 2027`, `Dec 2026`,
|
|
8
|
+
* `Dec 5, 2026`) and kept as it is typed. Blueprint components/when-field.md; contracts/when-field.md.
|
|
9
|
+
*/
|
|
10
|
+
export function WhenField({ label, value, onChange, onCommit, exactness, invalidLabel, placeholder, disabled, className, ...rest }) {
|
|
11
|
+
const shown = (v) => (v === null ? '' : writePeriod(v));
|
|
12
|
+
const read = (raw) => readPeriod(raw, exactness);
|
|
13
|
+
// What the box shows: its value as words; what is being typed, as it is typed; or words left that do not read as
|
|
14
|
+
// a date, kept and marked.
|
|
15
|
+
const [mode, setMode] = useState('value');
|
|
16
|
+
const [text, setText] = useState('');
|
|
17
|
+
// A value from outside takes the place of words that did not read. While the person types, theirs stay.
|
|
18
|
+
const [seen, setSeen] = useState(value);
|
|
19
|
+
if (seen !== value) {
|
|
20
|
+
setSeen(value);
|
|
21
|
+
if (mode === 'unread')
|
|
22
|
+
setMode('value');
|
|
23
|
+
}
|
|
24
|
+
// What this change has told so far, for `onCommit`, and so the same reading is never told twice in a row; and the
|
|
25
|
+
// value it started from, given back where the change ends on words that do not read.
|
|
26
|
+
const told = useRef(null);
|
|
27
|
+
// Whether the box holds the focus: words that arrive without it (a script's fill, a drop) are never left, so they
|
|
28
|
+
// settle as they arrive.
|
|
29
|
+
const here = useRef(false);
|
|
30
|
+
// Escape is leaving the field: the blur it causes settles nothing.
|
|
31
|
+
const dropping = useRef(false);
|
|
32
|
+
const markId = useId();
|
|
33
|
+
const unread = mode === 'unread';
|
|
34
|
+
const tell = (next) => {
|
|
35
|
+
// Never what it already is: the value, or what this change last told where the consumer has not followed yet.
|
|
36
|
+
if (next === (told.current ? told.current.value : value))
|
|
37
|
+
return;
|
|
38
|
+
told.current = { value: next, from: told.current ? told.current.from : value };
|
|
39
|
+
onChange?.(next);
|
|
40
|
+
};
|
|
41
|
+
// A change ended: said once, with what it ended on.
|
|
42
|
+
const commit = () => {
|
|
43
|
+
const last = told.current;
|
|
44
|
+
told.current = null;
|
|
45
|
+
if (last)
|
|
46
|
+
onCommit?.(last.value);
|
|
47
|
+
};
|
|
48
|
+
// A change that ends on words that do not read changes nothing: a date told on the way (2027, typing 2027-Q1) is
|
|
49
|
+
// taken back, the value it started from told again, and nothing is ended. The field takes that value as its own,
|
|
50
|
+
// so it does not take the place of the marked words.
|
|
51
|
+
const giveBack = () => {
|
|
52
|
+
const last = told.current;
|
|
53
|
+
told.current = null;
|
|
54
|
+
if (!last || last.value === last.from)
|
|
55
|
+
return;
|
|
56
|
+
setSeen(last.from);
|
|
57
|
+
onChange?.(last.from);
|
|
58
|
+
};
|
|
59
|
+
// How words left in the box stand: read (or none), the box shows its value again, so what was typed is tidied
|
|
60
|
+
// (dec 2026 → Dec 2026); not read, they stay as they are, marked.
|
|
61
|
+
const left = (raw) => (raw.trim() !== '' && read(raw) === null ? 'unread' : 'value');
|
|
62
|
+
// Words settled: read, they end the change; not read, they are marked and change nothing.
|
|
63
|
+
const end = (raw) => {
|
|
64
|
+
if (left(raw) === 'unread') {
|
|
65
|
+
setMode('unread');
|
|
66
|
+
giveBack();
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
setMode('value');
|
|
70
|
+
commit();
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
// Left, or Enter. Only what was typed is judged: a value is shown as it is.
|
|
74
|
+
const settle = (raw) => {
|
|
75
|
+
if (dropping.current)
|
|
76
|
+
return;
|
|
77
|
+
if (mode === 'typing')
|
|
78
|
+
end(raw);
|
|
79
|
+
else
|
|
80
|
+
commit();
|
|
81
|
+
};
|
|
82
|
+
const keys = (e) => {
|
|
83
|
+
if (e.key === 'Enter') {
|
|
84
|
+
settle(e.currentTarget.value);
|
|
85
|
+
// Once the tidied words are in the box, they are selected, to type over.
|
|
86
|
+
const box = e.currentTarget;
|
|
87
|
+
requestAnimationFrame(() => box.select());
|
|
88
|
+
}
|
|
89
|
+
else if (e.key === 'Escape') {
|
|
90
|
+
// Words that were not kept go; a date already told stays the value.
|
|
91
|
+
setMode('value');
|
|
92
|
+
commit();
|
|
93
|
+
dropping.current = true;
|
|
94
|
+
e.currentTarget.blur();
|
|
95
|
+
dropping.current = false;
|
|
96
|
+
}
|
|
97
|
+
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
98
|
+
// One of its own unit, as NumberField steps a number (Shift: ten). With no date there is no unit to step,
|
|
99
|
+
// and a value of an exactness this field does not take is no date here.
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
const kept = value === null ? null : periodExactness(value);
|
|
102
|
+
const from = read(e.currentTarget.value) ??
|
|
103
|
+
(kept !== null && (!exactness || exactness.includes(kept)) ? value : null);
|
|
104
|
+
if (from === null)
|
|
105
|
+
return;
|
|
106
|
+
setMode('value');
|
|
107
|
+
tell(stepPeriod(from, (e.key === 'ArrowUp' ? 1 : -1) * (e.shiftKey ? 10 : 1)));
|
|
108
|
+
commit();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return (_jsxs("div", { className: ['newtone-when-field', className].filter(Boolean).join(' '), "data-disabled": disabled ? '' : undefined, "data-invalid": unread ? '' : undefined, ...rest, children: [_jsx("input", { className: "newtone-when-field-input", type: "text", "aria-label": label, "aria-invalid": unread || undefined, "aria-describedby": unread ? markId : undefined, autoComplete: "off", spellCheck: false, enterKeyHint: "done", value: mode === 'value' ? shown(value) : text, placeholder: placeholder, disabled: disabled, onChange: (e) => {
|
|
112
|
+
const box = e.currentTarget;
|
|
113
|
+
const raw = box.value;
|
|
114
|
+
setText(raw);
|
|
115
|
+
// Kept as it is typed: every text that reads as a date is told at once, and an empty one clears it.
|
|
116
|
+
if (raw.trim() === '')
|
|
117
|
+
tell(null);
|
|
118
|
+
else {
|
|
119
|
+
const period = read(raw);
|
|
120
|
+
if (period !== null)
|
|
121
|
+
tell(period);
|
|
122
|
+
}
|
|
123
|
+
// Typed into, the words are the person's until the box is left. Arriving without the focus, they
|
|
124
|
+
// are settled as they arrive: nobody will leave the box to settle them.
|
|
125
|
+
if (here.current || box.ownerDocument.activeElement === box)
|
|
126
|
+
setMode('typing');
|
|
127
|
+
else
|
|
128
|
+
end(raw);
|
|
129
|
+
}, onBlur: (e) => {
|
|
130
|
+
here.current = false;
|
|
131
|
+
settle(e.currentTarget.value);
|
|
132
|
+
}, onKeyDown: keys, onFocus: (e) => {
|
|
133
|
+
here.current = true;
|
|
134
|
+
const box = e.currentTarget;
|
|
135
|
+
requestAnimationFrame(() => box.select());
|
|
136
|
+
} }), unread ? (_jsx("span", { id: markId, className: "newtone-when-field-mark", role: "img", "aria-label": invalidLabel, title: invalidLabel, children: _jsx(Icon, { name: "error", size: "sm" }) })) : null] }));
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=when-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when-field.js","sourceRoot":"","sources":["../../src/when-field/when-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE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G,IAAI,CAAA;oBACnB,MAAM,GAAG,GAAG,CAAC,CAAC,aAAa,CAAA;oBAC3B,qBAAqB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;gBAC7C,CAAC,GACH,EACD,MAAM,CAAC,CAAC,CAAC,CACN,eACI,EAAE,EAAE,MAAM,EACV,SAAS,EAAC,yBAAyB,EACnC,IAAI,EAAC,KAAK,gBACE,YAAY,EACxB,KAAK,EAAE,YAAY,YAEnB,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,GAAG,GAC5B,CACV,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newtone-dev/ui-react-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -422,6 +422,14 @@
|
|
|
422
422
|
"types": "./dist/file-grid/index.d.ts",
|
|
423
423
|
"default": "./dist/file-grid/index.js"
|
|
424
424
|
},
|
|
425
|
+
"./when-field": {
|
|
426
|
+
"types": "./dist/when-field/index.d.ts",
|
|
427
|
+
"default": "./dist/when-field/index.js"
|
|
428
|
+
},
|
|
429
|
+
"./outline": {
|
|
430
|
+
"types": "./dist/outline/index.d.ts",
|
|
431
|
+
"default": "./dist/outline/index.js"
|
|
432
|
+
},
|
|
425
433
|
"./crumbs": {
|
|
426
434
|
"types": "./dist/crumbs/index.d.ts",
|
|
427
435
|
"default": "./dist/crumbs/index.js"
|
|
@@ -560,6 +568,8 @@
|
|
|
560
568
|
"./node-map.css": "./dist/node-map/node-map.css",
|
|
561
569
|
"./diagram.css": "./dist/diagram/diagram.css",
|
|
562
570
|
"./file-grid.css": "./dist/file-grid/file-grid.css",
|
|
571
|
+
"./when-field.css": "./dist/when-field/when-field.css",
|
|
572
|
+
"./outline.css": "./dist/outline/outline.css",
|
|
563
573
|
"./crumbs.css": "./dist/crumbs/crumbs.css",
|
|
564
574
|
"./drop-zone.css": "./dist/drop-zone/drop-zone.css",
|
|
565
575
|
"./file-view.css": "./dist/file-view/file-view.css",
|