@radishon/lumina 1.1.0 → 1.1.1

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/index.d.mts CHANGED
@@ -8,30 +8,6 @@ interface SequenceConfig {
8
8
  declare const SEQUENCES: Record<string, SequenceConfig>;
9
9
  type SequenceKey = keyof typeof SEQUENCES;
10
10
 
11
- declare class LuminaElement extends HTMLElement {
12
- private _index;
13
- private _timer;
14
- private _div;
15
- static get observedAttributes(): string[];
16
- constructor();
17
- connectedCallback(): void;
18
- disconnectedCallback(): void;
19
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
20
- get type(): SequenceKey;
21
- set type(value: SequenceKey);
22
- get speed(): number;
23
- set speed(value: number);
24
- get chars(): string[] | null;
25
- set chars(value: string[] | null);
26
- get color(): string | null;
27
- set color(value: string | null);
28
- private getChars;
29
- private getConfig;
30
- private getColor;
31
- private render;
32
- private startAnimation;
33
- }
34
-
35
11
  interface LuminaLoadingProps {
36
12
  type?: SequenceKey;
37
13
  speed?: number;
@@ -41,4 +17,4 @@ interface LuminaLoadingProps {
41
17
  }
42
18
  declare function LuminaLoading({ type, speed, chars, color, fallback, }: LuminaLoadingProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
43
19
 
44
- export { LuminaElement as Lumina, LuminaElement, LuminaLoading, SEQUENCES, type SequenceConfig, type SequenceKey };
20
+ export { LuminaLoading, SEQUENCES, type SequenceConfig, type SequenceKey };
package/dist/index.d.ts CHANGED
@@ -8,30 +8,6 @@ interface SequenceConfig {
8
8
  declare const SEQUENCES: Record<string, SequenceConfig>;
9
9
  type SequenceKey = keyof typeof SEQUENCES;
10
10
 
11
- declare class LuminaElement extends HTMLElement {
12
- private _index;
13
- private _timer;
14
- private _div;
15
- static get observedAttributes(): string[];
16
- constructor();
17
- connectedCallback(): void;
18
- disconnectedCallback(): void;
19
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
20
- get type(): SequenceKey;
21
- set type(value: SequenceKey);
22
- get speed(): number;
23
- set speed(value: number);
24
- get chars(): string[] | null;
25
- set chars(value: string[] | null);
26
- get color(): string | null;
27
- set color(value: string | null);
28
- private getChars;
29
- private getConfig;
30
- private getColor;
31
- private render;
32
- private startAnimation;
33
- }
34
-
35
11
  interface LuminaLoadingProps {
36
12
  type?: SequenceKey;
37
13
  speed?: number;
@@ -41,4 +17,4 @@ interface LuminaLoadingProps {
41
17
  }
42
18
  declare function LuminaLoading({ type, speed, chars, color, fallback, }: LuminaLoadingProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
43
19
 
44
- export { LuminaElement as Lumina, LuminaElement, LuminaLoading, SEQUENCES, type SequenceConfig, type SequenceKey };
20
+ export { LuminaLoading, SEQUENCES, type SequenceConfig, type SequenceKey };
package/dist/index.js CHANGED
@@ -357,15 +357,10 @@ var init_Lumina = __esm({
357
357
  // src/index.ts
358
358
  var index_exports = {};
359
359
  __export(index_exports, {
360
- Lumina: () => Lumina_default,
361
- LuminaElement: () => Lumina_default,
362
360
  LuminaLoading: () => LuminaLoading,
363
361
  SEQUENCES: () => SEQUENCES
364
362
  });
365
363
  module.exports = __toCommonJS(index_exports);
366
- init_Lumina();
367
- init_sequence();
368
- init_Lumina();
369
364
 
370
365
  // src/LuminaLoading.tsx
371
366
  var import_react = __toESM(require("react"));
@@ -395,10 +390,12 @@ function LuminaLoading({
395
390
  }
396
391
  return import_react.default.createElement("lumina-loading", { ref });
397
392
  }
393
+
394
+ // src/index.ts
395
+ init_sequence();
396
+ init_Lumina();
398
397
  // Annotate the CommonJS export names for ESM import in node:
399
398
  0 && (module.exports = {
400
- Lumina,
401
- LuminaElement,
402
399
  LuminaLoading,
403
400
  SEQUENCES
404
401
  });
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import {
2
- Lumina_default,
3
2
  SEQUENCES
4
3
  } from "./chunk-QRENGH6F.mjs";
5
4
 
@@ -32,8 +31,6 @@ function LuminaLoading({
32
31
  return React.createElement("lumina-loading", { ref });
33
32
  }
34
33
  export {
35
- Lumina_default as Lumina,
36
- Lumina_default as LuminaElement,
37
34
  LuminaLoading,
38
35
  SEQUENCES
39
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radishon/lumina",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A beautiful animated loading indicator web component for all frameworks",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",