Add yet-another-react-lightbox package and update .gitignore to exclude node_modules

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-12 18:50:30 +00:00
parent bd2a5570a9
commit c92f4a5edd
9304 changed files with 29 additions and 2008667 deletions

View File

@@ -1,25 +0,0 @@
import { Locale } from "../types/locale";
import { ParsedOptions } from "../types/options";
export interface FormatterArgs {
config?: ParsedOptions;
l10n?: Locale;
isMobile?: boolean;
}
export declare const createDateFormatter: ({ config, l10n, isMobile, }: FormatterArgs) => (dateObj: Date, frmt: string, overrideLocale?: Locale | undefined) => string;
export declare const createDateParser: ({ config, l10n }: {
config?: ParsedOptions | undefined;
l10n?: Locale | undefined;
}) => (date: Date | string | number, givenFormat?: string | undefined, timeless?: boolean | undefined, customLocale?: Locale | undefined) => Date | undefined;
export declare function compareDates(date1: Date, date2: Date, timeless?: boolean): number;
export declare function compareTimes(date1: Date, date2: Date): number;
export declare const isBetween: (ts: number, ts1: number, ts2: number) => boolean;
export declare const calculateSecondsSinceMidnight: (hours: number, minutes: number, seconds: number) => number;
export declare const parseSeconds: (secondsSinceMidnight: number) => number[];
export declare const duration: {
DAY: number;
};
export declare function getDefaultHours(config: ParsedOptions): {
hours: number;
minutes: number;
seconds: number;
};

View File

@@ -1,6 +0,0 @@
export declare function toggleClass(elem: HTMLElement, className: string, bool: boolean): void;
export declare function createElement<T extends HTMLElement>(tag: keyof HTMLElementTagNameMap, className: string, content?: string): T;
export declare function clearNode(node: HTMLElement): void;
export declare function findParent(node: Element, condition: (n: Element) => boolean): Element | undefined;
export declare function createNumberInput(inputClassName: string, opts?: Record<string, any>): HTMLDivElement;
export declare function getEventTarget(event: Event): EventTarget | null;

View File

@@ -1,13 +0,0 @@
import { Locale } from "../types/locale";
import { ParsedOptions } from "../types/options";
export declare type token = "D" | "F" | "G" | "H" | "J" | "K" | "M" | "S" | "U" | "W" | "Y" | "Z" | "d" | "h" | "i" | "j" | "l" | "m" | "n" | "s" | "u" | "w" | "y";
export declare const monthToStr: (monthNumber: number, shorthand: boolean, locale: Locale) => string;
export declare type RevFormatFn = (date: Date, data: string, locale: Locale) => Date | void | undefined;
export declare type RevFormat = Record<string, RevFormatFn>;
export declare const revFormat: RevFormat;
export declare type TokenRegex = {
[k in token]: string;
};
export declare const tokenRegex: TokenRegex;
export declare type Formats = Record<token, (date: Date, locale: Locale, options: ParsedOptions) => string | number>;
export declare const formats: Formats;

View File

@@ -1,8 +0,0 @@
export declare const pad: (number: string | number, length?: number) => string;
export declare const int: (bool: boolean) => 1 | 0;
export declare function debounce<F extends Function>(fn: F, wait: number): (this: any) => void;
export declare const arrayify: <T>(obj: T | T[]) => T[];
export declare type IncrementEvent = MouseEvent & {
delta: number;
type: "increment";
};