@newtone-dev/ui-react-web 0.45.0 → 0.47.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/README.md +5 -3
- package/dist/app-frame/app-frame.css +57 -0
- package/dist/app-frame/app-frame.d.ts +2 -1
- package/dist/app-frame/app-frame.d.ts.map +1 -1
- package/dist/app-frame/app-frame.js +2 -1
- package/dist/app-frame/app-frame.js.map +1 -1
- package/dist/app-frame/index.d.ts +1 -1
- package/dist/app-frame/index.d.ts.map +1 -1
- package/dist/app-frame/launcher/launcher.d.ts.map +1 -1
- package/dist/app-frame/launcher/launcher.js +5 -3
- package/dist/app-frame/launcher/launcher.js.map +1 -1
- package/dist/app-frame/parts.d.ts +22 -1
- package/dist/app-frame/parts.d.ts.map +1 -1
- package/dist/app-frame/parts.js +15 -2
- package/dist/app-frame/parts.js.map +1 -1
- package/dist/beside/beside.css +4 -0
- package/dist/card-box/card-box.css +8 -2
- package/dist/card-box/card-box.d.ts.map +1 -1
- package/dist/card-box/card-box.js +1 -1
- package/dist/card-box/card-box.js.map +1 -1
- package/dist/color/index.d.ts +4 -4
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.js +17 -15
- package/dist/color/index.js.map +1 -1
- package/dist/color/oklch.d.ts +6 -27
- package/dist/color/oklch.d.ts.map +1 -1
- package/dist/color/oklch.js +23 -61
- package/dist/color/oklch.js.map +1 -1
- package/dist/color/scale.d.ts +3 -18
- package/dist/color/scale.d.ts.map +1 -1
- package/dist/color/scale.js +13 -70
- package/dist/color/scale.js.map +1 -1
- package/dist/color/seeds.d.ts +51 -11
- package/dist/color/seeds.d.ts.map +1 -1
- package/dist/color/seeds.js +127 -41
- package/dist/color/seeds.js.map +1 -1
- package/dist/curve-field/curve-field.css +280 -0
- package/dist/curve-field/curve-field.d.ts +105 -0
- package/dist/curve-field/curve-field.d.ts.map +1 -0
- package/dist/curve-field/curve-field.js +532 -0
- package/dist/curve-field/curve-field.js.map +1 -0
- package/dist/curve-field/index.d.ts +3 -0
- package/dist/curve-field/index.d.ts.map +1 -0
- package/dist/curve-field/index.js +2 -0
- package/dist/curve-field/index.js.map +1 -0
- package/dist/diagram/diagram.css +63 -0
- package/dist/diagram/diagram.d.ts +63 -0
- package/dist/diagram/diagram.d.ts.map +1 -0
- package/dist/diagram/diagram.js +73 -0
- package/dist/diagram/diagram.js.map +1 -0
- package/dist/diagram/geometry.d.ts +60 -0
- package/dist/diagram/geometry.d.ts.map +1 -0
- package/dist/diagram/geometry.js +93 -0
- package/dist/diagram/geometry.js.map +1 -0
- package/dist/diagram/index.d.ts +7 -0
- package/dist/diagram/index.d.ts.map +1 -0
- package/dist/diagram/index.js +4 -0
- package/dist/diagram/index.js.map +1 -0
- package/dist/diagram/layout.d.ts +41 -0
- package/dist/diagram/layout.d.ts.map +1 -0
- package/dist/diagram/layout.js +157 -0
- package/dist/diagram/layout.js.map +1 -0
- package/dist/document/document.d.ts +7 -2
- package/dist/document/document.d.ts.map +1 -1
- package/dist/document/document.js +22 -4
- package/dist/document/document.js.map +1 -1
- package/dist/dynamic-range/dynamic-range.css +100 -0
- package/dist/dynamic-range/dynamic-range.d.ts +27 -0
- package/dist/dynamic-range/dynamic-range.d.ts.map +1 -0
- package/dist/dynamic-range/dynamic-range.js +20 -0
- package/dist/dynamic-range/dynamic-range.js.map +1 -0
- package/dist/dynamic-range/index.d.ts +3 -0
- package/dist/dynamic-range/index.d.ts.map +1 -0
- package/dist/dynamic-range/index.js +2 -0
- package/dist/dynamic-range/index.js.map +1 -0
- package/dist/file-grid/file-grid.css +65 -0
- package/dist/file-grid/file-grid.d.ts +34 -1
- package/dist/file-grid/file-grid.d.ts.map +1 -1
- package/dist/file-grid/file-grid.js +63 -2
- package/dist/file-grid/file-grid.js.map +1 -1
- package/dist/file-grid/index.d.ts +2 -2
- package/dist/file-grid/index.d.ts.map +1 -1
- package/dist/file-grid/index.js +1 -1
- package/dist/file-grid/index.js.map +1 -1
- package/dist/floating-bar/floating-bar.css +37 -15
- package/dist/floating-bar/floating-bar.d.ts +16 -1
- package/dist/floating-bar/floating-bar.d.ts.map +1 -1
- package/dist/floating-bar/floating-bar.js +58 -15
- package/dist/floating-bar/floating-bar.js.map +1 -1
- package/dist/floating-bar/index.d.ts +1 -1
- package/dist/floating-bar/index.d.ts.map +1 -1
- package/dist/identity/identity.d.ts +11 -3
- package/dist/identity/identity.d.ts.map +1 -1
- package/dist/identity/identity.js +8 -4
- package/dist/identity/identity.js.map +1 -1
- package/dist/index.d.ts +16 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.d.ts +1 -1
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/inspector.css +220 -6
- package/dist/inspector/inspector.d.ts +122 -3
- package/dist/inspector/inspector.d.ts.map +1 -1
- package/dist/inspector/inspector.js +75 -5
- package/dist/inspector/inspector.js.map +1 -1
- package/dist/material/material.css +8 -2
- package/dist/number-field/number-field.css +13 -0
- package/dist/number-field/number-field.d.ts +6 -1
- package/dist/number-field/number-field.d.ts.map +1 -1
- package/dist/number-field/number-field.js +10 -2
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/pop-menu/pop-menu.d.ts +3 -0
- package/dist/pop-menu/pop-menu.d.ts.map +1 -1
- package/dist/pop-menu/pop-menu.js +12 -6
- package/dist/pop-menu/pop-menu.js.map +1 -1
- package/dist/prompt-field/prompt-field.css +3 -3
- package/dist/prompt-field/prompt-field.d.ts +3 -3
- package/dist/prompt-field/prompt-field.d.ts.map +1 -1
- package/dist/prompt-field/prompt-field.js +10 -4
- package/dist/prompt-field/prompt-field.js.map +1 -1
- package/dist/seed-contrast-field/index.d.ts +5 -0
- package/dist/seed-contrast-field/index.d.ts.map +1 -0
- package/dist/seed-contrast-field/index.js +3 -0
- package/dist/seed-contrast-field/index.js.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-field.css +11 -0
- package/dist/{seed-dark-limit-field/seed-dark-limit-field.d.ts → seed-contrast-field/seed-contrast-field.d.ts} +14 -14
- package/dist/seed-contrast-field/seed-contrast-field.d.ts.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-field.js +18 -0
- package/dist/seed-contrast-field/seed-contrast-field.js.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-slider.css +112 -0
- package/dist/seed-contrast-field/seed-contrast-slider.d.ts +22 -0
- package/dist/seed-contrast-field/seed-contrast-slider.d.ts.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-slider.js +75 -0
- package/dist/seed-contrast-field/seed-contrast-slider.js.map +1 -0
- package/dist/seed-steps/index.d.ts +1 -1
- package/dist/seed-steps/index.js +1 -1
- package/dist/seed-steps/seed-steps.css +1 -1
- package/dist/seed-steps/seed-steps.js +1 -1
- package/dist/seed-steps/seed-steps.js.map +1 -1
- package/dist/shell/shell.css +31 -21
- package/dist/split/split.css +8 -5
- package/dist/step-list/index.d.ts +1 -1
- package/dist/step-list/index.d.ts.map +1 -1
- package/dist/step-list/step-list.css +75 -2
- package/dist/step-list/step-list.d.ts +121 -11
- package/dist/step-list/step-list.d.ts.map +1 -1
- package/dist/step-list/step-list.js +203 -37
- package/dist/step-list/step-list.js.map +1 -1
- package/dist/step-strip/index.d.ts +3 -0
- package/dist/step-strip/index.d.ts.map +1 -0
- package/dist/step-strip/index.js +2 -0
- package/dist/step-strip/index.js.map +1 -0
- package/dist/step-strip/step-strip.css +118 -0
- package/dist/step-strip/step-strip.d.ts +52 -0
- package/dist/step-strip/step-strip.d.ts.map +1 -0
- package/dist/step-strip/step-strip.js +47 -0
- package/dist/step-strip/step-strip.js.map +1 -0
- package/dist/surface/surface.css +112 -0
- package/dist/workbench/workbench.css +50 -0
- package/dist/workbench/workbench.d.ts +25 -1
- package/dist/workbench/workbench.d.ts.map +1 -1
- package/dist/workbench/workbench.js +11 -2
- package/dist/workbench/workbench.js.map +1 -1
- package/package.json +27 -5
- package/dist/color/gamut.d.ts +0 -20
- package/dist/color/gamut.d.ts.map +0 -1
- package/dist/color/gamut.js +0 -72
- package/dist/color/gamut.js.map +0 -1
- package/dist/seed-dark-limit-field/index.d.ts +0 -3
- package/dist/seed-dark-limit-field/index.d.ts.map +0 -1
- package/dist/seed-dark-limit-field/index.js +0 -2
- package/dist/seed-dark-limit-field/index.js.map +0 -1
- package/dist/seed-dark-limit-field/seed-dark-limit-field.css +0 -10
- package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts.map +0 -1
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js +0 -18
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed-contrast-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvI,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed-contrast-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvI,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* SeedContrastField: one end of a seed's Contrast, five numbered steps, −2 −1 0 +1 +2, on the steps' track (seed-steps.css,
|
|
2
|
+
* SegmentedControl's tokens, as SeedRoundnessField's), imported here. Each step is its number at body-sm in tabular
|
|
3
|
+
* figures, so the five stand alike.
|
|
4
|
+
*
|
|
5
|
+
* LENGTHS IT DECIDES: none of its own; the track's are seed-steps.css's. */
|
|
6
|
+
@import '../seed-steps/seed-steps.css';
|
|
7
|
+
@import './seed-contrast-slider.css';
|
|
8
|
+
|
|
9
|
+
.newtone-seed-contrast-field-number {
|
|
10
|
+
font-variant-numeric: tabular-nums;
|
|
11
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
/** The least and the most
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
/** What
|
|
6
|
-
export declare const
|
|
2
|
+
/** The least and the most a Contrast end holds; 0, Newtone's own, in the middle. */
|
|
3
|
+
export declare const CONTRAST_MIN = -2;
|
|
4
|
+
export declare const CONTRAST_MAX = 2;
|
|
5
|
+
/** What a Contrast end is when absent: what a null value with nothing `inherited` shows. */
|
|
6
|
+
export declare const CONTRAST_ABSENT = 0;
|
|
7
7
|
/** The five steps, in order. */
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const CONTRAST_STEPS: readonly [-2, -1, 0, 1, 2];
|
|
9
9
|
/** A step as it is shown and named: its sign always, a true minus below zero, 0 bare. */
|
|
10
|
-
export declare const
|
|
11
|
-
export interface
|
|
10
|
+
export declare const contrastText: (v: number) => string;
|
|
11
|
+
export interface SeedContrastFieldLabels {
|
|
12
12
|
/** Said where the value follows `inherited`, and on the press that makes it follow again: "Same as Sunset". */
|
|
13
13
|
same: string;
|
|
14
14
|
/** The press's words, where they differ from `same`: "Reset to Sunset's". */
|
|
@@ -16,8 +16,8 @@ export interface SeedDarkLimitFieldLabels {
|
|
|
16
16
|
/** Said beside the name while the value departs from `inherited`: "Changed here". Not shown unless given. */
|
|
17
17
|
changed?: string;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
/** The field's name: Dark
|
|
19
|
+
export interface SeedContrastFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
20
|
+
/** The field's name: "Light end" or "Dark end". It names the radio group too. */
|
|
21
21
|
label: string;
|
|
22
22
|
/**
|
|
23
23
|
* The value set here, -2 to +2; null where it is not set: it follows `inherited`, when given, else it shows 0, the
|
|
@@ -28,9 +28,9 @@ export interface SeedDarkLimitFieldProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
28
28
|
inherited?: number;
|
|
29
29
|
/** Told the step picked; null when it is set back to follow `inherited`. */
|
|
30
30
|
onChange: (value: number | null) => void;
|
|
31
|
-
labels:
|
|
31
|
+
labels: SeedContrastFieldLabels;
|
|
32
32
|
disabled?: boolean;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
35
|
-
export declare function
|
|
36
|
-
//# sourceMappingURL=seed-
|
|
34
|
+
/** One end of a seed's Contrast, five numbered steps from −2 to +2. */
|
|
35
|
+
export declare function SeedContrastField({ labels, className, ...rest }: SeedContrastFieldProps): import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=seed-contrast-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contrast-field.d.ts","sourceRoot":"","sources":["../../src/seed-contrast-field/seed-contrast-field.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,oFAAoF;AACpF,eAAO,MAAM,YAAY,KAAK,CAAA;AAC9B,eAAO,MAAM,YAAY,IAAI,CAAA;AAC7B,4FAA4F;AAC5F,eAAO,MAAM,eAAe,IAAI,CAAA;AAChC,gCAAgC;AAChC,eAAO,MAAM,cAAc,YAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAA;AAExD,yFAAyF;AACzF,eAAO,MAAM,YAAY,MAAO,MAAM,WAA+C,CAAA;AAErF,MAAM,WAAW,uBAAuB;IACpC,+GAA+G;IAC/G,IAAI,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACzG,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,MAAM,EAAE,uBAAuB,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,sBAAsB,+BAiBvF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { SeedSteps } from '../seed-steps/index.js';
|
|
4
|
+
/** The least and the most a Contrast end holds; 0, Newtone's own, in the middle. */
|
|
5
|
+
export const CONTRAST_MIN = -2;
|
|
6
|
+
export const CONTRAST_MAX = 2;
|
|
7
|
+
/** What a Contrast end is when absent: what a null value with nothing `inherited` shows. */
|
|
8
|
+
export const CONTRAST_ABSENT = 0;
|
|
9
|
+
/** The five steps, in order. */
|
|
10
|
+
export const CONTRAST_STEPS = [-2, -1, 0, 1, 2];
|
|
11
|
+
/** A step as it is shown and named: its sign always, a true minus below zero, 0 bare. */
|
|
12
|
+
export const contrastText = (v) => (v > 0 ? `+${v}` : v < 0 ? `−${-v}` : '0');
|
|
13
|
+
/** One end of a seed's Contrast, five numbered steps from −2 to +2. */
|
|
14
|
+
export function SeedContrastField({ labels, className, ...rest }) {
|
|
15
|
+
const names = CONTRAST_STEPS.map(contrastText);
|
|
16
|
+
return (_jsx(SeedSteps, { ...rest, className: ['newtone-seed-contrast-field', className].filter(Boolean).join(' '), words: labels, absent: CONTRAST_ABSENT, steps: CONTRAST_STEPS, names: names, draw: (_, i) => (_jsx("span", { className: "newtone-seed-contrast-field-number", "aria-hidden": "true", children: names[i] })) }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=seed-contrast-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contrast-field.js","sourceRoot":"","sources":["../../src/seed-contrast-field/seed-contrast-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAWZ,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,oFAAoF;AACpF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,CAAA;AAC9B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAA;AAC7B,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAChC,gCAAgC;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAA;AAExD,yFAAyF;AACzF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AA2BrF,uEAAuE;AACvE,MAAM,UAAU,iBAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAA0B;IACpF,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;IAC9C,OAAO,CACH,KAAC,SAAS,OACF,IAAI,EACR,SAAS,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC/E,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACZ,eAAM,SAAS,EAAC,oCAAoC,iBAAa,MAAM,YAClE,KAAK,CAAC,CAAC,CAAC,GACN,CACV,GACH,CACL,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* SeedContrastSlider -- blueprint components/seed-contrast-slider.md (Joshua 2026-11-14). Framed as CurveField's plot is, so
|
|
2
|
+
* the two read as one family in a panel: surface.secondary, radius.md, the bar inset space.3. */
|
|
3
|
+
.newtone-seed-contrast-slider {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
/* As tall as CurveField's plot (Joshua 2026-11-15): 156px, the bar where its frame is (12px in, 24px foot). */
|
|
6
|
+
block-size: 156px;
|
|
7
|
+
padding: 12px 12px 0;
|
|
8
|
+
border-radius: var(--newtone-radius-md);
|
|
9
|
+
background: var(--newtone-role-surface-secondary);
|
|
10
|
+
user-select: none;
|
|
11
|
+
direction: ltr;
|
|
12
|
+
}
|
|
13
|
+
.newtone-seed-contrast-slider-bar {
|
|
14
|
+
position: relative;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
block-size: 120px;
|
|
17
|
+
border: 1px solid var(--newtone-role-divider-secondary);
|
|
18
|
+
border-radius: var(--newtone-radius-sm);
|
|
19
|
+
touch-action: none;
|
|
20
|
+
cursor: ew-resize;
|
|
21
|
+
}
|
|
22
|
+
.newtone-seed-contrast-slider[data-disabled] .newtone-seed-contrast-slider-bar {
|
|
23
|
+
cursor: default;
|
|
24
|
+
}
|
|
25
|
+
/* Outside the Contrast: the panel's own surface over it, so what is left out recedes. */
|
|
26
|
+
.newtone-seed-contrast-slider-veil {
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset-block: 0;
|
|
29
|
+
background: color-mix(in oklab, var(--newtone-role-surface-secondary) 72%, transparent);
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
}
|
|
32
|
+
.newtone-seed-contrast-slider-veil:nth-child(1) {
|
|
33
|
+
border-start-start-radius: inherit;
|
|
34
|
+
border-end-start-radius: inherit;
|
|
35
|
+
}
|
|
36
|
+
.newtone-seed-contrast-slider-veil:nth-child(2) {
|
|
37
|
+
border-start-end-radius: inherit;
|
|
38
|
+
border-end-end-radius: inherit;
|
|
39
|
+
}
|
|
40
|
+
/* The marks on the bar: each end's 0 solid, each end's inner limit dashed. White in difference, so a mark shows dark on
|
|
41
|
+
* the white end and light on the black one, and mid-gray in between, wherever it stands. */
|
|
42
|
+
.newtone-seed-contrast-slider-mark {
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset-block: 0;
|
|
45
|
+
inline-size: 1px;
|
|
46
|
+
margin-inline-start: -0.5px;
|
|
47
|
+
background: #fff;
|
|
48
|
+
mix-blend-mode: difference;
|
|
49
|
+
opacity: 0.7;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
.newtone-seed-contrast-slider-mark[data-limit] {
|
|
53
|
+
background: repeating-linear-gradient(to bottom, #fff 0 3px, transparent 3px 6px);
|
|
54
|
+
}
|
|
55
|
+
/* A thumb: an upright bar across the track, the accent's, with the surface's ring so it reads on white and on black. */
|
|
56
|
+
.newtone-seed-contrast-slider-thumb {
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset-block: -4px;
|
|
59
|
+
inline-size: 24px;
|
|
60
|
+
margin-inline-start: -12px;
|
|
61
|
+
display: grid;
|
|
62
|
+
place-items: center;
|
|
63
|
+
outline: none;
|
|
64
|
+
cursor: ew-resize;
|
|
65
|
+
}
|
|
66
|
+
.newtone-seed-contrast-slider-thumb::before {
|
|
67
|
+
content: '';
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
inline-size: 8px;
|
|
70
|
+
block-size: 100%;
|
|
71
|
+
border: 1px solid var(--newtone-role-text-accent);
|
|
72
|
+
border-radius: 999px;
|
|
73
|
+
background: var(--newtone-role-surface-primary);
|
|
74
|
+
box-shadow: 0 0 0 1.5px var(--newtone-role-surface-primary);
|
|
75
|
+
}
|
|
76
|
+
.newtone-seed-contrast-slider-thumb:focus-visible::before,
|
|
77
|
+
.newtone-seed-contrast-slider-thumb[data-held]::before {
|
|
78
|
+
background: var(--newtone-role-text-accent);
|
|
79
|
+
}
|
|
80
|
+
.newtone-seed-contrast-slider-thumb[aria-disabled='true'] {
|
|
81
|
+
cursor: default;
|
|
82
|
+
}
|
|
83
|
+
/* Inset by the bar's border, so a tick stands under the mark it names: the bar's marks and thumbs are placed inside
|
|
84
|
+
* its 1px border, over its inner width. */
|
|
85
|
+
.newtone-seed-contrast-slider-ticks {
|
|
86
|
+
position: relative;
|
|
87
|
+
margin-inline: 1px;
|
|
88
|
+
block-size: 24px;
|
|
89
|
+
padding-block-start: var(--newtone-space-1);
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
}
|
|
92
|
+
.newtone-seed-contrast-slider-tick {
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset-block-start: 0;
|
|
95
|
+
block-size: 6px;
|
|
96
|
+
inline-size: 1px;
|
|
97
|
+
margin-inline-start: -0.5px;
|
|
98
|
+
background: var(--newtone-role-divider-secondary);
|
|
99
|
+
}
|
|
100
|
+
/* The default, 0, on each end: a longer tick in the secondary ink, its number under it. */
|
|
101
|
+
.newtone-seed-contrast-slider-tick[data-zero] {
|
|
102
|
+
block-size: 8px;
|
|
103
|
+
background: var(--newtone-role-text-secondary);
|
|
104
|
+
}
|
|
105
|
+
.newtone-seed-contrast-slider-zero {
|
|
106
|
+
position: absolute;
|
|
107
|
+
inset-block-start: 10px;
|
|
108
|
+
inset-inline-start: 50%;
|
|
109
|
+
transform: translateX(-50%);
|
|
110
|
+
line-height: 1;
|
|
111
|
+
font-variant-numeric: tabular-nums;
|
|
112
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type ContrastEnd = 'light' | 'dark';
|
|
3
|
+
export interface SeedContrastSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
4
|
+
/** Its name: "Contrast". */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Each end's level, −2 to +2. */
|
|
7
|
+
value: {
|
|
8
|
+
light: number;
|
|
9
|
+
dark: number;
|
|
10
|
+
};
|
|
11
|
+
/** Told one end's new level, as it moves. */
|
|
12
|
+
onChange: (end: ContrastEnd, level: number) => void;
|
|
13
|
+
/** Each thumb's name: "Light end", "Dark end". */
|
|
14
|
+
labels: {
|
|
15
|
+
light: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
};
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** A seed's Contrast, both ends on one bar. Blueprint components/seed-contrast-slider.md. */
|
|
21
|
+
export declare function SeedContrastSlider({ label, value, onChange, labels, disabled, className, ...rest }: SeedContrastSliderProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=seed-contrast-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contrast-slider.d.ts","sourceRoot":"","sources":["../../src/seed-contrast-field/seed-contrast-slider.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAoB,KAAK,cAAc,EAAyC,MAAM,OAAO,CAAA;AAIpG,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAE1C,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1G,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,6CAA6C;IAC7C,QAAQ,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,kDAAkD;IAClD,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAcD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,uBAAuB,+BAsF3H"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
// A seed's whole Contrast on one horizontal axis (Joshua 2026-11-14, HuevOS Style Book's Contrast panel (Range until 2026-11-15)): the ladder's
|
|
4
|
+
// lightness from pure white at the left to pure black at the right, the light end's thumb sliding in the first third
|
|
5
|
+
// and the dark end's in the last. +2 brighter, −2 darker on both (the HuevOS Core, newtone-color rule 4), so each thumb
|
|
6
|
+
// sits where its end is: Light +2 (L* 100) at the far left, Light −2 (L* 92) at its third's inner edge; Dark +2 (L* 16)
|
|
7
|
+
// at its third's inner edge, Dark −2 (L* 0) at the far right. The bar behind is that lightness, the part outside the
|
|
8
|
+
// two ends veiled. Each thumb a slider: Left and Up brighter, Right and Down darker, Home and End to its bounds.
|
|
9
|
+
import { useRef, useState } from 'react';
|
|
10
|
+
import { Text } from '../text/index.js';
|
|
11
|
+
import { CONTRAST_MAX, CONTRAST_MIN, contrastText } from './seed-contrast-field.js';
|
|
12
|
+
const THIRD = 1 / 3;
|
|
13
|
+
// Where a level sits along the bar, 0 to 1: +2 at its third's outer side toward white, −2 toward black.
|
|
14
|
+
const at = (end, level) => (end === 'light' ? 0 : 2 * THIRD) + ((CONTRAST_MAX - level) / (CONTRAST_MAX - CONTRAST_MIN)) * THIRD;
|
|
15
|
+
// The level nearest a place along the bar, kept in its end's five.
|
|
16
|
+
const levelAt = (end, x) => {
|
|
17
|
+
const f = (x - (end === 'light' ? 0 : 2 * THIRD)) / THIRD;
|
|
18
|
+
return Math.min(CONTRAST_MAX, Math.max(CONTRAST_MIN, Math.round(CONTRAST_MAX - f * (CONTRAST_MAX - CONTRAST_MIN))));
|
|
19
|
+
};
|
|
20
|
+
const LEVELS = [2, 1, 0, -1, -2];
|
|
21
|
+
// The bar's lightness, as the ladder reads it: L* 100 to 92 in the first third, 92 to 16 between, 16 to 0 in the last.
|
|
22
|
+
const BAR = 'linear-gradient(to right, lab(100% 0 0) 0%, lab(92% 0 0) 33.333%, lab(16% 0 0) 66.667%, lab(0% 0 0) 100%)';
|
|
23
|
+
/** A seed's Contrast, both ends on one bar. Blueprint components/seed-contrast-slider.md. */
|
|
24
|
+
export function SeedContrastSlider({ label, value, onChange, labels, disabled, className, ...rest }) {
|
|
25
|
+
const bar = useRef(null);
|
|
26
|
+
const [held, setHeld] = useState(null);
|
|
27
|
+
const along = (clientX) => {
|
|
28
|
+
const el = bar.current;
|
|
29
|
+
if (!el || !el.clientWidth)
|
|
30
|
+
return 0;
|
|
31
|
+
// Inside the border, as the marks and thumbs are placed.
|
|
32
|
+
return (clientX - el.getBoundingClientRect().left - el.clientLeft) / el.clientWidth;
|
|
33
|
+
};
|
|
34
|
+
const move = (end, x) => {
|
|
35
|
+
const l = levelAt(end, x);
|
|
36
|
+
if (l !== value[end])
|
|
37
|
+
onChange(end, l);
|
|
38
|
+
};
|
|
39
|
+
const press = (e) => {
|
|
40
|
+
if (disabled || e.button !== 0)
|
|
41
|
+
return;
|
|
42
|
+
const x = along(e.clientX);
|
|
43
|
+
const end = x < 0.5 ? 'light' : 'dark';
|
|
44
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
45
|
+
setHeld(end);
|
|
46
|
+
move(end, x);
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
e.currentTarget.querySelector(`[data-end="${end}"]`)?.focus();
|
|
49
|
+
};
|
|
50
|
+
const drag = (e) => {
|
|
51
|
+
if (held)
|
|
52
|
+
move(held, along(e.clientX));
|
|
53
|
+
};
|
|
54
|
+
const letGo = (e) => {
|
|
55
|
+
if (e.currentTarget.hasPointerCapture(e.pointerId))
|
|
56
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
57
|
+
setHeld(null);
|
|
58
|
+
};
|
|
59
|
+
const keys = (end) => (e) => {
|
|
60
|
+
const by = { ArrowLeft: 1, ArrowUp: 1, ArrowRight: -1, ArrowDown: -1, PageUp: 1, PageDown: -1 }[e.key];
|
|
61
|
+
const to = e.key === 'Home' ? CONTRAST_MAX : e.key === 'End' ? CONTRAST_MIN : by !== undefined ? value[end] + by : null;
|
|
62
|
+
if (to === null)
|
|
63
|
+
return;
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
if (disabled)
|
|
66
|
+
return;
|
|
67
|
+
const l = Math.min(CONTRAST_MAX, Math.max(CONTRAST_MIN, to));
|
|
68
|
+
if (l !== value[end])
|
|
69
|
+
onChange(end, l);
|
|
70
|
+
};
|
|
71
|
+
const lo = at('light', value.light) * 100;
|
|
72
|
+
const hi = at('dark', value.dark) * 100;
|
|
73
|
+
return (_jsxs("div", { ...rest, className: ['newtone-seed-contrast-slider', className].filter(Boolean).join(' '), role: "group", "aria-label": label, "data-disabled": disabled ? '' : undefined, children: [_jsxs("div", { ref: bar, className: "newtone-seed-contrast-slider-bar", style: { backgroundImage: BAR }, onPointerDown: press, onPointerMove: drag, onPointerUp: letGo, onPointerCancel: letGo, children: [_jsx("span", { className: "newtone-seed-contrast-slider-veil", style: { left: 0, width: `${lo}%` }, "aria-hidden": "true" }), _jsx("span", { className: "newtone-seed-contrast-slider-veil", style: { left: `${hi}%`, right: 0 }, "aria-hidden": "true" }), ['light', 'dark'].map((end) => (_jsx("span", { className: "newtone-seed-contrast-slider-mark", style: { left: `${(at(end, 0) * 100).toFixed(3)}%` }, "aria-hidden": "true" }, `zero-${end}`))), [THIRD, 2 * THIRD].map((x) => (_jsx("span", { className: "newtone-seed-contrast-slider-mark", "data-limit": "", style: { left: `${(x * 100).toFixed(3)}%` }, "aria-hidden": "true" }, `limit-${x}`))), ['light', 'dark'].map((end) => (_jsx("div", { "data-end": end, "data-held": held === end ? '' : undefined, role: "slider", tabIndex: 0, className: "newtone-seed-contrast-slider-thumb", "aria-label": labels[end], "aria-orientation": "horizontal", "aria-valuemin": CONTRAST_MIN, "aria-valuemax": CONTRAST_MAX, "aria-valuenow": value[end], "aria-valuetext": contrastText(value[end]), "aria-disabled": disabled || undefined, style: { left: `${(end === 'light' ? lo : hi).toFixed(3)}%` }, onKeyDown: keys(end) }, end)))] }), _jsx("div", { className: "newtone-seed-contrast-slider-ticks", "aria-hidden": "true", children: ['light', 'dark'].flatMap((end) => LEVELS.map((l) => (_jsx("span", { className: "newtone-seed-contrast-slider-tick", "data-zero": l === 0 ? '' : undefined, style: { left: `${(at(end, l) * 100).toFixed(3)}%` }, children: l === 0 ? _jsx(Text, { as: "span", scale: "caption", tone: "secondary", measure: "none", className: "newtone-seed-contrast-slider-zero", children: "0" }) : null }, `${end}${l}`)))) })] }));
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=seed-contrast-slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contrast-slider.js","sourceRoot":"","sources":["../../src/seed-contrast-field/seed-contrast-slider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AACZ,gJAAgJ;AAChJ,qHAAqH;AACrH,wHAAwH;AACxH,wHAAwH;AACxH,qHAAqH;AACrH,iHAAiH;AAEjH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA8D,MAAM,OAAO,CAAA;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E,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC7D,eAAyB,SAAS,EAAC,mCAAmC,eAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,YAC3J,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC,kBAAS,CAAC,CAAC,CAAC,IAAI,IADjI,GAAG,GAAG,GAAG,CAAC,EAAE,CAEhB,CACV,CAAC,CAAC,GACD,IACJ,CACT,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The door of a private part: SeedRoundnessField's and
|
|
2
|
+
* The door of a private part: SeedRoundnessField's and SeedContrastField's row, and the press-back focus hook
|
|
3
3
|
* SeedColorField, FontPicker and StepList share. In neither src/index.ts nor package.json's exports.
|
|
4
4
|
*/
|
|
5
5
|
export { SeedSteps } from './seed-steps.js';
|
package/dist/seed-steps/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The door of a private part: SeedRoundnessField's and
|
|
2
|
+
* The door of a private part: SeedRoundnessField's and SeedContrastField's row, and the press-back focus hook
|
|
3
3
|
* SeedColorField, FontPicker and StepList share. In neither src/index.ts nor package.json's exports.
|
|
4
4
|
*/
|
|
5
5
|
export { SeedSteps } from './seed-steps.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* The steps a seed's value is set on (seed-steps.tsx, private): SeedRoundnessField's and
|
|
1
|
+
/* The steps a seed's value is set on (seed-steps.tsx, private): SeedRoundnessField's and SeedContrastField's row, each
|
|
2
2
|
* field's own sheet @imports it. The name and its words over a radio group of steps on SegmentedControl's track, by
|
|
3
3
|
* SegmentedControl's own tokens (gap, padding, corners, fills, inks), the chosen step on the chosen fill; a tertiary
|
|
4
4
|
* press after the track puts a departure back (Button: import button.css).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// The row a seed's stepped value is set on (2026-11-13: SeedRoundnessField's five corners,
|
|
3
|
+
// The row a seed's stepped value is set on (2026-11-13: SeedRoundnessField's five corners, SeedContrastField's five
|
|
4
4
|
// numbers): its name, the words saying whether it follows its style, a radio group of steps on the segmented control's
|
|
5
5
|
// track, and the press that puts a departure back. One Tab stop; the arrow keys move and choose; one tap picks.
|
|
6
6
|
// Nothing here drops the focus to the page (2026-11-13): the press back gives it to the Tab stop as it goes, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed-steps.js","sourceRoot":"","sources":["../../src/seed-steps/seed-steps.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AACZ,
|
|
1
|
+
{"version":3,"file":"seed-steps.js","sourceRoot":"","sources":["../../src/seed-steps/seed-steps.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AACZ,oHAAoH;AACpH,uHAAuH;AACvH,gHAAgH;AAChH,iHAAiH;AACjH,sHAAsH;AACtH,mHAAmH;AACnH,yCAAyC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,EAA2D,MAAM,OAAO,CAAA;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAmDhD,iHAAiH;AACjH,SAAS,KAAK,CAAC,K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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBACd,QAAQ,IAAI,SAAS,EACpC,SAAS,EAAC,yBAAyB,EACnC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,YAErB,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAXN,CAAC,CAYD,CACZ,CAAC,GACA,EACL,OAAO,CAAC,CAAC,CAAC,CACP,KAAC,MAAM,IACH,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,UAAU,EAClB,SAAS,EAAC,0BAA0B,EACpC,iBAAiB,EAAE,QAAQ,gBACf,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,KAChD,KAAK,EACT,OAAO,EAAE,GAAG,EAAE;4BACV,SAAS,EAAE,CAAA;4BACX,QAAQ,CAAC,IAAI,CAAC,CAAA;wBAClB,CAAC,YAEA,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,GACrB,CACZ,CAAC,CAAC,CAAC,IAAI,IACN,IACJ,CACT,CAAA;AACL,CAAC"}
|
package/dist/shell/shell.css
CHANGED
|
@@ -110,9 +110,11 @@
|
|
|
110
110
|
justify-content: center;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
/* THE RAIL: icons only. The label is hidden visually and stays the link's accessible name.
|
|
113
|
+
/* THE RAIL: icons only. The label is hidden visually and stays the link's accessible name. Its labels go by the
|
|
114
|
+
state alone, which the width sets (2026-11-13, CHARTER non-negotiable 8): hidden in the rail, shown wherever the panel
|
|
115
|
+
is full, and in the rail opened by the focus, or by a hovering pointer below. */
|
|
114
116
|
.newtone-shell[data-newtone-shell-state='rail']
|
|
115
|
-
.newtone-shell-panel:not(:
|
|
117
|
+
.newtone-shell-panel:not(:focus-within)
|
|
116
118
|
.newtone-shell-link-label {
|
|
117
119
|
position: absolute;
|
|
118
120
|
inline-size: 1px;
|
|
@@ -122,18 +124,6 @@
|
|
|
122
124
|
white-space: nowrap;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
@media (hover: none) {
|
|
126
|
-
.newtone-shell[data-newtone-shell-state='rail']
|
|
127
|
-
.newtone-shell-panel:not(:focus-within)
|
|
128
|
-
.newtone-shell-link-label {
|
|
129
|
-
position: absolute;
|
|
130
|
-
inline-size: 1px;
|
|
131
|
-
block-size: 1px;
|
|
132
|
-
overflow: hidden;
|
|
133
|
-
clip-path: inset(50%);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
127
|
/* OVER <main>, NOT BESIDE IT. The overlay, and the rail opened by hover or focus, take the full
|
|
138
128
|
width while the grid column stays the rail's -- so <main>'s inline size never changes. */
|
|
139
129
|
.newtone-shell[data-newtone-shell-state='overlay'] .newtone-shell-panel,
|
|
@@ -144,19 +134,39 @@
|
|
|
144
134
|
inline-size: var(--_shell-full);
|
|
145
135
|
}
|
|
146
136
|
|
|
137
|
+
.newtone-shell[data-newtone-shell-state='overlay'] .newtone-shell-panel,
|
|
138
|
+
.newtone-shell[data-newtone-shell-state='drawer'] .newtone-shell-panel,
|
|
139
|
+
.newtone-shell[data-newtone-shell-state='rail'] .newtone-shell-panel:focus-within {
|
|
140
|
+
box-shadow: var(--_shadow-medium);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* A pointer that hovers opens the rail as the focus does: how a gesture is recognized, which CHARTER non-negotiable 8
|
|
144
|
+
lets adapt ("no hover", 2026-11-13). A touch screen keeps a hover after a tap, so there it would leave the rail open
|
|
145
|
+
over <main> after the page changed, and a hover that reveals could make a link need two taps; a touch opens it by
|
|
146
|
+
the focus. What is seen at rest, and what can be done, are the same at each width. */
|
|
147
147
|
@media (hover: hover) {
|
|
148
148
|
.newtone-shell[data-newtone-shell-state='rail'] .newtone-shell-panel:hover {
|
|
149
149
|
position: absolute;
|
|
150
150
|
inset-block: 0;
|
|
151
151
|
inset-inline-start: 0;
|
|
152
152
|
inline-size: var(--_shell-full);
|
|
153
|
+
box-shadow: var(--_shadow-medium);
|
|
154
|
+
}
|
|
155
|
+
.newtone-shell[data-newtone-shell-state='rail']
|
|
156
|
+
.newtone-shell-panel:hover:not(:focus-within)
|
|
157
|
+
.newtone-shell-link-label {
|
|
158
|
+
position: static;
|
|
159
|
+
inline-size: auto;
|
|
160
|
+
block-size: auto;
|
|
161
|
+
overflow: visible;
|
|
162
|
+
clip-path: none;
|
|
163
|
+
}
|
|
164
|
+
[data-newtone-shell-state='rail']
|
|
165
|
+
.newtone-shell-panel:hover:not(:focus-within)
|
|
166
|
+
.newtone-shell-brand[data-newtone-rail='hide']
|
|
167
|
+
> * {
|
|
168
|
+
visibility: visible;
|
|
153
169
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.newtone-shell[data-newtone-shell-state='overlay'] .newtone-shell-panel,
|
|
157
|
-
.newtone-shell[data-newtone-shell-state='drawer'] .newtone-shell-panel,
|
|
158
|
-
.newtone-shell[data-newtone-shell-state='rail'] .newtone-shell-panel:is(:hover, :focus-within) {
|
|
159
|
-
box-shadow: var(--_shadow-medium);
|
|
160
170
|
}
|
|
161
171
|
|
|
162
172
|
/* THE DRAWER, below `compact`: no rail, no icons; the panel slides in from the left over a scrim. */
|
|
@@ -245,7 +255,7 @@
|
|
|
245
255
|
|
|
246
256
|
/* `brandInRail="hide"`, from 2026-10-30: in the rail the brand's row waits for the full panel. */
|
|
247
257
|
[data-newtone-shell-state='rail']
|
|
248
|
-
.newtone-shell-panel:not(:
|
|
258
|
+
.newtone-shell-panel:not(:focus-within)
|
|
249
259
|
.newtone-shell-brand[data-newtone-rail='hide']
|
|
250
260
|
> * {
|
|
251
261
|
visibility: hidden;
|
package/dist/split/split.css
CHANGED
|
@@ -192,13 +192,15 @@
|
|
|
192
192
|
padding-inline: 6px;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
/*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
195
|
+
/* At the compact width (under 48rem, the split's own, 2026-11-02, Joshua; by width since 2026-11-13, CHARTER
|
|
196
|
+
* non-negotiable 8: the same pixels on every device at one width, where it went by a touch screen before): the menu
|
|
197
|
+
* button and the list's rows are 44px tall, the least a finger is sure of (Apple's 44pt), and the alignment above
|
|
198
|
+
* holds at that size: the button stays 8px from the corner, its glyph now 12px inside it ((44px - 20px) / 2), so each
|
|
199
|
+
* item's mark keeps standing under the button's.
|
|
198
200
|
* 44px the button, each row at least, and a group's fold
|
|
199
201
|
* 60px room over the panel's list for the button: its 44px and 8px either side
|
|
200
202
|
* 52px room over what is open for it: its 44px and 8px over it */
|
|
201
|
-
@
|
|
203
|
+
@container newtone-split-docked (max-width: 48rem) {
|
|
202
204
|
.newtone-split-toggle {
|
|
203
205
|
inline-size: 44px;
|
|
204
206
|
block-size: 44px;
|
|
@@ -276,7 +278,8 @@
|
|
|
276
278
|
grid-template-rows: minmax(0, 1fr);
|
|
277
279
|
transition: none;
|
|
278
280
|
}
|
|
279
|
-
|
|
281
|
+
/* A pinned list has no menu button, so the compact width keeps no room for one either. */
|
|
282
|
+
@container newtone-split-docked (max-width: 48rem) {
|
|
280
283
|
.newtone-split[data-newtone-split-pinned] > .newtone-split-nav {
|
|
281
284
|
padding-block-start: var(--newtone-space-2);
|
|
282
285
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { StepList } from './step-list.js';
|
|
2
|
-
export type { StepListProps, StepListStep, StepListWho, StepListOperator, StepListAction, StepListConfirm, } from './step-list.js';
|
|
2
|
+
export type { StepListProps, StepListStep, StepListStepBase, StepListAuthor, StepListWho, StepListOperator, StepListAction, StepListConfirm, StepListOpened, StepListOpenedAction, StepListNaming, StepListNotice, } from './step-list.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/step-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,YAAY,EACR,aAAa,EACb,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/step-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,YAAY,EACR,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,cAAc,GACjB,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* StepList -- blueprint components/step-list.md. A file's history, newest first: a face, what the step did, who and
|
|
2
2
|
* when; a more menu per row (FloatingBar's menu: import floating-bar.css), and the warning that asks before an action
|
|
3
|
-
* goes ahead. Avatar draws the face (import avatar.css), Button the presses.
|
|
3
|
+
* goes ahead. Avatar draws the face (import avatar.css), Button the presses. Since S8 (2026-11-13): Faces draws a
|
|
4
|
+
* row's people (faces.css), TextField the name typed inline (text-field.css), Skeleton the rows loading
|
|
5
|
+
* (skeleton.css); a row may open, and the opened step stands in a head over the rows.
|
|
4
6
|
*
|
|
5
7
|
* LENGTHS IT DECIDES:
|
|
6
8
|
* 1.75rem the face, as Faces' default; and the more button, as FileGrid's
|
|
@@ -9,7 +11,8 @@
|
|
|
9
11
|
* 2px the current step's edge at its start, text.accent, as VersionTrail's current version; the gap between
|
|
10
12
|
* the label and the meta line; the list's own focus ring, 2px outside it
|
|
11
13
|
* 1px the hairline under each row; the more button's focus ring stands 1px off it
|
|
12
|
-
* 1px the spoken pause between name and time: a box hidden from sight, said, never seen
|
|
14
|
+
* 1px the spoken pause between name and time: a box hidden from sight, said, never seen
|
|
15
|
+
* 1.75rem the opened step's face in the head, as a row's; its people at most three faces and the +N place */
|
|
13
16
|
.newtone-step-list {
|
|
14
17
|
display: flex;
|
|
15
18
|
flex-direction: column;
|
|
@@ -48,6 +51,35 @@
|
|
|
48
51
|
gap: var(--newtone-space-2);
|
|
49
52
|
min-inline-size: 0;
|
|
50
53
|
}
|
|
54
|
+
/* A row's people (S8): the Faces stack in the face's place, never squeezed. */
|
|
55
|
+
.newtone-step-list-people {
|
|
56
|
+
flex: none;
|
|
57
|
+
}
|
|
58
|
+
/* An openable row's words are one press (S8): the whole of the row's middle, a chevron at its end. */
|
|
59
|
+
.newtone-step-list-open {
|
|
60
|
+
all: unset;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--newtone-space-2);
|
|
66
|
+
min-inline-size: 0;
|
|
67
|
+
margin: calc(-1 * var(--newtone-space-1));
|
|
68
|
+
padding: var(--newtone-space-1);
|
|
69
|
+
border-radius: var(--newtone-radius-sm);
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
.newtone-step-list-open:hover {
|
|
73
|
+
background: var(--newtone-role-surface-secondary);
|
|
74
|
+
}
|
|
75
|
+
.newtone-step-list-open:focus-visible {
|
|
76
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
77
|
+
outline-offset: 1px;
|
|
78
|
+
}
|
|
79
|
+
.newtone-step-list-chevron {
|
|
80
|
+
flex: none;
|
|
81
|
+
color: var(--newtone-role-text-secondary);
|
|
82
|
+
}
|
|
51
83
|
.newtone-step-list-text {
|
|
52
84
|
display: flex;
|
|
53
85
|
flex: 1 1 auto;
|
|
@@ -138,6 +170,47 @@
|
|
|
138
170
|
flex-wrap: wrap;
|
|
139
171
|
gap: var(--newtone-space-2);
|
|
140
172
|
}
|
|
173
|
+
/* The name typed inline (S8): the field, then its presses, inset to the label's start as the warning is. */
|
|
174
|
+
.newtone-step-list-naming {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
gap: var(--newtone-space-2);
|
|
178
|
+
margin-inline-start: calc(1.75rem + var(--newtone-space-2));
|
|
179
|
+
}
|
|
180
|
+
/* The opened step (S8): over the rows, the press back, the step, its presses; a hairline under it. */
|
|
181
|
+
.newtone-step-list-head {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
align-items: stretch;
|
|
185
|
+
gap: var(--newtone-space-2);
|
|
186
|
+
padding-block: var(--newtone-space-2);
|
|
187
|
+
padding-inline: var(--newtone-space-2) var(--newtone-space-1);
|
|
188
|
+
border-block-end: 1px solid var(--newtone-role-divider-secondary);
|
|
189
|
+
}
|
|
190
|
+
.newtone-step-list-back {
|
|
191
|
+
align-self: flex-start;
|
|
192
|
+
}
|
|
193
|
+
.newtone-step-list-head > :is(.newtone-step-list-confirm, .newtone-step-list-naming) {
|
|
194
|
+
margin-inline-start: 0;
|
|
195
|
+
}
|
|
196
|
+
/* One line above the rows (S8): words, a warning glyph before them when said so. Empty, it takes no room, and stays in
|
|
197
|
+
* the page so what arrives in it is said. */
|
|
198
|
+
.newtone-step-list-notice {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: flex-start;
|
|
201
|
+
gap: var(--newtone-space-2);
|
|
202
|
+
min-inline-size: 0;
|
|
203
|
+
}
|
|
204
|
+
.newtone-step-list-notice:not(:empty) {
|
|
205
|
+
padding: var(--newtone-space-2);
|
|
206
|
+
}
|
|
207
|
+
.newtone-step-list-notice > .newtone-icon {
|
|
208
|
+
flex: none;
|
|
209
|
+
}
|
|
210
|
+
/* Rows loading (S8): Skeleton's shapes in a row's place, no hairline of their own until the rows arrive. */
|
|
211
|
+
.newtone-step-list-ghost {
|
|
212
|
+
border-block-end-color: transparent;
|
|
213
|
+
}
|
|
141
214
|
.newtone-step-list-empty {
|
|
142
215
|
padding: var(--newtone-space-3) var(--newtone-space-2);
|
|
143
216
|
}
|