@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
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* LENGTHS IT DECIDES:
|
|
5
5
|
* 36px a control: a FloatingBar tool's height, so the same controls read the same docked or floating
|
|
6
|
-
*
|
|
6
|
+
* 6.5rem a row's name: room for "Background", or "Responsive" and its info glyph, at body-sm, so every row's
|
|
7
|
+
* controls start on one line (2026-11-11, was 5.5rem)
|
|
7
8
|
* 1px the hairline between sections */
|
|
8
9
|
.newtone-inspector {
|
|
9
10
|
gap: 0;
|
|
@@ -80,10 +81,19 @@
|
|
|
80
81
|
}
|
|
81
82
|
.newtone-inspector-row {
|
|
82
83
|
display: grid;
|
|
83
|
-
grid-template-columns:
|
|
84
|
+
grid-template-columns: 6.5rem minmax(0, 1fr);
|
|
84
85
|
align-items: center;
|
|
85
86
|
gap: var(--newtone-space-2);
|
|
86
87
|
}
|
|
88
|
+
/* Stacked: the name above, the controls under it across the whole width. */
|
|
89
|
+
.newtone-inspector-row:where([data-stack]) {
|
|
90
|
+
grid-template-columns: minmax(0, 1fr);
|
|
91
|
+
}
|
|
92
|
+
/* Across the whole width, shared evenly (2026-11-14, HuevOS's Colors panel): a strip of steps or number fields stacked
|
|
93
|
+
under their name, as wide segments already are. */
|
|
94
|
+
.newtone-inspector-row:where([data-stack]) > .newtone-inspector-row-controls > :is(.newtone-step-strip, .newtone-number-field) {
|
|
95
|
+
flex: 1 1 0;
|
|
96
|
+
}
|
|
87
97
|
.newtone-inspector-row-controls,
|
|
88
98
|
.newtone-inspector-tools {
|
|
89
99
|
display: flex;
|
|
@@ -99,6 +109,13 @@
|
|
|
99
109
|
.newtone-inspector-holder[data-wide] {
|
|
100
110
|
flex: 1 1 8rem;
|
|
101
111
|
}
|
|
112
|
+
/* A menu standing alone in a section (a selector under the head, 2026-11-11): the whole width, its own height. */
|
|
113
|
+
.newtone-inspector-section > .newtone-inspector-holder[data-wide] {
|
|
114
|
+
flex: none;
|
|
115
|
+
}
|
|
116
|
+
.newtone-inspector-section > .newtone-inspector-holder[data-wide] > .newtone-inspector-tool {
|
|
117
|
+
inline-size: 100%;
|
|
118
|
+
}
|
|
102
119
|
.newtone-inspector-tool {
|
|
103
120
|
all: unset;
|
|
104
121
|
position: relative;
|
|
@@ -167,6 +184,55 @@
|
|
|
167
184
|
border-radius: var(--newtone-radius-sm);
|
|
168
185
|
background: var(--newtone-segmented-control-track-fill);
|
|
169
186
|
}
|
|
187
|
+
/* Wide: the whole width, the segments sharing it evenly. */
|
|
188
|
+
.newtone-inspector-segments:where([data-wide]) {
|
|
189
|
+
display: flex;
|
|
190
|
+
inline-size: 100%;
|
|
191
|
+
}
|
|
192
|
+
.newtone-inspector-segments:where([data-wide]) > .newtone-inspector-segment {
|
|
193
|
+
flex: 1 1 0;
|
|
194
|
+
min-inline-size: 0;
|
|
195
|
+
padding-inline: var(--newtone-space-1);
|
|
196
|
+
}
|
|
197
|
+
/* Toggle: a row, its name the switch's label, the switch at the controls' end. */
|
|
198
|
+
.newtone-inspector-toggle {
|
|
199
|
+
min-block-size: 36px;
|
|
200
|
+
}
|
|
201
|
+
.newtone-inspector-toggle:where([data-disabled]) {
|
|
202
|
+
opacity: 0.35;
|
|
203
|
+
}
|
|
204
|
+
.newtone-inspector-row-name {
|
|
205
|
+
min-inline-size: 0;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
}
|
|
208
|
+
.newtone-inspector-toggle:where([data-disabled]) .newtone-inspector-row-name {
|
|
209
|
+
cursor: default;
|
|
210
|
+
}
|
|
211
|
+
/* A row's name and its info glyph, space.2 apart (Joshua 2026-11-11): the name gives way, the glyph never. */
|
|
212
|
+
.newtone-inspector-row-label {
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: var(--newtone-space-2);
|
|
216
|
+
min-inline-size: 0;
|
|
217
|
+
}
|
|
218
|
+
.newtone-inspector-info {
|
|
219
|
+
all: unset;
|
|
220
|
+
flex: none;
|
|
221
|
+
display: inline-flex;
|
|
222
|
+
border-radius: 50%;
|
|
223
|
+
color: var(--newtone-role-text-secondary);
|
|
224
|
+
cursor: help;
|
|
225
|
+
}
|
|
226
|
+
.newtone-inspector-info:hover {
|
|
227
|
+
color: var(--newtone-role-text-primary);
|
|
228
|
+
}
|
|
229
|
+
.newtone-inspector-info:focus-visible {
|
|
230
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
231
|
+
outline-offset: 1px;
|
|
232
|
+
}
|
|
233
|
+
.newtone-inspector-row-controls:where([data-end]) {
|
|
234
|
+
justify-content: flex-end;
|
|
235
|
+
}
|
|
170
236
|
.newtone-inspector-segments:where([data-disabled]) {
|
|
171
237
|
opacity: 0.35;
|
|
172
238
|
}
|
|
@@ -210,10 +276,305 @@
|
|
|
210
276
|
.newtone-inspector-action:where([data-tone='danger']) {
|
|
211
277
|
color: var(--newtone-role-text-error);
|
|
212
278
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
279
|
+
/* A press is taken from 4px round each tool, on every device (CHARTER non-negotiable 8; Joshua 2026-11-13). */
|
|
280
|
+
.newtone-inspector-tool::after {
|
|
281
|
+
content: '';
|
|
282
|
+
position: absolute;
|
|
283
|
+
inset: -4px;
|
|
284
|
+
}
|
|
285
|
+
/* Swatches (2026-11-12): circles alone; the chosen one ringed in the accent, a gap of the panel between. */
|
|
286
|
+
.newtone-inspector-swatches {
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-wrap: wrap;
|
|
289
|
+
align-items: center;
|
|
290
|
+
gap: var(--newtone-space-2);
|
|
291
|
+
}
|
|
292
|
+
/* Wide: one column each, the circles filling them (never past 48px), the row as wide as the panel. */
|
|
293
|
+
.newtone-inspector-swatches:where([data-wide]) {
|
|
294
|
+
flex: 1 1 100%;
|
|
295
|
+
display: grid;
|
|
296
|
+
grid-auto-flow: column;
|
|
297
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
298
|
+
justify-items: center;
|
|
299
|
+
}
|
|
300
|
+
.newtone-inspector-swatches:where([data-wide]) > .newtone-inspector-swatch-option {
|
|
301
|
+
inline-size: 100%;
|
|
302
|
+
max-inline-size: 48px;
|
|
303
|
+
block-size: auto;
|
|
304
|
+
aspect-ratio: 1;
|
|
305
|
+
}
|
|
306
|
+
.newtone-inspector-swatches:where([data-wide]) .newtone-inspector-swatch-dot {
|
|
307
|
+
inline-size: calc(100% - 6px);
|
|
308
|
+
block-size: calc(100% - 6px);
|
|
309
|
+
}
|
|
310
|
+
.newtone-inspector-swatches:where([data-disabled]) {
|
|
311
|
+
opacity: 0.35;
|
|
312
|
+
}
|
|
313
|
+
.newtone-inspector-swatch-option {
|
|
314
|
+
all: unset;
|
|
315
|
+
box-sizing: border-box;
|
|
316
|
+
display: inline-flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
justify-content: center;
|
|
319
|
+
inline-size: 32px;
|
|
320
|
+
block-size: 32px;
|
|
321
|
+
border-radius: 50%;
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
}
|
|
324
|
+
.newtone-inspector-swatch-dot {
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
inline-size: 24px;
|
|
327
|
+
block-size: 24px;
|
|
328
|
+
border-radius: 50%;
|
|
329
|
+
border: var(--newtone-line-thin) solid var(--newtone-role-divider-primary);
|
|
330
|
+
}
|
|
331
|
+
.newtone-inspector-swatch-option:where(:hover) > .newtone-inspector-swatch-dot {
|
|
332
|
+
border-color: var(--newtone-role-divider-secondary);
|
|
333
|
+
}
|
|
334
|
+
.newtone-inspector-swatch-option:where([aria-checked='true']) {
|
|
335
|
+
box-shadow: 0 0 0 2px var(--newtone-role-text-accent);
|
|
336
|
+
cursor: default;
|
|
337
|
+
}
|
|
338
|
+
.newtone-inspector-swatch-option:focus-visible {
|
|
339
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
340
|
+
outline-offset: 2px;
|
|
341
|
+
}
|
|
342
|
+
/* Preview (2026-11-12): a picture as wide as the panel, its name and what a press does under it. */
|
|
343
|
+
.newtone-inspector-preview {
|
|
344
|
+
all: unset;
|
|
345
|
+
flex: 1 1 100%;
|
|
346
|
+
box-sizing: border-box;
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: var(--newtone-space-2);
|
|
350
|
+
inline-size: 100%;
|
|
351
|
+
cursor: pointer;
|
|
352
|
+
}
|
|
353
|
+
.newtone-inspector-preview-picture {
|
|
354
|
+
box-sizing: border-box;
|
|
355
|
+
display: block;
|
|
356
|
+
inline-size: 100%;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
border-radius: var(--newtone-radius-sm);
|
|
359
|
+
border: var(--newtone-line-thin) solid var(--newtone-role-divider-primary);
|
|
360
|
+
}
|
|
361
|
+
.newtone-inspector-preview-picture > * {
|
|
362
|
+
display: block;
|
|
363
|
+
inline-size: 100%;
|
|
364
|
+
block-size: 100%;
|
|
365
|
+
}
|
|
366
|
+
.newtone-inspector-preview:where(:hover) > .newtone-inspector-preview-picture {
|
|
367
|
+
box-shadow: 0 0 0 2px var(--newtone-role-text-accent);
|
|
368
|
+
border-color: transparent;
|
|
369
|
+
}
|
|
370
|
+
.newtone-inspector-preview:focus-visible > .newtone-inspector-preview-picture {
|
|
371
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
372
|
+
outline-offset: 2px;
|
|
373
|
+
}
|
|
374
|
+
.newtone-inspector-preview:disabled {
|
|
375
|
+
cursor: default;
|
|
376
|
+
opacity: 0.35;
|
|
377
|
+
}
|
|
378
|
+
.newtone-inspector-preview-caption {
|
|
379
|
+
display: flex;
|
|
380
|
+
align-items: center;
|
|
381
|
+
justify-content: space-between;
|
|
382
|
+
gap: var(--newtone-space-2);
|
|
383
|
+
min-inline-size: 0;
|
|
384
|
+
}
|
|
385
|
+
/* A framed caption (2026-11-14, `framed`): the name and the action as a row drawn as a menu showing its value is (the
|
|
386
|
+
* `data-select` tool: 36px, one divider.secondary line, space.2 in, radius.sm, surface.secondary on hover, the focus
|
|
387
|
+
* ring inside), so it reads as the panel's other selectors; its action in the secondary ink, as their chevron. Above
|
|
388
|
+
* or below the picture; the picture keeps its plain edge. */
|
|
389
|
+
.newtone-inspector-preview[data-framed] > .newtone-inspector-preview-caption {
|
|
390
|
+
box-sizing: border-box;
|
|
391
|
+
block-size: 36px;
|
|
392
|
+
padding-inline: var(--newtone-space-2);
|
|
393
|
+
border: 1px solid var(--newtone-role-divider-secondary);
|
|
394
|
+
border-radius: var(--newtone-radius-sm);
|
|
395
|
+
}
|
|
396
|
+
.newtone-inspector-preview[data-framed] .newtone-inspector-preview-action {
|
|
397
|
+
color: var(--newtone-role-text-secondary);
|
|
398
|
+
}
|
|
399
|
+
.newtone-inspector-preview[data-framed]:where(:hover) > .newtone-inspector-preview-picture {
|
|
400
|
+
box-shadow: none;
|
|
401
|
+
border-color: var(--newtone-role-divider-primary);
|
|
402
|
+
}
|
|
403
|
+
.newtone-inspector-preview[data-framed]:where(:hover) > .newtone-inspector-preview-caption {
|
|
404
|
+
background: var(--newtone-role-surface-secondary);
|
|
405
|
+
}
|
|
406
|
+
.newtone-inspector-preview[data-framed]:focus-visible > .newtone-inspector-preview-picture {
|
|
407
|
+
outline: none;
|
|
408
|
+
}
|
|
409
|
+
.newtone-inspector-preview[data-framed]:focus-visible > .newtone-inspector-preview-caption {
|
|
410
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
411
|
+
outline-offset: -2px;
|
|
412
|
+
}
|
|
413
|
+
.newtone-inspector-preview-action {
|
|
414
|
+
flex: none;
|
|
415
|
+
display: inline-flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
gap: 2px;
|
|
418
|
+
color: var(--newtone-role-text-accent);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* How a page arrives (2026-11-14, `enter`): `forward` slides in from the end, `back` from the start. */
|
|
422
|
+
@keyframes newtone-inspector-from-end {
|
|
423
|
+
from { transform: translateX(100%); }
|
|
424
|
+
to { transform: none; }
|
|
425
|
+
}
|
|
426
|
+
@keyframes newtone-inspector-from-start {
|
|
427
|
+
from { transform: translateX(-100%); }
|
|
428
|
+
to { transform: none; }
|
|
429
|
+
}
|
|
430
|
+
[data-newtone-inspector-enter='forward'] {
|
|
431
|
+
animation: newtone-inspector-from-end 220ms cubic-bezier(0.2, 0, 0, 1);
|
|
432
|
+
}
|
|
433
|
+
[data-newtone-inspector-enter='back'] {
|
|
434
|
+
animation: newtone-inspector-from-start 220ms cubic-bezier(0.2, 0, 0, 1);
|
|
435
|
+
}
|
|
436
|
+
@media (prefers-reduced-motion: reduce) {
|
|
437
|
+
[data-newtone-inspector-enter] {
|
|
438
|
+
animation: none;
|
|
218
439
|
}
|
|
219
440
|
}
|
|
441
|
+
|
|
442
|
+
/* Surfaces (2026-11-14, Slides' Theme): tiles two across, each its ground with a line in its primary ink, one in its
|
|
443
|
+
* accent and a card on it; its name under it. The chosen tile ringed in the accent, as a chosen swatch is. */
|
|
444
|
+
.newtone-inspector-surfaces {
|
|
445
|
+
flex: 1 1 100%;
|
|
446
|
+
display: grid;
|
|
447
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
448
|
+
gap: var(--newtone-space-3) var(--newtone-space-2);
|
|
449
|
+
}
|
|
450
|
+
.newtone-inspector-surfaces:where([data-disabled]) {
|
|
451
|
+
opacity: 0.35;
|
|
452
|
+
}
|
|
453
|
+
.newtone-inspector-surface {
|
|
454
|
+
all: unset;
|
|
455
|
+
box-sizing: border-box;
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-direction: column;
|
|
458
|
+
gap: var(--newtone-space-1);
|
|
459
|
+
min-inline-size: 0;
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
}
|
|
462
|
+
.newtone-inspector-surface-tile {
|
|
463
|
+
box-sizing: border-box;
|
|
464
|
+
display: flex;
|
|
465
|
+
flex-direction: column;
|
|
466
|
+
align-items: flex-start;
|
|
467
|
+
gap: 2px;
|
|
468
|
+
aspect-ratio: 16 / 10;
|
|
469
|
+
padding: var(--newtone-space-2);
|
|
470
|
+
border-radius: var(--newtone-radius-sm);
|
|
471
|
+
border: var(--newtone-line-thin) solid var(--newtone-role-divider-primary);
|
|
472
|
+
overflow: hidden;
|
|
473
|
+
}
|
|
474
|
+
.newtone-inspector-surface-text,
|
|
475
|
+
.newtone-inspector-surface-accent {
|
|
476
|
+
font-family: var(--newtone-font-body-family);
|
|
477
|
+
font-size: 12px;
|
|
478
|
+
line-height: 16px;
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
}
|
|
481
|
+
.newtone-inspector-surface-text {
|
|
482
|
+
font-weight: 600;
|
|
483
|
+
}
|
|
484
|
+
.newtone-inspector-surface-card {
|
|
485
|
+
box-sizing: border-box;
|
|
486
|
+
margin-block-start: auto;
|
|
487
|
+
inline-size: 60%;
|
|
488
|
+
block-size: 30%;
|
|
489
|
+
border-radius: 3px;
|
|
490
|
+
border: var(--newtone-line-thin) solid transparent;
|
|
491
|
+
}
|
|
492
|
+
.newtone-inspector-surface:where(:hover) > .newtone-inspector-surface-tile {
|
|
493
|
+
border-color: var(--newtone-role-divider-secondary);
|
|
494
|
+
}
|
|
495
|
+
.newtone-inspector-surface:where([aria-checked='true']) > .newtone-inspector-surface-tile {
|
|
496
|
+
box-shadow: 0 0 0 2px var(--newtone-role-text-accent);
|
|
497
|
+
}
|
|
498
|
+
.newtone-inspector-surface:focus-visible {
|
|
499
|
+
outline: none;
|
|
500
|
+
}
|
|
501
|
+
.newtone-inspector-surface:focus-visible > .newtone-inspector-surface-tile {
|
|
502
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
503
|
+
outline-offset: 2px;
|
|
504
|
+
}
|
|
505
|
+
.newtone-inspector-surface:disabled {
|
|
506
|
+
cursor: default;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* SurfaceGrid (Joshua 2026-11-15, Slides' containers): every theme at every elevation, compact, rows by columns with
|
|
510
|
+
* their names along the top and down the side. Each cell is one colour, the surface's ground, with a glyph in its
|
|
511
|
+
* primary ink; an edge where it would stand edged (a match, or Borders Always). The chosen cell ringed in the accent.
|
|
512
|
+
* Small square cells, no names under them: visibly not Surfaces' tiles. */
|
|
513
|
+
.newtone-inspector-surface-grid {
|
|
514
|
+
flex: 1 1 100%;
|
|
515
|
+
display: grid;
|
|
516
|
+
gap: var(--newtone-space-1);
|
|
517
|
+
align-items: center;
|
|
518
|
+
}
|
|
519
|
+
.newtone-inspector-surface-grid:where([data-disabled]) {
|
|
520
|
+
opacity: 0.35;
|
|
521
|
+
}
|
|
522
|
+
.newtone-inspector-surface-grid-head {
|
|
523
|
+
text-align: center;
|
|
524
|
+
}
|
|
525
|
+
.newtone-inspector-surface-grid-side {
|
|
526
|
+
padding-inline-end: var(--newtone-space-1);
|
|
527
|
+
}
|
|
528
|
+
.newtone-inspector-surface-cell {
|
|
529
|
+
all: unset;
|
|
530
|
+
box-sizing: border-box;
|
|
531
|
+
display: grid;
|
|
532
|
+
place-items: center;
|
|
533
|
+
block-size: 32px;
|
|
534
|
+
border-radius: var(--newtone-radius-sm);
|
|
535
|
+
border: var(--newtone-line-thin) solid var(--newtone-role-divider-secondary);
|
|
536
|
+
font-family: var(--newtone-font-body-family);
|
|
537
|
+
font-size: 12px;
|
|
538
|
+
font-weight: 600;
|
|
539
|
+
line-height: 1;
|
|
540
|
+
cursor: pointer;
|
|
541
|
+
}
|
|
542
|
+
.newtone-inspector-surface-cell:where(:not([data-line])) {
|
|
543
|
+
border-color: transparent;
|
|
544
|
+
}
|
|
545
|
+
.newtone-inspector-surface-cell:where(:hover) {
|
|
546
|
+
box-shadow: 0 0 0 1px var(--newtone-role-divider-primary);
|
|
547
|
+
}
|
|
548
|
+
.newtone-inspector-surface-cell:where([aria-checked='true']) {
|
|
549
|
+
box-shadow: 0 0 0 2px var(--newtone-role-text-accent);
|
|
550
|
+
}
|
|
551
|
+
.newtone-inspector-surface-cell:focus-visible {
|
|
552
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
553
|
+
outline-offset: 2px;
|
|
554
|
+
}
|
|
555
|
+
.newtone-inspector-surface-cell:disabled {
|
|
556
|
+
cursor: default;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* A table of settings (2026-11-14): rows' names in the first column, as a row's; the columns share the rest evenly. */
|
|
560
|
+
.newtone-inspector-table {
|
|
561
|
+
inline-size: calc(100% + 2 * var(--newtone-space-1));
|
|
562
|
+
margin: calc(-1 * var(--newtone-space-1));
|
|
563
|
+
table-layout: fixed;
|
|
564
|
+
border-collapse: separate;
|
|
565
|
+
border-spacing: var(--newtone-space-1);
|
|
566
|
+
}
|
|
567
|
+
.newtone-inspector-table :is(th, td) {
|
|
568
|
+
padding: 0;
|
|
569
|
+
font-weight: inherit;
|
|
570
|
+
text-align: start;
|
|
571
|
+
vertical-align: middle;
|
|
572
|
+
}
|
|
573
|
+
.newtone-inspector-table thead :is(th, td) {
|
|
574
|
+
padding-inline-start: var(--newtone-space-3);
|
|
575
|
+
}
|
|
576
|
+
.newtone-inspector-table thead td,
|
|
577
|
+
.newtone-inspector-table tbody th {
|
|
578
|
+
inline-size: 4rem;
|
|
579
|
+
padding-inline-start: 0;
|
|
580
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type PopMenuItem } from '../
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type PopMenuItem } from '../pop-menu/index.js';
|
|
3
3
|
export type InspectorMenuItem = PopMenuItem;
|
|
4
4
|
export interface InspectorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
5
5
|
/** What it shows now (*Text box*, *Slide 3*, *Comments*): its head's title, and its name. */
|
|
@@ -11,6 +11,12 @@ export interface InspectorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
|
|
|
11
11
|
};
|
|
12
12
|
/** At the head's end: the consumer's own controls for what is shown (a filter, a close). */
|
|
13
13
|
actions?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* How it arrives (2026-11-14, Slides' layout picker): `forward` slides in from the end, a page opened from the one
|
|
16
|
+
* before (its `back` leads there); `back` slides in from the start, that page returned to. Omitted, it just shows.
|
|
17
|
+
* Never with reduced motion.
|
|
18
|
+
*/
|
|
19
|
+
enter?: 'forward' | 'back';
|
|
14
20
|
/** `Inspector.Section`s, top to bottom; or anything of the consumer's own (a chat, a list of threads). */
|
|
15
21
|
children?: ReactNode;
|
|
16
22
|
}
|
|
@@ -19,7 +25,7 @@ export interface InspectorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
|
|
|
19
25
|
* file's; or another view a tool opened (comments, history, the assistant). It goes in `Beside`'s `panel`. Its controls
|
|
20
26
|
* never take the focus from what is being typed. Blueprint components/inspector.md.
|
|
21
27
|
*/
|
|
22
|
-
declare function InspectorRoot({ label, back, actions, children, className, ...rest }: InspectorProps): import("react").JSX.Element;
|
|
28
|
+
declare function InspectorRoot({ label, back, actions, enter, children, className, ...rest }: InspectorProps): import("react").JSX.Element;
|
|
23
29
|
export interface InspectorSectionProps {
|
|
24
30
|
/** Its heading; omitted, a section with none (the actions at the end). */
|
|
25
31
|
title?: string;
|
|
@@ -41,10 +47,20 @@ declare function InspectorSection({ title, prominent, link, children }: Inspecto
|
|
|
41
47
|
export interface InspectorRowProps {
|
|
42
48
|
/** What its controls set (*Font*, *Size*). */
|
|
43
49
|
label: string;
|
|
50
|
+
/**
|
|
51
|
+
* What the setting does, when its name does not say it (2026-11-11, Show's Responsive): an info glyph after the
|
|
52
|
+
* name, the words in a Tooltip on hover or focus. Never standing text under the row.
|
|
53
|
+
*/
|
|
54
|
+
info?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Its controls under its name, across the whole width (2026-11-11, Show's Format segments): for a control that needs
|
|
57
|
+
* the room, as wide segments. The name stays in the same style.
|
|
58
|
+
*/
|
|
59
|
+
stack?: boolean;
|
|
44
60
|
children?: ReactNode;
|
|
45
61
|
}
|
|
46
62
|
/** A named line: its name at the start, its controls after it, wrapping when there is no room. */
|
|
47
|
-
declare function InspectorRow({ label, children }: InspectorRowProps): import("react").JSX.Element;
|
|
63
|
+
declare function InspectorRow({ label, info, stack, children }: InspectorRowProps): import("react").JSX.Element;
|
|
48
64
|
export interface InspectorToolProps {
|
|
49
65
|
/** An `Icon` name. */
|
|
50
66
|
icon: string;
|
|
@@ -98,10 +114,130 @@ export interface InspectorSegmentsProps {
|
|
|
98
114
|
/** The chosen id, kept by the consumer; none chosen when it matches no option (a mixed selection). */
|
|
99
115
|
value: string | null;
|
|
100
116
|
disabled?: boolean;
|
|
117
|
+
/** Across the whole width, its segments sharing it evenly (2026-11-11): a choice standing alone in a section. */
|
|
118
|
+
wide?: boolean;
|
|
101
119
|
onChoose: (id: string) => void;
|
|
102
120
|
}
|
|
103
121
|
/** A segmented toggle, one option chosen (an alignment). Controlled. */
|
|
104
|
-
declare function InspectorSegments({ label, options, value, disabled, onChoose }: InspectorSegmentsProps): import("react").JSX.Element;
|
|
122
|
+
declare function InspectorSegments({ label, options, value, disabled, wide, onChoose }: InspectorSegmentsProps): import("react").JSX.Element;
|
|
123
|
+
export interface InspectorSwatch {
|
|
124
|
+
id: string;
|
|
125
|
+
/** Its name, as its tooltip and as a screen reader says it. */
|
|
126
|
+
label: string;
|
|
127
|
+
/** What the circle is painted in. */
|
|
128
|
+
color: string;
|
|
129
|
+
}
|
|
130
|
+
export interface InspectorSwatchesProps {
|
|
131
|
+
label: string;
|
|
132
|
+
options: InspectorSwatch[];
|
|
133
|
+
/** The chosen id, kept by the consumer; none chosen when it matches no option. */
|
|
134
|
+
value: string | null;
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
/** Across the whole width (2026-11-12, Show's Background): the circles share it evenly, as large as it lets them. */
|
|
137
|
+
wide?: boolean;
|
|
138
|
+
onChoose: (id: string) => void;
|
|
139
|
+
}
|
|
140
|
+
/** A colour chosen from a few (2026-11-12, Show's Background): circles alone, their names in tooltips. Controlled. */
|
|
141
|
+
declare function InspectorSwatches({ label, options, value, disabled, wide, onChoose }: InspectorSwatchesProps): import("react").JSX.Element;
|
|
142
|
+
export interface InspectorSurface {
|
|
143
|
+
id: string;
|
|
144
|
+
/** Its name, under the tile and as a screen reader says it ("Default High"). */
|
|
145
|
+
label: string;
|
|
146
|
+
/** The surface's ground. */
|
|
147
|
+
ground: string;
|
|
148
|
+
/** Its primary text ink. */
|
|
149
|
+
text: string;
|
|
150
|
+
/** Its accent text ink. */
|
|
151
|
+
accent: string;
|
|
152
|
+
/** A card standing on it: its ground, and its hairline when it has one. */
|
|
153
|
+
card: {
|
|
154
|
+
ground: string;
|
|
155
|
+
line?: string;
|
|
156
|
+
};
|
|
157
|
+
/** The tile's own hairline: a surface that keeps one where it stands (Slides: Default High on Default High). */
|
|
158
|
+
line?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface InspectorSurfacesProps {
|
|
161
|
+
label: string;
|
|
162
|
+
options: InspectorSurface[];
|
|
163
|
+
/** The chosen id, kept by the consumer; none chosen when it matches no option. */
|
|
164
|
+
value: string | null;
|
|
165
|
+
/** The words its two lines say, one in the primary ink and one in the accent (the consumer's: "Title", "Link"). */
|
|
166
|
+
words: {
|
|
167
|
+
text: string;
|
|
168
|
+
accent: string;
|
|
169
|
+
};
|
|
170
|
+
disabled?: boolean;
|
|
171
|
+
onChoose: (id: string) => void;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* A surface chosen from a few (2026-11-14, Slides' Theme): large tiles two across, each its ground with a line in its
|
|
175
|
+
* primary ink, one in its accent and a card standing on it, its name under it; the chosen one ringed in the accent.
|
|
176
|
+
* A radio group. Controlled.
|
|
177
|
+
*/
|
|
178
|
+
declare function InspectorSurfaces({ label, options, value, words, disabled, onChoose }: InspectorSurfacesProps): import("react").JSX.Element;
|
|
179
|
+
export interface InspectorSurfaceCell {
|
|
180
|
+
id: string;
|
|
181
|
+
/** Its name, as a screen reader says it and as its title shows it ("Tinted High"). */
|
|
182
|
+
label: string;
|
|
183
|
+
/** The surface's ground: its primary surface colour. */
|
|
184
|
+
ground: string;
|
|
185
|
+
/** Its primary text ink, for the glyph. */
|
|
186
|
+
text: string;
|
|
187
|
+
/** Its edge where it would stand, when it has one (a match, or a style whose Borders is Always). */
|
|
188
|
+
line?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface InspectorSurfaceGridProps {
|
|
191
|
+
label: string;
|
|
192
|
+
/** The columns' names, left to right (Slides: High, Base, Deep). */
|
|
193
|
+
columns: string[];
|
|
194
|
+
/** The rows, top to bottom (Slides: Default, Tinted, Emphasis, Strong): each its name and one cell per column. */
|
|
195
|
+
rows: {
|
|
196
|
+
label: string;
|
|
197
|
+
cells: InspectorSurfaceCell[];
|
|
198
|
+
}[];
|
|
199
|
+
/** The chosen id, kept by the consumer; none chosen when it matches no cell. */
|
|
200
|
+
value: string | null;
|
|
201
|
+
/** What each cell shows in its primary ink (the consumer's: "Aa"). */
|
|
202
|
+
glyph: string;
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
onChoose: (id: string) => void;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* A surface chosen from every theme at every elevation (Joshua 2026-11-15, Slides' containers): a compact grid, rows by
|
|
208
|
+
* columns, the names along the top and down the side, each cell its ground with the glyph in its primary ink; the
|
|
209
|
+
* chosen one ringed in the accent. Smaller than Surfaces' tiles and drawn differently on purpose, so a container's
|
|
210
|
+
* choice never reads as the slide's. A radio group with one Tab stop: the arrows move across and down (and choose),
|
|
211
|
+
* Home and End go to the first and last. Controlled.
|
|
212
|
+
*/
|
|
213
|
+
declare function InspectorSurfaceGrid({ label, columns, rows, value, glyph, disabled, onChoose }: InspectorSurfaceGridProps): import("react").JSX.Element;
|
|
214
|
+
export interface InspectorPreviewProps {
|
|
215
|
+
/** What it is (*Layout*), as a screen reader says it with its name. */
|
|
216
|
+
label: string;
|
|
217
|
+
/** The name of what is shown (*Title and content*), under the picture (or above it, `caption="above"`). */
|
|
218
|
+
name: string;
|
|
219
|
+
/** The word at the end of the caption for what a press does (*Change*). */
|
|
220
|
+
action: string;
|
|
221
|
+
/** Width over height of the picture. */
|
|
222
|
+
ratio: number;
|
|
223
|
+
/** Where the name and the action stand (2026-11-14): `below` the picture (the default), or `above` it. */
|
|
224
|
+
caption?: 'below' | 'above';
|
|
225
|
+
/**
|
|
226
|
+
* The name and the action drawn as a framed row, as the panel's other selectors are (`Inspector.Menu` with a value):
|
|
227
|
+
* the same box, height, line and hover, the action in the secondary ink ("Blank Change ›") (2026-11-14, Slides'
|
|
228
|
+
* slide panel). The picture keeps its plain edge.
|
|
229
|
+
*/
|
|
230
|
+
framed?: boolean;
|
|
231
|
+
/** The picture, drawn at the whole width. */
|
|
232
|
+
children: ReactNode;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
onPress?: () => void;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* A choice shown as a picture, as wide as the panel (2026-11-12, Show's slide Layout): pressed, it opens what to pick
|
|
238
|
+
* from. Prominent: the main thing a panel sets.
|
|
239
|
+
*/
|
|
240
|
+
declare function InspectorPreview({ label, name, action, ratio, caption, framed, children, disabled, onPress }: InspectorPreviewProps): import("react").JSX.Element;
|
|
105
241
|
export interface InspectorActionProps {
|
|
106
242
|
icon: string;
|
|
107
243
|
/** Its word. */
|
|
@@ -117,6 +253,41 @@ declare function InspectorAction({ icon, label, tone, disabled, onPress }: Inspe
|
|
|
117
253
|
declare function InspectorTools({ children }: {
|
|
118
254
|
children?: ReactNode;
|
|
119
255
|
}): import("react").JSX.Element;
|
|
256
|
+
export interface InspectorToggleProps {
|
|
257
|
+
/** Its name, at the start of the row. */
|
|
258
|
+
label: string;
|
|
259
|
+
/** What it does, when its name does not say it: an info glyph after the name, the words in a Tooltip. */
|
|
260
|
+
info?: string;
|
|
261
|
+
checked: boolean;
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
onChange: (checked: boolean) => void;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* An on/off setting (2026-11-11, Show's Responsive): a row like every other, its name where a row's name is (the
|
|
267
|
+
* switch's label, with an info glyph when given) and a Switch at the end of the controls.
|
|
268
|
+
*/
|
|
269
|
+
declare function InspectorToggle({ label, info, checked, disabled, onChange }: InspectorToggleProps): import("react").JSX.Element;
|
|
270
|
+
export interface InspectorTableRow {
|
|
271
|
+
/** The row's name, at its start (*Start*). */
|
|
272
|
+
label: string;
|
|
273
|
+
/** What it means, when its name does not say it: an info glyph after the name, as a row's. */
|
|
274
|
+
info?: string;
|
|
275
|
+
/** One control per column (an unlabeled `NumberField`, named for a screen reader); null leaves its cell empty. */
|
|
276
|
+
cells: ReactNode[];
|
|
277
|
+
}
|
|
278
|
+
export interface InspectorTableProps {
|
|
279
|
+
/** What it sets, said to a screen reader (*Hue*). */
|
|
280
|
+
label: string;
|
|
281
|
+
/** The columns' headings (*Value*, *Handle*), over the controls. */
|
|
282
|
+
columns: string[];
|
|
283
|
+
rows: InspectorTableRow[];
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Settings that share their columns (2026-11-14, HuevOS's Colors panel: a curve's Start and End, each with its Value and
|
|
287
|
+
* its Handle): one row per thing, its name at the start, one control per column under a quiet heading. Rows' names keep
|
|
288
|
+
* a row's style; the columns share the width evenly.
|
|
289
|
+
*/
|
|
290
|
+
declare function InspectorTable({ label, columns, rows }: InspectorTableProps): import("react").JSX.Element;
|
|
120
291
|
export declare const Inspector: typeof InspectorRoot & {
|
|
121
292
|
Section: typeof InspectorSection;
|
|
122
293
|
Row: typeof InspectorRow;
|
|
@@ -125,7 +296,13 @@ export declare const Inspector: typeof InspectorRoot & {
|
|
|
125
296
|
Menu: typeof InspectorMenu;
|
|
126
297
|
Panel: typeof InspectorPanel;
|
|
127
298
|
Segments: typeof InspectorSegments;
|
|
299
|
+
Swatches: typeof InspectorSwatches;
|
|
300
|
+
Surfaces: typeof InspectorSurfaces;
|
|
301
|
+
SurfaceGrid: typeof InspectorSurfaceGrid;
|
|
302
|
+
Preview: typeof InspectorPreview;
|
|
128
303
|
Action: typeof InspectorAction;
|
|
304
|
+
Toggle: typeof InspectorToggle;
|
|
305
|
+
Table: typeof InspectorTable;
|
|
129
306
|
};
|
|
130
307
|
export {};
|
|
131
308
|
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/inspector/inspector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/inspector/inspector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,cAAc,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAOhG,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEhF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAA;AAE3C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACpF,6FAA6F;IAC7F,KAAK,EAAE,MAAM,CAAA;IACb,kHAAkH;IAClH,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC7C,4FAA4F;IAC5F,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC1B,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;GAIG;AACH,iBAAS,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO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