sh3-core 0.15.3 → 0.16.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 (224) 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/color/api.d.ts +1 -1
  45. package/dist/color/api.js +1 -1
  46. package/dist/color/{shell-api.js → sh3-api.js} +3 -3
  47. package/dist/conflicts/ConflictModal.svelte +1 -1
  48. package/dist/conflicts/ConflictModal.svelte.d.ts +1 -1
  49. package/dist/conflicts/DetailView.svelte +19 -19
  50. package/dist/conflicts/PromptView.svelte +9 -9
  51. package/dist/conflicts/adapter-documents.js +1 -1
  52. package/dist/conflicts/api.d.ts +1 -1
  53. package/dist/conflicts/api.js +2 -2
  54. package/dist/conflicts/renderer-registry.js +1 -1
  55. package/dist/conflicts/renderers/MetaOnlyRenderer.svelte +8 -8
  56. package/dist/conflicts/renderers/TextDiffRenderer.svelte +15 -15
  57. package/dist/conflicts/renderers/index.js +1 -1
  58. package/dist/conflicts/resolve-primitive.js +1 -1
  59. package/dist/conflicts/{shell-api.js → sh3-api.js} +2 -2
  60. package/dist/contributions/registry.js +1 -1
  61. package/dist/createShell.d.ts +2 -2
  62. package/dist/createShell.js +6 -6
  63. package/dist/host-entry.d.ts +1 -1
  64. package/dist/host-entry.js +2 -2
  65. package/dist/host.js +2 -2
  66. package/dist/index.d.ts +1 -1
  67. package/dist/index.js +2 -2
  68. package/dist/keys/ConsentDialog.svelte +15 -15
  69. package/dist/keys/consent.svelte.d.ts +2 -2
  70. package/dist/keys/consent.svelte.js +3 -3
  71. package/dist/keys/revocation-bus.svelte.d.ts +3 -3
  72. package/dist/keys/revocation-bus.svelte.js +3 -3
  73. package/dist/layout/DragPreview.svelte +9 -9
  74. package/dist/layout/LayoutRenderer.browser.test.js +2 -2
  75. package/dist/layout/LayoutRenderer.svelte +4 -4
  76. package/dist/layout/SlotContainer.svelte +12 -12
  77. package/dist/layout/SlotDropZone.svelte +2 -2
  78. package/dist/layout/inspection.d.ts +1 -1
  79. package/dist/layout/inspection.js +1 -1
  80. package/dist/layout/store.svelte.js +3 -3
  81. package/dist/layout/types.d.ts +1 -1
  82. package/dist/layouts-shard/LayoutSaveModal.svelte +20 -20
  83. package/dist/layouts-shard/LayoutsSection.svelte +11 -11
  84. package/dist/layouts-shard/filter.test.js +3 -3
  85. package/dist/layouts-shard/layoutsApi.test.js +3 -3
  86. package/dist/layouts-shard/layoutsShard.svelte.test.js +7 -7
  87. package/dist/migrations/mode-id-rename.js +2 -2
  88. package/dist/overlays/ConfirmDialog.svelte +8 -8
  89. package/dist/overlays/EntityAppearanceModal.svelte +19 -19
  90. package/dist/overlays/FloatFrame.svelte +20 -20
  91. package/dist/overlays/FloatLayer.svelte +1 -1
  92. package/dist/overlays/ModalFrame.svelte +5 -5
  93. package/dist/overlays/PopupFrame.svelte +4 -4
  94. package/dist/overlays/ToastItem.svelte +12 -12
  95. package/dist/overlays/float.d.ts +2 -2
  96. package/dist/overlays/float.js +3 -3
  97. package/dist/overlays/float.test.js +6 -6
  98. package/dist/overlays/modal.js +1 -1
  99. package/dist/overlays/modal.test.js +2 -2
  100. package/dist/overlays/parentHost.js +2 -2
  101. package/dist/overlays/parentHost.test.js +5 -5
  102. package/dist/overlays/popup.js +2 -2
  103. package/dist/overlays/popup.test.js +2 -2
  104. package/dist/overlays/roots.js +4 -4
  105. package/dist/overlays/toast.js +1 -1
  106. package/dist/overlays/types.js +3 -3
  107. package/dist/primitives/Button.svelte +16 -16
  108. package/dist/primitives/Collapsible.svelte +11 -11
  109. package/dist/primitives/ResizableSplitter.svelte +10 -10
  110. package/dist/primitives/TabbedPanel.svelte +19 -19
  111. package/dist/primitives/base.css +57 -57
  112. package/dist/primitives/widgets/ColorSwatch.svelte +15 -15
  113. package/dist/primitives/widgets/ColorSwatch.svelte.test.js +4 -4
  114. package/dist/primitives/widgets/Field.svelte +20 -20
  115. package/dist/primitives/widgets/FilePicker.svelte +13 -13
  116. package/dist/primitives/widgets/IconPicker.svelte +14 -14
  117. package/dist/primitives/widgets/IconToggleGroup.svelte +14 -14
  118. package/dist/primitives/widgets/NumberInput.svelte +17 -17
  119. package/dist/primitives/widgets/PickerList.svelte +17 -17
  120. package/dist/primitives/widgets/RangeSlider.svelte +16 -16
  121. package/dist/primitives/widgets/Segmented.svelte +16 -16
  122. package/dist/primitives/widgets/Select.svelte +14 -14
  123. package/dist/primitives/widgets/Select.svelte.test.js +2 -2
  124. package/dist/primitives/widgets/Slider.svelte +20 -20
  125. package/dist/primitives/widgets/SliderGroup.svelte +2 -2
  126. package/dist/primitives/widgets/Textarea.svelte +13 -13
  127. package/dist/primitives/widgets/_select-listbox.svelte +15 -15
  128. package/dist/projects/session-state.svelte.js +1 -1
  129. package/dist/projects-shard/DeleteProjectDialog.svelte +12 -12
  130. package/dist/projects-shard/ProjectManage.svelte +25 -25
  131. package/dist/projects-shard/ProjectsSection.svelte +12 -12
  132. package/dist/registry/installer.d.ts +2 -2
  133. package/dist/registry/installer.js +2 -2
  134. package/dist/registry/loader.js +1 -1
  135. package/dist/registry/permission-descriptions.js +2 -2
  136. package/dist/registry/permission-descriptions.test.js +1 -1
  137. package/dist/runtime/runVerb-shell.test.js +2 -2
  138. package/dist/runtime/runVerb.js +4 -4
  139. package/dist/runtime/runVerb.test.js +4 -4
  140. package/dist/satellite/SatelliteShell.svelte +2 -2
  141. package/dist/{shell → sh3}/views/KeysAndPeers.svelte +7 -7
  142. package/dist/sh3Api/headless.d.ts +4 -0
  143. package/dist/{shell-shard/shellApi.js → sh3Api/headless.js} +5 -5
  144. package/dist/{shell-shard/shellApi.svelte.test.js → sh3Api/headless.svelte.test.js} +11 -11
  145. package/dist/{shellApi → sh3Api}/window.js +2 -2
  146. package/dist/{shellApi → sh3Api}/window.test.js +1 -1
  147. package/dist/{shellRuntime.svelte.d.ts → sh3Runtime.svelte.d.ts} +22 -10
  148. package/dist/{shellRuntime.svelte.js → sh3Runtime.svelte.js} +12 -10
  149. package/dist/sh3Runtime.svelte.test.d.ts +1 -0
  150. package/dist/sh3Runtime.svelte.test.js +46 -0
  151. package/dist/sh3core-shard/AppInfoView.svelte +19 -19
  152. package/dist/sh3core-shard/{ShellHome.svelte → Sh3Home.svelte} +82 -82
  153. package/dist/sh3core-shard/Sh3Home.svelte.d.ts +3 -0
  154. package/dist/sh3core-shard/{ShellTitle.svelte → Sh3Title.svelte} +11 -11
  155. package/dist/sh3core-shard/Sh3Title.svelte.d.ts +3 -0
  156. package/dist/sh3core-shard/appActions.js +3 -3
  157. package/dist/sh3core-shard/sh3coreShard.svelte.js +7 -7
  158. package/dist/shards/activate.svelte.d.ts +1 -1
  159. package/dist/shards/activate.svelte.js +6 -6
  160. package/dist/shards/types.d.ts +5 -5
  161. package/dist/shards/types.js +2 -2
  162. package/dist/shell-shard/CommandLine.svelte +7 -7
  163. package/dist/shell-shard/InputLine.svelte +3 -3
  164. package/dist/shell-shard/ScrollbackView.svelte +2 -2
  165. package/dist/shell-shard/Terminal.svelte +5 -5
  166. package/dist/shell-shard/Terminal.svelte.d.ts +2 -2
  167. package/dist/shell-shard/dispatch-custom.test.js +2 -2
  168. package/dist/shell-shard/dispatch-gating.test.js +2 -2
  169. package/dist/shell-shard/dispatch-invoke.test.js +2 -2
  170. package/dist/shell-shard/dispatch-to-terminal.js +1 -1
  171. package/dist/shell-shard/dispatch.d.ts +2 -2
  172. package/dist/shell-shard/dispatch.js +2 -2
  173. package/dist/shell-shard/entries/PromptEntry.svelte +4 -4
  174. package/dist/shell-shard/entries/StatusEntry.svelte +4 -4
  175. package/dist/shell-shard/entries/TextEntry.svelte +3 -3
  176. package/dist/shell-shard/locateSlot.test.js +9 -9
  177. package/dist/shell-shard/manifest.js +2 -2
  178. package/dist/shell-shard/registry.d.ts +2 -2
  179. package/dist/shell-shard/rich/AppCard.svelte +1 -1
  180. package/dist/shell-shard/rich/AppsTable.svelte +1 -1
  181. package/dist/shell-shard/rich/HelpTable.svelte +1 -1
  182. package/dist/shell-shard/rich/HistoryList.svelte +1 -1
  183. package/dist/shell-shard/rich/ViewsTable.svelte +1 -1
  184. package/dist/shell-shard/rich/ZoneTree.svelte +2 -2
  185. package/dist/shell-shard/shellShard.svelte.d.ts +1 -1
  186. package/dist/shell-shard/shellShard.svelte.js +8 -8
  187. package/dist/shell-shard/terminal-dispatch.test.js +2 -2
  188. package/dist/shell-shard/toolbar/Toolbar.svelte +4 -4
  189. package/dist/shell-shard/toolbar/Toolbar.svelte.d.ts +2 -2
  190. package/dist/shell-shard/toolbar/slots/BusySlot.svelte +2 -2
  191. package/dist/shell-shard/toolbar/slots/FocusLockSlot.svelte +2 -2
  192. package/dist/shell-shard/toolbar/slots/ModeSlot.svelte +1 -1
  193. package/dist/shell-shard/toolbar/slots/TargetShardSlot.svelte +1 -1
  194. package/dist/shell-shard/toolbar/slots.d.ts +3 -3
  195. package/dist/shell-shard/verbs/apps.js +3 -3
  196. package/dist/shell-shard/verbs/help.js +1 -1
  197. package/dist/shell-shard/verbs/help.svelte.test.js +1 -1
  198. package/dist/shell-shard/verbs/history.js +1 -1
  199. package/dist/shell-shard/verbs/mode.js +2 -2
  200. package/dist/shell-shard/verbs/mode.test.js +2 -2
  201. package/dist/shell-shard/verbs/shards.js +1 -1
  202. package/dist/shell-shard/verbs/views.js +8 -8
  203. package/dist/shell-shard/verbs/zones.js +2 -2
  204. package/dist/state/zones.svelte.d.ts +2 -2
  205. package/dist/state/zones.svelte.js +4 -4
  206. package/dist/theme.d.ts +3 -3
  207. package/dist/theme.js +5 -5
  208. package/dist/tokens.css +68 -68
  209. package/dist/verbs/types.d.ts +5 -5
  210. package/dist/verbs/types.js +1 -1
  211. package/dist/version.d.ts +1 -1
  212. package/dist/version.js +1 -1
  213. package/package.json +1 -1
  214. package/dist/Shell.svelte.d.ts +0 -5
  215. package/dist/sh3core-shard/ShellHome.svelte.d.ts +0 -3
  216. package/dist/sh3core-shard/ShellTitle.svelte.d.ts +0 -3
  217. package/dist/shell-shard/shellApi.d.ts +0 -4
  218. /package/dist/actions/{shellActions.test.d.ts → sh3Actions.test.d.ts} +0 -0
  219. /package/dist/color/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  220. /package/dist/conflicts/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  221. /package/dist/{shell → sh3}/views/KeysAndPeers.svelte.d.ts +0 -0
  222. /package/dist/{shell-shard/shellApi.svelte.test.d.ts → sh3Api/headless.svelte.test.d.ts} +0 -0
  223. /package/dist/{shellApi → sh3Api}/window.d.ts +0 -0
  224. /package/dist/{shellApi → sh3Api}/window.test.d.ts +0 -0
