@ansiversa/components 0.0.95 → 0.0.96

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/index.ts CHANGED
@@ -11,6 +11,7 @@ export { default as AvFeatureList } from './src/AvFeatureList.astro';
11
11
  export { default as AvFooter } from './src/AvFooter.astro';
12
12
  export { default as AvIcon } from './src/AvIcon.astro';
13
13
  export { default as AvInput } from './src/AvInput.astro';
14
+ export { default as AvLoading } from './src/AvLoading.astro';
14
15
  export { default as AvSelect } from './src/AvSelect.astro';
15
16
  export { default as AvTextarea } from './src/AvTextarea.astro';
16
17
  export { default as AvNavbar } from './src/AvNavbar.astro';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ansiversa/components",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "Shared UI components and layouts for the Ansiversa ecosystem",
5
5
  "type": "module",
6
6
  "exports": {
@@ -0,0 +1,15 @@
1
+ ---
2
+ interface Props {
3
+ label?: string;
4
+ className?: string;
5
+ }
6
+
7
+ const { label = "Loading…", className = "", ...attrs } = Astro.props as Props & Record<string, unknown>;
8
+ ---
9
+
10
+ <div class={`av-loading-overlay ${className}`} role="status" aria-live="polite" {...attrs}>
11
+ <div class="av-loading-panel">
12
+ <span class="av-loading-spinner" aria-hidden="true"></span>
13
+ <p class="av-text-soft av-m-0">{label}</p>
14
+ </div>
15
+ </div>
@@ -1940,6 +1940,43 @@
1940
1940
  background-size: 200% 100%;
1941
1941
  }
1942
1942
 
1943
+ /* Loading overlay utility */
1944
+ .av-loading-overlay {
1945
+ position: fixed;
1946
+ inset: 0;
1947
+ background: rgba(15, 23, 42, 0.55);
1948
+ display: flex;
1949
+ align-items: center;
1950
+ justify-content: center;
1951
+ z-index: 950;
1952
+ }
1953
+
1954
+ .av-loading-panel {
1955
+ display: flex;
1956
+ align-items: center;
1957
+ gap: 0.75rem;
1958
+ padding: 0.85rem 1.1rem;
1959
+ border-radius: 999px;
1960
+ border: 1px solid var(--av-border-subtle);
1961
+ background: var(--av-surface);
1962
+ box-shadow: var(--av-shadow-soft);
1963
+ }
1964
+
1965
+ .av-loading-spinner {
1966
+ width: 18px;
1967
+ height: 18px;
1968
+ border-radius: 50%;
1969
+ border: 2px solid rgba(148, 163, 184, 0.35);
1970
+ border-top-color: var(--av-text);
1971
+ animation: av-spin 0.9s linear infinite;
1972
+ }
1973
+
1974
+ @keyframes av-spin {
1975
+ to {
1976
+ transform: rotate(360deg);
1977
+ }
1978
+ }
1979
+
1943
1980
  /* Accordion */
1944
1981
  .av-accordion {
1945
1982
  border: 1px solid var(--av-border-subtle);