@ansiversa/components 0.0.95 → 0.0.97

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.97",
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>
@@ -532,6 +532,17 @@
532
532
  font-size: 0.875rem;
533
533
  }
534
534
 
535
+ .av-admin-json {
536
+ background: #0f172a;
537
+ color: #e2e8f0;
538
+ padding: 1rem;
539
+ border-radius: 0.75rem;
540
+ overflow: auto;
541
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
542
+ font-size: 0.875rem;
543
+ line-height: 1.5;
544
+ }
545
+
535
546
  .av-admin-section > .av-container {
536
547
  padding-top: 0;
537
548
  padding-bottom: 0;
@@ -1940,6 +1951,43 @@
1940
1951
  background-size: 200% 100%;
1941
1952
  }
1942
1953
 
1954
+ /* Loading overlay utility */
1955
+ .av-loading-overlay {
1956
+ position: fixed;
1957
+ inset: 0;
1958
+ background: rgba(15, 23, 42, 0.55);
1959
+ display: flex;
1960
+ align-items: center;
1961
+ justify-content: center;
1962
+ z-index: 950;
1963
+ }
1964
+
1965
+ .av-loading-panel {
1966
+ display: flex;
1967
+ align-items: center;
1968
+ gap: 0.75rem;
1969
+ padding: 0.85rem 1.1rem;
1970
+ border-radius: 999px;
1971
+ border: 1px solid var(--av-border-subtle);
1972
+ background: var(--av-surface);
1973
+ box-shadow: var(--av-shadow-soft);
1974
+ }
1975
+
1976
+ .av-loading-spinner {
1977
+ width: 18px;
1978
+ height: 18px;
1979
+ border-radius: 50%;
1980
+ border: 2px solid rgba(148, 163, 184, 0.35);
1981
+ border-top-color: var(--av-text);
1982
+ animation: av-spin 0.9s linear infinite;
1983
+ }
1984
+
1985
+ @keyframes av-spin {
1986
+ to {
1987
+ transform: rotate(360deg);
1988
+ }
1989
+ }
1990
+
1943
1991
  /* Accordion */
1944
1992
  .av-accordion {
1945
1993
  border: 1px solid var(--av-border-subtle);