@bigpixelrocket/uiok 0.2.2 → 0.3.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.
Files changed (158) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/dist/button/TextLink.d.ts +27 -0
  3. package/dist/button/TextLink.js +15 -0
  4. package/dist/button/button.css +48 -0
  5. package/dist/button/index.d.ts +2 -1
  6. package/dist/button/index.js +2 -1
  7. package/dist/charts/Sparkline.d.ts +20 -0
  8. package/dist/charts/Sparkline.js +12 -0
  9. package/dist/charts/Sparkline.logic.d.ts +9 -0
  10. package/dist/charts/Sparkline.logic.js +27 -0
  11. package/dist/charts/charts.css +17 -0
  12. package/dist/charts/index.d.ts +2 -0
  13. package/dist/charts/index.js +2 -0
  14. package/dist/dialog/ConfirmDialog.d.ts +17 -1
  15. package/dist/dialog/ConfirmDialog.js +10 -4
  16. package/dist/dialog/DialogLists.d.ts +8 -1
  17. package/dist/dialog/DialogLists.js +3 -2
  18. package/dist/dialog/ModalDialog.d.ts +8 -0
  19. package/dist/dialog/ModalDialog.js +4 -2
  20. package/dist/dialog/ProgressDialog.d.ts +34 -0
  21. package/dist/dialog/ProgressDialog.js +40 -0
  22. package/dist/dialog/TypedNameDialog.d.ts +36 -0
  23. package/dist/dialog/TypedNameDialog.js +17 -0
  24. package/dist/dialog/index.d.ts +5 -2
  25. package/dist/dialog/index.js +4 -1
  26. package/dist/field/Switch.d.ts +26 -0
  27. package/dist/field/Switch.js +20 -0
  28. package/dist/field/field.css +110 -2
  29. package/dist/field/index.d.ts +3 -2
  30. package/dist/field/index.js +3 -2
  31. package/dist/filter/filter.css +16 -0
  32. package/dist/frame/AppRoot.d.ts +44 -0
  33. package/dist/frame/AppRoot.js +26 -0
  34. package/dist/frame/Dock.d.ts +88 -0
  35. package/dist/frame/Dock.js +129 -0
  36. package/dist/frame/FilterChips.d.ts +28 -0
  37. package/dist/frame/FilterChips.js +14 -0
  38. package/dist/frame/PageParts.d.ts +69 -0
  39. package/dist/frame/PageParts.js +60 -0
  40. package/dist/frame/PaneSplit.d.ts +74 -0
  41. package/dist/frame/PaneSplit.js +197 -0
  42. package/dist/frame/SidebarResizer.d.ts +35 -0
  43. package/dist/frame/SidebarResizer.js +43 -0
  44. package/dist/frame/StatusNotice.d.ts +20 -0
  45. package/dist/frame/StatusNotice.js +13 -0
  46. package/dist/frame/Tree.d.ts +140 -0
  47. package/dist/frame/Tree.js +141 -0
  48. package/dist/frame/TreeToggle.d.ts +18 -0
  49. package/dist/frame/TreeToggle.js +17 -0
  50. package/dist/frame/WindowFrame.d.ts +57 -0
  51. package/dist/frame/WindowFrame.js +19 -0
  52. package/dist/frame/frame.css +801 -0
  53. package/dist/frame/index.d.ts +22 -0
  54. package/dist/frame/index.js +22 -0
  55. package/dist/frame/sharedRef.d.ts +8 -0
  56. package/dist/frame/sharedRef.js +26 -0
  57. package/dist/grid/DataGrid.d.ts +10 -2
  58. package/dist/grid/DataGrid.js +47 -13
  59. package/dist/grid/DataGrid.logic.d.ts +16 -0
  60. package/dist/grid/DataGrid.logic.js +28 -0
  61. package/dist/grid/grid.css +128 -4
  62. package/dist/index.d.ts +4 -0
  63. package/dist/index.js +4 -0
  64. package/dist/labels/UiokLabels.d.ts +6 -0
  65. package/dist/labels/UiokLabels.js +5 -1
  66. package/dist/labels/dialog.d.ts +12 -0
  67. package/dist/labels/dialog.js +7 -1
  68. package/dist/labels/index.d.ts +2 -0
  69. package/dist/labels/index.js +2 -0
  70. package/dist/labels/keys.js +2 -0
  71. package/dist/labels/paneTabs.d.ts +27 -0
  72. package/dist/labels/paneTabs.js +10 -0
  73. package/dist/labels/selectAll.d.ts +4 -1
  74. package/dist/labels/selectAll.js +1 -1
  75. package/dist/labels/settings.d.ts +46 -0
  76. package/dist/labels/settings.js +29 -0
  77. package/dist/legend/KeyLegendStrip.d.ts +9 -1
  78. package/dist/legend/KeyLegendStrip.js +119 -5
  79. package/dist/legend/legend.css +52 -0
  80. package/dist/listing/EmptyState.d.ts +40 -0
  81. package/dist/listing/EmptyState.js +14 -0
  82. package/dist/listing/Listing.d.ts +23 -5
  83. package/dist/listing/Listing.js +11 -8
  84. package/dist/listing/index.d.ts +3 -1
  85. package/dist/listing/index.js +3 -1
  86. package/dist/listing/listing.css +172 -5
  87. package/dist/log/LogWell.d.ts +34 -0
  88. package/dist/log/LogWell.js +39 -0
  89. package/dist/log/LogWell.logic.d.ts +16 -0
  90. package/dist/log/LogWell.logic.js +26 -0
  91. package/dist/log/index.d.ts +8 -0
  92. package/dist/log/index.js +8 -0
  93. package/dist/log/log.css +57 -0
  94. package/dist/pane/Pane.d.ts +49 -0
  95. package/dist/pane/Pane.js +17 -0
  96. package/dist/pane/PaneActions.d.ts +3 -1
  97. package/dist/pane/PaneActions.js +6 -5
  98. package/dist/pane/PaneKeys.d.ts +10 -3
  99. package/dist/pane/PaneKeys.js +26 -7
  100. package/dist/pane/PaneTabs.d.ts +92 -0
  101. package/dist/pane/PaneTabs.js +326 -0
  102. package/dist/pane/PaneTabs.logic.d.ts +97 -0
  103. package/dist/pane/PaneTabs.logic.js +158 -0
  104. package/dist/pane/index.d.ts +7 -1
  105. package/dist/pane/index.js +7 -1
  106. package/dist/pane/panetabs.css +408 -0
  107. package/dist/pane/usePaneKeys.js +9 -11
  108. package/dist/pane/useTabDrag.d.ts +49 -0
  109. package/dist/pane/useTabDrag.js +306 -0
  110. package/dist/segmented/SegmentedChoice.d.ts +8 -1
  111. package/dist/segmented/SegmentedChoice.js +7 -4
  112. package/dist/shell/AboutWindow.d.ts +21 -0
  113. package/dist/shell/AboutWindow.js +10 -0
  114. package/dist/shell/LanguageChoice.d.ts +27 -0
  115. package/dist/shell/LanguageChoice.js +17 -0
  116. package/dist/shell/LoadFailure.d.ts +22 -0
  117. package/dist/shell/LoadFailure.js +15 -0
  118. package/dist/shell/Lockup.d.ts +52 -0
  119. package/dist/shell/Lockup.js +30 -0
  120. package/dist/shell/SettingsDialog.d.ts +97 -0
  121. package/dist/shell/SettingsDialog.js +219 -0
  122. package/dist/shell/SettingsDialog.logic.d.ts +33 -0
  123. package/dist/shell/SettingsDialog.logic.js +42 -0
  124. package/dist/shell/SettingsFiles.d.ts +55 -0
  125. package/dist/shell/SettingsFiles.js +30 -0
  126. package/dist/shell/SettingsPageKeys.d.ts +42 -0
  127. package/dist/shell/SettingsPageKeys.js +70 -0
  128. package/dist/shell/SettingsSubsection.d.ts +34 -0
  129. package/dist/shell/SettingsSubsection.js +30 -0
  130. package/dist/shell/SignIn.d.ts +61 -0
  131. package/dist/shell/SignIn.js +36 -0
  132. package/dist/shell/ThemePicker.d.ts +74 -0
  133. package/dist/shell/ThemePicker.js +96 -0
  134. package/dist/shell/ThemePicker.logic.d.ts +13 -0
  135. package/dist/shell/ThemePicker.logic.js +26 -0
  136. package/dist/shell/TitleBar.d.ts +44 -0
  137. package/dist/shell/TitleBar.js +23 -0
  138. package/dist/shell/UpdatePill.d.ts +26 -0
  139. package/dist/shell/UpdatePill.js +17 -0
  140. package/dist/shell/Updates.d.ts +99 -0
  141. package/dist/shell/Updates.js +72 -0
  142. package/dist/shell/index.d.ts +27 -0
  143. package/dist/shell/index.js +27 -0
  144. package/dist/shell/shell.css +243 -4
  145. package/dist/styles.css +10 -0
  146. package/dist/surface/GroupSwatch.d.ts +22 -0
  147. package/dist/surface/GroupSwatch.js +15 -0
  148. package/dist/surface/Tag.d.ts +26 -0
  149. package/dist/surface/Tag.js +12 -0
  150. package/dist/surface/index.d.ts +7 -0
  151. package/dist/surface/index.js +7 -0
  152. package/dist/surface/surface.css +116 -1
  153. package/dist/themes/catalog.js +4 -0
  154. package/dist/themes/themes.generated.css +244 -0
  155. package/dist/themes/tokens.d.ts +17 -5
  156. package/dist/themes/tokens.js +75 -1
  157. package/dist/tokens.css +11 -0
  158. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The shell: what an app's window draws around its own pages, which every
