@srimandir/make-your-own-ritual 0.1.4 → 0.1.5

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.
@@ -1,3 +1,4 @@
1
+ import { SupportedLocale } from '../../i18n';
1
2
  export interface RitualInput {
2
3
  id: string;
3
4
  imageUrl: string;
@@ -29,6 +30,10 @@ export interface LandingPageProps {
29
30
  mandalaTop?: number | string;
30
31
  /** Set to false to hide the decorative header mandala entirely. */
31
32
  showMandala?: boolean;
33
+ /** Exact offset of the mandala from the header's left edge, in px or any CSS size. Takes precedence over `mandalaRight`. Omit both to keep it centered. */
34
+ mandalaLeft?: number | string;
35
+ /** Exact offset of the mandala from the header's right edge, in px or any CSS size. Ignored if `mandalaLeft` is also set. */
36
+ mandalaRight?: number | string;
32
37
  /** Set to false to hide the note shown below the header, above the ritual list. */
33
38
  showRitualNote?: boolean;
34
39
  /** e.g. "You can choose more than one ritual." */
@@ -61,6 +66,8 @@ export interface LandingPageProps {
61
66
  onPriceInfoClick?: () => void;
62
67
  onProceed?: (selectedRitualIds: string[]) => void;
63
68
  onAboutRitualClick?: (ritualId: string) => void;
69
+ /** Called when the top-right language switcher's selection changes. Omit to hide the switcher entirely. */
70
+ onLocaleChange?: (locale: SupportedLocale) => void;
64
71
  className?: string;
65
72
  }
66
73
  /**
@@ -73,4 +80,4 @@ export interface LandingPageProps {
73
80
  * is optional and falls back to this package's own sample content, so it
74
81
  * also works standalone out of the box.
75
82
  */
76
- export declare function LandingPage({ rituals, initialSelectedRitualIds, badgeLabel, dateRangeLabel, headline, mandalaWidth, mandalaTop, showMandala, showRitualNote, chooseMultipleNote, nextStepInfoNote, ritualTitleClassName, ritualDescriptionClassName, ritualTagClassName, ritualTagTextClassName, priceLabel, aboutLinkLabel, selectAriaLabel, ritualCountSingular, ritualCountPlural, proceedLabel, showPriceInfoIcon, onPriceInfoClick, onProceed, onAboutRitualClick, className, }: LandingPageProps): import("react").JSX.Element;
83
+ export declare function LandingPage({ rituals, initialSelectedRitualIds, badgeLabel, dateRangeLabel, headline, mandalaWidth, mandalaTop, showMandala, mandalaLeft, mandalaRight, showRitualNote, chooseMultipleNote, nextStepInfoNote, ritualTitleClassName, ritualDescriptionClassName, ritualTagClassName, ritualTagTextClassName, priceLabel, aboutLinkLabel, selectAriaLabel, ritualCountSingular, ritualCountPlural, proceedLabel, showPriceInfoIcon, onPriceInfoClick, onProceed, onAboutRitualClick, onLocaleChange, className, }: LandingPageProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { I18nProvider, useI18n } from './i18n';
2
- export type { SupportedLocale } from './i18n';
1
+ export { I18nProvider, useI18n, translations, SUPPORTED_LOCALES, LOCALE_LABELS } from './i18n';
2
+ export type { SupportedLocale, I18nContextValue } from './i18n';
3
3
  export { LandingPage } from './components/LandingPage';
4
4
  export type { LandingPageProps, RitualInput } from './components/LandingPage';
5
5
  export { RitualCard } from './components/RitualCard';