@mccustomapps/helaui 0.1.8 → 0.1.12
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/README.md +5 -9
- package/dist/index.cjs +62 -23
- package/dist/index.d.cts +5 -11
- package/dist/index.d.ts +5 -11
- package/dist/index.js +62 -23
- package/dist/rain-background.css +6 -18
- package/package.json +1 -1
- package/src/assets/rain/builtinImages.ts +6 -7
package/dist/index.d.cts
CHANGED
|
@@ -138,16 +138,11 @@ declare class TextField {
|
|
|
138
138
|
destroy(): void;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
/** Built-in rain sprite
|
|
142
|
-
declare const BUILTIN_RAIN_IMAGES: readonly [
|
|
143
|
-
type BuiltinRainImage = (typeof BUILTIN_RAIN_IMAGES)[number];
|
|
141
|
+
/** Built-in rain sprite URLs (inlined as data URLs in the published package). */
|
|
142
|
+
declare const BUILTIN_RAIN_IMAGES: readonly [string, string, string, string];
|
|
144
143
|
|
|
145
144
|
interface RainBackgroundOptions {
|
|
146
|
-
/**
|
|
147
|
-
* Falling particle sources. Defaults to {@link BUILTIN_RAIN_IMAGES}.
|
|
148
|
-
* Built-in ids (`fritter`, `swirl`, `kokis`, `leaf`) use CSS sprites from
|
|
149
|
-
* `rain-background.css`. Any other string is treated as an image URL.
|
|
150
|
-
*/
|
|
145
|
+
/** Image URLs used as falling particles. Defaults to {@link BUILTIN_RAIN_IMAGES}. */
|
|
151
146
|
images?: string[];
|
|
152
147
|
/** Number of particles visible at once. Defaults to 28. */
|
|
153
148
|
density?: number;
|
|
@@ -167,10 +162,9 @@ interface RainBackgroundOptions {
|
|
|
167
162
|
/** Full-screen animated background with falling image particles. */
|
|
168
163
|
declare class RainBackground {
|
|
169
164
|
readonly element: HTMLDivElement;
|
|
165
|
+
private readonly objectUrls;
|
|
170
166
|
constructor(options?: RainBackgroundOptions);
|
|
171
167
|
private createDrop;
|
|
172
|
-
private createBuiltinDrop;
|
|
173
|
-
private createImageDrop;
|
|
174
168
|
/** Removes the background from the DOM. */
|
|
175
169
|
destroy(): void;
|
|
176
170
|
}
|
|
@@ -345,4 +339,4 @@ declare const defaultTheme: HelaTheme;
|
|
|
345
339
|
/** Maps theme keys to CSS custom property names. */
|
|
346
340
|
declare const THEME_VAR_MAP: Record<HelaThemeKey, string>;
|
|
347
341
|
|
|
348
|
-
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE,
|
|
342
|
+
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE, Calendar, type CalendarOptions, type CalendarStrings, DEFAULT_RAIN_IMAGES, type DeepPartial, type HelaLocale, type HelaTextFieldTranslations, type HelaTheme, type HelaThemeKey, type HelaTranslationOverrides, type HelaTranslations, type LocaleTranslationOverrides, RainBackground, type RainBackgroundOptions, SINHALA_FONT_CLASS, SINHALA_FONT_FAMILY, SINHALA_MONTH_NAMES, SunMandala, type SunMandalaOptions, THEME_VAR_MAP, TextField, type TextFieldOptions, type TextFieldStrings, type TextFieldVariant, applySinhalaFont, applyTheme, applyTranslations, createThemeStyle, defaultTheme, defaultTranslations, formatSinhalaNumeral, getCalendarTranslation, getDefaultRainImageUrls, getLocale, getTextFieldTranslation, resetTheme, resetTranslations, setLocale, sinhalaFontStyles, subscribeLocaleChange, t };
|
package/dist/index.d.ts
CHANGED
|
@@ -138,16 +138,11 @@ declare class TextField {
|
|
|
138
138
|
destroy(): void;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
/** Built-in rain sprite
|
|
142
|
-
declare const BUILTIN_RAIN_IMAGES: readonly [
|
|
143
|
-
type BuiltinRainImage = (typeof BUILTIN_RAIN_IMAGES)[number];
|
|
141
|
+
/** Built-in rain sprite URLs (inlined as data URLs in the published package). */
|
|
142
|
+
declare const BUILTIN_RAIN_IMAGES: readonly [string, string, string, string];
|
|
144
143
|
|
|
145
144
|
interface RainBackgroundOptions {
|
|
146
|
-
/**
|
|
147
|
-
* Falling particle sources. Defaults to {@link BUILTIN_RAIN_IMAGES}.
|
|
148
|
-
* Built-in ids (`fritter`, `swirl`, `kokis`, `leaf`) use CSS sprites from
|
|
149
|
-
* `rain-background.css`. Any other string is treated as an image URL.
|
|
150
|
-
*/
|
|
145
|
+
/** Image URLs used as falling particles. Defaults to {@link BUILTIN_RAIN_IMAGES}. */
|
|
151
146
|
images?: string[];
|
|
152
147
|
/** Number of particles visible at once. Defaults to 28. */
|
|
153
148
|
density?: number;
|
|
@@ -167,10 +162,9 @@ interface RainBackgroundOptions {
|
|
|
167
162
|
/** Full-screen animated background with falling image particles. */
|
|
168
163
|
declare class RainBackground {
|
|
169
164
|
readonly element: HTMLDivElement;
|
|
165
|
+
private readonly objectUrls;
|
|
170
166
|
constructor(options?: RainBackgroundOptions);
|
|
171
167
|
private createDrop;
|
|
172
|
-
private createBuiltinDrop;
|
|
173
|
-
private createImageDrop;
|
|
174
168
|
/** Removes the background from the DOM. */
|
|
175
169
|
destroy(): void;
|
|
176
170
|
}
|
|
@@ -345,4 +339,4 @@ declare const defaultTheme: HelaTheme;
|
|
|
345
339
|
/** Maps theme keys to CSS custom property names. */
|
|
346
340
|
declare const THEME_VAR_MAP: Record<HelaThemeKey, string>;
|
|
347
341
|
|
|
348
|
-
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE,
|
|
342
|
+
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE, Calendar, type CalendarOptions, type CalendarStrings, DEFAULT_RAIN_IMAGES, type DeepPartial, type HelaLocale, type HelaTextFieldTranslations, type HelaTheme, type HelaThemeKey, type HelaTranslationOverrides, type HelaTranslations, type LocaleTranslationOverrides, RainBackground, type RainBackgroundOptions, SINHALA_FONT_CLASS, SINHALA_FONT_FAMILY, SINHALA_MONTH_NAMES, SunMandala, type SunMandalaOptions, THEME_VAR_MAP, TextField, type TextFieldOptions, type TextFieldStrings, type TextFieldVariant, applySinhalaFont, applyTheme, applyTranslations, createThemeStyle, defaultTheme, defaultTranslations, formatSinhalaNumeral, getCalendarTranslation, getDefaultRainImageUrls, getLocale, getTextFieldTranslation, resetTheme, resetTranslations, setLocale, sinhalaFontStyles, subscribeLocaleChange, t };
|