@elmahdistudio/zenith-web 0.1.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.
- package/dist/components/CentralOrb.d.ts +9 -0
- package/dist/components/GildedArcTimer.d.ts +7 -0
- package/dist/components/SoundRitual.d.ts +7 -0
- package/dist/components/SundialArc.d.ts +10 -0
- package/dist/components/ZenithTimer.d.ts +5 -0
- package/dist/hooks/useCelestial.d.ts +19 -0
- package/dist/hooks/useMeditationSession.d.ts +13 -0
- package/dist/hooks/useOrbSize.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6618 -0
- package/dist/main.d.ts +1 -0
- package/dist/utils/fonts.d.ts +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SessionState } from "@zenith/core";
|
|
2
|
+
interface CentralOrbProps {
|
|
3
|
+
session: SessionState;
|
|
4
|
+
onSessionToggle: () => void;
|
|
5
|
+
onSessionReset: () => void;
|
|
6
|
+
onDurationChange: (minutes: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export default function CentralOrb({ session, onSessionToggle, onSessionReset, onDurationChange, }: CentralOrbProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface GildedArcTimerProps {
|
|
2
|
+
duration: number;
|
|
3
|
+
onDurationChange: (minutes: number) => void;
|
|
4
|
+
orbSize: number;
|
|
5
|
+
}
|
|
6
|
+
export default function GildedArcTimer({ duration, onDurationChange, orbSize }: GildedArcTimerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SoundId } from "@zenith/core";
|
|
2
|
+
interface SoundRitualProps {
|
|
3
|
+
selectedSound: SoundId | null;
|
|
4
|
+
onSoundSelect: (sound: SoundId | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export default function SoundRitual({ selectedSound, onSoundSelect }: SoundRitualProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SundialArcProps {
|
|
2
|
+
sunProgress: number;
|
|
3
|
+
moonProgress: number;
|
|
4
|
+
isDaytime: boolean;
|
|
5
|
+
moonPhase: number;
|
|
6
|
+
/** 0 = deep night, 1 = sun high. Drives continuous sizing. */
|
|
7
|
+
warmth: number;
|
|
8
|
+
}
|
|
9
|
+
export default function SundialArc({ sunProgress, moonProgress, isDaytime, moonPhase, warmth }: SundialArcProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export declare function useCelestial(containerRef: RefObject<HTMLDivElement | null>): {
|
|
3
|
+
warmth: number;
|
|
4
|
+
sunrise: Date | null;
|
|
5
|
+
sunset: Date | null;
|
|
6
|
+
sunPosition: {
|
|
7
|
+
altitude: number;
|
|
8
|
+
azimuth: number;
|
|
9
|
+
} | null;
|
|
10
|
+
moonPosition: {
|
|
11
|
+
altitude: number;
|
|
12
|
+
azimuth: number;
|
|
13
|
+
} | null;
|
|
14
|
+
moonPhase: number;
|
|
15
|
+
isDaytime: boolean;
|
|
16
|
+
sunArcProgress: number;
|
|
17
|
+
moonArcProgress: number;
|
|
18
|
+
locationGranted: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SoundId } from "@zenith/core";
|
|
2
|
+
export declare function useMeditationSession(): {
|
|
3
|
+
toggleSession: () => void;
|
|
4
|
+
resetSession: () => void;
|
|
5
|
+
setDuration: (minutes: number) => void;
|
|
6
|
+
setSelectedSound: (sound: SoundId | null) => void;
|
|
7
|
+
status: import("@zenith/core").SessionStatus;
|
|
8
|
+
duration: number;
|
|
9
|
+
elapsed: number;
|
|
10
|
+
startedAt: number | null;
|
|
11
|
+
elapsedBeforePause: number;
|
|
12
|
+
selectedSound: SoundId | null;
|
|
13
|
+
};
|
package/dist/index.d.ts
ADDED