@ai-matrx/canvas 0.10.35 → 0.10.37

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/styles.css CHANGED
@@ -1191,3 +1191,190 @@
1191
1191
  height: var(--mxc-header-h-phone, 2.75rem);
1192
1192
  }
1193
1193
  }
1194
+
1195
+ /* ── the macOS look (CanvasProvider look="mac") ─────────────────────────────
1196
+ *
1197
+ * A pane is a section of a Mac window, never a card: the column sits flush
1198
+ * against the window's edge behind one hairline (Xcode's editor beside its
1199
+ * navigator, Mail's viewer beside its list), panes are split by hairlines,
1200
+ * and each pane's header is the unified toolbar's band over it — 52pt, the
1201
+ * active tab's title centred in bold with its proxy icon (Terminal's
1202
+ * "user — bash — 80×24", Finder's folder name), or the kind's Toolbar in its
1203
+ * place (Safari's toolbar: Back | Forward, the centred address pill, Share).
1204
+ * Two or more tabs get macOS's tab bar under the band: equal tabs across the
1205
+ * whole row, the current one raised to the content's colour.
1206
+ */
1207
+ .mxc-column[data-look="mac"] {
1208
+ background: var(--mxc-bg);
1209
+ }
1210
+
1211
+ .mxc-column[data-look="mac"][data-placement="docked"]:not([data-fullscreen]) > .mxc-column-inner {
1212
+ border-left: 1px solid var(--mxc-border);
1213
+ }
1214
+
1215
+ .mxc-column[data-look="mac"] > .mxc-column-inner > .mxc-layout {
1216
+ padding: 0;
1217
+ }
1218
+
1219
+ .mxc-column[data-look="mac"] .mxc-width-handle {
1220
+ width: 5px;
1221
+ left: -2px;
1222
+ }
1223
+
1224
+ .mxc-column[data-look="mac"] .mxc-width-handle:hover,
1225
+ .mxc-column[data-look="mac"] .mxc-width-handle:focus-visible {
1226
+ background: transparent;
1227
+ }
1228
+
1229
+ .mxc-column[data-look="mac"] .mxc-panel {
1230
+ border: 0;
1231
+ border-radius: 0;
1232
+ background: var(--mxc-bg);
1233
+ }
1234
+
1235
+ /* Panes meet at one hairline (an NSSplitView's thin divider); the grab area stays 7px. */
1236
+ .mxc-column[data-look="mac"] .mxc-split-handle,
1237
+ .mxc-column[data-look="mac"] .mxc-split-handle:hover,
1238
+ .mxc-column[data-look="mac"] .mxc-split-handle:active {
1239
+ border-radius: 0;
1240
+ background: var(--mxc-border);
1241
+ }
1242
+
1243
+ .mxc-column[data-look="mac"] .mxc-pane-header {
1244
+ height: var(--mxc-toolbar-h, 52px);
1245
+ gap: 0.375rem;
1246
+ padding: 0 0.625rem 0 max(0.625rem, var(--mxc-header-inset-start, 0px));
1247
+ border-bottom: 1px solid var(--mxc-border);
1248
+ background: var(--mxc-header-bg);
1249
+ }
1250
+
1251
+ /* The window's title: centred in the band, bold, its proxy icon before it. */
1252
+ .mxc-column[data-look="mac"] .mxc-window-title {
1253
+ flex: 1 1 0;
1254
+ justify-content: center;
1255
+ gap: 0.375rem;
1256
+ padding: 0 0.5rem;
1257
+ font-size: 0.8125rem;
1258
+ font-weight: 700;
1259
+ line-height: 1rem;
1260
+ color: var(--mxc-fg);
1261
+ }
1262
+
1263
+ .mxc-column[data-look="mac"] .mxc-pane:not([data-focused]) .mxc-window-title {
1264
+ color: var(--mxc-title-fg);
1265
+ }
1266
+
1267
+ .mxc-column[data-look="mac"] .mxc-proxy-icon {
1268
+ flex: none;
1269
+ display: inline-flex;
1270
+ cursor: grab;
1271
+ }
1272
+
1273
+ .mxc-column[data-look="mac"] .mxc-window-title .mxc-title-icon {
1274
+ width: 1rem;
1275
+ height: 1rem;
1276
+ color: var(--mxc-accent);
1277
+ }
1278
+
1279
+ /* The toolbar band's buttons are the toolbar's 28pt items. */
1280
+ .mxc-column[data-look="mac"] .mxc-pane-header .mxc-icon-button {
1281
+ width: 1.75rem;
1282
+ height: 1.75rem;
1283
+ border-radius: 999px;
1284
+ }
1285
+
1286
+ .mxc-column[data-look="mac"] .mxc-pane-header .mxc-icon-button svg {
1287
+ width: 1rem;
1288
+ height: 1rem;
1289
+ }
1290
+
1291
+ /* A kind's Toolbar IS the band's middle (Safari): no row of its own. */
1292
+ .mxc-column[data-look="mac"] .mxc-pane-leading > .mxc-item-toolbar {
1293
+ flex: 1 1 auto;
1294
+ min-height: 0;
1295
+ padding: 0;
1296
+ border: 0;
1297
+ background: transparent;
1298
+ overflow: visible;
1299
+ }
1300
+
1301
+ /* Safari's address pill: centred in the band, never wider than it reads. */
1302
+ .mxc-column[data-look="mac"] .mxc-browser-bar {
1303
+ height: auto;
1304
+ padding: 0;
1305
+ }
1306
+
1307
+ .mxc-column[data-look="mac"] .mxc-address-form {
1308
+ max-width: 30rem;
1309
+ margin: 0 auto;
1310
+ }
1311
+
1312
+ .mxc-column[data-look="mac"] .mxc-address {
1313
+ height: 2.25rem;
1314
+ }
1315
+
1316
+ .mxc-column[data-look="mac"] .mxc-capsule {
1317
+ height: 2.25rem;
1318
+ padding: 0 0.25rem;
1319
+ }
1320
+
1321
+ /* macOS's tab bar: under the toolbar band, tabs sharing the whole row equally. */
1322
+ .mxc-column[data-look="mac"] .mxc-tab-bar {
1323
+ flex: none;
1324
+ display: flex;
1325
+ height: 1.75rem;
1326
+ border-bottom: 1px solid var(--mxc-border);
1327
+ background: var(--mxc-tab-bar-bg, var(--mxc-hover));
1328
+ }
1329
+
1330
+ .mxc-column[data-look="mac"] .mxc-tab-bar > .mxc-tabstrip,
1331
+ .mxc-column[data-look="mac"] .mxc-tab-bar .mxc-tabs {
1332
+ flex: 1 1 0;
1333
+ gap: 0;
1334
+ height: 100%;
1335
+ }
1336
+
1337
+ .mxc-column[data-look="mac"] .mxc-tab-bar .mxc-tab {
1338
+ flex: 1 1 0;
1339
+ width: auto;
1340
+ max-width: none;
1341
+ height: 100%;
1342
+ border-radius: 0;
1343
+ border-left: 1px solid var(--mxc-border);
1344
+ box-shadow: none;
1345
+ font-size: 0.8125rem;
1346
+ background: transparent;
1347
+ }
1348
+
1349
+ .mxc-column[data-look="mac"] .mxc-tab-bar .mxc-tab:first-child {
1350
+ border-left: 0;
1351
+ }
1352
+
1353
+ .mxc-column[data-look="mac"] .mxc-tab-bar .mxc-tab[data-active] {
1354
+ background: var(--mxc-bg);
1355
+ color: var(--mxc-fg);
1356
+ }
1357
+
1358
+ .mxc-column[data-look="mac"] .mxc-tab-bar .mxc-tab:not([data-active]):hover {
1359
+ background: var(--mxc-hover);
1360
+ }
1361
+
1362
+ /* The window-wide strip of a split: the same tab bar, flush. */
1363
+ .mxc-column[data-look="mac"] .mxc-window-tabs {
1364
+ height: 1.75rem;
1365
+ margin: 0;
1366
+ padding: 0;
1367
+ border: 0;
1368
+ border-bottom: 1px solid var(--mxc-border);
1369
+ border-radius: 0;
1370
+ background: var(--mxc-tab-bar-bg, var(--mxc-hover));
1371
+ }
1372
+
1373
+ /* A native body (a web page) is full bleed in its section: no inset, no rounded card. */
1374
+ .mxc-column[data-look="mac"] .mxc-native-body {
1375
+ display: flex;
1376
+ flex-direction: column;
1377
+ margin: 0;
1378
+ border-radius: 0;
1379
+ background: var(--mxc-bg);
1380
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/canvas",
3
- "version": "0.10.35",
3
+ "version": "0.10.37",
4
4
  "description": "The AI Matrx canvas: a docked right-hand column with split panes, tabs, full screen, a kind registry, Redux-compatible state and persistence.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -103,5 +103,5 @@
103
103
  "check:package": "pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm verify:tarball",
104
104
  "verify:tarball": "node scripts/verify-tarball.mjs"
105
105
  },
106
- "gitHead": "833de2279a3cad3c9cb980582697be6ebc7da1a4"
106
+ "gitHead": "6fad0a48d61a6a3407a22128d1068ac383574567"
107
107
  }