@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 +1 -25
- package/lib/contract.js +1 -17
- package/lib/fallback.js +0 -1
- package/lib/index.js +797 -2860
- package/lib/runtime.js +1406 -467
- package/lib/settings.js +1100 -226
- package/lib/skins.js +163 -189
- package/lib/types/components/dialog.d.ts +5 -5
- package/lib/types/components/dialog.js +2 -2
- package/lib/types/components/input.d.ts +7 -4
- package/lib/types/components/input.js +9 -6
- package/lib/types/components/layout.d.ts +4 -1
- package/lib/types/components/layout.js +2 -2
- package/lib/types/components/schema-form.d.ts +13 -3
- package/lib/types/components/schema-form.js +25 -2
- package/lib/types/contract.d.ts +0 -8
- package/lib/types/contract.js +0 -4
- package/lib/types/fallback.js +1 -1
- package/lib/types/runtime.d.ts +23 -1
- package/lib/types/runtime.js +74 -18
- package/lib/types/settings-pages/appearance.d.ts +6 -4
- package/lib/types/settings-pages/appearance.js +33 -36
- package/lib/types/settings-pages/plugin-feed.d.ts +17 -0
- package/lib/types/settings-pages/plugin-feed.js +66 -0
- package/lib/types/settings-pages/plugins.d.ts +10 -5
- package/lib/types/settings-pages/plugins.js +284 -21
- package/lib/types/settings.d.ts +1 -0
- package/lib/types/settings.js +14 -8
- package/lib/types/skins.d.ts +38 -44
- package/lib/types/skins.js +172 -169
- package/package.json +6 -6
- package/src/styles/base.css +8 -0
- package/src/styles/default.css +137 -136
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
|
|
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,
|
|
527
|
+
export { CUSTOM_SLOT_PATTERN, UI_COMPONENTS, UI_DIAGNOSTIC_KINDS, UI_PROFILES, UI_SLOT_IDS, UI_SLOT_MODES, isValidSlotId };
|
package/lib/fallback.js
CHANGED