@newtone-dev/ui-react-web 0.54.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-frame/app-frame.css +140 -7
- package/dist/app-frame/app-frame.d.ts +3 -1
- package/dist/app-frame/app-frame.d.ts.map +1 -1
- package/dist/app-frame/app-frame.js +3 -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/menu/menu.d.ts +2 -1
- package/dist/app-frame/menu/menu.d.ts.map +1 -1
- package/dist/app-frame/menu/menu.js +6 -4
- package/dist/app-frame/menu/menu.js.map +1 -1
- package/dist/app-frame/parts.d.ts +65 -3
- package/dist/app-frame/parts.d.ts.map +1 -1
- package/dist/app-frame/parts.js +30 -6
- package/dist/app-frame/parts.js.map +1 -1
- package/dist/ask-button/ask-button.css +61 -3
- package/dist/ask-button/ask-button.d.ts +11 -4
- package/dist/ask-button/ask-button.d.ts.map +1 -1
- package/dist/ask-button/ask-button.js +5 -5
- package/dist/ask-button/ask-button.js.map +1 -1
- package/dist/nav-list/nav-list.css +18 -4
- package/dist/nav-list/nav-list.d.ts.map +1 -1
- package/dist/nav-list/nav-list.js +3 -3
- package/dist/nav-list/nav-list.js.map +1 -1
- 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 +14 -2
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/split/split.css +19 -10
- package/dist/when-field/period.d.ts +4 -3
- package/dist/when-field/period.d.ts.map +1 -1
- package/dist/when-field/period.js +26 -13
- package/dist/when-field/period.js.map +1 -1
- package/dist/when-field/when-field.d.ts +6 -1
- package/dist/when-field/when-field.d.ts.map +1 -1
- package/dist/when-field/when-field.js +3 -3
- package/dist/when-field/when-field.js.map +1 -1
- package/package.json +1 -1
|
@@ -188,15 +188,27 @@ a.newtone-app-frame-title::after {
|
|
|
188
188
|
position: absolute;
|
|
189
189
|
inset: -4px;
|
|
190
190
|
}
|
|
191
|
+
/* The app's mark (2026-11-29, DECISIONS/2026-11-29-one-frame-for-every-app.md): a 40px tile with a 24px icon, 8px of
|
|
192
|
+
tile round a glyph and a drawn mark alike; no mark fills its tile edge to edge. */
|
|
191
193
|
.newtone-app-frame-mark {
|
|
192
194
|
display: inline-flex;
|
|
193
195
|
flex: none;
|
|
194
|
-
inline-size:
|
|
195
|
-
block-size:
|
|
196
|
+
inline-size: 40px;
|
|
197
|
+
block-size: 40px;
|
|
196
198
|
}
|
|
197
199
|
.newtone-app-frame-mark > * {
|
|
198
200
|
inline-size: 100%;
|
|
199
201
|
block-size: 100%;
|
|
202
|
+
border-radius: calc(var(--newtone-framed-icon-radius) * 40 / 96);
|
|
203
|
+
}
|
|
204
|
+
.newtone-app-frame-mark .newtone-icon {
|
|
205
|
+
font-size: 24px;
|
|
206
|
+
inline-size: 24px;
|
|
207
|
+
block-size: 24px;
|
|
208
|
+
}
|
|
209
|
+
.newtone-app-frame-mark .newtone-framed-icon-art {
|
|
210
|
+
inline-size: 24px;
|
|
211
|
+
block-size: 24px;
|
|
200
212
|
}
|
|
201
213
|
.newtone-app-frame-name {
|
|
202
214
|
min-inline-size: 0;
|
|
@@ -212,15 +224,15 @@ a.newtone-app-frame-title::after {
|
|
|
212
224
|
display: inline-flex;
|
|
213
225
|
border-radius: var(--newtone-radius-sm);
|
|
214
226
|
}
|
|
215
|
-
/* The mark before the name's field, a link home: its
|
|
216
|
-
*
|
|
227
|
+
/* The mark before the name's field, a link home: its 40px and a press taken 4px round it (48px), half the space.2 to
|
|
228
|
+
* the field. */
|
|
217
229
|
.newtone-app-frame-title > .newtone-app-frame-title-mark {
|
|
218
230
|
position: relative;
|
|
219
231
|
}
|
|
220
232
|
.newtone-app-frame-title > .newtone-app-frame-title-mark::after {
|
|
221
233
|
content: '';
|
|
222
234
|
position: absolute;
|
|
223
|
-
inset: -
|
|
235
|
+
inset: -4px;
|
|
224
236
|
}
|
|
225
237
|
.newtone-app-frame-title-mark:focus-visible {
|
|
226
238
|
outline: 2px solid var(--newtone-focus-focus-ring);
|
|
@@ -252,7 +264,11 @@ a.newtone-app-frame-title::after {
|
|
|
252
264
|
.newtone-app-frame-name-sizer {
|
|
253
265
|
display: inline-grid;
|
|
254
266
|
align-items: center;
|
|
255
|
-
|
|
267
|
+
/* It narrows to the field (2026-11-29): its one column may shrink below its words, so a long name ends in the
|
|
268
|
+
* input's ellipsis inside the field's padding, the same at both ends. */
|
|
269
|
+
grid-template-columns: minmax(0, 1fr);
|
|
270
|
+
flex: 0 1 auto;
|
|
271
|
+
min-inline-size: 0;
|
|
256
272
|
/* Clipped across, so a long name ends in its ellipsis; open above and below, where the input reaches past the
|
|
257
273
|
* field to take a press from 48px. */
|
|
258
274
|
overflow-x: clip;
|
|
@@ -296,7 +312,11 @@ a.newtone-app-frame-title::after {
|
|
|
296
312
|
}
|
|
297
313
|
.newtone-app-frame-name-text {
|
|
298
314
|
align-self: center;
|
|
315
|
+
min-inline-size: 0;
|
|
299
316
|
padding-inline: var(--newtone-space-2);
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
text-overflow: ellipsis;
|
|
319
|
+
white-space: nowrap;
|
|
300
320
|
}
|
|
301
321
|
/* The main menu's button (2026-11-09): its own round control after the name, apart from its field. */
|
|
302
322
|
.newtone-app-frame-name-menu {
|
|
@@ -477,7 +497,7 @@ a.newtone-app-frame-title::after {
|
|
|
477
497
|
display: none;
|
|
478
498
|
}
|
|
479
499
|
.newtone-app-frame[data-newtone-app-frame-compact] .newtone-app-frame-profile {
|
|
480
|
-
padding-inline: 4px;
|
|
500
|
+
padding-inline: 4px var(--newtone-space-1);
|
|
481
501
|
}
|
|
482
502
|
.newtone-app-frame[data-newtone-app-frame-compact] .newtone-app-frame-panel {
|
|
483
503
|
inline-size: auto;
|
|
@@ -937,6 +957,14 @@ a.newtone-app-frame-title::after {
|
|
|
937
957
|
.newtone-app-frame-profile > .newtone-text {
|
|
938
958
|
min-inline-size: 0;
|
|
939
959
|
}
|
|
960
|
+
/* It opens a menu (2026-11-29): a chevron at its end at every width; the pill's end padding gives it room. */
|
|
961
|
+
.newtone-app-frame-profile {
|
|
962
|
+
padding-inline-end: var(--newtone-space-2);
|
|
963
|
+
}
|
|
964
|
+
.newtone-app-frame-profile-chevron {
|
|
965
|
+
flex: none;
|
|
966
|
+
color: var(--newtone-role-text-secondary);
|
|
967
|
+
}
|
|
940
968
|
.newtone-app-frame-menu {
|
|
941
969
|
position: fixed;
|
|
942
970
|
inset: auto;
|
|
@@ -955,6 +983,7 @@ a.newtone-app-frame-title::after {
|
|
|
955
983
|
display: none;
|
|
956
984
|
}
|
|
957
985
|
.newtone-app-frame-menu-head {
|
|
986
|
+
position: relative;
|
|
958
987
|
display: flex;
|
|
959
988
|
flex-direction: column;
|
|
960
989
|
align-items: center;
|
|
@@ -968,6 +997,94 @@ a.newtone-app-frame-title::after {
|
|
|
968
997
|
.newtone-app-frame-menu-head > .newtone-text {
|
|
969
998
|
max-inline-size: 100%;
|
|
970
999
|
}
|
|
1000
|
+
/* Settings and Sign out (2026-11-29): two small round buttons in the head's top corners, the panel's only actions. */
|
|
1001
|
+
.newtone-app-frame-menu-corner {
|
|
1002
|
+
all: unset;
|
|
1003
|
+
box-sizing: border-box;
|
|
1004
|
+
position: absolute;
|
|
1005
|
+
inset-block-start: 0;
|
|
1006
|
+
display: inline-grid;
|
|
1007
|
+
place-items: center;
|
|
1008
|
+
inline-size: 32px;
|
|
1009
|
+
block-size: 32px;
|
|
1010
|
+
border-radius: 999px;
|
|
1011
|
+
color: var(--newtone-role-text-secondary);
|
|
1012
|
+
cursor: pointer;
|
|
1013
|
+
}
|
|
1014
|
+
.newtone-app-frame-menu-corner[data-side='start'] {
|
|
1015
|
+
inset-inline-start: 0;
|
|
1016
|
+
}
|
|
1017
|
+
.newtone-app-frame-menu-corner[data-side='end'] {
|
|
1018
|
+
inset-inline-end: 0;
|
|
1019
|
+
}
|
|
1020
|
+
.newtone-app-frame-menu-corner:is(:hover, :focus-visible) {
|
|
1021
|
+
background: var(--newtone-role-surface-secondary);
|
|
1022
|
+
color: var(--newtone-role-text-primary);
|
|
1023
|
+
}
|
|
1024
|
+
.newtone-app-frame-menu-corner:focus-visible {
|
|
1025
|
+
outline: 2px solid var(--newtone-focus-focus-ring);
|
|
1026
|
+
outline-offset: 1px;
|
|
1027
|
+
}
|
|
1028
|
+
/* No other profile yet (2026-11-29): a few words and the way to make one, under a hairline. */
|
|
1029
|
+
.newtone-app-frame-menu-empty {
|
|
1030
|
+
display: flex;
|
|
1031
|
+
flex-direction: column;
|
|
1032
|
+
align-items: center;
|
|
1033
|
+
gap: var(--newtone-space-1);
|
|
1034
|
+
padding: var(--newtone-space-3) var(--newtone-space-2) var(--newtone-space-2);
|
|
1035
|
+
border-block-start: 1px solid var(--newtone-role-divider-secondary);
|
|
1036
|
+
text-align: center;
|
|
1037
|
+
}
|
|
1038
|
+
.newtone-app-frame-menu-empty-action {
|
|
1039
|
+
all: unset;
|
|
1040
|
+
box-sizing: border-box;
|
|
1041
|
+
margin-block-start: var(--newtone-space-2);
|
|
1042
|
+
padding: var(--newtone-space-2) var(--newtone-space-3);
|
|
1043
|
+
border-radius: 999px;
|
|
1044
|
+
font: inherit;
|
|
1045
|
+
font-size: var(--newtone-text-scale-body-sm-size);
|
|
1046
|
+
color: var(--newtone-role-text-primary);
|
|
1047
|
+
background: var(--newtone-role-surface-secondary);
|
|
1048
|
+
cursor: pointer;
|
|
1049
|
+
}
|
|
1050
|
+
.newtone-app-frame-menu-empty-action:focus-visible {
|
|
1051
|
+
outline: 2px solid var(--newtone-focus-focus-ring);
|
|
1052
|
+
outline-offset: 1px;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/* Notifications (2026-11-29): the bell is a bar control; its panel floats under it, a head then its rows. */
|
|
1056
|
+
.newtone-app-frame-notifications-button {
|
|
1057
|
+
position: relative;
|
|
1058
|
+
}
|
|
1059
|
+
/* Wide enough for a row's face and words side by side; as tall as two thirds of the window, then it scrolls. */
|
|
1060
|
+
.newtone-app-frame-menu:where([data-newtone-app-frame-notifications]) {
|
|
1061
|
+
max-block-size: 66vh;
|
|
1062
|
+
overflow-y: auto;
|
|
1063
|
+
}
|
|
1064
|
+
.newtone-app-frame-notifications-title {
|
|
1065
|
+
display: block;
|
|
1066
|
+
padding: var(--newtone-space-2) var(--newtone-space-2) var(--newtone-space-1);
|
|
1067
|
+
}
|
|
1068
|
+
.newtone-app-frame-notifications-rows {
|
|
1069
|
+
display: flex;
|
|
1070
|
+
flex-direction: column;
|
|
1071
|
+
}
|
|
1072
|
+
.newtone-app-frame-notifications-empty {
|
|
1073
|
+
display: block;
|
|
1074
|
+
padding: var(--newtone-space-3) var(--newtone-space-2);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/* The window's bottom-end corner (2026-11-29): a home's floating assistant; above the content, under a sheet's veil
|
|
1078
|
+
(z 2) and a summoned panel (z 9001). */
|
|
1079
|
+
.newtone-app-frame-corner {
|
|
1080
|
+
position: fixed;
|
|
1081
|
+
z-index: 1;
|
|
1082
|
+
inset-block-end: max(16px, env(safe-area-inset-bottom));
|
|
1083
|
+
inset-inline-end: max(16px, env(safe-area-inset-right));
|
|
1084
|
+
display: flex;
|
|
1085
|
+
gap: var(--newtone-space-2);
|
|
1086
|
+
align-items: center;
|
|
1087
|
+
}
|
|
971
1088
|
.newtone-app-frame-menu-group {
|
|
972
1089
|
display: flex;
|
|
973
1090
|
flex-direction: column;
|
|
@@ -1111,6 +1228,17 @@ a.newtone-app-frame-title::after {
|
|
|
1111
1228
|
height: calc(6rem * 0.5);
|
|
1112
1229
|
border-radius: calc(var(--newtone-framed-icon-radius) * 0.5);
|
|
1113
1230
|
}
|
|
1231
|
+
/* The same mark at the Apps entry's size (2026-11-29): its icon 60% of its tile, as the bar's 24 in 40. */
|
|
1232
|
+
.newtone-app-frame-apps-app .newtone-icon {
|
|
1233
|
+
font-size: 28px;
|
|
1234
|
+
inline-size: 28px;
|
|
1235
|
+
block-size: 28px;
|
|
1236
|
+
}
|
|
1237
|
+
.newtone-app-frame-apps-app .newtone-framed-icon-art,
|
|
1238
|
+
.newtone-app-frame-launcher-tile .newtone-framed-icon-art {
|
|
1239
|
+
inline-size: 60%;
|
|
1240
|
+
block-size: 60%;
|
|
1241
|
+
}
|
|
1114
1242
|
.newtone-app-frame-launcher-tile {
|
|
1115
1243
|
inline-size: 80px;
|
|
1116
1244
|
}
|
|
@@ -1119,6 +1247,11 @@ a.newtone-app-frame-title::after {
|
|
|
1119
1247
|
height: calc(6rem * 0.6);
|
|
1120
1248
|
border-radius: calc(var(--newtone-framed-icon-radius) * 0.6);
|
|
1121
1249
|
}
|
|
1250
|
+
.newtone-app-frame-launcher-tile .newtone-icon {
|
|
1251
|
+
font-size: 34px;
|
|
1252
|
+
inline-size: 34px;
|
|
1253
|
+
block-size: 34px;
|
|
1254
|
+
}
|
|
1122
1255
|
|
|
1123
1256
|
/* The deep look (`deep`, Joshua 2026-11-08, Slides): the window on the deep rung. Its bar is a card on base (2026-11-09:
|
|
1124
1257
|
* every panel on base, only what is looked at deep), inset space.2 from the window's top and sides, rounded, no
|
|
@@ -7,7 +7,7 @@ import { AppFramePanel } from './panel/panel.js';
|
|
|
7
7
|
import { AppFrameSheet } from './sheet/sheet.js';
|
|
8
8
|
import { AppFrameWidget, AppFrameWidgets } from './widget/widget.js';
|
|
9
9
|
import { AppFrameFollowing, AppFrameMe } from './me/me.js';
|
|
10
|
-
import { AppFrameApps, AppFrameBar, AppFrameDivider, AppFrameMark, AppFrameProfile, AppFrameSearch, AppFrameSlot, AppFrameStatus, AppFrameTitle } from './parts.js';
|
|
10
|
+
import { AppFrameApps, AppFrameBar, AppFrameCorner, AppFrameDivider, AppFrameMark, AppFrameNotifications, AppFrameProfile, AppFrameSearch, AppFrameSlot, AppFrameStatus, AppFrameTitle } from './parts.js';
|
|
11
11
|
import { BarTools } from '../floating-bar/floating-bar.js';
|
|
12
12
|
/**
|
|
13
13
|
* One app in one host window: a slim bar, the app's main under it, and over it a summoned panel (its Ask) or a sheet.
|
|
@@ -62,5 +62,7 @@ export declare namespace AppFrame {
|
|
|
62
62
|
export { AppFrameSlot as Slot };
|
|
63
63
|
export { AppFrameSearch as Search };
|
|
64
64
|
export { AppFrameWidget as Widget };
|
|
65
|
+
export { AppFrameNotifications as Notifications };
|
|
66
|
+
export { AppFrameCorner as Corner };
|
|
65
67
|
}
|
|
66
68
|
//# sourceMappingURL=app-frame.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-frame.d.ts","sourceRoot":"","sources":["../../src/app-frame/app-frame.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"app-frame.d.ts","sourceRoot":"","sources":["../../src/app-frame/app-frame.tsx"],"names":[],"mappings":"AAEA,OAAO,E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AE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA4CxH;yBA5Ce,QAAQ;aA+CT,WAAW;aACT,aAAa;aACd,YAAY;aACV,cAAc;aAChB,YAAY;aACT,eAAe;aACf,eAAe;aACpB,UAAU;aACH,iBAAiB;aACnB,eAAe;aACjB,aAAa;aACb,aAAa;aACV,gBAAgB;aACjB,eAAe;aACjB,QAAQ;aACT,YAAY;aACV,cAAc;aACd,cAAc;aACP,qBAAqB;aAC5B,cAAc"}
|
|
@@ -8,7 +8,7 @@ import { AppFramePanel } from './panel/panel.js';
|
|
|
8
8
|
import { AppFrameSheet } from './sheet/sheet.js';
|
|
9
9
|
import { AppFrameWidget, AppFrameWidgets } from './widget/widget.js';
|
|
10
10
|
import { AppFrameFollowing, AppFrameMe } from './me/me.js';
|
|
11
|
-
import { AppFrameApps, AppFrameBar, AppFrameDivider, AppFrameMark, AppFrameProfile, AppFrameSearch, AppFrameSlot, AppFrameStatus, AppFrameTitle } from './parts.js';
|
|
11
|
+
import { AppFrameApps, AppFrameBar, AppFrameCorner, AppFrameDivider, AppFrameMark, AppFrameNotifications, AppFrameProfile, AppFrameSearch, AppFrameSlot, AppFrameStatus, AppFrameTitle } from './parts.js';
|
|
12
12
|
import { BarTools } from '../floating-bar/floating-bar.js';
|
|
13
13
|
export function AppFrame({ bar, panel, sheet, identity, announce, deep, theme, mode, className, children }) {
|
|
14
14
|
const main = useRef(null);
|
|
@@ -48,4 +48,6 @@ AppFrame.Tools = BarTools;
|
|
|
48
48
|
AppFrame.Slot = AppFrameSlot;
|
|
49
49
|
AppFrame.Search = AppFrameSearch;
|
|
50
50
|
AppFrame.Widget = AppFrameWidget;
|
|
51
|
+
AppFrame.Notifications = AppFrameNotifications;
|
|
52
|
+
AppFrame.Corner = AppFrameCorner;
|
|
51
53
|
//# sourceMappingURL=app-frame.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-frame.js","sourceRoot":"","sources":["../../src/app-frame/app-frame.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAsB,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"app-frame.js","sourceRoot":"","sources":["../../src/app-frame/app-frame.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAsB,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,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ED,qFAAqF;AACrF,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAA;AAC1B,QAAQ,CAAC,KAAK,GAAG,aAAa,CAAA;AAC9B,QAAQ,CAAC,IAAI,GAAG,YAAY,CAAA;AAC5B,QAAQ,CAAC,MAAM,GAAG,cAAc,CAAA;AAChC,QAAQ,CAAC,IAAI,GAAG,YAAY,CAAA;AAC5B,QAAQ,CAAC,OAAO,GAAG,eAAe,CAAA;AAClC,QAAQ,CAAC,OAAO,GAAG,eAAe,CAAA;AAClC,QAAQ,CAAC,EAAE,GAAG,UAAU,CAAA;AACxB,QAAQ,CAAC,SAAS,GAAG,iBAAiB,CAAA;AACtC,QAAQ,CAAC,OAAO,GAAG,eAAe,CAAA;AAClC,QAAQ,CAAC,KAAK,GAAG,aAAa,CAAA;AAC9B,QAAQ,CAAC,KAAK,GAAG,aAAa,CAAA;AAC9B,QAAQ,CAAC,QAAQ,GAAG,gBAAgB,CAAA;AACpC,QAAQ,CAAC,OAAO,GAAG,eAAe,CAAA;AAClC,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAA;AACzB,QAAQ,CAAC,IAAI,GAAG,YAAY,CAAA;AAC5B,QAAQ,CAAC,MAAM,GAAG,cAAc,CAAA;AAChC,QAAQ,CAAC,MAAM,GAAG,cAAc,CAAA;AAChC,QAAQ,CAAC,aAAa,GAAG,qBAAqB,CAAA;AAC9C,QAAQ,CAAC,MAAM,GAAG,cAAc,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AppFrame } from './app-frame.js';
|
|
2
2
|
export type { AppFrameProps } from './app-frame.js';
|
|
3
|
-
export type { AppFrameBarProps, AppFrameTitleProps, AppFrameTitleTool, AppFrameApp, AppFrameAppsProps, AppFrameAppsGroup, AppFrameProfileProps, AppFrameProfileChoice, AppFrameMarkProps, AppFrameStatusProps, AppFrameSearchProps, } from './parts.js';
|
|
3
|
+
export type { AppFrameBarProps, AppFrameTitleProps, AppFrameTitleTool, AppFrameApp, AppFrameAppsProps, AppFrameAppsGroup, AppFrameProfileProps, AppFrameProfileChoice, AppFrameMarkProps, AppFrameStatusProps, AppFrameSearchProps, AppFrameNotificationsProps, AppFrameCornerProps, } from './parts.js';
|
|
4
4
|
export type { AppFrameMeProps, AppFrameMeSpotlight, AppFrameFollowingProps } from './me/me.js';
|
|
5
5
|
export type { AppFrameControlProps } from './control/control.js';
|
|
6
6
|
export type { BarToolsProps as AppFrameToolsProps } from '../floating-bar/floating-bar.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app-frame/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,YAAY,EACR,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAC9F,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,YAAY,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAC1F,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,YAAY,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAC3F,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAChH,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app-frame/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,YAAY,EACR,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,GACtB,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAC9F,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,YAAY,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAC1F,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,YAAY,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAC3F,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAChH,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -8,7 +8,8 @@ export interface AppFrameMenuItem {
|
|
|
8
8
|
/** Its words after the label: where it goes ("huevos.live"). */
|
|
9
9
|
meta?: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/** `width`: a panel wider than a menu (the notifications panel, 2026-11-29), never wider than the window. */
|
|
12
|
+
export declare function useMenu(align: 'start' | 'end', width?: number): {
|
|
12
13
|
open: boolean;
|
|
13
14
|
/** Closes it, gives the focus back to the button, then does what was chosen. */
|
|
14
15
|
done: (fn: () => void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/app-frame/menu/menu.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAuD,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAQnI,6BAA6B;AAC7B,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK;;
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/app-frame/menu/menu.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAuD,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAQnI,6BAA6B;AAC7B,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,6GAA6G;AAC7G,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,KAAK,GAAE,MAAc;;IA6C7D,gFAAgF;eACrE,MAAM,IAAI;;QAMjB,GAAG;QACH,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,MAAM;QACvB,eAAe;QACf,eAAe;QACf,6BAA6B;QAE7B,aAAa,MAAM;YAAE,cAAc,EAAE,MAAM,IAAI,CAAA;SAAE;QACjD,OAAO;;;;;iBAKE,MAAM;;;iCAIU,OAAO;;uBArClB,aAAa,CAAC,cAAc,CAAC;;EA0CtD;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,sCAkB9H;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA"}
|
|
@@ -9,7 +9,8 @@ import { Text } from '../../text/text.js';
|
|
|
9
9
|
/** The menu's width, and its distance from the button. */
|
|
10
10
|
const WIDTH = 288;
|
|
11
11
|
const GAP = 4;
|
|
12
|
-
|
|
12
|
+
/** `width`: a panel wider than a menu (the notifications panel, 2026-11-29), never wider than the window. */
|
|
13
|
+
export function useMenu(align, width = WIDTH) {
|
|
13
14
|
const id = useId();
|
|
14
15
|
const button = useRef(null);
|
|
15
16
|
const menu = useRef(null);
|
|
@@ -19,9 +20,10 @@ export function useMenu(align) {
|
|
|
19
20
|
if (!open || !button.current)
|
|
20
21
|
return;
|
|
21
22
|
const r = button.current.getBoundingClientRect();
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const w = Math.min(width, innerWidth - 16);
|
|
24
|
+
const from = align === 'end' ? r.right - w : r.left;
|
|
25
|
+
setAt({ top: r.bottom + GAP, left: Math.max(8, Math.min(from, innerWidth - w - 8)), inlineSize: w });
|
|
26
|
+
}, [open, align, width]);
|
|
25
27
|
useEffect(() => {
|
|
26
28
|
const m = menu.current;
|
|
27
29
|
if (!m)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/app-frame/menu/menu.tsx"],"names":[],"mappings":"AAAA,Y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,8BAA8B,YACpG,KAAK,GACH,CACV,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACd,kBAAmB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,EAAC,6BAA6B,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,aAC9H,KAAC,IAAI,IAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,WAAW,GAAG,EACjD,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,CAAC,YAAG,CAAC,CAAC,KAAK,GAAQ,EACzD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAC,6BAA6B,YAAE,CAAC,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,KAH1H,CAAC,CAAC,EAAE,CAIR,CACZ,CAAC,IACA,CACT,CAAA;AACL,CAAC"}
|
|
@@ -90,6 +90,12 @@ export interface AppFrameTitleProps {
|
|
|
90
90
|
* nothing else. `name` is what a screen reader hears meanwhile (the app's name).
|
|
91
91
|
*/
|
|
92
92
|
loading?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Where the title stands (2026-11-29, DECISIONS/2026-11-29-one-frame-for-every-app.md): on a `home` the plain name
|
|
95
|
+
* is 16px (`body`); in a `file` it is 14px (`body-sm`), as the name's field always is. Left out, a plain title with
|
|
96
|
+
* its mark is a home's and every other is a file's.
|
|
97
|
+
*/
|
|
98
|
+
size?: 'home' | 'file';
|
|
93
99
|
}
|
|
94
100
|
/** One tool by the open file's name. */
|
|
95
101
|
export interface AppFrameTitleTool {
|
|
@@ -203,7 +209,10 @@ export interface AppFrameProfileProps {
|
|
|
203
209
|
choices: AppFrameProfileChoice[];
|
|
204
210
|
/** The one this window acts as. */
|
|
205
211
|
value: string;
|
|
206
|
-
/**
|
|
212
|
+
/**
|
|
213
|
+
* Deprecated 2026-11-29 (DECISIONS/2026-11-29-one-frame-for-every-app.md): the panel holds only profiles. Still
|
|
214
|
+
* drawn under them when given, for consumers not yet moved to `settings` and `signOut`.
|
|
215
|
+
*/
|
|
207
216
|
actions?: AppFrameMenuItem[];
|
|
208
217
|
onAction?: (id: string) => void;
|
|
209
218
|
/** The button's and the menu's accessible name ("Profile"). */
|
|
@@ -213,7 +222,60 @@ export interface AppFrameProfileProps {
|
|
|
213
222
|
align?: 'start' | 'end';
|
|
214
223
|
/** The face alone (2026-11-09, a Workbench's D1): a 32px picture in a 40px round button, no words; the name is still said. */
|
|
215
224
|
face?: boolean;
|
|
225
|
+
/** Settings (2026-11-29): a small button in the panel head's top start corner. */
|
|
226
|
+
settings?: {
|
|
227
|
+
label: string;
|
|
228
|
+
href?: string;
|
|
229
|
+
onPress?: () => void;
|
|
230
|
+
};
|
|
231
|
+
/** Sign out (2026-11-29): a small button in the panel head's top end corner. */
|
|
232
|
+
signOut?: {
|
|
233
|
+
label: string;
|
|
234
|
+
onPress: () => void;
|
|
235
|
+
};
|
|
236
|
+
/** No other profile yet (2026-11-29): said in place of them, with the way to make one (an organization). */
|
|
237
|
+
empty?: {
|
|
238
|
+
title: string;
|
|
239
|
+
body: string;
|
|
240
|
+
action: {
|
|
241
|
+
label: string;
|
|
242
|
+
href?: string;
|
|
243
|
+
onPress?: () => void;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
216
246
|
}
|
|
217
|
-
/**
|
|
218
|
-
|
|
247
|
+
/**
|
|
248
|
+
* Who this window acts as (2026-11-29): a pill ending in a chevron, opening a panel of profiles only. The chosen one at
|
|
249
|
+
* its head, with Settings and Sign out in the head's top corners; the others under it, or `empty` when there are none.
|
|
250
|
+
*/
|
|
251
|
+
export declare function AppFrameProfile({ choices, value, actions, onAction, label, othersLabel, align, face, settings, signOut, empty }: AppFrameProfileProps): import("react").JSX.Element | null;
|
|
252
|
+
export interface AppFrameNotificationsProps {
|
|
253
|
+
/** The bell's accessible name ("Notifications"); with a count, the consumer says it ("Notifications, 3 new"). */
|
|
254
|
+
label: string;
|
|
255
|
+
/** The panel's head. */
|
|
256
|
+
title: string;
|
|
257
|
+
/** How many are new: a number on the bell; none at 0. */
|
|
258
|
+
count?: number;
|
|
259
|
+
/** Something new, with no number: a dot. */
|
|
260
|
+
dot?: boolean;
|
|
261
|
+
/** Said in the panel when there are no rows. */
|
|
262
|
+
empty: string;
|
|
263
|
+
/** The rows: Newtone parts, each its own link or button. */
|
|
264
|
+
children?: ReactNode;
|
|
265
|
+
onOpenChange?: (open: boolean) => void;
|
|
266
|
+
align?: 'start' | 'end';
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Notifications in the bar (2026-11-29, DECISIONS/2026-11-29-one-frame-for-every-app.md): a 40px bell beside the Apps
|
|
270
|
+
* entry, its count or dot on its corner, opening a floating panel of rows under it; never a page.
|
|
271
|
+
*/
|
|
272
|
+
export declare function AppFrameNotifications({ label, title, count, dot, empty, children, onOpenChange, align }: AppFrameNotificationsProps): import("react").JSX.Element;
|
|
273
|
+
export interface AppFrameCornerProps {
|
|
274
|
+
children?: ReactNode;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* The window's bottom-end corner (2026-11-29): fixed 16px from both edges, a phone's safe area added; above the content,
|
|
278
|
+
* under a summoned panel and a sheet. A home's floating assistant stands here.
|
|
279
|
+
*/
|
|
280
|
+
export declare function AppFrameCorner({ children }: AppFrameCornerProps): import("react").JSX.Element;
|
|
219
281
|
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/app-frame/parts.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/app-frame/parts.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACtG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAO9D,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC1E,OAAO,EAAY,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAE/E,MAAM,WAAW,gBAAgB;IAC7B,uGAAuG;IACvG,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,gJAAgJ;IAChJ,GAAG,CAAC,EAAE,SAAS,CAAA;CAClB;AAED,4HAA4H;AAC5H,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,gBAAgB,+BAQnE;AAED,MAAM,WAAW,mBAAmB;IAChC,+GAA+G;IAC/G,KAAK,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kEAAkE;IAClE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,mBAAmB,+BAwBlH;AAED;;;GAGG;AACH,e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K,EAAE,EAAE,oBAAoB,sCAsE1K;AAED,MAAM,WAAW,0BAA0B;IACvC,iHAAiH;IACjH,KAAK,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAC1B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAS,EAAE,GAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAa,EAAE,EAAE,0BAA0B,+BAsBvJ;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAE/D"}
|
package/dist/app-frame/parts.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
// AppFrame's own parts: its bar, the app's title in it, the Apps entry and the profile switcher. Each move between
|
|
4
4
|
// apps or profiles is a link, so the host's own gestures (⌘ or a middle press: a new tab) work on it
|
|
5
5
|
// (DECISIONS 2026-11-06-an-app-frame). The menus are Desktop's (desktop/menu), reused until Desktop is deleted.
|
|
6
|
-
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { Children, forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { FramedIcon } from '../framed-icon/framed-icon.js';
|
|
8
8
|
import { Avatar } from '../avatar/avatar.js';
|
|
9
9
|
import { Badge } from '../badge/badge.js';
|
|
@@ -49,8 +49,9 @@ export function AppFrameTitle(props) {
|
|
|
49
49
|
}
|
|
50
50
|
// `mark={false}` holds here as in the field (2026-11-29): an editor's bar has its mark in A1 already, so a title
|
|
51
51
|
// drawn before the file's name is known never shows a second one.
|
|
52
|
-
function PlainTitle({ name, icon, art, axes, signage, href, mark: marked = true, loading }) {
|
|
53
|
-
const
|
|
52
|
+
function PlainTitle({ name, icon, art, axes, signage, href, mark: marked = true, loading, size }) {
|
|
53
|
+
const home = (size ?? (marked ? 'home' : 'file')) === 'home';
|
|
54
|
+
const inner = (_jsxs(_Fragment, { children: [marked ? (_jsx("span", { className: "newtone-app-frame-mark", children: _jsx(FramedIcon, { icon: icon, art: art, axes: axes, shape: "square", signage: signage }) })) : null, loading ? (_jsx("span", { className: "newtone-app-frame-name", role: "status", "aria-busy": "true", "aria-label": name, children: _jsx(Skeleton.Line, { width: "10rem", size: home ? 'body' : 'body-sm' }) })) : (_jsx(Text, { as: "span", scale: home ? 'body' : 'body-sm', weight: "semibold", lines: 1, className: "newtone-app-frame-name", children: name }))] }));
|
|
54
55
|
return href && !loading ? (_jsx("a", { className: "newtone-app-frame-title", href: href, children: inner })) : (_jsx("span", { className: "newtone-app-frame-title", children: inner }));
|
|
55
56
|
}
|
|
56
57
|
// The mark, then the name as a field with the main menu's button at its end.
|
|
@@ -129,13 +130,36 @@ export function AppFrameApps({ label, apps = [], groups, current, align = 'start
|
|
|
129
130
|
const named = count > 0 && countLabel ? countLabel(count) : label;
|
|
130
131
|
return (_jsxs(_Fragment, { children: [_jsxs("button", { ...m.button, className: "newtone-app-frame-control newtone-app-frame-apps-button", "aria-label": named, title: named, children: [_jsx(Icon, { name: "apps", size: "sm" }), _jsx(Badge, { count: count })] }), _jsx("div", { ...m.menu, "aria-label": label, "data-newtone-app-frame-apps": "", children: shown ? (_jsx("div", { className: "newtone-app-frame-apps-groups", children: shown.map((g) => (_jsxs("div", { role: "group", "aria-labelledby": `${m.menu.id}-${g.id}`, className: "newtone-app-frame-apps-group", children: [_jsx(Text, { as: "span", scale: "caption", tone: "secondary", id: `${m.menu.id}-${g.id}`, className: "newtone-app-frame-apps-heading", children: g.label }), _jsx(AppsGrid, { apps: g.apps, current: current })] }, g.id))) })) : (_jsx("div", { role: "group", children: _jsx(AppsGrid, { apps: apps, current: current }) })) })] }));
|
|
131
132
|
}
|
|
132
|
-
/**
|
|
133
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Who this window acts as (2026-11-29): a pill ending in a chevron, opening a panel of profiles only. The chosen one at
|
|
135
|
+
* its head, with Settings and Sign out in the head's top corners; the others under it, or `empty` when there are none.
|
|
136
|
+
*/
|
|
137
|
+
export function AppFrameProfile({ choices, value, actions = [], onAction, label, othersLabel, align = 'end', face = false, settings, signOut, empty }) {
|
|
134
138
|
const m = useMenu(align);
|
|
135
139
|
const chosen = choices.find((c) => c.value === value) ?? choices[0];
|
|
136
140
|
const others = choices.filter((c) => c !== chosen);
|
|
137
141
|
if (!chosen)
|
|
138
142
|
return null;
|
|
139
|
-
|
|
143
|
+
const corner = (side, icon, act) => act.href ? (_jsx("a", { href: act.href, role: "menuitem", tabIndex: -1, className: "newtone-app-frame-menu-corner", "data-side": side, "aria-label": act.label, title: act.label, children: _jsx(Icon, { name: icon, size: "sm" }) })) : (_jsx("button", { type: "button", role: "menuitem", tabIndex: -1, className: "newtone-app-frame-menu-corner", "data-side": side, "aria-label": act.label, title: act.label, onClick: () => m.done(() => act.onPress?.()), children: _jsx(Icon, { name: icon, size: "sm" }) }));
|
|
144
|
+
return (_jsxs(_Fragment, { children: [_jsxs("button", { ...m.button, className: "newtone-app-frame-profile", "data-face": face ? '' : undefined, "aria-label": `${label}: ${chosen.name}`, title: chosen.name, children: [_jsx(Avatar, { alt: "", src: chosen.picture, initials: chosen.picture ? undefined : chosen.initials, extended: chosen.extended, size: "32px" }), face ? null : (_jsxs(_Fragment, { children: [_jsx(Text, { as: "span", scale: "body-sm", weight: "medium", lines: 1, className: "newtone-app-frame-profile-tag", children: chosen.tag ?? chosen.name }), _jsx(Icon, { name: "expand_more", size: "sm", className: "newtone-app-frame-profile-chevron" })] }))] }), _jsxs("div", { ...m.menu, "aria-label": label, children: [_jsxs("div", { className: "newtone-app-frame-menu-head", children: [settings ? corner('start', 'settings', settings) : null, signOut ? corner('end', 'logout', signOut) : null, _jsx(Avatar, { alt: "", src: chosen.picture, initials: chosen.picture ? undefined : chosen.initials, extended: chosen.extended, size: "56px" }), _jsx(Text, { as: "span", scale: "body", weight: "medium", lines: 1, children: chosen.name }), chosen.meta ? _jsx(Text, { as: "span", scale: "caption", tone: "secondary", lines: 1, children: chosen.meta }) : null] }), others.length ? (_jsxs("div", { role: "group", "aria-label": othersLabel, className: "newtone-app-frame-menu-group", children: [othersLabel ? (_jsx(Text, { as: "span", scale: "caption", weight: "medium", tone: "secondary", className: "newtone-app-frame-menu-title", children: othersLabel })) : null, others.map((c) => (_jsxs("a", { href: c.href, role: "menuitem", tabIndex: -1, className: "newtone-app-frame-menu-item", children: [_jsx(Avatar, { alt: "", src: c.picture, initials: c.picture ? undefined : c.initials, extended: c.extended, size: "24px" }), _jsxs("span", { className: "newtone-app-frame-menu-words", children: [_jsx(Text, { as: "span", scale: "body-sm", lines: 1, children: c.name }), c.meta ? _jsx(Text, { as: "span", scale: "caption", tone: "secondary", lines: 1, children: c.meta }) : null] })] }, c.value)))] })) : empty ? (_jsxs("div", { className: "newtone-app-frame-menu-empty", children: [_jsx(Text, { as: "span", scale: "body-sm", weight: "medium", children: empty.title }), _jsx(Text, { as: "span", scale: "caption", tone: "secondary", children: empty.body }), empty.action.href ? (_jsx("a", { href: empty.action.href, role: "menuitem", tabIndex: -1, className: "newtone-app-frame-menu-empty-action", children: empty.action.label })) : (_jsx("button", { type: "button", role: "menuitem", tabIndex: -1, className: "newtone-app-frame-menu-empty-action", onClick: () => m.done(() => empty.action.onPress?.()), children: empty.action.label }))] })) : null, _jsx(MenuItems, { items: actions, onItem: (id) => m.done(() => onAction?.(id)) })] })] }));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Notifications in the bar (2026-11-29, DECISIONS/2026-11-29-one-frame-for-every-app.md): a 40px bell beside the Apps
|
|
148
|
+
* entry, its count or dot on its corner, opening a floating panel of rows under it; never a page.
|
|
149
|
+
*/
|
|
150
|
+
export function AppFrameNotifications({ label, title, count = 0, dot = false, empty, children, onOpenChange, align = 'end' }) {
|
|
151
|
+
const m = useMenu(align, 384);
|
|
152
|
+
const changed = useRef(onOpenChange);
|
|
153
|
+
changed.current = onOpenChange;
|
|
154
|
+
useEffect(() => { changed.current?.(m.open); }, [m.open]);
|
|
155
|
+
const rows = Children.toArray(children).filter(Boolean);
|
|
156
|
+
return (_jsxs(_Fragment, { children: [_jsxs("button", { ...m.button, className: "newtone-app-frame-control newtone-app-frame-notifications-button", "aria-label": label, title: label, children: [_jsx(Icon, { name: "notifications", size: "sm" }), count > 0 ? _jsx(Badge, { count: count }) : dot ? _jsx(Badge, {}) : null] }), _jsxs("div", { ...m.menu, role: "dialog", "aria-label": title, "data-newtone-app-frame-notifications": "", children: [_jsx(Text, { as: "span", scale: "body-sm", weight: "semibold", className: "newtone-app-frame-notifications-title", children: title }), rows.length ? (_jsx("div", { className: "newtone-app-frame-notifications-rows", children: rows })) : (_jsx(Text, { as: "span", scale: "body-sm", tone: "secondary", className: "newtone-app-frame-notifications-empty", children: empty }))] })] }));
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The window's bottom-end corner (2026-11-29): fixed 16px from both edges, a phone's safe area added; above the content,
|
|
160
|
+
* under a summoned panel and a sheet. A home's floating assistant stands here.
|
|
161
|
+
*/
|
|
162
|
+
export function AppFrameCorner({ children }) {
|
|
163
|
+
return _jsx("div", { className: "newtone-app-frame-corner", children: children });
|
|
140
164
|
}
|
|
141
165
|
//# sourceMappingURL=parts.js.map
|