@stubber/ui 1.13.1 → 1.13.3

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.
@@ -3,6 +3,7 @@ import * as Popover from "../../components/popover/index";
3
3
  export let consoleOrigin = "";
4
4
  export let stubsOrigin = "";
5
5
  export let builderOrigin = "";
6
+ export let active_app;
6
7
  let stubsUrl = `${stubsOrigin}/_/inbox/assigned`;
7
8
  let consoleUrl = `${consoleOrigin}/_/contacts`;
8
9
  let builderUrl = `${builderOrigin}/_/drive/folders`;
@@ -16,21 +17,33 @@ let builderUrl = `${builderOrigin}/_/drive/folders`;
16
17
  </Popover.Trigger>
17
18
  <Popover.Content class="w-auto p-5 space-y-2 z-[120]">
18
19
  <!-- Stubs -->
19
- <Button href={stubsUrl} class="h-20 w-20" variant="ghost">
20
+ <Button
21
+ href={stubsUrl}
22
+ class="h-20 w-20 {active_app == 'stubs' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
23
+ variant="ghost"
24
+ >
20
25
  <div class="flex flex-col items-center space-y-2 text-surface-700">
21
26
  <i class="fa-regular fa-list-tree fa-2x" />
22
27
  <p class="text-label">Stubs</p>
23
28
  </div>
24
29
  </Button>
25
30
  <!-- Console -->
26
- <Button href={consoleUrl} class="h-20 w-20" variant="ghost">
31
+ <Button
32
+ href={consoleUrl}
33
+ class="h-20 w-20 {active_app == 'console' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
34
+ variant="ghost"
35
+ >
27
36
  <div class="flex flex-col items-center space-y-2 text-surface-700">
28
37
  <i class="fa-solid fa-sliders-simple fa-2x" />
29
38
  <p class="text-label">Console</p>
30
39
  </div>
31
40
  </Button>
32
41
  <!-- Builder -->
33
- <Button href={builderUrl} class="h-20 w-20" variant="ghost">
42
+ <Button
43
+ href={builderUrl}
44
+ class="h-20 w-20 {active_app == 'builder' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
45
+ variant="ghost"
46
+ >
34
47
  <div class="flex flex-col items-center space-y-2 text-surface-700">
35
48
  <i class="fa-regular fa-diagram-subtask fa-2x" />
36
49
  <p class="text-label">Builder</p>
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  consoleOrigin?: string;
5
5
  stubsOrigin?: string;
6
6
  builderOrigin?: string;
7
+ active_app: "console" | "stubs" | "builder";
7
8
  };
8
9
  events: {
9
10
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.13.1",
3
+ "version": "1.13.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",