@mccustomapps/helaui 0.1.8 → 0.1.10
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 +3 -7
- package/dist/index.cjs +20 -21
- package/dist/index.d.cts +4 -11
- package/dist/index.d.ts +4 -11
- package/dist/index.js +20 -21
- package/dist/rain-background.css +0 -17
- 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;
|
|
@@ -169,8 +164,6 @@ declare class RainBackground {
|
|
|
169
164
|
readonly element: HTMLDivElement;
|
|
170
165
|
constructor(options?: RainBackgroundOptions);
|
|
171
166
|
private createDrop;
|
|
172
|
-
private createBuiltinDrop;
|
|
173
|
-
private createImageDrop;
|
|
174
167
|
/** Removes the background from the DOM. */
|
|
175
168
|
destroy(): void;
|
|
176
169
|
}
|
|
@@ -345,4 +338,4 @@ declare const defaultTheme: HelaTheme;
|
|
|
345
338
|
/** Maps theme keys to CSS custom property names. */
|
|
346
339
|
declare const THEME_VAR_MAP: Record<HelaThemeKey, string>;
|
|
347
340
|
|
|
348
|
-
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE,
|
|
341
|
+
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;
|
|
@@ -169,8 +164,6 @@ declare class RainBackground {
|
|
|
169
164
|
readonly element: HTMLDivElement;
|
|
170
165
|
constructor(options?: RainBackgroundOptions);
|
|
171
166
|
private createDrop;
|
|
172
|
-
private createBuiltinDrop;
|
|
173
|
-
private createImageDrop;
|
|
174
167
|
/** Removes the background from the DOM. */
|
|
175
168
|
destroy(): void;
|
|
176
169
|
}
|
|
@@ -345,4 +338,4 @@ declare const defaultTheme: HelaTheme;
|
|
|
345
338
|
/** Maps theme keys to CSS custom property names. */
|
|
346
339
|
declare const THEME_VAR_MAP: Record<HelaThemeKey, string>;
|
|
347
340
|
|
|
348
|
-
export { type ApplyTranslationsOptions, BUILTIN_RAIN_IMAGES, BUILTIN_SUN_MANDALA_IMAGE,
|
|
341
|
+
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 };
|