@haatlabs-core/ui 0.23.0 → 0.23.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.
|
@@ -2,7 +2,8 @@ import type { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* The whole screen while the app starts (the signed-in check, say): the product's mark in
|
|
4
4
|
* the middle, pulsing, with a short bar sweeping under it. It fades in after a moment, so a
|
|
5
|
-
* quick start shows nothing at all. The label is
|
|
5
|
+
* quick start shows nothing at all. The label is not seen: it names the progress bar, and is
|
|
6
|
+
* in the page's text (visually hidden) so a check for a blank page finds it.
|
|
6
7
|
*/
|
|
7
8
|
export declare function StartupLoading(props: {
|
|
8
9
|
mark: ReactNode;
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/**
|
|
3
3
|
* The whole screen while the app starts (the signed-in check, say): the product's mark in
|
|
4
4
|
* the middle, pulsing, with a short bar sweeping under it. It fades in after a moment, so a
|
|
5
|
-
* quick start shows nothing at all. The label is
|
|
5
|
+
* quick start shows nothing at all. The label is not seen: it names the progress bar, and is
|
|
6
|
+
* in the page's text (visually hidden) so a check for a blank page finds it.
|
|
6
7
|
*/
|
|
7
8
|
export function StartupLoading(props) {
|
|
8
|
-
return (_jsxs("div", { className: "hl-startup", role: "progressbar", "aria-label": props.label, "aria-busy": "true", children: [_jsx("div", { className: "hl-startup__mark", "aria-hidden": "true", children: props.mark }), _jsx("div", { className: "hl-startup__track", "aria-hidden": "true", children: _jsx("span", {}) })] }));
|
|
9
|
+
return (_jsxs("div", { className: "hl-startup", role: "progressbar", "aria-label": props.label, "aria-busy": "true", children: [_jsx("div", { className: "hl-startup__mark", "aria-hidden": "true", children: props.mark }), _jsx("div", { className: "hl-startup__track", "aria-hidden": "true", children: _jsx("span", {}) }), _jsxs("span", { className: "hl-startup__label", "aria-hidden": "true", children: [props.label, "\u2026"] })] }));
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=StartupLoading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StartupLoading.js","sourceRoot":"","sources":["../../src/loading/StartupLoading.tsx"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"StartupLoading.js","sourceRoot":"","sources":["../../src/loading/StartupLoading.tsx"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAyC;IACtE,OAAO,CACL,eAAK,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,aAAa,gBAAa,KAAK,CAAC,KAAK,eAAY,MAAM,aACtF,cAAK,SAAS,EAAC,kBAAkB,iBAAa,MAAM,YACjD,KAAK,CAAC,IAAI,GACP,EACN,cAAK,SAAS,EAAC,mBAAmB,iBAAa,MAAM,YACnD,gBAAQ,GACJ,EACN,gBAAM,SAAS,EAAC,mBAAmB,iBAAa,MAAM,aACnD,KAAK,CAAC,KAAK,cACP,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The loaders' look, on the theme tokens only; motion stops under reduced motion. */
|
|
2
|
-
export declare const LOADING_CSS = "\n.hl-startup { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: var(--hl-ground); opacity: 0; animation: hl-fade-in 200ms ease-out 150ms forwards; }\n.hl-startup__mark { display: grid; place-items: center; min-width: 56px; min-height: 56px; animation: hl-pulse 1.4s ease-in-out infinite; }\n.hl-startup__mark svg { width: 56px; height: 56px; }\n.hl-startup__track { width: 96px; height: 3px; border-radius: 2px; background: var(--hl-border); overflow: hidden; }\n.hl-startup__track span { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--hl-accent); animation: hl-sweep 1.1s ease-in-out infinite; }\n.hl-page-skeleton { display: flex; flex-direction: column; gap: 16px; }\n.hl-page-skeleton__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.hl-page-skeleton__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }\n.hl-page-skeleton__card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--hl-radius-card); border: 1px solid var(--hl-border); background: var(--hl-surface); }\n.hl-sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--hl-faint) 0%, var(--hl-border) 40%, var(--hl-faint) 80%); background-size: 300% 100%; animation: hl-shimmer 1.4s linear infinite; }\n.hl-sk--title { width: 180px; max-width: 50%; height: 24px; }\n.hl-sk--button { width: 110px; height: 32px; border-radius: var(--hl-radius-control); }\n.hl-sk--value { height: 18px; }\n.hl-top-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; overflow: hidden; pointer-events: none; }\n.hl-top-progress span { display: block; height: 100%; width: 0; background: var(--hl-accent); box-shadow: 0 0 8px var(--hl-accent); animation: hl-grow 2.4s cubic-bezier(.2,.7,.2,1) forwards; }\n@keyframes hl-fade-in { to { opacity: 1; } }\n@keyframes hl-pulse { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }\n@keyframes hl-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }\n@keyframes hl-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }\n@keyframes hl-grow { 0% { width: 0; } 60% { width: 72%; } 100% { width: 90%; } }\n@media (prefers-reduced-motion: reduce) {\n .hl-startup { animation: none; opacity: 1; }\n .hl-startup__mark, .hl-startup__track span, .hl-sk { animation: none; }\n .hl-top-progress span { animation: none; width: 70%; }\n}\n";
|
|
2
|
+
export declare const LOADING_CSS = "\n.hl-startup { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: var(--hl-ground); opacity: 0; animation: hl-fade-in 200ms ease-out 150ms forwards; }\n.hl-startup__mark { display: grid; place-items: center; min-width: 56px; min-height: 56px; animation: hl-pulse 1.4s ease-in-out infinite; }\n.hl-startup__mark svg { width: 56px; height: 56px; }\n.hl-startup__track { width: 96px; height: 3px; border-radius: 2px; background: var(--hl-border); overflow: hidden; }\n.hl-startup__track span { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--hl-accent); animation: hl-sweep 1.1s ease-in-out infinite; }\n.hl-startup__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.hl-page-skeleton { display: flex; flex-direction: column; gap: 16px; }\n.hl-page-skeleton__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.hl-page-skeleton__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }\n.hl-page-skeleton__card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--hl-radius-card); border: 1px solid var(--hl-border); background: var(--hl-surface); }\n.hl-sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--hl-faint) 0%, var(--hl-border) 40%, var(--hl-faint) 80%); background-size: 300% 100%; animation: hl-shimmer 1.4s linear infinite; }\n.hl-sk--title { width: 180px; max-width: 50%; height: 24px; }\n.hl-sk--button { width: 110px; height: 32px; border-radius: var(--hl-radius-control); }\n.hl-sk--value { height: 18px; }\n.hl-top-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; overflow: hidden; pointer-events: none; }\n.hl-top-progress span { display: block; height: 100%; width: 0; background: var(--hl-accent); box-shadow: 0 0 8px var(--hl-accent); animation: hl-grow 2.4s cubic-bezier(.2,.7,.2,1) forwards; }\n@keyframes hl-fade-in { to { opacity: 1; } }\n@keyframes hl-pulse { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }\n@keyframes hl-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }\n@keyframes hl-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }\n@keyframes hl-grow { 0% { width: 0; } 60% { width: 72%; } 100% { width: 90%; } }\n@media (prefers-reduced-motion: reduce) {\n .hl-startup { animation: none; opacity: 1; }\n .hl-startup__mark, .hl-startup__track span, .hl-sk { animation: none; }\n .hl-top-progress span { animation: none; width: 70%; }\n}\n";
|
|
@@ -5,6 +5,7 @@ export const LOADING_CSS = `
|
|
|
5
5
|
.hl-startup__mark svg { width: 56px; height: 56px; }
|
|
6
6
|
.hl-startup__track { width: 96px; height: 3px; border-radius: 2px; background: var(--hl-border); overflow: hidden; }
|
|
7
7
|
.hl-startup__track span { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--hl-accent); animation: hl-sweep 1.1s ease-in-out infinite; }
|
|
8
|
+
.hl-startup__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
8
9
|
.hl-page-skeleton { display: flex; flex-direction: column; gap: 16px; }
|
|
9
10
|
.hl-page-skeleton__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
10
11
|
.hl-page-skeleton__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-css.js","sourceRoot":"","sources":["../../src/loading/loading-css.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"loading-css.js","sourceRoot":"","sources":["../../src/loading/loading-css.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haatlabs-core/ui",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "React components for an app's dashboard, styled by the app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"haatlabs",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"react-router-dom": "^7.18.4",
|
|
68
68
|
"@tanstack/react-query": "^5.104.1",
|
|
69
69
|
"zod": "^4.6.5",
|
|
70
|
-
"@haatlabs-core/vitest-config": "0.23.
|
|
71
|
-
"@haatlabs-core/tsconfig": "0.23.
|
|
70
|
+
"@haatlabs-core/vitest-config": "0.23.1",
|
|
71
|
+
"@haatlabs-core/tsconfig": "0.23.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@haatlabs-core/auth-contracts": "0.23.
|
|
74
|
+
"@haatlabs-core/auth-contracts": "0.23.1"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|