sh3-core 0.15.4 → 0.16.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.
Files changed (228) hide show
  1. package/dist/BrandSlot.svelte +9 -9
  2. package/dist/{Shell.svelte → Sh3.svelte} +65 -65
  3. package/dist/Sh3.svelte.d.ts +5 -0
  4. package/dist/__test__/render.js +1 -1
  5. package/dist/actions/ActionPanel.svelte +3 -3
  6. package/dist/actions/CommandPalette.svelte +2 -2
  7. package/dist/actions/MenuBar.svelte +1 -1
  8. package/dist/actions/MenuBar.test.js +1 -1
  9. package/dist/actions/MenuButton.svelte +3 -3
  10. package/dist/actions/dispatcher.svelte.js +1 -1
  11. package/dist/actions/listActive.js +1 -1
  12. package/dist/actions/listeners.js +6 -6
  13. package/dist/actions/selection.svelte.d.ts +2 -2
  14. package/dist/actions/selection.svelte.js +4 -4
  15. package/dist/actions/selection.test.js +1 -1
  16. package/dist/actions/{shellActions.test.js → sh3Actions.test.js} +14 -14
  17. package/dist/actions/state.svelte.d.ts +3 -3
  18. package/dist/actions/state.svelte.js +3 -3
  19. package/dist/actions/syncMountedViewIds.test.js +1 -1
  20. package/dist/actions/types.d.ts +1 -1
  21. package/dist/api.d.ts +5 -5
  22. package/dist/api.js +7 -7
  23. package/dist/app/admin/ApiKeysView.svelte +9 -9
  24. package/dist/app/admin/AuthSettingsView.svelte +6 -6
  25. package/dist/app/admin/SystemView.svelte +12 -12
  26. package/dist/app/admin/UsersView.svelte +8 -8
  27. package/dist/app/store/AppUpdateAvailableModal.svelte +14 -14
  28. package/dist/app/store/PermissionConfirmModal.svelte +20 -20
  29. package/dist/app/store/StoreView.svelte +51 -51
  30. package/dist/app/store/UninstallAppDialog.svelte +14 -14
  31. package/dist/app/store/storeShard.svelte.js +1 -1
  32. package/dist/app/store/verbs.js +1 -1
  33. package/dist/apps/lifecycle.d.ts +1 -1
  34. package/dist/apps/lifecycle.js +4 -4
  35. package/dist/apps/lifecycle.test.js +5 -5
  36. package/dist/apps/registry.svelte.d.ts +2 -2
  37. package/dist/apps/registry.svelte.js +3 -3
  38. package/dist/apps/types.d.ts +1 -1
  39. package/dist/auth/GuestBanner.svelte +19 -19
  40. package/dist/auth/SignInWall.svelte +17 -17
  41. package/dist/auth/auth.svelte.d.ts +1 -1
  42. package/dist/auth/auth.svelte.js +1 -1
  43. package/dist/boot/satellitePayload.js +1 -1
  44. package/dist/build.d.ts +27 -0
  45. package/dist/build.js +59 -1
  46. package/dist/build.test.js +31 -0
  47. package/dist/color/api.d.ts +1 -1
  48. package/dist/color/api.js +1 -1
  49. package/dist/color/{shell-api.js → sh3-api.js} +3 -3
  50. package/dist/conflicts/ConflictModal.svelte +1 -1
  51. package/dist/conflicts/ConflictModal.svelte.d.ts +1 -1
  52. package/dist/conflicts/DetailView.svelte +19 -19
  53. package/dist/conflicts/PromptView.svelte +9 -9
  54. package/dist/conflicts/adapter-documents.js +1 -1
  55. package/dist/conflicts/api.d.ts +1 -1
  56. package/dist/conflicts/api.js +2 -2
  57. package/dist/conflicts/renderer-registry.js +1 -1
  58. package/dist/conflicts/renderers/MetaOnlyRenderer.svelte +8 -8
  59. package/dist/conflicts/renderers/TextDiffRenderer.svelte +15 -15
  60. package/dist/conflicts/renderers/index.js +1 -1
  61. package/dist/conflicts/resolve-primitive.js +1 -1
  62. package/dist/conflicts/{shell-api.js → sh3-api.js} +2 -2
  63. package/dist/contributions/registry.js +1 -1
  64. package/dist/createShell.d.ts +2 -2
  65. package/dist/createShell.js +6 -6
  66. package/dist/host-entry.d.ts +1 -1
  67. package/dist/host-entry.js +2 -2
  68. package/dist/host.js +2 -2
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +2 -2
  71. package/dist/keys/ConsentDialog.svelte +15 -15
  72. package/dist/keys/consent.svelte.d.ts +2 -2
  73. package/dist/keys/consent.svelte.js +3 -3
  74. package/dist/keys/revocation-bus.svelte.d.ts +3 -3
  75. package/dist/keys/revocation-bus.svelte.js +3 -3
  76. package/dist/layout/DragPreview.svelte +9 -9
  77. package/dist/layout/LayoutRenderer.browser.test.js +2 -2
  78. package/dist/layout/LayoutRenderer.svelte +4 -4
  79. package/dist/layout/SlotContainer.svelte +12 -12
  80. package/dist/layout/SlotDropZone.svelte +2 -2
  81. package/dist/layout/inspection.d.ts +1 -1
  82. package/dist/layout/inspection.js +1 -1
  83. package/dist/layout/store.svelte.js +3 -3
  84. package/dist/layout/types.d.ts +1 -1
  85. package/dist/layouts-shard/LayoutSaveModal.svelte +20 -20
  86. package/dist/layouts-shard/LayoutsSection.svelte +11 -11
  87. package/dist/layouts-shard/filter.test.js +3 -3
  88. package/dist/layouts-shard/layoutsApi.test.js +3 -3
  89. package/dist/layouts-shard/layoutsShard.svelte.test.js +7 -7
  90. package/dist/migrations/mode-id-rename.js +2 -2
  91. package/dist/overlays/ConfirmDialog.svelte +8 -8
  92. package/dist/overlays/EntityAppearanceModal.svelte +19 -19
  93. package/dist/overlays/FloatFrame.svelte +20 -20
  94. package/dist/overlays/FloatLayer.svelte +1 -1
  95. package/dist/overlays/ModalFrame.svelte +5 -5
  96. package/dist/overlays/PopupFrame.svelte +4 -4
  97. package/dist/overlays/ToastItem.svelte +12 -12
  98. package/dist/overlays/float.d.ts +2 -2
  99. package/dist/overlays/float.js +3 -3
  100. package/dist/overlays/float.test.js +6 -6
  101. package/dist/overlays/modal.js +1 -1
  102. package/dist/overlays/modal.test.js +2 -2
  103. package/dist/overlays/parentHost.js +2 -2
  104. package/dist/overlays/parentHost.test.js +5 -5
  105. package/dist/overlays/popup.js +2 -2
  106. package/dist/overlays/popup.test.js +2 -2
  107. package/dist/overlays/roots.js +4 -4
  108. package/dist/overlays/toast.js +1 -1
  109. package/dist/overlays/types.js +3 -3
  110. package/dist/primitives/Button.svelte +16 -16
  111. package/dist/primitives/Collapsible.svelte +11 -11
  112. package/dist/primitives/ResizableSplitter.svelte +10 -10
  113. package/dist/primitives/TabbedPanel.svelte +19 -19
  114. package/dist/primitives/base.css +57 -57
  115. package/dist/primitives/widgets/ColorSwatch.svelte +15 -15
  116. package/dist/primitives/widgets/ColorSwatch.svelte.test.js +4 -4
  117. package/dist/primitives/widgets/Field.svelte +20 -20
  118. package/dist/primitives/widgets/FilePicker.svelte +13 -13
  119. package/dist/primitives/widgets/IconPicker.svelte +14 -14
  120. package/dist/primitives/widgets/IconToggleGroup.svelte +14 -14
  121. package/dist/primitives/widgets/NumberInput.svelte +17 -17
  122. package/dist/primitives/widgets/PickerList.svelte +17 -17
  123. package/dist/primitives/widgets/RangeSlider.svelte +16 -16
  124. package/dist/primitives/widgets/Segmented.svelte +16 -16
  125. package/dist/primitives/widgets/Select.svelte +14 -14
  126. package/dist/primitives/widgets/Select.svelte.test.js +2 -2
  127. package/dist/primitives/widgets/Slider.svelte +20 -20
  128. package/dist/primitives/widgets/SliderGroup.svelte +2 -2
  129. package/dist/primitives/widgets/Textarea.svelte +13 -13
  130. package/dist/primitives/widgets/_select-listbox.svelte +15 -15
  131. package/dist/projects/session-state.svelte.js +1 -1
  132. package/dist/projects-shard/DeleteProjectDialog.svelte +12 -12
  133. package/dist/projects-shard/ProjectManage.svelte +25 -25
  134. package/dist/projects-shard/ProjectsSection.svelte +12 -12
  135. package/dist/registry/installer.d.ts +2 -2
  136. package/dist/registry/installer.js +2 -2
  137. package/dist/registry/loader.js +1 -1
  138. package/dist/registry/permission-descriptions.js +2 -2
  139. package/dist/registry/permission-descriptions.test.js +1 -1
  140. package/dist/runtime/runVerb-shell.test.js +2 -2
  141. package/dist/runtime/runVerb.js +4 -4
  142. package/dist/runtime/runVerb.test.js +4 -4
  143. package/dist/satellite/SatelliteShell.svelte +2 -2
  144. package/dist/{shell → sh3}/views/KeysAndPeers.svelte +7 -7
  145. package/dist/sh3Api/headless.d.ts +4 -0
  146. package/dist/{shell-shard/shellApi.js → sh3Api/headless.js} +5 -5
  147. package/dist/{shell-shard/shellApi.svelte.test.js → sh3Api/headless.svelte.test.js} +11 -11
  148. package/dist/{shellApi → sh3Api}/window.js +2 -2
  149. package/dist/{shellApi → sh3Api}/window.test.js +1 -1
  150. package/dist/{shellRuntime.svelte.d.ts → sh3Runtime.svelte.d.ts} +11 -11
  151. package/dist/{shellRuntime.svelte.js → sh3Runtime.svelte.js} +10 -10
  152. package/dist/sh3Runtime.svelte.test.d.ts +1 -0
  153. package/dist/{shellRuntime.svelte.test.js → sh3Runtime.svelte.test.js} +10 -10
  154. package/dist/sh3core-shard/AppInfoView.svelte +19 -19
  155. package/dist/sh3core-shard/{ShellHome.svelte → Sh3Home.svelte} +82 -82
  156. package/dist/sh3core-shard/Sh3Home.svelte.d.ts +3 -0
  157. package/dist/sh3core-shard/{ShellTitle.svelte → Sh3Title.svelte} +11 -11
  158. package/dist/sh3core-shard/Sh3Title.svelte.d.ts +3 -0
  159. package/dist/sh3core-shard/appActions.js +3 -3
  160. package/dist/sh3core-shard/sh3coreShard.svelte.js +7 -7
  161. package/dist/shards/activate.svelte.d.ts +1 -1
  162. package/dist/shards/activate.svelte.js +6 -6
  163. package/dist/shards/types.d.ts +5 -5
  164. package/dist/shards/types.js +2 -2
  165. package/dist/shell-shard/CommandLine.svelte +7 -7
  166. package/dist/shell-shard/InputLine.svelte +3 -3
  167. package/dist/shell-shard/ScrollbackView.svelte +2 -2
  168. package/dist/shell-shard/Terminal.svelte +5 -5
  169. package/dist/shell-shard/Terminal.svelte.d.ts +2 -2
  170. package/dist/shell-shard/dispatch-custom.test.js +2 -2
  171. package/dist/shell-shard/dispatch-gating.test.js +2 -2
  172. package/dist/shell-shard/dispatch-invoke.test.js +2 -2
  173. package/dist/shell-shard/dispatch-to-terminal.js +1 -1
  174. package/dist/shell-shard/dispatch.d.ts +2 -2
  175. package/dist/shell-shard/dispatch.js +2 -2
  176. package/dist/shell-shard/entries/PromptEntry.svelte +4 -4
  177. package/dist/shell-shard/entries/StatusEntry.svelte +4 -4
  178. package/dist/shell-shard/entries/TextEntry.svelte +3 -3
  179. package/dist/shell-shard/locateSlot.test.js +9 -9
  180. package/dist/shell-shard/manifest.js +2 -2
  181. package/dist/shell-shard/registry.d.ts +2 -2
  182. package/dist/shell-shard/rich/AppCard.svelte +1 -1
  183. package/dist/shell-shard/rich/AppsTable.svelte +1 -1
  184. package/dist/shell-shard/rich/HelpTable.svelte +1 -1
  185. package/dist/shell-shard/rich/HistoryList.svelte +1 -1
  186. package/dist/shell-shard/rich/ViewsTable.svelte +1 -1
  187. package/dist/shell-shard/rich/ZoneTree.svelte +2 -2
  188. package/dist/shell-shard/shellShard.svelte.d.ts +1 -1
  189. package/dist/shell-shard/shellShard.svelte.js +8 -8
  190. package/dist/shell-shard/terminal-dispatch.test.js +2 -2
  191. package/dist/shell-shard/toolbar/Toolbar.svelte +4 -4
  192. package/dist/shell-shard/toolbar/Toolbar.svelte.d.ts +2 -2
  193. package/dist/shell-shard/toolbar/slots/BusySlot.svelte +2 -2
  194. package/dist/shell-shard/toolbar/slots/FocusLockSlot.svelte +2 -2
  195. package/dist/shell-shard/toolbar/slots/ModeSlot.svelte +1 -1
  196. package/dist/shell-shard/toolbar/slots/TargetShardSlot.svelte +1 -1
  197. package/dist/shell-shard/toolbar/slots.d.ts +3 -3
  198. package/dist/shell-shard/verbs/apps.js +3 -3
  199. package/dist/shell-shard/verbs/help.js +1 -1
  200. package/dist/shell-shard/verbs/help.svelte.test.js +1 -1
  201. package/dist/shell-shard/verbs/history.js +1 -1
  202. package/dist/shell-shard/verbs/mode.js +2 -2
  203. package/dist/shell-shard/verbs/mode.test.js +2 -2
  204. package/dist/shell-shard/verbs/shards.js +1 -1
  205. package/dist/shell-shard/verbs/views.js +8 -8
  206. package/dist/shell-shard/verbs/zones.js +2 -2
  207. package/dist/state/zones.svelte.d.ts +2 -2
  208. package/dist/state/zones.svelte.js +4 -4
  209. package/dist/theme.d.ts +3 -3
  210. package/dist/theme.js +5 -5
  211. package/dist/tokens.css +68 -68
  212. package/dist/verbs/types.d.ts +5 -5
  213. package/dist/verbs/types.js +1 -1
  214. package/dist/version.d.ts +1 -1
  215. package/dist/version.js +1 -1
  216. package/package.json +1 -1
  217. package/dist/Shell.svelte.d.ts +0 -5
  218. package/dist/sh3core-shard/ShellHome.svelte.d.ts +0 -3
  219. package/dist/sh3core-shard/ShellTitle.svelte.d.ts +0 -3
  220. package/dist/shell-shard/shellApi.d.ts +0 -4
  221. /package/dist/actions/{shellActions.test.d.ts → sh3Actions.test.d.ts} +0 -0
  222. /package/dist/{shell-shard/shellApi.svelte.test.d.ts → build.test.d.ts} +0 -0
  223. /package/dist/color/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  224. /package/dist/conflicts/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  225. /package/dist/{shell → sh3}/views/KeysAndPeers.svelte.d.ts +0 -0
  226. /package/dist/{shellApi/window.test.d.ts → sh3Api/headless.svelte.test.d.ts} +0 -0
  227. /package/dist/{shellApi → sh3Api}/window.d.ts +0 -0
  228. /package/dist/{shellRuntime.svelte.test.d.ts → sh3Api/window.test.d.ts} +0 -0