@@ -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>
@@ -88,18 +88,18 @@
88
88
  display: flex;
89
89
  flex-direction: column;
90
90
  gap: 6px;
91
- border: 1px solid var(--shell-border);
92
- border-radius: var(--shell-radius-sm, 3px);
91
+ border: 1px solid var(--sh3-border);
92
+ border-radius: var(--sh3-radius-sm, 3px);
93
93
  padding: 6px;
94
- background: var(--shell-bg-elevated);
94
+ background: var(--sh3-bg-elevated);
95
95
  }
96
96
  .sh3-picker__search {
97
97
  width: 100%;
98
98
  padding: 4px 6px;
99
- border: 1px solid var(--shell-border);
100
- border-radius: var(--shell-radius-sm, 3px);
101
- background: var(--shell-bg);
102
- color: var(--shell-fg);
99
+ border: 1px solid var(--sh3-border);
100
+ border-radius: var(--sh3-radius-sm, 3px);
101
+ background: var(--sh3-bg);
102
+ color: var(--sh3-fg);
103
103
  font: inherit;
104
104
  font-size: 12px;
105
105
  }
@@ -115,26 +115,26 @@
115
115
  gap: 8px;
116
116
  padding: 4px 6px;
117
117
  cursor: pointer;
118
- border-radius: var(--shell-radius-sm, 3px);
118
+ border-radius: var(--sh3-radius-sm, 3px);
119
119
  }
