newcandies 0.1.59 → 0.1.60
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/package.json
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const SF_TO_MATERIAL = {
|
|
2
|
+
// Tab bar icons
|
|
3
|
+
"house": "home-filled",
|
|
4
|
+
"house.fill": "home-filled",
|
|
5
|
+
"creditcard": "credit-card",
|
|
6
|
+
"creditcard.fill": "credit-card",
|
|
7
|
+
"chart.bar": "bar-chart",
|
|
8
|
+
"chart.bar.fill": "bar-chart",
|
|
9
|
+
"person": "person-outline",
|
|
10
|
+
"person.fill": "person",
|
|
11
|
+
// Navigation
|
|
12
|
+
"chevron.left": "chevron-left",
|
|
13
|
+
"chevron.right": "chevron-right",
|
|
14
|
+
"chevron.forward": "chevron-right",
|
|
15
|
+
// Actions
|
|
16
|
+
"plus": "add",
|
|
17
|
+
"checkmark": "check",
|
|
18
|
+
// Search
|
|
19
|
+
"magnifyingglass": "search",
|
|
20
|
+
// Status/Actions
|
|
21
|
+
"checkmark.circle": "check-circle",
|
|
22
|
+
"checkmark.circle.fill": "check-circle",
|
|
23
|
+
"pause.circle": "pause-circle-outline",
|
|
24
|
+
"pause.circle.fill": "pause-circle-filled",
|
|
25
|
+
"play.circle": "play-circle-outline",
|
|
26
|
+
"play.circle.fill": "play-circle-filled",
|
|
27
|
+
// Settings/Profile
|
|
28
|
+
"arrow.right.square": "logout",
|
|
29
|
+
"gearshape": "settings",
|
|
30
|
+
"gearshape.fill": "settings",
|
|
31
|
+
"bell": "notifications-none",
|
|
32
|
+
"bell.fill": "notifications",
|
|
33
|
+
"person.badge.key.fill": "admin-panel-settings",
|
|
34
|
+
"rectangle.portrait.and.arrow.right": "logout",
|
|
35
|
+
"wallet.pass": "account-balance-wallet",
|
|
36
|
+
"dollarsign.circle": "attach-money",
|
|
37
|
+
"paintpalette": "palette",
|
|
38
|
+
"paintpalette.fill": "palette",
|
|
39
|
+
"questionmark.circle": "help-outline",
|
|
40
|
+
"doc.text": "description",
|
|
41
|
+
"doc.text.fill": "description",
|
|
42
|
+
"plus.circle.fill": "add-circle",
|
|
43
|
+
// Calendar/Stats
|
|
44
|
+
"calendar": "calendar-today",
|
|
45
|
+
"calendar.badge.clock": "event",
|
|
46
|
+
"arrow.up.right": "trending-up",
|
|
47
|
+
"chart.pie": "pie-chart",
|
|
48
|
+
"chart.pie.fill": "pie-chart",
|
|
49
|
+
// Categories
|
|
50
|
+
"music.note": "music-note",
|
|
51
|
+
"gamecontroller": "sports-esports",
|
|
52
|
+
"gamecontroller.fill": "sports-esports",
|
|
53
|
+
"briefcase": "work",
|
|
54
|
+
"briefcase.fill": "work",
|
|
55
|
+
"cloud": "cloud",
|
|
56
|
+
"cloud.fill": "cloud",
|
|
57
|
+
"newspaper": "newspaper",
|
|
58
|
+
"newspaper.fill": "newspaper",
|
|
59
|
+
"figure.run": "fitness-center",
|
|
60
|
+
"graduationcap": "school",
|
|
61
|
+
"graduationcap.fill": "school",
|
|
62
|
+
"banknote": "account-balance",
|
|
63
|
+
"banknote.fill": "account-balance",
|
|
64
|
+
"wrench": "build",
|
|
65
|
+
"wrench.fill": "build",
|
|
66
|
+
"square.grid.2x2": "apps",
|
|
67
|
+
"square.grid.2x2.fill": "apps",
|
|
68
|
+
// Auth
|
|
69
|
+
"envelope": "email",
|
|
70
|
+
"envelope.fill": "email",
|
|
71
|
+
"lock": "lock",
|
|
72
|
+
"lock.fill": "lock",
|
|
73
|
+
"eye": "visibility",
|
|
74
|
+
"eye.fill": "visibility",
|
|
75
|
+
"eye.slash": "visibility-off",
|
|
76
|
+
"eye.slash.fill": "visibility-off",
|
|
77
|
+
// Misc
|
|
78
|
+
"xmark": "close",
|
|
79
|
+
"xmark.circle.fill": "cancel",
|
|
80
|
+
"trash": "delete-outline",
|
|
81
|
+
"trash.fill": "delete",
|
|
82
|
+
// Theme icons
|
|
83
|
+
"sun.max.fill": "light-mode",
|
|
84
|
+
"moon.fill": "dark-mode",
|
|
85
|
+
"star.fill": "star",
|
|
86
|
+
"flame.fill": "local-fire-department",
|
|
87
|
+
"drop.fill": "water-drop",
|
|
88
|
+
"leaf.fill": "eco",
|
|
89
|
+
// Fallback
|
|
90
|
+
"questionmark": "help-outline",
|
|
91
|
+
"questionmark.circle.fill": "help",
|
|
92
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const themes = [
|
|
2
|
+
{ name: "light", icon: "sun.max.fill", color: "#d4d4d8" },
|
|
3
|
+
{ name: "dark", icon: "moon.fill", color: "#a1a1aa" },
|
|
4
|
+
{ name: "gold", icon: "star.fill", color: "#eab308" },
|
|
5
|
+
{ name: "coral", icon: "flame.fill", color: "#f87171" },
|
|
6
|
+
{ name: "ocean", icon: "drop.fill", color: "#818cf8" },
|
|
7
|
+
{ name: "forest", icon: "leaf.fill", color: "#4ade80" },
|
|
8
|
+
] as const;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createMMKV } from "react-native-mmkv";
|
|
2
|
+
import type { UniwindConfig } from "uniwind";
|
|
3
|
+
import type { StateStorage } from "zustand/middleware";
|
|
4
|
+
|
|
5
|
+
export const storage = createMMKV({ id: "subscribed-storage" });
|
|
6
|
+
|
|
7
|
+
export const zustandStorage: StateStorage = {
|
|
8
|
+
getItem: name => storage.getString(name) ?? null,
|
|
9
|
+
setItem: (name, value) => storage.set(name, value),
|
|
10
|
+
removeItem: name => storage.remove(name),
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const THEME_KEY = "app-theme";
|
|
14
|
+
|
|
15
|
+
export type AppTheme = UniwindConfig["themes"][number] | "system";
|
|
16
|
+
|
|
17
|
+
export function getPersistedTheme(): AppTheme | null {
|
|
18
|
+
return (storage.getString(THEME_KEY) as AppTheme) ?? null;
|
|
19
|
+
}
|
|
20
|
+
export const persistTheme = (theme: AppTheme) => storage.set(THEME_KEY, theme);
|