@@ -2,7 +2,7 @@
2
2
  * SH3 base component styles.
3
3
  *
4
4
  * Shared affordances that sit between tokens (raw values) and components
5
- * (full UI). These apply to native elements and the .shell-base-* utility
5
+ * (full UI). These apply to native elements and the .sh3-base-* utility
6
6
  * classes so shards and apps get a consistent look without duplicating
7
7
  * button/input recipes in every component.
8
8
  */
@@ -13,23 +13,23 @@ button,
13
13
  input[type="button"],
14
14
  input[type="submit"],
15
15
  input[type="reset"],
16
- .shell-base-button {
16
+ .sh3-base-button {
17
17
  padding: 6px 14px;
18
- background: var(--shell-accent);
19
- color: var(--shell-fg-on-accent);
18
+ background: var(--sh3-accent);
19
+ color: var(--sh3-fg-on-accent);
20
20
  border: none;
21
- border-radius: var(--shell-radius);
21
+ border-radius: var(--sh3-radius);
22
22
  cursor: pointer;
23
23
  font-family: inherit;
24
24
  font-size: 0.875rem;
25
- line-height: var(--shell-line);
25
+ line-height: var(--sh3-line);
26
26
  }
27
27
 
28
28
  button:hover,
29
29
  input[type="button"]:hover,
30
30
  input[type="submit"]:hover,
31
31
  input[type="reset"]:hover,
32
- .shell-base-button:hover {
32
+ .sh3-base-button:hover {
33
33
  filter: brightness(1.12);
34
34
  }
35
35
 
@@ -37,7 +37,7 @@ button:active,
37
37
  input[type="button"]:active,
38
38
  input[type="submit"]:active,
39
39
  input[type="reset"]:active,
40
- .shell-base-button:active {
40
+ .sh3-base-button:active {
41
41
  filter: brightness(0.92);
42
42
  }
43
43
 
@@ -51,107 +51,107 @@ input[type="url"],
51
51
  input[type="tel"],
52
52
  input[type="number"],
53
53
  textarea,
54
- .shell-base-input {
55
- padding: 0 var(--shell-field-pad-x);
56
- height: var(--shell-field-height-md);
57
- background: var(--shell-input-bg);
58
- color: var(--shell-fg);
59
- border: 1px solid var(--shell-border);
60
- border-radius: var(--shell-radius);
54
+ .sh3-base-input {
55
+ padding: 0 var(--sh3-field-pad-x);
56
+ height: var(--sh3-field-height-md);
57
+ background: var(--sh3-input-bg);
58
+ color: var(--sh3-fg);
59
+ border: 1px solid var(--sh3-border);
60
+ border-radius: var(--sh3-radius);
61
61
  font-family: inherit;
62
62
  font-size: 0.8125rem;
63
- line-height: var(--shell-line);
63
+ line-height: var(--sh3-line);
64
64
  }
65
65
 
66
- ::placeholder { color: var(--shell-fg-muted); }
66
+ ::placeholder { color: var(--sh3-fg-muted); }
67
67
 
68
68
  input:focus-visible,
69
69
  textarea:focus-visible,
70
- .shell-base-input:focus-visible {
71
- border-color: var(--shell-input-border-focus);
72
- box-shadow: var(--shell-focus-ring);
70
+ .sh3-base-input:focus-visible {
71
+ border-color: var(--sh3-input-border-focus);
72
+ box-shadow: var(--sh3-focus-ring);
73
73
  outline: none;
74
74
  }
75
75
 
76
76
  input:disabled,
77
77
  textarea:disabled,
78
- .shell-base-input[aria-disabled="true"] {
78
+ .sh3-base-input[aria-disabled="true"] {
79
79
  opacity: 0.55;
80
80
  cursor: not-allowed;
81
81
  }
82
82
 
83
83
  textarea {
84
84
  resize: vertical;
85
- min-height: calc(var(--shell-line) * 3em);
85
+ min-height: calc(var(--sh3-line) * 3em);
86
86
  height: auto;
87
- padding: var(--shell-pad-sm) var(--shell-field-pad-x);
87
+ padding: var(--sh3-pad-sm) var(--sh3-field-pad-x);
88
88
  }
89
89
 
90
90
  /* ── Checkbox & radio ────────────────────────────────────────────────── */
91
91
 
92
- input[type="checkbox"].shell-base-check,
93
- input[type="radio"].shell-base-radio {
92
+ input[type="checkbox"].sh3-base-check,
93
+ input[type="radio"].sh3-base-radio {
94
94
  appearance: none;
95
95
  width: 14px;
96
96
  height: 14px;
97
97
  margin: 0;
98
- background: var(--shell-input-bg);
99
- border: 1px solid var(--shell-border);
98
+ background: var(--sh3-input-bg);
99
+ border: 1px solid var(--sh3-border);
100
100
  cursor: pointer;
101
101
  display: inline-grid;
102
102
  place-content: center;
103
103
  flex-shrink: 0;
104
104
  }
105
105
 
106
- .shell-base-check { border-radius: var(--shell-radius-sm); }
107
- .shell-base-radio { border-radius: 50%; }
106
+ .sh3-base-check { border-radius: var(--sh3-radius-sm); }
107
+ .sh3-base-radio { border-radius: 50%; }
108
108
 
109
109
  /* Need the input[type] prefix to outweigh the base
110
- `input[type="checkbox"].shell-base-check` rule's specificity. */
111
- input[type="checkbox"].shell-base-check:checked,
112
- input[type="radio"].shell-base-radio:checked {
113
- background: var(--shell-accent);
114
- border-color: var(--shell-accent);
110
+ `input[type="checkbox"].sh3-base-check` rule's specificity. */
111
+ input[type="checkbox"].sh3-base-check:checked,
112
+ input[type="radio"].sh3-base-radio:checked {
113
+ background: var(--sh3-accent);
114
+ border-color: var(--sh3-accent);
115
115
  }
116
116
 
117
- .shell-base-check:checked::before {
117
+ .sh3-base-check:checked::before {
118
118
  content: "";
119
119
  width: 8px;
120
120
  height: 8px;
121
- background: var(--shell-fg-on-accent);
121
+ background: var(--sh3-fg-on-accent);
122
122
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 85% 8%, 38% 70%);
123
123
  }
124
124
 
125
- .shell-base-radio:checked::before {
125
+ .sh3-base-radio:checked::before {
126
126
  content: "";
127
127
  width: 6px;
128
128
  height: 6px;
129
129
  border-radius: 50%;
130
- background: var(--shell-fg-on-accent);
130
+ background: var(--sh3-fg-on-accent);
131
131
  }
132
132
 
133
- .shell-base-check:focus-visible,
134
- .shell-base-radio:focus-visible {
135
- box-shadow: var(--shell-focus-ring);
133
+ .sh3-base-check:focus-visible,
134
+ .sh3-base-radio:focus-visible {
135
+ box-shadow: var(--sh3-focus-ring);
136
136
  outline: none;
137
137
  }
138
138
 
139
- .shell-base-check:disabled,
140
- .shell-base-radio:disabled {
139
+ .sh3-base-check:disabled,
140
+ .sh3-base-radio:disabled {
141
141
  opacity: 0.55;
142
142
  cursor: not-allowed;
143
143
  }
144
144
 
145
145
  /* ── Switch ──────────────────────────────────────────────────────────── */
146
146
 
147
- input[type="checkbox"].shell-base-switch {
147
+ input[type="checkbox"].sh3-base-switch {
148
148
  appearance: none;
149
149
  position: relative;
150
150
  width: 28px;
151
151
  height: 16px;
152
152
  margin: 0;
153
- background: var(--shell-bg-sunken);
154
- border: 1px solid var(--shell-border-strong);
153
+ background: var(--sh3-bg-sunken);
154
+ border: 1px solid var(--sh3-border-strong);
155
155
  border-radius: 999px;
156
156
  cursor: pointer;
157
157
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
@@ -159,34 +159,34 @@ input[type="checkbox"].shell-base-switch {
159
159
  box-sizing: border-box;
160
160
  }
161
161
 
162
- .shell-base-switch::before {
162
+ .sh3-base-switch::before {
163
163
  content: "";
164
164
  position: absolute;
165
165
  top: 2px;
166
166
  left: 2px;
167
167
  width: 12px;
168
168
  height: 12px;
169
- background: var(--shell-fg);
169
+ background: var(--sh3-fg);
170
170
  border-radius: 50%;
171
171
  transition: transform 120ms ease;
172
172
  }
173
173
 
174
- input[type="checkbox"].shell-base-switch:checked {
175
- background: var(--shell-accent);
176
- border-color: var(--shell-accent);
177
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-accent) 25%, transparent);
174
+ input[type="checkbox"].sh3-base-switch:checked {
175
+ background: var(--sh3-accent);
176
+ border-color: var(--sh3-accent);
177
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--sh3-accent) 25%, transparent);
178
178
  }
179
- .shell-base-switch:checked::before {
179
+ .sh3-base-switch:checked::before {
180
180
  transform: translateX(12px);
181
- background: var(--shell-fg-on-accent);
181
+ background: var(--sh3-fg-on-accent);
182
182
  }
183
183
 
184
- .shell-base-switch:focus-visible {
185
- box-shadow: var(--shell-focus-ring);
184
+ .sh3-base-switch:focus-visible {
185
+ box-shadow: var(--sh3-focus-ring);
186
186
  outline: none;
187
187
  }
188
188
 
189
- .shell-base-switch:disabled {
189
+ .sh3-base-switch:disabled {
190
190
  opacity: 0.55;
191
191
  cursor: not-allowed;
192
192
  }
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { CommitOnlyEvents } from './_contract';
3
- import { shell } from '../../shellRuntime.svelte';
3
+ import { sh3 } from '../../sh3Runtime.svelte';
4
4
 
5
5
  let {
6
6
  value = $bindable('#000000'),
@@ -19,7 +19,7 @@
19
19
 
20
20
  async function open() {
21
21
  if (disabled) return;
22
- const result = await shell.color.pick({ initial: value, anchor: trigger });
22
+ const result = await sh3.color.pick({ initial: value, anchor: trigger });
23
23
  if (result !== null && result !== undefined) {
24
24
  value = result;
25
25
  onchange?.(result);
@@ -42,30 +42,30 @@
42
42
 
43
43
  <style>
44
44
  .sh3-swatch { display: inline-flex; flex-direction: column; gap: 4px; }
45
- .sh3-swatch__label { font-size: 0.75rem; color: var(--shell-fg-muted); }
45
+ .sh3-swatch__label { font-size: 0.75rem; color: var(--sh3-fg-muted); }
46
46
  .sh3-swatch__btn {
47
47
  display: inline-flex; align-items: center; gap: 8px;
48
- height: var(--shell-field-height-md);
49
- padding: 0 var(--shell-field-pad-x);
50
- background: var(--shell-input-bg);
51
- border: 1px solid var(--shell-border);
52
- border-radius: var(--shell-widget-radius);
53
- color: var(--shell-fg);
48
+ height: var(--sh3-field-height-md);
49
+ padding: 0 var(--sh3-field-pad-x);
50
+ background: var(--sh3-input-bg);
51
+ border: 1px solid var(--sh3-border);
52
+ border-radius: var(--sh3-widget-radius);
53
+ color: var(--sh3-fg);
54
54
  cursor: pointer;
55
55
  font: inherit;
56
56
  }
57
- .sh3-swatch--sm .sh3-swatch__btn { height: var(--shell-field-height-sm); }
57
+ .sh3-swatch--sm .sh3-swatch__btn { height: var(--sh3-field-height-sm); }
58
58
  .sh3-swatch__btn:hover:not(:disabled) {
59
- background: var(--shell-bg-elevated);
59
+ background: var(--sh3-bg-elevated);
60
60
  filter: none;
61
61
  }
62
- .sh3-swatch__btn:focus-visible { outline: none; box-shadow: var(--shell-focus-ring); }
62
+ .sh3-swatch__btn:focus-visible { outline: none; box-shadow: var(--sh3-focus-ring); }
63
63
  .sh3-swatch__btn:disabled { opacity: 0.55; cursor: not-allowed; }
64
64
  .sh3-swatch__dot {
65
65
  width: 16px; height: 16px;
66
- border: 1px solid var(--shell-border-strong);
67
- border-radius: var(--shell-radius-sm);
66
+ border: 1px solid var(--sh3-border-strong);
67
+ border-radius: var(--sh3-radius-sm);
68
68
  background: var(--swatch-color);
69
69
  }
70
- .sh3-swatch__hex { font-family: var(--shell-font-mono); font-size: 0.75rem; }
70
+ .sh3-swatch__hex { font-family: var(--sh3-font-mono); font-size: 0.75rem; }
71
71
  </style>
@@ -1,8 +1,8 @@
1
1
  import { describe, it, expect, vi } from 'vitest';
2
2
  import { render, fireEvent } from '@testing-library/svelte';
3
3
  import ColorSwatch from './ColorSwatch.svelte';
4
- vi.mock('../../shellRuntime.svelte', () => ({
5
- shell: {
4
+ vi.mock('../../sh3Runtime.svelte', () => ({
5
+ sh3: {
6
6
  color: {
7
7
  pick: vi.fn(async () => '#abcdef'),
8
8
  },
@@ -19,8 +19,8 @@ describe('ColorSwatch event contract', () => {
19
19
  expect(onchange).toHaveBeenCalledWith('#abcdef');
20
20
  });
21
21
  it('does not fire onchange when picker is cancelled (returns null)', async () => {
22
- const { shell } = await import('../../shellRuntime.svelte');
23
- shell.color.pick.mockResolvedValueOnce(null);
22
+ const { sh3 } = await import('../../sh3Runtime.svelte');
23
+ sh3.color.pick.mockResolvedValueOnce(null);
24
24
  const onchange = vi.fn();
25
25
  const { container } = render(ColorSwatch, { props: { value: '#000000', onchange } });
26
26
  const trigger = container.querySelector('.sh3-swatch__btn');
@@ -64,39 +64,39 @@
64
64
  display: inline-flex;
65
65
  flex-direction: column;
66
66
  gap: 4px;
67
- font-family: var(--shell-font-ui);
67
+ font-family: var(--sh3-font-ui);
68
68
  font-size: 0.8125rem;
69
- color: var(--shell-fg);
69
+ color: var(--sh3-fg);
70
70
  }
71
71
  .sh3-field__label {
72
- color: var(--shell-fg-muted);
72
+ color: var(--sh3-fg-muted);
73
73
  font-size: 0.75rem;
74
74
  }
75
75
  .sh3-field__row {
76
76
  display: inline-flex;
77
77
  align-items: stretch;
78
- background: var(--shell-input-bg);
79
- border: 1px solid var(--shell-border);
80
- border-radius: var(--shell-widget-radius);
81
- height: var(--shell-field-height-md);
82
- transition: border-color var(--shell-motion-fast) var(--shell-ease-standard),
83
- box-shadow var(--shell-motion-fast) var(--shell-ease-standard);
78
+ background: var(--sh3-input-bg);
79
+ border: 1px solid var(--sh3-border);
80
+ border-radius: var(--sh3-widget-radius);
81
+ height: var(--sh3-field-height-md);
82
+ transition: border-color var(--sh3-motion-fast) var(--sh3-ease-standard),
83
+ box-shadow var(--sh3-motion-fast) var(--sh3-ease-standard);
84
84
  }
85
- .sh3-field--sm .sh3-field__row { height: var(--shell-field-height-sm); }
85
+ .sh3-field--sm .sh3-field__row { height: var(--sh3-field-height-sm); }
86
86
  .sh3-field__row:focus-within {
87
- border-color: var(--shell-input-border-focus);
88
- box-shadow: var(--shell-focus-ring);
87
+ border-color: var(--sh3-input-border-focus);
88
+ box-shadow: var(--sh3-focus-ring);
89
89
  }
90
90
  .sh3-field--invalid .sh3-field__row {
91
- border-color: var(--shell-error);
91
+ border-color: var(--sh3-error);
92
92
  }
93
93
  .sh3-field--invalid .sh3-field__row:focus-within {
94
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-error) 40%, transparent);
94
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--sh3-error) 40%, transparent);
95
95
  }
96
96
  .sh3-field__input {
97
97
  flex: 1 1 auto;
98
98
  height: 100%;
99
- padding: 0 var(--shell-field-pad-x);
99
+ padding: 0 var(--sh3-field-pad-x);
100
100
  background: transparent;
101
101
  border: none;
102
102
  color: inherit;
@@ -111,19 +111,19 @@
111
111
  box-shadow: none;
112
112
  border: none;
113
113
  }
114
- .sh3-field__input:disabled { color: var(--shell-fg-muted); cursor: not-allowed; }
114
+ .sh3-field__input:disabled { color: var(--sh3-fg-muted); cursor: not-allowed; }
115
115
  .sh3-field__affix {
116
116
  display: inline-flex;
117
117
  align-items: center;
118
- padding: 0 var(--shell-field-pad-x);
119
- color: var(--shell-fg-muted);
118
+ padding: 0 var(--sh3-field-pad-x);
119
+ color: var(--sh3-fg-muted);
120
120
  flex-shrink: 0;
121
121
  }
122
122
  .sh3-field__affix:first-child { padding-right: 0; }
123
123
  .sh3-field__affix:last-child { padding-left: 0; }
124
124
  .sh3-field__helper {
125
- color: var(--shell-fg-muted);
125
+ color: var(--sh3-fg-muted);
126
126
  font-size: 0.75rem;
127
127
  }
128
- .sh3-field__helper--error { color: var(--shell-error); }
128
+ .sh3-field__helper--error { color: var(--sh3-error); }
129
129
  </style>
@@ -47,17 +47,17 @@
47
47
  .sh3-fp {
48
48
  display: inline-flex;
49
49
  align-items: stretch;
50
- height: var(--shell-field-height-md);
51
- border: 1px solid var(--shell-border);
52
- border-radius: var(--shell-widget-radius);
53
- background: var(--shell-input-bg);
50
+ height: var(--sh3-field-height-md);
51
+ border: 1px solid var(--sh3-border);
52
+ border-radius: var(--sh3-widget-radius);
53
+ background: var(--sh3-input-bg);
54
54
  overflow: hidden;
55
55
  cursor: pointer;
56
56
  font-size: 0.8125rem;
57
57
  }
58
- .sh3-fp--sm { height: var(--shell-field-height-sm); }
59
- .sh3-fp--invalid { border-color: var(--shell-error); }
60
- .sh3-fp:focus-within { box-shadow: var(--shell-focus-ring); border-color: var(--shell-input-border-focus); }
58
+ .sh3-fp--sm { height: var(--sh3-field-height-sm); }
59
+ .sh3-fp--invalid { border-color: var(--sh3-error); }
60
+ .sh3-fp:focus-within { box-shadow: var(--sh3-focus-ring); border-color: var(--sh3-input-border-focus); }
61
61
 
62
62
  .sh3-fp__native {
63
63
  position: absolute;
@@ -67,15 +67,15 @@
67
67
  }
68
68
  .sh3-fp__btn {
69
69
  display: inline-flex; align-items: center;
70
- padding: 0 var(--shell-field-pad-x);
71
- background: var(--shell-bg-elevated);
72
- color: var(--shell-fg);
73
- border-right: 1px solid var(--shell-border);
70
+ padding: 0 var(--sh3-field-pad-x);
71
+ background: var(--sh3-bg-elevated);
72
+ color: var(--sh3-fg);
73
+ border-right: 1px solid var(--sh3-border);
74
74
  }
75
75
  .sh3-fp__name {
76
76
  display: inline-flex; align-items: center;
77
- padding: 0 var(--shell-field-pad-x);
78
- color: var(--shell-fg-muted);
77
+ padding: 0 var(--sh3-field-pad-x);
78
+ color: var(--sh3-fg-muted);
79
79
  flex: 1; min-width: 0;
80
80
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
81
81
  }
@@ -73,12 +73,12 @@
73
73
 
74
74
  <style>
75
75
  .sh3-icon-picker { display: flex; flex-direction: column; gap: 6px; }
76
- .sh3-icon-picker__label { font-size: 13px; color: var(--shell-fg-muted); }
76
+ .sh3-icon-picker__label { font-size: 13px; color: var(--sh3-fg-muted); }
77
77
  .sh3-icon-picker input[type="search"] {
78
- background: var(--shell-bg-elevated);
79
- color: var(--shell-fg);
80
- border: 1px solid var(--shell-border);
81
- border-radius: var(--shell-radius-sm, 3px);
78
+ background: var(--sh3-bg-elevated);
79
+ color: var(--sh3-fg);
80
+ border: 1px solid var(--sh3-border);
81
+ border-radius: var(--sh3-radius-sm, 3px);
82
82
  padding: 6px 8px; font: inherit; font-size: 13px;
83
83
  }
84
84
  .sh3-icon-picker__grid {
@@ -88,26 +88,26 @@
88
88
  max-height: 220px;
89
89
  overflow-y: auto;
90
90
  padding: 4px;
91
- background: var(--shell-bg);
92
- border: 1px solid var(--shell-border);
93
- border-radius: var(--shell-radius-sm, 3px);
91
+ background: var(--sh3-bg);
92
+ border: 1px solid var(--sh3-border);
93
+ border-radius: var(--sh3-radius-sm, 3px);
94
94
  }
95
95
  .sh3-icon-picker__tile {
96
96
  aspect-ratio: 1 / 1;
97
97
  display: flex;
98
98
  align-items: center;
99
99
  justify-content: center;
100
- background: var(--shell-bg-elevated);
101
- color: var(--shell-fg);
100
+ background: var(--sh3-bg-elevated);
101
+ color: var(--sh3-fg);
102
102
  border: 1px solid transparent;
103
- border-radius: var(--shell-radius-sm, 3px);
103
+ border-radius: var(--sh3-radius-sm, 3px);
104
104
  cursor: pointer;
105
105
  padding: 0; font: inherit;
106
106
  }
107
- .sh3-icon-picker__tile--none { font-size: 16px; color: var(--shell-fg-muted); }
108
- .sh3-icon-picker__tile:hover { border-color: var(--shell-accent); }
107
+ .sh3-icon-picker__tile--none { font-size: 16px; color: var(--sh3-fg-muted); }
108
+ .sh3-icon-picker__tile:hover { border-color: var(--sh3-accent); }
109
109
  .sh3-icon-picker__tile--selected {
110
- outline: 2px solid var(--shell-accent);
110
+ outline: 2px solid var(--sh3-accent);
111
111
  outline-offset: -2px;
112
112
  }
113
113
  .sh3-icon-picker__tile svg { width: 18px; height: 18px; }
@@ -54,39 +54,39 @@
54
54
  <style>
55
55
  .sh3-itg {
56
56
  display: inline-flex;
57
- background: var(--shell-bg-sunken);
58
- border: 1px solid var(--shell-border);
59
- border-radius: var(--shell-widget-radius);
57
+ background: var(--sh3-bg-sunken);
58
+ border: 1px solid var(--sh3-border);
59
+ border-radius: var(--sh3-widget-radius);
60
60
  padding: 2px;
61
61
  gap: 2px;
62
62
  }
63
63
  .sh3-itg button {
64
64
  width: 26px; height: 26px;
65
65
  background: transparent;
66
- color: var(--shell-fg-muted);
66
+ color: var(--sh3-fg-muted);
67
67
  border: none;
68
- border-radius: var(--shell-radius-sm);
68
+ border-radius: var(--sh3-radius-sm);
69
69
  cursor: pointer;
70
70
  display: inline-flex; align-items: center; justify-content: center;
71
71
  padding: 0;
72
- transition: background var(--shell-motion-fast) var(--shell-ease-standard),
73
- color var(--shell-motion-fast) var(--shell-ease-standard);
72
+ transition: background var(--sh3-motion-fast) var(--sh3-ease-standard),
73
+ color var(--sh3-motion-fast) var(--sh3-ease-standard);
74
74
  }
75
75
  .sh3-itg--sm button { width: 22px; height: 22px; }
76
76
  .sh3-itg button:hover:not(:disabled):not(.sh3-itg__btn--active) {
77
- background: var(--shell-bg-elevated);
78
- color: var(--shell-fg);
77
+ background: var(--sh3-bg-elevated);
78
+ color: var(--sh3-fg);
79
79
  filter: none;
80
80
  }
81
81
  /* Selector includes `.sh3-itg button` so specificity (0,2,1) beats the
82
82
  base `.sh3-itg button` rule (0,1,1) — otherwise `background: transparent`
83
- and `color: var(--shell-fg-muted)` would shadow the accent fill. */
83
+ and `color: var(--sh3-fg-muted)` would shadow the accent fill. */
84
84
  .sh3-itg button.sh3-itg__btn--active {
85
- background: var(--shell-accent);
86
- color: var(--shell-fg-on-accent);
85
+ background: var(--sh3-accent);
86
+ color: var(--sh3-fg-on-accent);
87
87
  font-weight: 600;
88
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px color-mix(in srgb, var(--shell-fg-on-accent) 25%, transparent);
88
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px color-mix(in srgb, var(--sh3-fg-on-accent) 25%, transparent);
89
89
  }
90
- .sh3-itg button:focus-visible { outline: none; box-shadow: var(--shell-focus-ring); }
90
+ .sh3-itg button:focus-visible { outline: none; box-shadow: var(--sh3-focus-ring); }
91
91
  .sh3-itg button:disabled { opacity: 0.5; cursor: not-allowed; }
92
92
  </style>
@@ -114,28 +114,28 @@
114
114
 
115
115
  <style>
116
116
  .sh3-num { display: inline-flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; }
117
- .sh3-num__label { color: var(--shell-fg-muted); font-size: 0.75rem; }
117
+ .sh3-num__label { color: var(--sh3-fg-muted); font-size: 0.75rem; }
118
118
  .sh3-num__row {
119
119
  display: inline-flex;
120
120
  align-items: stretch;
121
- background: var(--shell-input-bg);
122
- border: 1px solid var(--shell-border);
123
- border-radius: var(--shell-widget-radius);
124
- height: var(--shell-field-height-md);
121
+ background: var(--sh3-input-bg);
122
+ border: 1px solid var(--sh3-border);
123
+ border-radius: var(--sh3-widget-radius);
124
+ height: var(--sh3-field-height-md);
125
125
  }
126
- .sh3-num--sm .sh3-num__row { height: var(--shell-field-height-sm); }
126
+ .sh3-num--sm .sh3-num__row { height: var(--sh3-field-height-sm); }
127
127
  .sh3-num__row:focus-within {
128
- border-color: var(--shell-input-border-focus);
129
- box-shadow: var(--shell-focus-ring);
128
+ border-color: var(--sh3-input-border-focus);
129
+ box-shadow: var(--sh3-focus-ring);
130
130
  }
131
- .sh3-num--invalid .sh3-num__row { border-color: var(--shell-error); }
131
+ .sh3-num--invalid .sh3-num__row { border-color: var(--sh3-error); }
132
132
  .sh3-num__input {
133
133
  flex: 1 1 auto;
134
134
  min-width: 50px;
135
- padding: 0 var(--shell-field-pad-x);
135
+ padding: 0 var(--sh3-field-pad-x);
136
136
  background: transparent;
137
137
  border: none;
138
- color: var(--shell-fg);
138
+ color: var(--sh3-fg);
139
139
  font: inherit;
140
140
  outline: none;
141
141
  -moz-appearance: textfield;
@@ -157,18 +157,18 @@
157
157
  display: inline-flex;
158
158
  align-items: center;
159
159
  padding: 0 6px;
160
- color: var(--shell-fg-muted);
160
+ color: var(--sh3-fg-muted);
161
161
  }
162
162
  .sh3-num__steppers {
163
163
  display: inline-flex;
164
164
  flex-direction: column;
165
- border-left: 1px solid var(--shell-border);
165
+ border-left: 1px solid var(--sh3-border);
166
166
  }
167
167
  .sh3-num__steppers button {
168
168
  flex: 1;
169
169
  width: 18px;
170
170
  background: transparent;
171
- color: var(--shell-fg-muted);
171
+ color: var(--sh3-fg-muted);
172
172
  border: none;
173
173
  border-radius: 0;
174
174
  padding: 0;
@@ -177,10 +177,10 @@
177
177
  line-height: 1;
178
178
  }
179
179
  .sh3-num__steppers button:hover:not(:disabled) {
180
- background: var(--shell-bg-elevated);
181
- color: var(--shell-fg);
180
+ background: var(--sh3-bg-elevated);
181
+ color: var(--sh3-fg);
182
182
  filter: none;
183
183
  }
184
184
  .sh3-num__steppers button:disabled { cursor: not-allowed; opacity: 0.5; }
185
- .sh3-num__steppers button + button { border-top: 1px solid var(--shell-border); }
185
+ .sh3-num__steppers button + button { border-top: 1px solid var(--sh3-border); }
186
186
  </style>