@shwfed/nuxt 0.11.34 → 0.11.35

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.11.34",
4
+ "version": "0.11.35",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -22,6 +22,9 @@ type __VLS_Props = {
22
22
  dsl?: DslEffect;
23
23
  sidebar?: SidebarType;
24
24
  commands?: Array<ProfileCommandInputItem | ProfileCommandInputGroup>;
25
+ hideSidebar?: boolean;
26
+ hideTabs?: boolean;
27
+ hideMenubar?: boolean;
25
28
  };
26
29
  declare var __VLS_10: string, __VLS_11: any;
27
30
  type __VLS_Slots = {} & {
@@ -6,7 +6,10 @@ defineOptions({
6
6
  const props = defineProps({
7
7
  dsl: { type: null, required: false },
8
8
  sidebar: { type: Array, required: false },
9
- commands: { type: Array, required: false }
9
+ commands: { type: Array, required: false },
10
+ hideSidebar: { type: Boolean, required: false },
11
+ hideTabs: { type: Boolean, required: false },
12
+ hideMenubar: { type: Boolean, required: false }
10
13
  });
11
14
  </script>
12
15
 
@@ -22,6 +22,9 @@ type __VLS_Props = {
22
22
  dsl?: DslEffect;
23
23
  sidebar?: SidebarType;
24
24
  commands?: Array<ProfileCommandInputItem | ProfileCommandInputGroup>;
25
+ hideSidebar?: boolean;
26
+ hideTabs?: boolean;
27
+ hideMenubar?: boolean;
25
28
  };
26
29
  declare var __VLS_10: string, __VLS_11: any;
27
30
  type __VLS_Slots = {} & {
@@ -68,6 +68,9 @@ type __VLS_Props = {
68
68
  * Structured command entries for profile menu and command palette.
69
69
  */
70
70
  commands?: Array<ProfileCommandInputItem | ProfileCommandInputGroup>;
71
+ hideSidebar?: boolean;
72
+ hideTabs?: boolean;
73
+ hideMenubar?: boolean;
71
74
  };
72
75
  declare var __VLS_113: {}, __VLS_129: {}, __VLS_352: {};
73
76
  type __VLS_Slots = {} & {
@@ -28,7 +28,10 @@ const overlay = useOverlay();
28
28
  const props = defineProps({
29
29
  dsl: { type: null, required: false },
30
30
  sidebar: { type: Array, required: false },
31
- commands: { type: Array, required: false }
31
+ commands: { type: Array, required: false },
32
+ hideSidebar: { type: Boolean, required: false },
33
+ hideTabs: { type: Boolean, required: false },
34
+ hideMenubar: { type: Boolean, required: false }
32
35
  });
33
36
  const { active, tabs, nameOf, close } = useNavigationTabs(() => props.sidebar ?? []);
34
37
  const ui = reactive({
@@ -167,7 +170,7 @@ function runPaletteEffect(effect) {
167
170
  </ClientOnly>
168
171
 
169
172
  <main class="h-screen w-screen flex flex-col overflow-hidden">
170
- <header class="bg-(--primary) h-12 w-full flex items-center justify-between px-4 gap-4">
173
+ <header :class="['bg-(--primary) h-12 w-full flex items-center justify-between px-4 gap-4', { hidden: hideMenubar }]">
171
174
  <Logo />
172
175
  <slot name="menu" />
173
176
  <span class="flex-1" />
@@ -257,7 +260,7 @@ function runPaletteEffect(effect) {
257
260
  <main class="flex-1 flex w-full overflow-hidden">
258
261
  <SidebarProvider
259
262
  default-open
260
- class="w-fit"
263
+ :class="['w-fit', { hidden: hideSidebar }]"
261
264
  :style="{
262
265
  '--sidebar-width': '13rem'
263
266
  }"
@@ -361,7 +364,7 @@ function runPaletteEffect(effect) {
361
364
  </Sidebar>
362
365
  </SidebarProvider>
363
366
  <main class="flex-1 flex flex-col bg-zinc-100 overflow-hidden">
364
- <nav class="bg-white p-1 border-b border-zinc-100 h-10 flex items-center justify-start gap-1 overflow-x-auto min-w-0">
367
+ <nav :class="['bg-white p-1 border-b border-zinc-100 h-10 flex items-center justify-start gap-1 overflow-x-auto min-w-0', { hidden: hideTabs }]">
365
368
  <div
366
369
  v-for="tab in tabs"
367
370
  :key="tab"
@@ -68,6 +68,9 @@ type __VLS_Props = {
68
68
  * Structured command entries for profile menu and command palette.
69
69
  */
70
70
  commands?: Array<ProfileCommandInputItem | ProfileCommandInputGroup>;
71
+ hideSidebar?: boolean;
72
+ hideTabs?: boolean;
73
+ hideMenubar?: boolean;
71
74
  };
72
75
  declare var __VLS_113: {}, __VLS_129: {}, __VLS_352: {};
73
76
  type __VLS_Slots = {} & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
- "version": "0.11.34",
3
+ "version": "0.11.35",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",