@newtone-dev/ui-react-web 0.44.0 → 0.46.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/README.md +5 -3
- package/dist/app-frame/app-frame.css +77 -25
- 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/main-menu/main-menu.js +5 -1
- package/dist/app-frame/main-menu/main-menu.js.map +1 -1
- package/dist/app-frame/parts.d.ts +26 -1
- package/dist/app-frame/parts.d.ts.map +1 -1
- package/dist/app-frame/parts.js +17 -3
- package/dist/app-frame/parts.js.map +1 -1
- package/dist/ask-button/ask-button.css +7 -1
- package/dist/beside/beside.css +4 -0
- package/dist/button/button.css +14 -4
- package/dist/button/button.d.ts +12 -1
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.js +49 -3
- package/dist/button/button.js.map +1 -1
- package/dist/canvas/canvas.css +20 -5
- package/dist/canvas/cells/cells.d.ts +12 -1
- package/dist/canvas/cells/cells.d.ts.map +1 -1
- package/dist/canvas/cells/cells.js +16 -2
- package/dist/canvas/cells/cells.js.map +1 -1
- package/dist/canvas/cells/grid.d.ts +8 -2
- package/dist/canvas/cells/grid.d.ts.map +1 -1
- package/dist/canvas/cells/grid.js +8 -5
- package/dist/canvas/cells/grid.js.map +1 -1
- package/dist/canvas/dock/dock.d.ts +2 -2
- package/dist/canvas/dock/dock.js +2 -2
- package/dist/canvas/dock/dock.js.map +1 -1
- 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 +35 -2
- package/dist/file-grid/file-grid.d.ts.map +1 -1
- package/dist/file-grid/file-grid.js +64 -3
- 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 +122 -32
- package/dist/floating-bar/floating-bar.d.ts +21 -2
- package/dist/floating-bar/floating-bar.d.ts.map +1 -1
- package/dist/floating-bar/floating-bar.js +64 -20
- 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/font-picker/font-picker.css +4 -2
- package/dist/font-picker/font-picker.d.ts +34 -4
- package/dist/font-picker/font-picker.d.ts.map +1 -1
- package/dist/font-picker/font-picker.js +45 -9
- package/dist/font-picker/font-picker.js.map +1 -1
- package/dist/font-picker/index.d.ts +2 -2
- package/dist/font-picker/index.d.ts.map +1 -1
- package/dist/font-picker/index.js +1 -1
- package/dist/font-picker/index.js.map +1 -1
- package/dist/hint/hint.css +2 -6
- package/dist/icon/glyphs.d.ts +18 -0
- package/dist/icon/glyphs.d.ts.map +1 -0
- package/dist/icon/glyphs.js +17 -0
- package/dist/icon/glyphs.js.map +1 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.d.ts.map +1 -1
- package/dist/icon/index.js +1 -0
- package/dist/icon/index.js.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 +33 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- 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 +368 -7
- package/dist/inspector/inspector.d.ts +182 -5
- package/dist/inspector/inspector.d.ts.map +1 -1
- package/dist/inspector/inspector.js +85 -7
- package/dist/inspector/inspector.js.map +1 -1
- package/dist/look-picker/look-picker.css +62 -2
- package/dist/look-picker/look-picker.d.ts +34 -2
- package/dist/look-picker/look-picker.d.ts.map +1 -1
- package/dist/look-picker/look-picker.js +51 -42
- package/dist/look-picker/look-picker.js.map +1 -1
- package/dist/material/material.css +128 -57
- package/dist/number-field/number-field.css +34 -0
- package/dist/number-field/number-field.d.ts +29 -3
- package/dist/number-field/number-field.d.ts.map +1 -1
- package/dist/number-field/number-field.js +61 -10
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/page-editor/page-editor.css +2 -6
- package/dist/picker/picker.css +42 -0
- package/dist/picker/picker.d.ts +10 -1
- package/dist/picker/picker.d.ts.map +1 -1
- package/dist/picker/picker.js +40 -5
- package/dist/picker/picker.js.map +1 -1
- package/dist/pop-menu/index.d.ts +7 -0
- package/dist/pop-menu/index.d.ts.map +1 -0
- package/dist/pop-menu/index.js +6 -0
- package/dist/pop-menu/index.js.map +1 -0
- package/dist/{floating-bar/menu.d.ts → pop-menu/pop-menu.d.ts} +10 -2
- package/dist/pop-menu/pop-menu.d.ts.map +1 -0
- package/dist/{floating-bar/menu.js → pop-menu/pop-menu.js} +35 -12
- package/dist/pop-menu/pop-menu.js.map +1 -0
- 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/quick-action/quick-action.css +1 -1
- package/dist/seed-color-field/seed-color-field.css +8 -10
- package/dist/seed-color-field/seed-color-field.d.ts +9 -0
- package/dist/seed-color-field/seed-color-field.d.ts.map +1 -1
- package/dist/seed-color-field/seed-color-field.js +37 -10
- package/dist/seed-color-field/seed-color-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-contrast-field/seed-contrast-field.d.ts +36 -0
- 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-roundness-field/index.d.ts +3 -0
- package/dist/seed-roundness-field/index.d.ts.map +1 -0
- package/dist/seed-roundness-field/index.js +2 -0
- package/dist/seed-roundness-field/index.js.map +1 -0
- package/dist/seed-roundness-field/seed-roundness-field.css +23 -0
- package/dist/seed-roundness-field/seed-roundness-field.d.ts +39 -0
- package/dist/seed-roundness-field/seed-roundness-field.d.ts.map +1 -0
- package/dist/seed-roundness-field/seed-roundness-field.js +15 -0
- package/dist/seed-roundness-field/seed-roundness-field.js.map +1 -0
- package/dist/seed-steps/index.d.ts +8 -0
- package/dist/seed-steps/index.d.ts.map +1 -0
- package/dist/seed-steps/index.js +7 -0
- package/dist/seed-steps/index.js.map +1 -0
- package/dist/seed-steps/reset-focus.d.ts +16 -0
- package/dist/seed-steps/reset-focus.d.ts.map +1 -0
- package/dist/seed-steps/reset-focus.js +53 -0
- package/dist/seed-steps/reset-focus.js.map +1 -0
- package/dist/seed-steps/seed-steps.css +83 -0
- package/dist/seed-steps/seed-steps.d.ts +47 -0
- package/dist/seed-steps/seed-steps.d.ts.map +1 -0
- package/dist/seed-steps/seed-steps.js +95 -0
- package/dist/seed-steps/seed-steps.js.map +1 -0
- package/dist/shell/shell.css +31 -33
- package/dist/slide-list/slide-list.css +23 -2
- package/dist/slide-list/slide-list.d.ts +11 -2
- package/dist/slide-list/slide-list.d.ts.map +1 -1
- package/dist/slide-list/slide-list.js +6 -6
- package/dist/slide-list/slide-list.js.map +1 -1
- package/dist/split/split.css +11 -8
- package/dist/split/split.d.ts +2 -0
- package/dist/split/split.d.ts.map +1 -1
- package/dist/split/split.js +21 -3
- package/dist/split/split.js.map +1 -1
- package/dist/stage/stage.d.ts +11 -4
- package/dist/stage/stage.d.ts.map +1 -1
- package/dist/stage/stage.js +30 -9
- package/dist/stage/stage.js.map +1 -1
- package/dist/step-list/index.d.ts +3 -0
- package/dist/step-list/index.d.ts.map +1 -0
- package/dist/step-list/index.js +2 -0
- package/dist/step-list/index.js.map +1 -0
- package/dist/step-list/step-list.css +224 -0
- package/dist/step-list/step-list.d.ts +211 -0
- package/dist/step-list/step-list.d.ts.map +1 -0
- package/dist/step-list/step-list.js +242 -0
- package/dist/step-list/step-list.js.map +1 -0
- 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/suggestion/index.d.ts +3 -0
- package/dist/suggestion/index.d.ts.map +1 -0
- package/dist/suggestion/index.js +2 -0
- package/dist/suggestion/index.js.map +1 -0
- package/dist/suggestion/suggestion.css +45 -0
- package/dist/suggestion/suggestion.d.ts +23 -0
- package/dist/suggestion/suggestion.d.ts.map +1 -0
- package/dist/suggestion/suggestion.js +45 -0
- package/dist/suggestion/suggestion.js.map +1 -0
- package/dist/surface/surface.css +112 -0
- package/dist/switch/switch.css +1 -6
- package/dist/text-field/text-field.css +11 -2
- package/dist/thread/thread.css +2 -10
- package/dist/thread/thread.js +1 -1
- package/dist/thread/thread.js.map +1 -1
- package/dist/tile-picker/index.d.ts +1 -1
- package/dist/tile-picker/index.d.ts.map +1 -1
- package/dist/tile-picker/tile-picker.css +56 -10
- package/dist/tile-picker/tile-picker.d.ts +64 -7
- package/dist/tile-picker/tile-picker.d.ts.map +1 -1
- package/dist/tile-picker/tile-picker.js +79 -47
- package/dist/tile-picker/tile-picker.js.map +1 -1
- package/dist/tile-search/index.d.ts +7 -0
- package/dist/tile-search/index.d.ts.map +1 -0
- package/dist/tile-search/index.js +7 -0
- package/dist/tile-search/index.js.map +1 -0
- package/dist/tile-search/narrow.d.ts +22 -0
- package/dist/tile-search/narrow.d.ts.map +1 -0
- package/dist/tile-search/narrow.js +62 -0
- package/dist/tile-search/narrow.js.map +1 -0
- package/dist/tile-search/search-box.d.ts +19 -0
- package/dist/tile-search/search-box.d.ts.map +1 -0
- package/dist/tile-search/search-box.js +47 -0
- package/dist/tile-search/search-box.js.map +1 -0
- package/dist/tooltip/tooltip.css +13 -20
- package/dist/tooltip/tooltip.d.ts +2 -2
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -2
- package/dist/tooltip/tooltip.js.map +1 -1
- package/dist/workbench/workbench.css +128 -4
- package/dist/workbench/workbench.d.ts +28 -1
- package/dist/workbench/workbench.d.ts.map +1 -1
- package/dist/workbench/workbench.js +13 -4
- package/dist/workbench/workbench.js.map +1 -1
- package/package.json +43 -1
- 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/floating-bar/menu.d.ts.map +0 -1
- package/dist/floating-bar/menu.js.map +0 -1
|
@@ -38,6 +38,30 @@
|
|
|
38
38
|
grid-column: 1 / 4;
|
|
39
39
|
padding-inline-start: 0;
|
|
40
40
|
}
|
|
41
|
+
/* Row 1 is one continuous bar (Joshua 2026-11-11): the 1px gap between ABC1 and D1 is filled with the bar's own ground,
|
|
42
|
+
* and an upright divider stands in that same pixel, so it lines up with D2's edge below. As tall as the bar's other
|
|
43
|
+
* divider (AppFrameDivider: 20px, divider.secondary). Its own element in the grid, not in a cell, so no cell's overflow clips it.
|
|
44
|
+
* 20px the bar's divider height */
|
|
45
|
+
.newtone-workbench-top[data-cell='d1'] {
|
|
46
|
+
box-shadow: -1px 0 0 var(--newtone-role-surface-primary);
|
|
47
|
+
}
|
|
48
|
+
.newtone-workbench {
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
/* The seam: out of flow, so it takes no grid slot. Its containing block is D1's grid area; it stands 1px before it. */
|
|
52
|
+
.newtone-workbench-seam {
|
|
53
|
+
position: absolute;
|
|
54
|
+
grid-row: 1 / 2;
|
|
55
|
+
grid-column: 4 / 5;
|
|
56
|
+
inset-inline-start: -1px;
|
|
57
|
+
inset-block: 0;
|
|
58
|
+
z-index: 1;
|
|
59
|
+
margin-block: auto;
|
|
60
|
+
inline-size: 1px;
|
|
61
|
+
block-size: 20px;
|
|
62
|
+
background: var(--newtone-role-divider-secondary);
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
41
65
|
/* The app's mark, centred in a square as wide as A and as tall as row 1: on the rail's icons' centre line, whatever
|
|
42
66
|
* its size. The whole square is the home link (Joshua 2026-11-09: 56 x 56 to press). */
|
|
43
67
|
.newtone-workbench-home {
|
|
@@ -69,7 +93,7 @@
|
|
|
69
93
|
z-index: 2;
|
|
70
94
|
overflow: visible;
|
|
71
95
|
}
|
|
72
|
-
.newtone-workbench-cell[data-cell='b2']:not([data-foot]),
|
|
96
|
+
.newtone-workbench-cell[data-cell='b2']:not([data-foot], [data-head]),
|
|
73
97
|
.newtone-workbench-cell[data-cell='b2'] > .newtone-workbench-scroll {
|
|
74
98
|
padding: var(--newtone-space-2);
|
|
75
99
|
overflow-y: auto;
|
|
@@ -85,13 +109,16 @@
|
|
|
85
109
|
* for a list. */
|
|
86
110
|
.newtone-workbench-cell[data-cell='b2']:has(> .newtone-beside-head) {
|
|
87
111
|
padding: 0;
|
|
112
|
+
/* The panel scrolls in its own body: no scrollbar room kept here, so it is as far from the right as from the left
|
|
113
|
+
* (Joshua 2026-11-11). */
|
|
114
|
+
scrollbar-gutter: auto;
|
|
88
115
|
}
|
|
89
116
|
/* B2 with a bar at its foot (Slides' adds, Joshua 2026-11-10): the cell holds still and its list scrolls inside it, so
|
|
90
117
|
* the bar stays put while the slides pass under it. The bar is as far in as the corner's bar is in C2 (space.2 from the
|
|
91
118
|
* sides and the foot) and as tall (46px: 36px tools, space.1 round them, the 1px edge); the list keeps that height and
|
|
92
119
|
* both its insets below its end, so the last slide scrolls clear of it.
|
|
93
120
|
* 46px the room for the bar: FloatingBar's own height (a 36px tool, space.1 above and below it, the 1px edge) */
|
|
94
|
-
.newtone-workbench-cell[data-cell='b2'][data-foot] {
|
|
121
|
+
.newtone-workbench-cell[data-cell='b2']:is([data-foot], [data-head]) {
|
|
95
122
|
display: grid;
|
|
96
123
|
grid-template-rows: minmax(0, 1fr);
|
|
97
124
|
overflow: hidden;
|
|
@@ -106,6 +133,30 @@
|
|
|
106
133
|
padding: 0 0 calc(46px + 2 * var(--newtone-space-2));
|
|
107
134
|
scrollbar-gutter: auto;
|
|
108
135
|
}
|
|
136
|
+
/* B2 with a field at its head (Show's Layouts: which layouts, typed to search; Joshua 2026-11-11): the field stands
|
|
137
|
+
* space.2 in from the sides and the top, as the foot's bar does from the foot, and the list keeps that room above its
|
|
138
|
+
* first slide, then the same space.4 a lone list keeps there, so the slides start clear of it and pass under it.
|
|
139
|
+
* the field's height: the text field box's (its padding-y twice and its line height) */
|
|
140
|
+
.newtone-workbench-cell[data-cell='b2'][data-head] > .newtone-workbench-scroll {
|
|
141
|
+
padding-block-start: calc(
|
|
142
|
+
var(--newtone-space-2) + var(--newtone-text-field-box-padding-y) * 2 + var(--newtone-text-field-box-line-height) +
|
|
143
|
+
var(--newtone-space-4)
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
.newtone-workbench-cell[data-cell='b2']:not([data-foot]) > .newtone-workbench-scroll {
|
|
147
|
+
padding-block-end: var(--newtone-space-2);
|
|
148
|
+
}
|
|
149
|
+
.newtone-workbench-head {
|
|
150
|
+
position: absolute;
|
|
151
|
+
inset-inline: var(--newtone-space-2);
|
|
152
|
+
inset-block-start: var(--newtone-space-2);
|
|
153
|
+
z-index: 1;
|
|
154
|
+
display: flex;
|
|
155
|
+
}
|
|
156
|
+
.newtone-workbench-head > * {
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-inline-size: 0;
|
|
159
|
+
}
|
|
109
160
|
/* Where a foot's bar stands: space.2 from the panel's sides and foot. The bar is glass (the foot is a glass boundary,
|
|
110
161
|
* workbench.tsx) and spans the panel with its `fill` (Joshua 2026-11-11); its look is FloatingBar's and material.css's. */
|
|
111
162
|
.newtone-workbench-foot {
|
|
@@ -120,10 +171,11 @@
|
|
|
120
171
|
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
121
172
|
overflow: hidden;
|
|
122
173
|
}
|
|
123
|
-
/* C2's screen (Joshua 2026-11-11): the whole panel,
|
|
124
|
-
*
|
|
174
|
+
/* C2's screen (Joshua 2026-11-11): the whole panel, deep and plain. No bezel, no inset shadow, no gradient: the slide
|
|
175
|
+
* on it is what stands raised (Canvas.Frame `card`, its lit edge and low shadow in material.css). */
|
|
125
176
|
.newtone-workbench-screen {
|
|
126
177
|
position: relative;
|
|
178
|
+
background: var(--newtone-role-surface-primary);
|
|
127
179
|
display: flex;
|
|
128
180
|
flex-direction: column;
|
|
129
181
|
min-inline-size: 0;
|
|
@@ -149,6 +201,32 @@
|
|
|
149
201
|
.newtone-workbench[data-newtone-workbench-folded] > [data-cell='c2'] {
|
|
150
202
|
grid-column: 2 / 4;
|
|
151
203
|
}
|
|
204
|
+
/* `dock` (Joshua 2026-11-14, Style Book's variant tabs): a bar centred at C2's foot, space.2 up, and `dockEnd`'s pill
|
|
205
|
+
* space.2 after it, the two centred together as Canvas.Dock's are. Only they take presses: the page scrolls under the
|
|
206
|
+
* rest. A page on the screen ends the bar's room (46px + 2 × space.2) higher, so its last row clears it. */
|
|
207
|
+
.newtone-workbench-dock {
|
|
208
|
+
position: absolute;
|
|
209
|
+
inset-inline: var(--newtone-space-2);
|
|
210
|
+
inset-block-end: var(--newtone-space-2);
|
|
211
|
+
z-index: 4;
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: var(--newtone-space-2);
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
.newtone-workbench-dock > * {
|
|
219
|
+
pointer-events: auto;
|
|
220
|
+
min-inline-size: 0;
|
|
221
|
+
}
|
|
222
|
+
.newtone-workbench-dock-end {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
flex: none;
|
|
226
|
+
}
|
|
227
|
+
.newtone-workbench-screen[data-dock] > .newtone-workbench-page > .newtone-workbench-page-column {
|
|
228
|
+
padding-block-end: calc(46px + 2 * var(--newtone-space-2) + var(--newtone-space-8));
|
|
229
|
+
}
|
|
152
230
|
.newtone-workbench-corner {
|
|
153
231
|
position: absolute;
|
|
154
232
|
inset-block-end: var(--newtone-space-2);
|
|
@@ -246,3 +324,49 @@
|
|
|
246
324
|
scrollbar-color: var(--newtone-role-divider-secondary) transparent;
|
|
247
325
|
}
|
|
248
326
|
}
|
|
327
|
+
|
|
328
|
+
/* A panel's scrollbar never crosses its glass head or foot (Joshua 2026-11-11): the list passes under them, its
|
|
329
|
+
* scrollbar stops short of them: the thumb as far from the bar as the bar is from the panel's edge (Joshua 2026-11-11:
|
|
330
|
+
* space.2 both sides). The track is the workbench's styled one (above); WebKit and Chrome take its margins.
|
|
331
|
+
* 46px the foot's bar (above); the head's field is the text field box's height
|
|
332
|
+
* -4px the thumb's own transparent border at the track's ends, which already keeps 4px of that space.2 */
|
|
333
|
+
.newtone-workbench-cell[data-cell='b2'] > .newtone-workbench-scroll,
|
|
334
|
+
.newtone-workbench-cell[data-cell='d2'] > .newtone-inspector {
|
|
335
|
+
--_track-start: 0px;
|
|
336
|
+
--_track-end: 0px;
|
|
337
|
+
}
|
|
338
|
+
.newtone-workbench-cell[data-cell='b2'][data-head] > .newtone-workbench-scroll {
|
|
339
|
+
--_track-start: calc(var(--newtone-space-2) * 2 + var(--newtone-text-field-box-padding-y) * 2 + var(--newtone-text-field-box-line-height) - 4px);
|
|
340
|
+
}
|
|
341
|
+
.newtone-workbench-cell[data-cell='b2'][data-foot] > .newtone-workbench-scroll,
|
|
342
|
+
.newtone-workbench-cell[data-cell='d2'][data-foot] > .newtone-inspector {
|
|
343
|
+
--_track-end: calc(46px + var(--newtone-space-2) * 2 - 4px);
|
|
344
|
+
}
|
|
345
|
+
:is(.newtone-workbench-cell[data-cell='b2'] > .newtone-workbench-scroll, .newtone-workbench-cell[data-cell='d2'] > .newtone-inspector)::-webkit-scrollbar-track {
|
|
346
|
+
margin-top: var(--_track-start);
|
|
347
|
+
margin-bottom: var(--_track-end);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* Workbench.Page (2026-11-14, Style Book): a page on the deep screen that scrolls on its own, its content centered. */
|
|
351
|
+
.newtone-workbench-screen > .newtone-workbench-page {
|
|
352
|
+
flex: 1 1 0;
|
|
353
|
+
min-block-size: 0;
|
|
354
|
+
overflow-y: auto;
|
|
355
|
+
overscroll-behavior: contain;
|
|
356
|
+
}
|
|
357
|
+
.newtone-workbench-page-column {
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
max-inline-size: 48rem;
|
|
360
|
+
margin-inline: auto;
|
|
361
|
+
padding: var(--newtone-space-8) var(--newtone-space-6) var(--newtone-space-16);
|
|
362
|
+
}
|
|
363
|
+
.newtone-workbench-page-column[data-wide] {
|
|
364
|
+
max-inline-size: 72rem;
|
|
365
|
+
}
|
|
366
|
+
/* `fill` (2026-11-14): at least the screen's height, padding inside it, its children a column; one may grow. */
|
|
367
|
+
.newtone-workbench-page-column[data-fill] {
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
gap: var(--newtone-space-6);
|
|
371
|
+
min-block-size: 100%;
|
|
372
|
+
}
|
|
@@ -34,9 +34,19 @@ export interface WorkbenchProps {
|
|
|
34
34
|
folded?: boolean;
|
|
35
35
|
/** A small bar in C2's bottom-left corner, `space.2` in (Slides' views): glass. */
|
|
36
36
|
corner?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* A bar centred at C2's foot, `space.2` up, for a screen that is not a `Canvas` (Joshua 2026-11-14, Style Book: the
|
|
39
|
+
* variants as tabs, + at the bar's end): what `Canvas.Dock` is on a canvas. Glass; the page scrolls under it.
|
|
40
|
+
*/
|
|
41
|
+
dock?: ReactNode;
|
|
42
|
+
/** A pill of its own `space.2` after the dock's bar, the two centred together (Style Book's Ask, as Slides'). */
|
|
43
|
+
dockEnd?: ReactNode;
|
|
37
44
|
/** A bar at B2's foot, its slides passing under it (Slides' adds, Joshua 2026-11-10): as tall as the corner's bar and
|
|
38
45
|
* as far in, and glass, as the corner's is (Joshua 2026-11-11). Give its `FloatingBar` `fill` to span the panel. */
|
|
39
46
|
b2Foot?: ReactNode;
|
|
47
|
+
/** A field at B2's head, the list passing under it (Show's Layouts: which layouts, typed to search; Joshua
|
|
48
|
+
* 2026-11-11): glass and flat, `space.2` in from the panel's sides and top, as the foot's bar is from its foot. */
|
|
49
|
+
b2Head?: ReactNode;
|
|
40
50
|
/** The same bar at D2's foot (Slides' Layout panel: Edit layout, Add layout; Joshua 2026-11-11), the panel passing under it. */
|
|
41
51
|
d2Foot?: ReactNode;
|
|
42
52
|
/** What each panel of the second row is, for a screen reader. */
|
|
@@ -47,5 +57,22 @@ export interface WorkbenchProps {
|
|
|
47
57
|
};
|
|
48
58
|
className?: string;
|
|
49
59
|
}
|
|
50
|
-
|
|
60
|
+
declare function WorkbenchRoot({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, dock, dockEnd, labels, className }: WorkbenchProps): import("react").JSX.Element;
|
|
61
|
+
/**
|
|
62
|
+
* A page on C2's deep screen (2026-11-14, HuevOS's Style Book: palettes, forms): it scrolls on its own, its content
|
|
63
|
+
* centered in a reading column (`wide`: 72rem, else 48rem), as a slide is centered on the screen. For anything that is
|
|
64
|
+
* not a canvas.
|
|
65
|
+
*/
|
|
66
|
+
declare function WorkbenchPage({ wide, fill, label, children }: {
|
|
67
|
+
wide?: boolean;
|
|
68
|
+
/** Its column as tall as the screen at least, its children a column `space.6` apart, so one of them can take the
|
|
69
|
+
* height left (Joshua 2026-11-14, Style Book's All palettes: DynamicRange `fill`). */
|
|
70
|
+
fill?: boolean;
|
|
71
|
+
label?: string;
|
|
72
|
+
children?: ReactNode;
|
|
73
|
+
}): import("react").JSX.Element;
|
|
74
|
+
export declare const Workbench: typeof WorkbenchRoot & {
|
|
75
|
+
Page: typeof WorkbenchPage;
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
51
78
|
//# sourceMappingURL=workbench.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbench.d.ts","sourceRoot":"","sources":["../../src/workbench/workbench.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AActC;;;;;;;;;;;;GAYG;AACH,MAAM,WAA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AAE,OAAO,CAAA;IACd;0FACsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB,+BAMA;AAED,eAAO,MAAM,SAAS;;CAAwD,CAAA"}
|
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { AppFrameDivider } from '../app-frame/parts.js';
|
|
4
4
|
import { MaterialContext } from '../material/material.js';
|
|
5
|
-
// The bars at a panel's foot and in C2's corner float over what passes under them, so they are glass
|
|
6
|
-
//
|
|
5
|
+
// The bars at a panel's foot and in C2's corner float over what passes under them, so they are glass. C2 is a plain
|
|
6
|
+
// deep panel: the file on it stands raised by its own edge and shadow (Joshua 2026-11-11, crystal taken off). material.md.
|
|
7
7
|
function Glass({ className, children }) {
|
|
8
8
|
return (_jsx("div", { className: className, "data-newtone-material": "glass", children: _jsx(MaterialContext.Provider, { value: "glass", children: children }) }));
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
return (_jsxs("div", { className: ['newtone-workbench', className].filter(Boolean).join(' '), "data-newtone-surface": "", "data-newtone-elevation": "base", "data-newtone-workbench-folded": folded ? '' : undefined, children: [_jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "abc1", children: [a1 ? _jsx("span", { className: "newtone-workbench-home", children: a1 }) : null, b1, b1 && c1 ? _jsx(AppFrameDivider, {}) : null, c1, c1End ? _jsx("div", { className: "newtone-workbench-end", children: c1End }) : null] }), _jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "d1", children: [d1, d1End ? _jsx("div", { className: "newtone-workbench-end", children: d1End }) : null] }), _jsx("nav", { className: "newtone-workbench-cell", "data-cell": "a2", "aria-label": labels.a2, children: a2 }), folded ? null : b2Foot ? (_jsxs("div", { className: "newtone-workbench-cell", "data-cell": "b2", "data-foot": "", role: "region", "aria-label": labels.b2, children: [_jsx("div", { className: "newtone-workbench-scroll", children: b2 }), _jsx(Glass, { className: "newtone-workbench-foot", children: b2Foot })] })) : (_jsx("div", { className: "newtone-workbench-cell", "data-cell": "b2", role: "region", "aria-label": labels.b2, children: b2 })), _jsx("main", { className: "newtone-workbench-cell", "data-cell": "c2", children:
|
|
10
|
+
function WorkbenchRoot({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, dock, dockEnd, labels = {}, className }) {
|
|
11
|
+
return (_jsxs("div", { className: ['newtone-workbench', className].filter(Boolean).join(' '), "data-newtone-surface": "", "data-newtone-elevation": "base", "data-newtone-workbench-folded": folded ? '' : undefined, children: [_jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "abc1", children: [a1 ? _jsx("span", { className: "newtone-workbench-home", children: a1 }) : null, b1, b1 && c1 ? _jsx(AppFrameDivider, {}) : null, c1, c1End ? _jsx("div", { className: "newtone-workbench-end", children: c1End }) : null] }), _jsx("span", { className: "newtone-workbench-seam", "aria-hidden": "true" }), _jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "d1", children: [d1, d1End ? _jsx("div", { className: "newtone-workbench-end", children: d1End }) : null] }), _jsx("nav", { className: "newtone-workbench-cell", "data-cell": "a2", "aria-label": labels.a2, children: a2 }), folded ? null : b2Foot || b2Head ? (_jsxs("div", { className: "newtone-workbench-cell", "data-cell": "b2", "data-foot": b2Foot ? '' : undefined, "data-head": b2Head ? '' : undefined, role: "region", "aria-label": labels.b2, children: [_jsx("div", { className: "newtone-workbench-scroll", children: b2 }), b2Head ? _jsx(Glass, { className: "newtone-workbench-head", children: b2Head }) : null, b2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: b2Foot }) : null] })) : (_jsx("div", { className: "newtone-workbench-cell", "data-cell": "b2", role: "region", "aria-label": labels.b2, children: b2 })), _jsx("main", { className: "newtone-workbench-cell", "data-cell": "c2", children: _jsxs("div", { className: "newtone-workbench-screen", "data-newtone-surface": "", "data-newtone-elevation": "deep", "data-dock": dock || dockEnd ? '' : undefined, children: [c2, dock || dockEnd ? (_jsxs(Glass, { className: "newtone-workbench-dock", children: [dock, dockEnd ? _jsx("div", { className: "newtone-workbench-dock-end", children: dockEnd }) : null] })) : null, corner ? _jsx(Glass, { className: "newtone-workbench-corner", children: corner }) : null] }) }), _jsxs("aside", { className: "newtone-workbench-cell", "data-cell": "d2", "data-foot": d2Foot ? '' : undefined, "aria-label": labels.d2, children: [d2, d2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: d2Foot }) : null] })] }));
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A page on C2's deep screen (2026-11-14, HuevOS's Style Book: palettes, forms): it scrolls on its own, its content
|
|
15
|
+
* centered in a reading column (`wide`: 72rem, else 48rem), as a slide is centered on the screen. For anything that is
|
|
16
|
+
* not a canvas.
|
|
17
|
+
*/
|
|
18
|
+
function WorkbenchPage({ wide = false, fill = false, label, children }) {
|
|
19
|
+
return (_jsx("div", { className: "newtone-workbench-page", role: label ? 'region' : undefined, "aria-label": label, children: _jsx("div", { className: "newtone-workbench-page-column", "data-wide": wide ? '' : undefined, "data-fill": fill ? '' : undefined, children: children }) }));
|
|
20
|
+
}
|
|
21
|
+
export const Workbench = Object.assign(WorkbenchRoot, { Page: WorkbenchPage });
|
|
13
22
|
//# sourceMappingURL=workbench.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbench.js","sourceRoot":"","sources":["../../src/workbench/workbench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,
|
|
1
|
+
{"version":3,"file":"workbench.js","sourceRoot":"","sources":["../../src/workbench/workbench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EA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"version": "0.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -286,6 +286,10 @@
|
|
|
286
286
|
"types": "./dist/dot/index.d.ts",
|
|
287
287
|
"default": "./dist/dot/index.js"
|
|
288
288
|
},
|
|
289
|
+
"./dynamic-range": {
|
|
290
|
+
"types": "./dist/dynamic-range/index.d.ts",
|
|
291
|
+
"default": "./dist/dynamic-range/index.js"
|
|
292
|
+
},
|
|
289
293
|
"./edged": {
|
|
290
294
|
"types": "./dist/edged/index.d.ts",
|
|
291
295
|
"default": "./dist/edged/index.js"
|
|
@@ -354,6 +358,30 @@
|
|
|
354
358
|
"types": "./dist/font-picker/index.d.ts",
|
|
355
359
|
"default": "./dist/font-picker/index.js"
|
|
356
360
|
},
|
|
361
|
+
"./seed-roundness-field": {
|
|
362
|
+
"types": "./dist/seed-roundness-field/index.d.ts",
|
|
363
|
+
"default": "./dist/seed-roundness-field/index.js"
|
|
364
|
+
},
|
|
365
|
+
"./seed-contrast-field": {
|
|
366
|
+
"types": "./dist/seed-contrast-field/index.d.ts",
|
|
367
|
+
"default": "./dist/seed-contrast-field/index.js"
|
|
368
|
+
},
|
|
369
|
+
"./curve-field": {
|
|
370
|
+
"types": "./dist/curve-field/index.d.ts",
|
|
371
|
+
"default": "./dist/curve-field/index.js"
|
|
372
|
+
},
|
|
373
|
+
"./step-strip": {
|
|
374
|
+
"types": "./dist/step-strip/index.d.ts",
|
|
375
|
+
"default": "./dist/step-strip/index.js"
|
|
376
|
+
},
|
|
377
|
+
"./step-list": {
|
|
378
|
+
"types": "./dist/step-list/index.d.ts",
|
|
379
|
+
"default": "./dist/step-list/index.js"
|
|
380
|
+
},
|
|
381
|
+
"./suggestion": {
|
|
382
|
+
"types": "./dist/suggestion/index.d.ts",
|
|
383
|
+
"default": "./dist/suggestion/index.js"
|
|
384
|
+
},
|
|
357
385
|
"./discover": {
|
|
358
386
|
"types": "./dist/discover/index.d.ts",
|
|
359
387
|
"default": "./dist/discover/index.js"
|
|
@@ -386,6 +414,10 @@
|
|
|
386
414
|
"types": "./dist/node-map/index.d.ts",
|
|
387
415
|
"default": "./dist/node-map/index.js"
|
|
388
416
|
},
|
|
417
|
+
"./diagram": {
|
|
418
|
+
"types": "./dist/diagram/index.d.ts",
|
|
419
|
+
"default": "./dist/diagram/index.js"
|
|
420
|
+
},
|
|
389
421
|
"./file-grid": {
|
|
390
422
|
"types": "./dist/file-grid/index.d.ts",
|
|
391
423
|
"default": "./dist/file-grid/index.js"
|
|
@@ -428,6 +460,7 @@
|
|
|
428
460
|
"./faces.css": "./dist/faces/faces.css",
|
|
429
461
|
"./button.css": "./dist/button/button.css",
|
|
430
462
|
"./card-box.css": "./dist/card-box/card-box.css",
|
|
463
|
+
"./surface.css": "./dist/surface/surface.css",
|
|
431
464
|
"./card-grid.css": "./dist/card-grid/card-grid.css",
|
|
432
465
|
"./tooltip.css": "./dist/tooltip/tooltip.css",
|
|
433
466
|
"./control.css": "./dist/control/control.css",
|
|
@@ -493,6 +526,7 @@
|
|
|
493
526
|
"./thread.css": "./dist/thread/thread.css",
|
|
494
527
|
"./beside.css": "./dist/beside/beside.css",
|
|
495
528
|
"./dot.css": "./dist/dot/dot.css",
|
|
529
|
+
"./dynamic-range.css": "./dist/dynamic-range/dynamic-range.css",
|
|
496
530
|
"./edged.css": "./dist/edged/edged.css",
|
|
497
531
|
"./divided.css": "./dist/divided/divided.css",
|
|
498
532
|
"./gate.css": "./dist/gate/gate.css",
|
|
@@ -510,6 +544,12 @@
|
|
|
510
544
|
"./look-thumb.css": "./dist/look-thumb/look-thumb.css",
|
|
511
545
|
"./seed-color-field.css": "./dist/seed-color-field/seed-color-field.css",
|
|
512
546
|
"./font-picker.css": "./dist/font-picker/font-picker.css",
|
|
547
|
+
"./seed-roundness-field.css": "./dist/seed-roundness-field/seed-roundness-field.css",
|
|
548
|
+
"./seed-contrast-field.css": "./dist/seed-contrast-field/seed-contrast-field.css",
|
|
549
|
+
"./curve-field.css": "./dist/curve-field/curve-field.css",
|
|
550
|
+
"./step-strip.css": "./dist/step-strip/step-strip.css",
|
|
551
|
+
"./step-list.css": "./dist/step-list/step-list.css",
|
|
552
|
+
"./suggestion.css": "./dist/suggestion/suggestion.css",
|
|
513
553
|
"./discover.css": "./dist/discover/discover.css",
|
|
514
554
|
"./hint.css": "./dist/hint/hint.css",
|
|
515
555
|
"./stage.css": "./dist/stage/stage.css",
|
|
@@ -518,6 +558,7 @@
|
|
|
518
558
|
"./color-field.css": "./dist/color-field/color-field.css",
|
|
519
559
|
"./number-field.css": "./dist/number-field/number-field.css",
|
|
520
560
|
"./node-map.css": "./dist/node-map/node-map.css",
|
|
561
|
+
"./diagram.css": "./dist/diagram/diagram.css",
|
|
521
562
|
"./file-grid.css": "./dist/file-grid/file-grid.css",
|
|
522
563
|
"./crumbs.css": "./dist/crumbs/crumbs.css",
|
|
523
564
|
"./drop-zone.css": "./dist/drop-zone/drop-zone.css",
|
|
@@ -529,6 +570,7 @@
|
|
|
529
570
|
"./text-diff.css": "./dist/text-diff/text-diff.css"
|
|
530
571
|
},
|
|
531
572
|
"peerDependencies": {
|
|
573
|
+
"@newtone-dev/ui-tokens": ">=0.47.0 <1",
|
|
532
574
|
"react": "^18 || ^19"
|
|
533
575
|
},
|
|
534
576
|
"scripts": {
|
package/dist/color/gamut.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Oklch, Gamut } from './oklch.js';
|
|
2
|
-
/**
|
|
3
|
-
* The largest chroma that fits, at this lightness and hue, in this gamut. Section 6.6.
|
|
4
|
-
*
|
|
5
|
-
* `0.5` is above the largest chroma any real hue reaches in either gamut, so it is a safe
|
|
6
|
-
* upper bracket, and the early return costs one check and saves twenty. The endpoints
|
|
7
|
-
* return 0 because the gamut narrows to a point at black and white -- which is what pins
|
|
8
|
-
* step 0 to pure white.
|
|
9
|
-
*/
|
|
10
|
-
export declare function maxChroma(lightness: number, hue: number, gamut: Gamut): number;
|
|
11
|
-
/**
|
|
12
|
-
* The colour at a lightness on a palette's vector. Section 6.6.
|
|
13
|
-
*
|
|
14
|
-
* The ratio is applied against the P3 ceiling and then clamped to the target gamut, so a
|
|
15
|
-
* colour that fits inside sRGB is the SAME colour on both -- `min` is a no-op until P3 is
|
|
16
|
-
* genuinely wider. This is a ceiling, not a mapping: nothing overflows, so there is
|
|
17
|
-
* nothing to map back down, and L and H are preserved by construction.
|
|
18
|
-
*/
|
|
19
|
-
export declare function colorAt(hue: number, chroma: number, gamut: Gamut, lightness: number): Oklch;
|
|
20
|
-
//# sourceMappingURL=gamut.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gamut.d.ts","sourceRoot":"","sources":["../../src/color/gamut.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAK,MAAM,YAAY,CAAA;AAkCjD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAiB9E;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAM3F"}
|
package/dist/color/gamut.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// The gamut: how much chroma actually fits at a given lightness and hue.
|
|
2
|
-
//
|
|
3
|
-
// Contract sections 6.4 and 6.6. This is the half that runs inside two nested searches
|
|
4
|
-
// fifty-one times per palette, which is why `inGamutRaw` is inlined rather than composed
|
|
5
|
-
// out of `mul`.
|
|
6
|
-
//
|
|
7
|
-
// Private to `color/`. What leaves the folder is decided by index.ts.
|
|
8
|
-
import { EPSILON, DEG_TO_RAD, clamp01, SRGB_R, SRGB_G, SRGB_B, P3_R, P3_G, P3_B } from './oklch.js';
|
|
9
|
-
// Inlined rather than composed out of `mul`: this runs inside two nested searches, 51
|
|
10
|
-
// times per palette, and the allocation showed.
|
|
11
|
-
function inGamutRaw(l, cosH, sinH, c, mr, mg, mb) {
|
|
12
|
-
const a = c * cosH;
|
|
13
|
-
const b = c * sinH;
|
|
14
|
-
const l_ = l + 0.3963377774 * a + 0.2158037573 * b;
|
|
15
|
-
const m_ = l - 0.1055613458 * a - 0.0638541728 * b;
|
|
16
|
-
const s_ = l - 0.0894841775 * a - 1.291485548 * b;
|
|
17
|
-
const lc = l_ * l_ * l_;
|
|
18
|
-
const mc = m_ * m_ * m_;
|
|
19
|
-
const sc = s_ * s_ * s_;
|
|
20
|
-
const r = mr[0] * lc + mr[1] * mc + mr[2] * sc;
|
|
21
|
-
if (r < -EPSILON || r > 1 + EPSILON)
|
|
22
|
-
return false;
|
|
23
|
-
const g = mg[0] * lc + mg[1] * mc + mg[2] * sc;
|
|
24
|
-
if (g < -EPSILON || g > 1 + EPSILON)
|
|
25
|
-
return false;
|
|
26
|
-
const bb = mb[0] * lc + mb[1] * mc + mb[2] * sc;
|
|
27
|
-
return bb >= -EPSILON && bb <= 1 + EPSILON;
|
|
28
|
-
}
|
|
29
|
-
const matrices = (gamut) => gamut === 'p3' ? [P3_R, P3_G, P3_B] : [SRGB_R, SRGB_G, SRGB_B];
|
|
30
|
-
/**
|
|
31
|
-
* The largest chroma that fits, at this lightness and hue, in this gamut. Section 6.6.
|
|
32
|
-
*
|
|
33
|
-
* `0.5` is above the largest chroma any real hue reaches in either gamut, so it is a safe
|
|
34
|
-
* upper bracket, and the early return costs one check and saves twenty. The endpoints
|
|
35
|
-
* return 0 because the gamut narrows to a point at black and white -- which is what pins
|
|
36
|
-
* step 0 to pure white.
|
|
37
|
-
*/
|
|
38
|
-
export function maxChroma(lightness, hue, gamut) {
|
|
39
|
-
if (lightness <= 0 || lightness >= 1)
|
|
40
|
-
return 0;
|
|
41
|
-
const [mr, mg, mb] = matrices(gamut);
|
|
42
|
-
const cosH = Math.cos(hue * DEG_TO_RAD);
|
|
43
|
-
const sinH = Math.sin(hue * DEG_TO_RAD);
|
|
44
|
-
let lo = 0;
|
|
45
|
-
let hi = 0.5;
|
|
46
|
-
if (inGamutRaw(lightness, cosH, sinH, hi, mr, mg, mb))
|
|
47
|
-
return hi;
|
|
48
|
-
for (let i = 0; i < 20; i++) {
|
|
49
|
-
const mid = (lo + hi) / 2;
|
|
50
|
-
if (inGamutRaw(lightness, cosH, sinH, mid, mr, mg, mb))
|
|
51
|
-
lo = mid;
|
|
52
|
-
else
|
|
53
|
-
hi = mid;
|
|
54
|
-
}
|
|
55
|
-
return lo;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* The colour at a lightness on a palette's vector. Section 6.6.
|
|
59
|
-
*
|
|
60
|
-
* The ratio is applied against the P3 ceiling and then clamped to the target gamut, so a
|
|
61
|
-
* colour that fits inside sRGB is the SAME colour on both -- `min` is a no-op until P3 is
|
|
62
|
-
* genuinely wider. This is a ceiling, not a mapping: nothing overflows, so there is
|
|
63
|
-
* nothing to map back down, and L and H are preserved by construction.
|
|
64
|
-
*/
|
|
65
|
-
export function colorAt(hue, chroma, gamut, lightness) {
|
|
66
|
-
const l = clamp01(lightness);
|
|
67
|
-
const ratio = clamp01(chroma);
|
|
68
|
-
const absolute = maxChroma(l, hue, 'p3') * ratio;
|
|
69
|
-
const c = gamut === 'p3' ? absolute : Math.min(absolute, maxChroma(l, hue, 'srgb'));
|
|
70
|
-
return { l, c, h: hue };
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=gamut.js.map
|
package/dist/color/gamut.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gamut.js","sourceRoot":"","sources":["../../src/color/gamut.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,EAAE;AACF,uFAAuF;AACvF,yFAAyF;AACzF,gBAAgB;AAChB,EAAE;AACF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