@snap-rail/ui 0.1.0 → 0.1.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.
package/lib/charts.js CHANGED
@@ -19,30 +19,6 @@ function part(component, name) {
19
19
  };
20
20
  }
21
21
  //#endregion
22
- //#region lib/types/contract.js
23
- /** The stable region slots every layout may provide. */
24
- const UI_SLOT_IDS = {
25
- /** The one active layout of the operator window. */
26
- layout: "shell.layout",
27
- /** The operator titlebar. */
28
- titlebar: "shell.titlebar",
29
- /** Contributed titlebar actions. */
30
- titlebarActions: "shell.titlebar.actions",
31
- /** Sidebar extension area. */
32
- sidebar: "shell.sidebar",
33
- /** Statusbar extension area. */
34
- statusbar: "shell.statusbar",
35
- /** The global overlay stack (dialogs, confirms). */
36
- overlay: "shell.overlay",
37
- /** The floating ball surface face. */
38
- ball: "shell.ball",
39
- /** The settings trigger. */
40
- settingsEntry: "settings.entry",
41
- /** The settings surface itself. */
42
- settingsSurface: "settings.surface"
43
- };
44
- UI_SLOT_IDS.layout, UI_SLOT_IDS.titlebar, UI_SLOT_IDS.titlebarActions, UI_SLOT_IDS.sidebar, UI_SLOT_IDS.statusbar, UI_SLOT_IDS.overlay, UI_SLOT_IDS.ball, UI_SLOT_IDS.settingsEntry, UI_SLOT_IDS.settingsSurface;
45
- //#endregion
46
22
  //#region lib/types/skins.js
47
23
  /** The React context carrying the skin service. */
48
24
  const SkinsContext = createContext(null);
@@ -52,7 +28,7 @@ function useSkins() {
52
28
  if (service === null) throw new Error("useSkins: no SkinsProvider in the tree");
53
29
  return service;
54
30
  }
55
- /** Re-render on skin/mode changes and return the active token set. */
31
+ /** Re-render on theme changes and return the active token set. */
56
32
  function useSkinTokens() {
57
33
  const service = useSkins();
58
34
  useSyncExternalStore(service.subscribe, service.version, service.version);
package/lib/contract.js CHANGED
@@ -523,21 +523,5 @@ const UI_COMPONENTS = {
523
523
  "settings.content"
524
524
  ] }
525
525
  };
526
- /** The presentation targets a skin may tune. */
527
- const PRESENTATION_TARGETS = [
528
- "dialog",
529
- "select",
530
- "tabs",
531
- "toast"
532
- ];
533
- /** The presentation variants the core implements. */
534
- const PRESENTATION_VARIANTS = [
535
- "modal",
536
- "sheet",
537
- "fullscreen",
538
- "popover",
539
- "segmented",
540
- "inline"
541
- ];
542
526
  //#endregion
543
- export { CUSTOM_SLOT_PATTERN, PRESENTATION_TARGETS, PRESENTATION_VARIANTS, UI_COMPONENTS, UI_DIAGNOSTIC_KINDS, UI_PROFILES, UI_SLOT_IDS, UI_SLOT_MODES, isValidSlotId };
527
+ export { CUSTOM_SLOT_PATTERN, UI_COMPONENTS, UI_DIAGNOSTIC_KINDS, UI_PROFILES, UI_SLOT_IDS, UI_SLOT_MODES, isValidSlotId };
package/lib/fallback.js CHANGED
@@ -354,7 +354,6 @@ function FallbackShell(props) {
354
354
  },
355
355
  children: jsx(EmptyState, {
356
356
  title: "尚未激活业务套件",
357
- description: "打开设置的「插件管理」页,安装并启用一个业务套件;驱动也在同一处安装。",
358
357
  action: jsx(Button, {
359
358
  intent: "primary",
360
359
  onClick: () => props.ctx.settings.open("plugins"),