@stubber/ui 1.2.0 → 1.3.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.
@@ -29,7 +29,7 @@
29
29
  <span slot="tooltip"> Copy stubberhandle </span>
30
30
  </Tooltip>
31
31
  <a class="mt-[17px] w-full" href={manageLink}>
32
- <PrimaryButton label="Manage Stubber" variant="secondary-transparent" width="full" />
32
+ <PrimaryButton label="Personal Settings" variant="secondary-transparent" width="full" />
33
33
  </a>
34
34
  </div>
35
35
  <a href={documentationLink}>
@@ -9,7 +9,7 @@
9
9
  import SideNavTitle from "./SideNavTitle.svelte";
10
10
  </script>
11
11
 
12
- <div class="p-4 bg-[#F0F6FC]">
12
+ <div class="p-4 bg-[#FFFFFF] border-r border-suface-100 h-full w-[250px]">
13
13
  <SideNavTitle title="General" />
14
14
  <SideNavItem label="Recent" href="/" icon="far fa-home" />
15
15
  <SideNavItem label="Archive" href="/" icon="far fa-archive" />
@@ -1,4 +1,6 @@
1
1
  <script>
2
+ import { Label } from "@stubber/ui/label";
3
+ import { Button } from "@stubber/ui/button";
2
4
  export let label;
3
5
  export let href;
4
6
  export let icon;
@@ -13,30 +15,33 @@
13
15
  }
14
16
  </script>
15
17
 
16
- <!-- If $$slots.default == true, then it means this SideNavItem is a group item, i.e it has child elements in <slots/> -->
18
+ <!-- If $slots.default == true, then it means this SideNavItem is a group item, i.e it has child elements in <slots/> -->
17
19
 
18
- <button
20
+ <Button
19
21
  on:click={handle_click}
20
- class="group h-10 my-2.5 w-full flex items-center {is_selected
21
- ? 'bg-white'
22
- : 'bg-transparent hover:bg-white hover:bg-opacity-[0.5]'} rounded-lg hover:bg active:bg-white"
22
+ variant="ghost"
23
+ class="group h-10 my-1 w-full flex items-center {is_selected
24
+ ? 'bg-surface-100'
25
+ : 'bg-transparent hover:bg-surface-100 hover:bg-opacity-[0.5]'} active:bg-surface-100"
23
26
  >
24
27
  {#if $$slots.default}
25
- <div class="h-10 pl-2 w-2.5 flex items-center justify-center">
28
+ <div class="h-10 w-2.5 flex items-center justify-center">
26
29
  <i class="fas fa-caret-right {is_expanded ? 'rotate down' : 'rotate'}" />
27
30
  </div>
28
31
  {/if}
29
- <a class="{$$slots.default ? '' : 'pl-2.5'} w-full flex items-center" {href}>
30
- <div class="text-surface-900 w-fit flex items-center">
32
+ <a class="{$$slots.default ? '' : ''} w-full flex items-center" {href}>
33
+ <div class="text-surface-900 w-fit flex items-center gap-2">
31
34
  <div class="h-10 aspect-square flex items-center justify-center">
32
- <i class={icon} />
35
+ <div class="bg-white rounded border w-7 h-7 flex items-center justify-center">
36
+ <i class="{icon} text-xs" />
37
+ </div>
33
38
  </div>
34
- <span class="text-button font-normal">
39
+ <Label class=" font-medium">
35
40
  {label}
36
- </span>
41
+ </Label>
37
42
  </div>
38
43
  </a>
39
- </button>
44
+ </Button>
40
45
  {#if $$slots.default && is_expanded}
41
46
  <div class={indent_children === true ? "ml-4" : ""}>
42
47
  <slot />
@@ -1,7 +1,9 @@
1
1
  <script>
2
+ import { Label } from "@stubber/ui/label";
3
+
2
4
  export let title;
3
5
  </script>
4
6
 
5
7
  <div class="h-10 w-full flex items-center">
6
- <h2 class="text-small font-normal text-surface-700">{title}</h2>
8
+ <Label class="ml-2 text-small font-medium text-surface-500">{title}</Label>
7
9
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",