@vobs/ui 0.1.0 → 0.2.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.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +9 -7
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,13 @@ export interface SetupUiOptions {
|
|
|
15
15
|
readonly icons?: true | UiIconSource;
|
|
16
16
|
readonly appShells?: AppShellConfigInput;
|
|
17
17
|
}
|
|
18
|
+
declare const uiComponents: {
|
|
19
|
+
'k-app-shell': ComponentRegistry[string];
|
|
20
|
+
'k-icon': ComponentRegistry[string];
|
|
21
|
+
'k-calendar-picker': ComponentRegistry[string];
|
|
22
|
+
};
|
|
18
23
|
export interface UiSetupEnvironment {
|
|
19
|
-
readonly components:
|
|
24
|
+
readonly components: typeof uiComponents;
|
|
20
25
|
readonly injections?: InjectionScope;
|
|
21
26
|
}
|
|
22
27
|
export declare function setupUi(options?: SetupUiOptions): UiSetupEnvironment;
|
package/dist/index.js
CHANGED
|
@@ -12,12 +12,12 @@ export * from './calendar.js';
|
|
|
12
12
|
export * from './calendar-picker.js';
|
|
13
13
|
export * from './workbench.js';
|
|
14
14
|
export { AppShell, UiAppShellEnvironmentKey, createAppShellRegistry, defineAppShell, defineAppShellConfig, provideUiAppShells, resolveActiveAppShellNavItemId, resolveAppShellState, resolveAppShellStatus, } from './app-shell.js';
|
|
15
|
+
const uiComponents = {
|
|
16
|
+
'k-app-shell': AppShell,
|
|
17
|
+
'k-icon': Icon,
|
|
18
|
+
'k-calendar-picker': CalendarPicker,
|
|
19
|
+
};
|
|
15
20
|
export function setupUi(options = {}) {
|
|
16
|
-
const components = {
|
|
17
|
-
'k-app-shell': AppShell,
|
|
18
|
-
'k-icon': Icon,
|
|
19
|
-
'k-calendar-picker': CalendarPicker,
|
|
20
|
-
};
|
|
21
21
|
const injections = createInjectionScope();
|
|
22
22
|
if (options.icons !== undefined && options.icons !== true) {
|
|
23
23
|
provideUiIcons(injections, options.icons);
|
|
@@ -26,7 +26,9 @@ export function setupUi(options = {}) {
|
|
|
26
26
|
provideUiAppShells(injections, options.appShells);
|
|
27
27
|
}
|
|
28
28
|
if (options.icons === undefined || options.icons === true) {
|
|
29
|
-
return options.appShells === undefined
|
|
29
|
+
return options.appShells === undefined
|
|
30
|
+
? { components: uiComponents }
|
|
31
|
+
: { components: uiComponents, injections };
|
|
30
32
|
}
|
|
31
|
-
return { components, injections };
|
|
33
|
+
return { components: uiComponents, injections };
|
|
32
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vobs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Optional design tokens, layouts and UI components for vobs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -97,12 +97,12 @@
|
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@tanstack/virtual-core": "^3.17.7",
|
|
99
99
|
"@vobs/forms": "0.1.0",
|
|
100
|
-
"@vobs/i18n": "0.1.0",
|
|
101
|
-
"@vobs/icons": "0.1.0",
|
|
102
100
|
"@vobs/runtime-dom": "0.1.0",
|
|
103
|
-
"@vobs/
|
|
101
|
+
"@vobs/icons": "0.1.0",
|
|
102
|
+
"@vobs/i18n": "0.1.0",
|
|
103
|
+
"@vobs/reactivity": "0.1.0",
|
|
104
104
|
"@vobs/server-renderer": "0.1.0",
|
|
105
|
-
"@vobs/
|
|
105
|
+
"@vobs/router": "0.1.0"
|
|
106
106
|
},
|
|
107
107
|
"sideEffects": [
|
|
108
108
|
"./dist/*.css"
|