120
- .sh3-picker__row:hover { background: var(--shell-bg); }
120
+ .sh3-picker__row:hover { background: var(--sh3-bg); }
121
121
  .sh3-picker__row-text { display: flex; flex-direction: column; gap: 0; }
122
122
  .sh3-picker__row-label { font-size: 13px; }
123
- .sh3-picker__row-sub { font-size: 11px; color: var(--shell-fg-muted); }
123
+ .sh3-picker__row-sub { font-size: 11px; color: var(--sh3-fg-muted); }
124
124
  .sh3-picker__status {
125
125
  margin: 0;
126
126
  padding: 8px 6px;
127
- color: var(--shell-fg-muted);
127
+ color: var(--sh3-fg-muted);
128
128
  font-size: 12px;
129
129
  }
130
- .sh3-picker__status--error { color: var(--shell-error, #c33); }
130
+ .sh3-picker__status--error { color: var(--sh3-error, #c33); }
131
131
  .sh3-picker__retry {
132
132
  align-self: flex-start;
133
133
  margin: 0 6px 8px;
134
- background: var(--shell-bg);
135
- color: var(--shell-fg);
136
- border: 1px solid var(--shell-border);
137
- border-radius: var(--shell-radius-sm, 3px);
134
+ background: var(--sh3-bg);
135
+ color: var(--sh3-fg);
136
+ border: 1px solid var(--sh3-border);
137
+ border-radius: var(--sh3-radius-sm, 3px);
138
138
  padding: 2px 8px;
139
139
  font: inherit;
140
140
  font-size: 12px;
@@ -143,7 +143,7 @@
143
143
  .sh3-picker__footer {
144
144
  margin: 0;
145
145
  font-size: 11px;
146
- color: var(--shell-fg-muted);
146
+ color: var(--sh3-fg-muted);
147
147
  text-align: right;
148
148
  }
149
149
  .sh3-picker--disabled .sh3-picker__row { cursor: not-allowed; opacity: 0.6; }
@@ -66,16 +66,16 @@
66
66
  top: 50%; left: 0; right: 0;
67
67
  height: 4px;
68
68
  transform: translateY(-50%);
69
- background: var(--shell-track-bg);
70
- border: 1px solid var(--shell-track-border);
71
- border-radius: var(--shell-widget-radius-pill);
69
+ background: var(--sh3-track-bg);
70
+ border: 1px solid var(--sh3-track-border);
71
+ border-radius: var(--sh3-widget-radius-pill);
72
72
  }
73
73
  .sh3-range__fill {
74
74
  position: absolute;
75
75
  top: 0; bottom: 0;
76
76
  left: var(--lo);
77
77
  width: calc(var(--hi) - var(--lo));
78
- background: var(--shell-track-fill);
78
+ background: var(--sh3-track-fill);
79
79
  border-radius: inherit;
80
80
  }
81
81
  .sh3-range__native {
@@ -95,9 +95,9 @@
95
95
  -webkit-appearance: none;
96
96
  width: var(--thumb-size); height: var(--thumb-size);
97
97
  border-radius: 50%;
98
- background: var(--shell-thumb-bg);
99
- border: 2px solid var(--shell-thumb-border);
100
- box-shadow: var(--shell-thumb-shadow);
98
+ background: var(--sh3-thumb-bg);
99
+ border: 2px solid var(--sh3-thumb-border);
100
+ box-shadow: var(--sh3-thumb-shadow);
101
101
  pointer-events: auto;
102
102
  cursor: pointer;
103
103
  opacity: 1;
@@ -105,31 +105,31 @@
105
105
  .sh3-range__native::-moz-range-thumb {
106
106
  width: var(--thumb-size); height: var(--thumb-size);
107
107
  border-radius: 50%;
108
- background: var(--shell-thumb-bg);
109
- border: 2px solid var(--shell-thumb-border);
110
- box-shadow: var(--shell-thumb-shadow);
108
+ background: var(--sh3-thumb-bg);
109
+ border: 2px solid var(--sh3-thumb-border);
110
+ box-shadow: var(--sh3-thumb-shadow);
111
111
  pointer-events: auto;
112
112
  cursor: pointer;
113
113
  opacity: 1;
114
114
  }
115
115
  .sh3-range__native:disabled::-webkit-slider-thumb {
116
- background: var(--shell-fg-subtle);
117
- border-color: var(--shell-border-strong);
116
+ background: var(--sh3-fg-subtle);
117
+ border-color: var(--sh3-border-strong);
118
118
  cursor: not-allowed;
119
119
  opacity: 1;
120
120
  }
121
121
  .sh3-range__native:disabled::-moz-range-thumb {
122
- background: var(--shell-fg-subtle);
123
- border-color: var(--shell-border-strong);
122
+ background: var(--sh3-fg-subtle);
123
+ border-color: var(--sh3-border-strong);
124
124
  cursor: not-allowed;
125
125
  opacity: 1;
126
126
  }
127
127
  .sh3-range:has(.sh3-range__native:disabled) .sh3-range__fill {
128
- background: var(--shell-border-strong);
128
+ background: var(--sh3-border-strong);
129
129
  }
130
130
  .sh3-range__native::-webkit-slider-runnable-track,
131
131
  .sh3-range__native::-moz-range-track {
132
132
  background: transparent;
133
133
  }
134
- .sh3-range--invalid .sh3-range__track { border-color: var(--shell-error); }
134
+ .sh3-range--invalid .sh3-range__track { border-color: var(--sh3-error); }
135
135
  </style>
@@ -52,41 +52,41 @@
52
52
  <style>
53
53
  .sh3-seg {
54
54
  display: inline-flex;
55
- background: var(--shell-bg-sunken);
56
- border: 1px solid var(--shell-border);
57
- border-radius: var(--shell-widget-radius-pill);
55
+ background: var(--sh3-bg-sunken);
56
+ border: 1px solid var(--sh3-border);
57
+ border-radius: var(--sh3-widget-radius-pill);
58
58
  padding: 2px;
59
- height: var(--shell-field-height-md);
59
+ height: var(--sh3-field-height-md);
60
60
  gap: 0;
61
61
  }
62
- .sh3-seg--sm { height: var(--shell-field-height-sm); }
62
+ .sh3-seg--sm { height: var(--sh3-field-height-sm); }
63
63
  .sh3-seg button {
64
64
  background: transparent;
65
- color: var(--shell-fg-muted);
65
+ color: var(--sh3-fg-muted);
66
66
  border: none;
67
- padding: 0 var(--shell-field-pad-x);
68
- border-radius: var(--shell-widget-radius-pill);
67
+ padding: 0 var(--sh3-field-pad-x);
68
+ border-radius: var(--sh3-widget-radius-pill);
69
69
  font-size: 0.8125rem;
70
70
  cursor: pointer;
71
- transition: background var(--shell-motion-fast) var(--shell-ease-standard),
72
- color var(--shell-motion-fast) var(--shell-ease-standard);
71
+ transition: background var(--sh3-motion-fast) var(--sh3-ease-standard),
72
+ color var(--sh3-motion-fast) var(--sh3-ease-standard);
73
73
  }
74
74
  .sh3-seg button:hover:not(:disabled):not(.sh3-seg__btn--active) {
75
- color: var(--shell-fg);
75
+ color: var(--sh3-fg);
76
76
  filter: none;
77
77
  }
78
78
  /* Selector includes `.sh3-seg button` so specificity (0,2,1) beats the
79
79
  base `.sh3-seg button` rule (0,1,1) — otherwise `background: transparent`
80
- and `color: var(--shell-fg-muted)` would shadow the accent fill. */
80
+ and `color: var(--sh3-fg-muted)` would shadow the accent fill. */
81
81
  .sh3-seg button.sh3-seg__btn--active {
82
- background: var(--shell-accent);
83
- color: var(--shell-fg-on-accent);
82
+ background: var(--sh3-accent);
83
+ color: var(--sh3-fg-on-accent);
84
84
  font-weight: 600;
85
- 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);
85
+ 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);
86
86
  }
87
87
  .sh3-seg button:disabled { opacity: 0.5; cursor: not-allowed; }
88
88
  .sh3-seg button:focus-visible {
89
89
  outline: none;
90
- box-shadow: var(--shell-focus-ring);
90
+ box-shadow: var(--sh3-focus-ring);
91
91
  }
92
92
  </style>
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { tick } from 'svelte';
3
3
  import type { CommitOnlyEvents } from './_contract';
4
- import { shell } from '../../shellRuntime.svelte';
4
+ import { sh3 } from '../../sh3Runtime.svelte';
5
5
  import Listbox from './_select-listbox.svelte';
6
6
  import { type SelectOption, resolveValueLabel, toggleMulti } from './Select';
7
7
 
@@ -40,7 +40,7 @@
40
40
  async function open() {
41
41
  if (disabled || isOpen || !trigger) return;
42
42
  isOpen = true;
43
- const popupHandle = shell.popup.show(
43
+ const popupHandle = sh3.popup.show(
44
44
  Listbox,
45
45
  { anchor: trigger },
46
46
  {
@@ -136,27 +136,27 @@
136
136
 
137
137
  <style>
138
138
  .sh3-select { display: inline-flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; position: relative; }
139
- .sh3-select__label { color: var(--shell-fg-muted); font-size: 0.75rem; }
139
+ .sh3-select__label { color: var(--sh3-fg-muted); font-size: 0.75rem; }
140
140
  .sh3-select__btn {
141
141
  display: inline-flex; align-items: center; gap: 8px;
142
- height: var(--shell-field-height-md);
142
+ height: var(--sh3-field-height-md);
143
143
  min-width: 140px;
144
- padding: 0 var(--shell-field-pad-x);
145
- background: var(--shell-input-bg);
146
- color: var(--shell-fg);
147
- border: 1px solid var(--shell-border);
148
- border-radius: var(--shell-widget-radius);
144
+ padding: 0 var(--sh3-field-pad-x);
145
+ background: var(--sh3-input-bg);
146
+ color: var(--sh3-fg);
147
+ border: 1px solid var(--sh3-border);
148
+ border-radius: var(--sh3-widget-radius);
149
149
  cursor: pointer;
150
150
  font: inherit;
151
151
  text-align: left;
152
152
  }
153
- .sh3-select--sm .sh3-select__btn { height: var(--shell-field-height-sm); }
154
- .sh3-select__btn:focus-visible { outline: none; box-shadow: var(--shell-focus-ring); border-color: var(--shell-input-border-focus); }
153
+ .sh3-select--sm .sh3-select__btn { height: var(--sh3-field-height-sm); }
154
+ .sh3-select__btn:focus-visible { outline: none; box-shadow: var(--sh3-focus-ring); border-color: var(--sh3-input-border-focus); }
155
155
  .sh3-select__btn:disabled { opacity: 0.55; cursor: not-allowed; }
156
- .sh3-select--invalid .sh3-select__btn { border-color: var(--shell-error); }
156
+ .sh3-select--invalid .sh3-select__btn { border-color: var(--sh3-error); }
157
157
  .sh3-select__display { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
158
- .sh3-select__display--placeholder { color: var(--shell-fg-muted); }
159
- .sh3-select__chevron { color: var(--shell-fg-muted); }
158
+ .sh3-select__display--placeholder { color: var(--sh3-fg-muted); }
159
+ .sh3-select__chevron { color: var(--sh3-fg-muted); }
160
160
  .sh3-select__native {
161
161
  position: absolute;
162
162
  width: 1px; height: 1px;