@dile/ui 2.25.1 → 2.25.2

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.
@@ -0,0 +1,3 @@
1
+ import { DileSpinnerIcon } from "./src/DileSpinnerIcon.js";
2
+
3
+ window.customElements.define("dile-spinner-icon", DileSpinnerIcon);
@@ -0,0 +1,33 @@
1
+ import { LitElement, html, css } from "lit";
2
+ import { DileSpinnerMixin } from "./DileSpinnerMixin.js";
3
+ import "@dile/iconlib/lucide-icons/loader-circle.js";
4
+
5
+ export class DileSpinnerIcon extends DileSpinnerMixin(LitElement) {
6
+ static get styles() {
7
+ return css`
8
+ :host {
9
+ display: none;
10
+ }
11
+ :host([active]) {
12
+ display: inline-block;
13
+ }
14
+ dile-lucide-icon-loader-circle {
15
+ animation: spin var(--dile-spinner-icon-animation-time, 1s) linear infinite;
16
+ }
17
+ @keyframes spin {
18
+ from {
19
+ transform: rotate(0deg);
20
+ }
21
+ to {
22
+ transform: rotate(360deg);
23
+ }
24
+ }
25
+ `;
26
+ }
27
+
28
+ render() {
29
+ return html`
30
+ <dile-lucide-icon-loader-circle></dile-lucide-icon-loader-circle>
31
+ `;
32
+ }
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.25.1",
3
+ "version": "2.25.2",
4
4
  "description": "UI Core components from dile-components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "b2cab50d88bfaa12d23e9189ea089c8fa4d0af6b"
29
+ "gitHead": "bfb6d4acc0616ecc5654d9b21dbaaa9925d8c4b3"
30
30
  }