3
+ * app of the family draws the same way. The title bar (`TitleBar` with the
4
+ * `Lockup`, the `BrandMark`, and the `ChannelMarker`), the `UpdatePill`, the
5
+ * `AboutWindow`, the `SettingsDialog` with its subsections and page keys,
6
+ * its shared pages (`AppearanceSettings` over `ThemeChoices`,
7
+ * `LanguageChoice`, `UpdatesPage` with `UpdateChecks` and `UpdateCard`,
8
+ * `SettingsFiles`), and the sign-in prompts (`SignInDialog`,
9
+ * `HostKeyDialog`), and the `LoadFailure` a window shows in place of
10
+ * content that failed to load. Their look is `shell.css` in
11
+ * `@bigpixelrocket/uiok/styles.css`.
12
+ */
13
+ export { AboutWindow, type AboutWindowProps } from './AboutWindow.js';
14
+ export { LanguageChoice, type LanguageChoiceProps, type LanguageOption } from './LanguageChoice.js';
15
+ export { LoadFailure, type LoadFailureProps } from './LoadFailure.js';
16
+ export { BrandMark, Lockup, type BrandMarkLook, type BrandMarkProps, type BrandMarkShape, type LockupProps, type LockupSize } from './Lockup.js';
17
+ export { SettingsDialog, SettingsSaveFailure, type SettingsDialogProps, type SettingsGroup, type SettingsPage, type SettingsPageRequest, type SettingsSaveFailureProps, type SettingsSubsectionEntry } from './SettingsDialog.js';
18
+ export { spiedSubsection, SUBSECTION_SCROLL_INSET_PX, SUBSECTION_SPY_SLACK_PX, subsectionScrollTop, type SettingsScrollView, type SubsectionAnchor } from './SettingsDialog.logic.js';
19
+ export { SettingsFiles, type SettingsFileEntry, type SettingsFileProblem, type SettingsFileRequest, type SettingsFilesProps } from './SettingsFiles.js';
20
+ export { SettingsPageKeysContext, settingsLegend, useSettingsPageKeys, type SettingsPageKeys } from './SettingsPageKeys.js';
21
+ export { SETTINGS_PAGE_HEAD_ATTRIBUTE, SETTINGS_REVEAL_ATTRIBUTE, SETTINGS_SUBSECTION_ATTRIBUTE, SettingsSubsection, type SettingsSubsectionProps } from './SettingsSubsection.js';
22
+ export { HostKeyDialog, SignInDialog, type HostKeyDialogProps, type SignInDialogProps, type SignInFact } from './SignIn.js';
23
+ export { AppearanceSettings, ThemeChoices, ThemePreview, themesOf, useSystemDark, type AppearanceSettingsProps, type ThemeChoice, type ThemeChoicesProps } from './ThemePicker.js';
24
+ export { appearanceInUse, steppedIndex } from './ThemePicker.logic.js';
25
+ export { ChannelMarker, TitleBar, type ChannelMarkerProps, type TitleBarProps } from './TitleBar.js';
26
+ export { UpdatePill, type UpdatePillProps, type UpdatePillState } from './UpdatePill.js';
27
+ export { UpdateCard, UpdateChecks, UpdateNotes, UpdatesPage, type UpdateCardProps, type UpdateCardTone, type UpdateCardVerb, type UpdateChecksChoice, type UpdateChecksProps, type UpdateNotesGroup, type UpdateNotesProps, type UpdatesPageProps } from './Updates.js';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The shell: what an app's window draws around its own pages, which every
3
+ * app of the family draws the same way. The title bar (`TitleBar` with the
4
+ * `Lockup`, the `BrandMark`, and the `ChannelMarker`), the `UpdatePill`, the
5
+ * `AboutWindow`, the `SettingsDialog` with its subsections and page keys,
6
+ * its shared pages (`AppearanceSettings` over `ThemeChoices`,
7
+ * `LanguageChoice`, `UpdatesPage` with `UpdateChecks` and `UpdateCard`,
8
+ * `SettingsFiles`), and the sign-in prompts (`SignInDialog`,
9
+ * `HostKeyDialog`), and the `LoadFailure` a window shows in place of
10
+ * content that failed to load. Their look is `shell.css` in
11
+ * `@bigpixelrocket/uiok/styles.css`.
12
+ */
13
+ export { AboutWindow } from './AboutWindow.js';
14
+ export { LanguageChoice } from './LanguageChoice.js';
15
+ export { LoadFailure } from './LoadFailure.js';
16
+ export { BrandMark, Lockup } from './Lockup.js';
17
+ export { SettingsDialog, SettingsSaveFailure } from './SettingsDialog.js';
18
+ export { spiedSubsection, SUBSECTION_SCROLL_INSET_PX, SUBSECTION_SPY_SLACK_PX, subsectionScrollTop } from './SettingsDialog.logic.js';
19
+ export { SettingsFiles } from './SettingsFiles.js';
20
+ export { SettingsPageKeysContext, settingsLegend, useSettingsPageKeys } from './SettingsPageKeys.js';
21
+ export { SETTINGS_PAGE_HEAD_ATTRIBUTE, SETTINGS_REVEAL_ATTRIBUTE, SETTINGS_SUBSECTION_ATTRIBUTE, SettingsSubsection } from './SettingsSubsection.js';
22
+ export { HostKeyDialog, SignInDialog } from './SignIn.js';
23
+ export { AppearanceSettings, ThemeChoices, ThemePreview, themesOf, useSystemDark } from './ThemePicker.js';
24
+ export { appearanceInUse, steppedIndex } from './ThemePicker.logic.js';
25
+ export { ChannelMarker, TitleBar } from './TitleBar.js';
26
+ export { UpdatePill } from './UpdatePill.js';
27
+ export { UpdateCard, UpdateChecks, UpdateNotes, UpdatesPage } from './Updates.js';
@@ -4,10 +4,11 @@
4
4
  a file's problems, the update cards and their notes), the update pill's
