@checkstack/theme-frontend 0.1.28 → 0.1.30
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @checkstack/theme-frontend
|
|
2
2
|
|
|
3
|
+
## 0.1.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [bb1fea0]
|
|
8
|
+
- Updated dependencies [bb1fea0]
|
|
9
|
+
- @checkstack/ui@1.4.0
|
|
10
|
+
- @checkstack/auth-frontend@0.5.26
|
|
11
|
+
|
|
12
|
+
## 0.1.29
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 4b0934d: Refactored UserMenu to use a responsive grid layout, improved menu item alignment, and implemented a full-screen scrollable portal for mobile devices. Fixed an issue where the UserMenu would instantly close and reopen when clicking the trigger while the menu was open.
|
|
17
|
+
- Updated dependencies [4b0934d]
|
|
18
|
+
- @checkstack/ui@1.3.6
|
|
19
|
+
- @checkstack/auth-frontend@0.5.25
|
|
20
|
+
|
|
3
21
|
## 0.1.28
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/theme-frontend",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"checkstack": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@checkstack/theme-common": "0.1.8",
|
|
16
16
|
"@checkstack/frontend-api": "0.3.9",
|
|
17
|
-
"@checkstack/auth-frontend": "0.5.
|
|
17
|
+
"@checkstack/auth-frontend": "0.5.25",
|
|
18
18
|
"@checkstack/common": "0.6.5",
|
|
19
|
-
"@checkstack/ui": "1.
|
|
19
|
+
"@checkstack/ui": "1.3.6",
|
|
20
20
|
"react": "^18.2.0",
|
|
21
21
|
"lucide-react": "^0.344.0"
|
|
22
22
|
},
|
|
@@ -9,25 +9,27 @@ export const PerformanceToggleMenuItem = () => {
|
|
|
9
9
|
const { manualLowPower, toggleManualLowPower } = usePerformance();
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<div className="flex items-center justify-between w-full px-4 py-2 text-sm text-popover-foreground">
|
|
13
|
-
<div className="flex
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<span>Low Power Mode</span>
|
|
21
|
-
<span className="text-[10px] text-muted-foreground leading-tight">
|
|
22
|
-
Disables blurs & animations
|
|
23
|
-
</span>
|
|
12
|
+
<div className="flex items-center justify-between w-full px-4 py-2 text-sm text-popover-foreground hover:bg-accent hover:text-accent-foreground rounded-sm transition-colors">
|
|
13
|
+
<div className="flex flex-col flex-1 items-start">
|
|
14
|
+
<div className="flex items-center w-full">
|
|
15
|
+
{manualLowPower ? (
|
|
16
|
+
<ZapOff className="h-4 w-4 text-muted-foreground shrink-0 mr-3" />
|
|
17
|
+
) : (
|
|
18
|
+
<Zap className="h-4 w-4 text-primary shrink-0 mr-3" />
|
|
19
|
+
)}
|
|
20
|
+
<span className="flex-1 text-left">Low Power Mode</span>
|
|
24
21
|
</div>
|
|
22
|
+
<span className="text-[10px] text-muted-foreground mt-1 leading-tight text-left pl-7">
|
|
23
|
+
Disables blurs & animations
|
|
24
|
+
</span>
|
|
25
|
+
</div>
|
|
26
|
+
<div className="ml-2 shrink-0 flex items-center">
|
|
27
|
+
<Toggle
|
|
28
|
+
checked={manualLowPower}
|
|
29
|
+
onCheckedChange={toggleManualLowPower}
|
|
30
|
+
aria-label="Toggle low performance mode"
|
|
31
|
+
/>
|
|
25
32
|
</div>
|
|
26
|
-
<Toggle
|
|
27
|
-
checked={manualLowPower}
|
|
28
|
-
onCheckedChange={toggleManualLowPower}
|
|
29
|
-
aria-label="Toggle low performance mode"
|
|
30
|
-
/>
|
|
31
33
|
</div>
|
|
32
34
|
);
|
|
33
35
|
};
|
|
@@ -47,17 +47,25 @@ export const ThemeToggleMenuItem = () => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
|
-
<div className="flex items-center justify-between w-full px-4 py-2 text-sm text-popover-foreground">
|
|
51
|
-
<div className="flex
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
<div className="flex items-center justify-between w-full px-4 py-2 text-sm text-popover-foreground hover:bg-accent hover:text-accent-foreground rounded-sm transition-colors">
|
|
51
|
+
<div className="flex flex-col flex-1 items-start">
|
|
52
|
+
<div className="flex items-center w-full">
|
|
53
|
+
{isDark ? (
|
|
54
|
+
<Moon className="h-4 w-4 text-muted-foreground shrink-0 mr-3" />
|
|
55
|
+
) : (
|
|
56
|
+
<Sun className="h-4 w-4 text-muted-foreground shrink-0 mr-3" />
|
|
57
|
+
)}
|
|
58
|
+
<span className="flex-1 text-left">Dark Mode</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div className="ml-2 shrink-0 flex items-center">
|
|
62
|
+
<Toggle
|
|
63
|
+
checked={isDark}
|
|
64
|
+
onCheckedChange={handleToggle}
|
|
65
|
+
disabled={setThemeMutation.isPending}
|
|
66
|
+
aria-label="Toggle dark mode"
|
|
67
|
+
/>
|
|
54
68
|
</div>
|
|
55
|
-
<Toggle
|
|
56
|
-
checked={isDark}
|
|
57
|
-
onCheckedChange={handleToggle}
|
|
58
|
-
disabled={setThemeMutation.isPending}
|
|
59
|
-
aria-label="Toggle dark mode"
|
|
60
|
-
/>
|
|
61
69
|
</div>
|
|
62
70
|
);
|
|
63
71
|
};
|