5
5
  failed state, the release channel tag, the About window's layout, the
6
6
  sign-in prompts, and the line a part of the window shows when it fails
7
- to load. None is a component: the app writes the markup with these
8
- classes (docs/components/shell.md). The header, the brand
9
- wordmark, the app's icon, window drag regions, and the startup screens
10
- stay the app's. */
7
+ to load, and the title bar (the lockup and the brand mark, the channel
8
+ marker, the update pill's place). The components of
9
+ @bigpixelrocket/uiok/shell draw them (docs/components/shell.md); a host
10
+ may write the same markup with these classes. The app's icon, its
11
+ brand mark's glyph, and its startup screens stay the app's. */
11
12
 
12
13
  /* ---- Settings dialog ---- */
13
14
 
@@ -910,6 +911,19 @@
910
911
 
911
912
  /* ---- Channel tag ---- */
912
913
 
914
+ /* The release channel an element wears (data-channel on the app's root or
915
+ the About window): its hue and its tag's words, from the theme's
916
+ channel tokens. A release build wears none. */
917
+ [data-channel='latest'] {
918
+ --channel: var(--channel-latest);
919
+ --channel-text: var(--channel-latest-text);
920
+ }
921
+
922
+ [data-channel='local'] {
923
+ --channel: var(--channel-local);
924
+ --channel-text: var(--channel-local-text);
925
+ }
926
+
913
927
  /* The release channel beside a lockup (an About window, a splash) on a
914
928
  build that is not the release: small caps on a pill of the channel's
915
929
  colour, so a screenshot always says which build it shows. An app that
@@ -1071,3 +1085,228 @@
1071
1085
  -webkit-user-select: text;
1072
1086
  user-select: text;
1073
1087
  }
1088
+
1089
+ /* ---- Title bar ---- */
1090
+
1091
+ /* A window's title bar where the native one is hidden (TitleBar): the
1092
+ lockup and, on a build that is not the release, its channel marker,
1093
+ standing on the window ground. It paints nothing, so tabs beside it
1094
+ stand on the same ground. The whole bar is a drag region except the
1095
+ marker, so it moves the window and a double click zooms it like a native
1096
+ title bar. A bar cut narrow cuts at its end. */
1097
+ .shell-topbar {
1098
+ display: flex;
1099
+ align-items: center;
1100
+ height: 100%;
1101
+ min-width: 0;
1102
+ padding: 0 var(--space-4) 0 var(--space-6);
1103
+ box-sizing: border-box;
1104
+ overflow: hidden;
1105
+ -webkit-app-region: drag;
1106
+ }
1107
+
1108
+ .shell-brand {
1109
+ display: flex;
1110
+ align-items: center;
1111
+ gap: var(--space-4);
1112
+ min-width: 0;
1113
+ white-space: nowrap;
1114
+ }
1115
+
1116
+ /* On macOS the brand clears the traffic lights by 4px; elsewhere the
1117
+ bar's own padding stands there. */
1118
+ .shell-topbar[data-traffic-lights] .shell-brand {
1119
+ margin-left: calc(var(--traffic-light-inset) - var(--space-6));
1120
+ }
1121
+
1122
+ /* Only the channel marker shrinks; the lockup keeps its size. */
1123
+ .shell-brand > * {
1124
+ flex: none;
1125
+ }
1126
+
1127
+ .shell-lockup {
1128
+ --lockup-size: 15px;
1129
+ }
1130
+
1131
+ /* The channel marker (ChannelMarker): a dot in the channel's colour, the
1132
+ channel's name, and its build number or branch, small and quiet. It opts
1133
+ out of the drag region: a draggable region takes no pointer events, so
1134
+ its tooltip would never show. */
1135
+ .shell-brand > .shell-channel {
1136
+ display: inline-flex;
1137
+ flex: 0 1 auto;
1138
+ align-items: center;
1139
+ gap: var(--space-2);
1140
+ min-width: 0;
1141
+ margin-left: var(--space-1);
1142
+ font-size: var(--font-size-caption);
1143
+ line-height: 1;
1144
+ transform: translateY(1px);
1145
+ -webkit-app-region: no-drag;
1146
+ }
1147
+
1148
+ /* Where a channel's colour sits near 2:1 on the bar, the dot wears the
1149
+ group marks' hairline ring (--group-dot-ring). */
1150
+ .shell-channel-dot {
1151
+ flex: none;
1152
+ width: var(--dot);
1153
+ height: var(--dot);
1154
+ border-radius: var(--radius-pill);
1155
+ background: var(--channel, var(--accent));
1156
+ box-shadow: var(--group-dot-ring);
1157
+ }
1158
+
1159
+ .shell-channel-name {
1160
+ flex: none;
1161
+ color: var(--channel-name);
1162
+ font-weight: var(--font-weight-medium);
1163
+ }
1164
+
1165
+ /* The build number or the branch gives way, up to 224px. */
1166
+ .shell-channel-detail {
1167
+ flex: 0 1 auto;
1168
+ min-width: 0;
1169
+ max-width: 224px;
1170
+ overflow: hidden;
1171
+ color: var(--channel-detail);
1172
+ font-variant-numeric: tabular-nums;
1173
+ font-weight: var(--font-weight-regular);
1174
+ text-overflow: ellipsis;
1175
+ }
1176
+
1177
+ .shell-channel-modified {
1178
+ flex: none;
1179
+ color: var(--channel-detail);
1180
+ font-size: var(--font-size-caption);
1181
+ }
1182
+
1183
+ /* The band's trailing end, after the main pane's tabs: the update pill,
1184
+ out of the drag region so it takes clicks. */
1185
+ .shell-trailing {
1186
+ display: flex;
1187
+ align-items: center;
1188
+ gap: var(--space-5);
1189
+ -webkit-app-region: no-drag;
1190
+ }
1191
+
1192
+ /* ---- Lockup and brand mark ---- */
1193
+
1194
+ /* A product's lockup (Lockup): the mark beside the wordmark, its last part
1195
+ heavier. The host sizes it with --lockup-size; the mark scales with it. */
1196
+ :where(.lockup) {
1197
+ --lockup-size: 40px;
1198
+ }
1199
+
1200
+ .lockup {
1201
+ display: inline-flex;
1202
+ align-items: center;
1203
+ gap: 0.4em;
1204
+ margin: 0;
1205
+ font-size: var(--lockup-size);
1206
+ font-weight: var(--font-weight-light);
1207
+ letter-spacing: -0.02em;
1208
+ line-height: 1;
1209
+ white-space: nowrap;
1210
+ }
1211
+
1212
+ .lockup-wordmark b {
1213
+ font-weight: var(--font-weight-heavy);
1214
+ }
1215
+
1216
+ /* The mark (BrandMark) stands a little taller than the wordmark's capitals,
1217
+ so the badge's overhang does not make the plate look smaller than the
1218
+ text. The plate wears the accent and the badge the success hue; under a
1219
+ dark appearance both deepen toward the constant plate tone, so the white
1220
+ glyph and check keep their contrast on a light accent. A glyph's cuts and
1221
+ the badge's ring are drawn in the plate's and the bar's own colours. */
1222
+ .brand-mark {
1223
+ --brand-mark-plate: var(--accent);
1224
+ --brand-mark-badge: var(--success);
1225
+
1226
+ flex: none;
1227
+ width: 1.4em;
1228
+ height: 1.4em;
1229
+ }
1230
+
1231
+ @media (prefers-color-scheme: dark) {
1232
+ .brand-mark {
1233
+ --brand-mark-plate: var(--brand-plate-dark);
1234
+ --brand-mark-badge: var(--brand-badge-dark);
1235
+ }
1236
+ }
1237
+
1238
+ .brand-mark-plate {
1239
+ fill: var(--brand-mark-plate);
1240
+ }
1241
+
1242
+ .brand-mark-glyph {
1243
+ fill: var(--brand-white);
1244
+ }
1245
+
1246
+ .brand-mark-cut {
1247
+ fill: none;
1248
+ stroke: var(--brand-mark-plate);
1249
+ stroke-width: 0.9;
1250
+ }
1251
+
1252
+ .brand-mark-line {
1253
+ fill: none;
1254
+ stroke: var(--brand-white);
1255
+ stroke-linecap: round;
1256
+ stroke-linejoin: round;
1257
+ stroke-width: 1.6;
1258
+ }
1259
+
1260
+ .brand-mark-badge {
1261
+ fill: var(--brand-mark-badge);
1262
+ stroke: var(--surface-header);
1263
+ stroke-width: 1.5;
1264
+ }
1265
+
1266
+ .brand-mark-check {
1267
+ fill: none;
1268
+ stroke: var(--brand-white);
1269
+ stroke-linecap: round;
1270
+ stroke-linejoin: round;
1271
+ stroke-width: 1.4;
1272
+ }
1273
+
1274
+ /* ---- About window: the drag regions and the icon ---- */
1275
+
1276
+ /* The panel drags the window under a hidden title bar; only the version
1277
+ line takes the pointer, so it can be selected. */
1278
+ .about-window {
1279
+ -webkit-app-region: drag;
1280
+ }
1281
+
1282
+ .about-version {
1283
+ -webkit-app-region: no-drag;
1284
+ }
1285
+
1286
+ /* The round patch on a transparent canvas, its drop shadow baked in. */
1287
+ .about-icon {
1288
+ width: 128px;
1289
+ height: 128px;
1290
+ margin-bottom: var(--space-4);
1291
+ }
1292
+
1293
+ .about-lockup-text {
1294
+ --lockup-size: 21px;
1295
+ }
1296
+
1297
+ /* ---- Settings: field widths ---- */
1298
+
1299
+ /* Restore default value: dim beside a setting off its default. */
1300
+ .settings-restore {
1301
+ color: var(--text-dim);
1302
+ }
1303
+
1304
+ /* A count is a few digits wide; a count whose empty field reads as a word
1305
+ ("No limit") fits every locale's word. */
1306
+ .settings-count.field {
1307
+ width: 9ch;
1308
+ }
1309
+
1310
+ .settings-count-or-word.field {
1311
+ width: 20ch;
1312
+ }
package/dist/styles.css CHANGED
@@ -28,6 +28,7 @@
28
28
  @import './palette/palette.css';
29
29
  @import './charts/charts.css';
30
30
  @import './terminal/terminal.css';
31
+ @import './pane/panetabs.css';
31
32
 
32
33
  /* Shared looks a page puts on its own markup: form controls, notices, cards. */
33
34
  @import './field/field.css';
@@ -36,6 +37,8 @@
36
37
  /* The shell's shared surfaces: Settings dialog, theme picker, update card,
37
38
  channel tag, sign-in prompts, load failure (docs/components/shell.md). */
38
39
  @import './shell/shell.css';
40
+ @import './frame/frame.css';
41
+ @import './log/log.css';
39
42
 
40
43
  /* ---- What the browser would otherwise draw in its own colours ---- */
41
44
 
@@ -200,6 +203,13 @@ meter::-webkit-meter-even-less-good-value {
200
203
  text-transform: uppercase;
201
204
  }
202
205
 
206
+ /* An overline over a group named by a name of its own (a schema, a host)
207
+ keeps that name's case, and the tracking that only capitals need. */
208
+ .overline.keep-case {
209
+ letter-spacing: normal;
210
+ text-transform: none;
211
+ }
212
+
203
213
  /* A translucent layer over content that scrolls under it: the one frost
204
214
  recipe (--frost), with the layer's own translucent fill. */
205
215
  .frost {
@@ -0,0 +1,22 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { GroupHue } from '../themes/catalog.js';
3
+ /** Props for {@link GroupSwatch}. */
4
+ export interface GroupSwatchProps {
5
+ /** The group's hue, or null for no group, drawn faint. */
6
+ readonly group: GroupHue | null;
7
+ /** Its outline alone: a group that is closed or off. */
8
+ readonly hollow?: boolean;
9
+ /**
10
+ * The group's name, given when nothing beside the swatch says it: the
11
+ * swatch becomes an image with that name and tooltip. Omitted, the swatch
12
+ * is hidden from assistive technology, since the name beside it says it.
13
+ */
14
+ readonly label?: string;
15
+ }
16
+ /**
17
+ * A group's colour beside its name: an 8px square (`--space-4`,
18
+ * `--radius-xs`) in the theme's `--group-<hue>`, filled, or outlined when
19
+ * `hollow`. A square, because a round dot is a state mark and a group's
20
+ * colour is a category, never a status. Draws `.group-swatch[data-group]`.
21
+ */
22
+ export declare function GroupSwatch({ group, hollow, label }: GroupSwatchProps): ReactElement;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { tooltip } from '../tooltip/Tooltip.logic.js';
3
+ /**
4
+ * A group's colour beside its name: an 8px square (`--space-4`,
5
+ * `--radius-xs`) in the theme's `--group-<hue>`, filled, or outlined when
6
+ * `hollow`. A square, because a round dot is a state mark and a group's
7
+ * colour is a category, never a status. Draws `.group-swatch[data-group]`.
8
+ */
9
+ export function GroupSwatch({ group, hollow = false, label }) {
10
+ const className = hollow ? 'group-swatch hollow' : 'group-swatch';
11
+ const naming = label
12
+ ? { 'aria-label': label, role: 'img', ...tooltip(label) }
13
+ : { 'aria-hidden': true };
14
+ return _jsx("span", { className: className, "data-group": group ?? undefined, ...naming });
15
+ }
@@ -0,0 +1,26 @@
1
+ import type { ReactElement } from 'react';
2
+ /**
3
+ * A tag's tone: `neutral` a plain fact, `accent` a mark of note, `ready` a
4
+ * place that is safe or working, `warning` one that needs a second look, and
5
+ * `danger` one where a mistake costs most.
6
+ */
7
+ export type TagTone = 'neutral' | 'accent' | 'ready' | 'warning' | 'danger';
8
+ /** Props for {@link Tag}. */
9
+ export interface TagProps {
10
+ /** The tag's words ("Production", "Template", "default"). */
11
+ readonly children: string;
12
+ /** The tone; `neutral` by default. */
13
+ readonly tone?: TagTone;
14
+ /** Sets the words in small capitals, as a release channel's tag. */
15
+ readonly caps?: boolean;
16
+ /** More than the words say, as a tooltip and the tag's accessible description. */
17
+ readonly tip?: string;
18
+ }
19
+ /**
20
+ * A small worded tag beside a name: an environment, a kind ("Template",
21
+ * "System"), a default, a pending state. A pill washed in its tone with the
22
+ * words in the tone's text colour, legible on a cursor or marked row too.
23
+ * Draws `.tag[data-tone]` (`.caps`); the words keep their case unless
24
+ * `caps`.
25
+ */
26
+ export declare function Tag({ children, tone, caps, tip }: TagProps): ReactElement;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describedTooltip } from '../tooltip/Tooltip.logic.js';
3
+ /**
4
+ * A small worded tag beside a name: an environment, a kind ("Template",
5
+ * "System"), a default, a pending state. A pill washed in its tone with the
6
+ * words in the tone's text colour, legible on a cursor or marked row too.
7
+ * Draws `.tag[data-tone]` (`.caps`); the words keep their case unless
8
+ * `caps`.
9
+ */
10
+ export function Tag({ children, tone = 'neutral', caps = false, tip }) {
11
+ return (_jsx("span", { className: caps ? 'tag caps' : 'tag', "data-tone": tone, ...describedTooltip(tip), children: children }));
12
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Surfaces: `GroupSwatch`, a group's colour beside its name, and `Tag`, a
3
+ * small worded tag in a tone. The notice and card looks of this area are
4
+ * classes in `@bigpixelrocket/uiok/styles.css`, with no module.
5
+ */
6
+ export { GroupSwatch, type GroupSwatchProps } from './GroupSwatch.js';
7
+ export { Tag, type TagProps, type TagTone } from './Tag.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Surfaces: `GroupSwatch`, a group's colour beside its name, and `Tag`, a
3
+ * small worded tag in a tone. The notice and card looks of this area are
4
+ * classes in `@bigpixelrocket/uiok/styles.css`, with no module.
5
+ */
6
+ export { GroupSwatch } from './GroupSwatch.js';
7
+ export { Tag } from './Tag.js';
@@ -13,7 +13,9 @@
13
13
  - .card: a lifted panel that groups one subject's lines, framed in
14
14
  --border-strong like every framed surface (panes, menus, the grid),
15
15
  at the 12px surface inset at both ends, whatever its children's
16
- margins. */
16
+ margins.
17
+ - .group-swatch (GroupSwatch): a group's colour beside its name.
18
+ - .tag (Tag): a small worded tag in a tone beside a name. */
17
19
 
18
20
  .notice {
19
21
  /* The tone's glyph, 3:1 on every ground by its token. */
@@ -69,6 +71,14 @@
69
71
  overflow-wrap: anywhere;
70
72
  }
71
73
 
74
+ /* A server's or a system's own words inside a message (an error code, a
75
+ statement, a host) take the code face at the notice's size, so they
76
+ read as quoted, never as larger or smaller than the words round them. */
77
+ .notice code {
78
+ font-family: var(--font-mono);
79
+ font-size: inherit;
80
+ }
81
+
72
82
  /* A message's words are content: a path or a server's reply in them is
73
83
  what a user pastes into a report, so they can be swept and copied. */
74
84
  .notice-text {
@@ -152,3 +162,108 @@
152
162
  .card > :last-child {
153
163
  margin-block-end: 0;
154
164
  }
165
+
166
+ /* ---- Group swatch and tag (GroupSwatch, Tag) ---- */
167
+
168
+ /* A group's colour beside its name: the mark docs/tokens.md sizes (8px,
169
+ a 2px corner) in a categorical hue (--group-*), square because a round
170
+ dot is a state mark and a colour is not a state. With no group it is
171
+ faint; hollow is the same group while it is closed or off: its outline
172
+ alone, inside the same box. */
173
+ .group-swatch {
174
+ flex: none;
175
+ display: inline-block;
176
+ width: var(--space-4);
177
+ height: var(--space-4);
178
+ border-radius: var(--radius-xs);
179
+ background: var(--group-swatch-hue, var(--text-faint));
180
+ box-shadow: var(--group-dot-ring);
181
+ }
182
+
183
+ .group-swatch.hollow {
184
+ background: transparent;
185
+ box-shadow: inset 0 0 0 var(--line-strong) var(--group-swatch-hue, var(--text-faint));
186
+ }
187
+
188
+ .group-swatch[data-group='blue'] {
189
+ --group-swatch-hue: var(--group-blue);
190
+ }
191
+
192
+ .group-swatch[data-group='green'] {
193
+ --group-swatch-hue: var(--group-green);
194
+ }
195
+
196
+ .group-swatch[data-group='purple'] {
197
+ --group-swatch-hue: var(--group-purple);
198
+ }
199
+
200
+ .group-swatch[data-group='orange'] {
201
+ --group-swatch-hue: var(--group-orange);
202
+ }
203
+
204
+ .group-swatch[data-group='teal'] {
205
+ --group-swatch-hue: var(--group-teal);
206
+ }
207
+
208
+ .group-swatch[data-group='pink'] {
209
+ --group-swatch-hue: var(--group-pink);
210
+ }
211
+
212
+ .group-swatch[data-group='yellow'] {
213
+ --group-swatch-hue: var(--group-yellow);
214
+ }
215
+
216
+ .group-swatch[data-group='red'] {
217
+ --group-swatch-hue: var(--group-red);
218
+ }
219
+
220
+ /* A small worded tag beside a name (an environment, a kind, a default): a
221
+ pill washed in its tone, the words in the tone's text role, which keeps
222
+ 4.5:1 on its own wash and on every state ground, so a tag stays legible
223
+ on the cursor row and a marked row. The words keep their case; .caps
224
+ sets them as a release channel's tag. */
225
+ .tag {
226
+ --tag-wash: var(--fill);
227
+ --tag-text: var(--text-on-surface);
228
+
229
+ display: inline-flex;
230
+ flex: none;
231
+ align-items: center;
232
+ box-sizing: border-box;
233
+ max-width: 100%;
234
+ padding: 1px var(--space-3);
235
+ overflow: hidden;
236
+ border-radius: var(--radius-pill);
237
+ background: var(--tag-wash);
238
+ color: var(--tag-text);
239
+ font: var(--font-weight-medium) var(--font-size-caption) / var(--line-height-compact)
240
+ var(--font-ui);
241
+ text-overflow: ellipsis;
242
+ white-space: nowrap;
243
+ }
244
+
245
+ .tag[data-tone='accent'] {
246
+ --tag-wash: var(--accent-wash);
247
+ --tag-text: var(--accent-text);
248
+ }
249
+
250
+ .tag[data-tone='ready'] {
251
+ --tag-wash: var(--success-wash);
252
+ --tag-text: var(--success-text);
253
+ }
254
+
255
+ .tag[data-tone='warning'] {
256
+ --tag-wash: var(--warning-wash);
257
+ --tag-text: var(--warning-text);
258
+ }
259
+
260
+ .tag[data-tone='danger'] {
261
+ --tag-wash: var(--danger-wash);
262
+ --tag-text: var(--danger-text);
263
+ }
264
+
265
+ .tag.caps {
266
+ font-weight: var(--font-weight-strong);
267
+ letter-spacing: var(--tracking-caps);
268
+ text-transform: uppercase;
269
+ }
@@ -52,6 +52,10 @@ const CATPPUCCIN_LATTE = {
52
52
  cursor: '#dc8a78'
53
53
  },
54
54
  overrides: {
55
+ // A channel tag's words, darkened past the least step that holds 4.5:1
56
+ // on its tint, so they keep 4.5:1 on the tint over the title bar too.
57
+ '--channel-latest-text': '#6d2ebf',
58
+ '--channel-local-text': '#983c07',
55
59
  // Lavender a step stronger than the primary hue itself, so the fill
56
60
  // carries white text at 4.7:1 where the hue stops at 3.2:1.
57
61
  '--primary': '#5468e4',