@haatlabs-core/ui 0.30.4 → 0.30.5
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The alert bar and the maintenance screen. CRITICAL red, WARN amber, INFO the app's accent. */
|
|
2
|
-
export declare const STATUS_CSS = "\n.hl-alerts { display: flex; flex-direction: column; }\n.hl-alert { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 44px
|
|
2
|
+
export declare const STATUS_CSS = "\n.hl-alerts { display: flex; flex-direction: column; }\n.hl-alert { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 44px; font-size: 14px; }\n.hl-alert__text { margin: 0; flex: 1; min-width: 0; text-align: center; }\n.hl-alert__text a { color: inherit; font-weight: 700; text-decoration: underline; }\n.hl-alert__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.75; }\n.hl-alert__close:hover, .hl-alert__close:focus-visible { opacity: 1; }\n.hl-alert[data-severity=\"CRITICAL\"] { background: var(--hl-danger); color: var(--hl-on-danger); }\n.hl-alert[data-severity=\"WARN\"] { background: var(--hl-amber-bg); color: var(--hl-amber-text); border-bottom: 1px solid var(--hl-amber-border); }\n.hl-alert[data-severity=\"INFO\"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-maintenance { max-width: 560px; margin: 0 auto; padding: 15vh 16px 40px; text-align: center; color: var(--hl-text); }\n.hl-maintenance h1 { margin: 0 0 12px; font-size: 24px; }\n.hl-maintenance__muted { color: var(--hl-muted); font-size: 14px; }\n.hl-form { display: flex; flex-direction: column; gap: 14px; }\n.hl-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }\n.hl-form label:has(> input[type=\"checkbox\"]) { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }\n.hl-form fieldset { border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }\n.hl-form input:not([type=\"checkbox\"]), .hl-form textarea, .hl-form select { font: inherit; padding: 8px 10px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-control); background: var(--hl-surface); color: var(--hl-text); }\n.hl-form textarea { min-height: 96px; resize: vertical; }\n.hl-admin-announcements__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }\n.hl-admin-announcements__head h1 { margin: 0; flex: 1; }\n.hl-admin-announcements__list, .hl-admin-maintenance__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }\n.hl-admin-announcements__list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); background: var(--hl-surface); }\n.hl-admin-announcements__meta { color: var(--hl-muted); font-size: 13px; margin-top: 4px; }\n.hl-country-prompt__backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 10, 20, 0.55); }\n.hl-country-prompt { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); background: var(--hl-surface); color: var(--hl-text); box-shadow: 0 24px 64px rgba(8, 10, 20, 0.35); }\n.hl-country-prompt h2 { margin: 0; font-size: 20px; font-weight: 700; }\n.hl-country-prompt p { margin: 0; color: var(--hl-muted); font-size: 14px; }\n.hl-country-prompt select { height: 44px; width: 100%; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-ground); color: var(--hl-text); font: inherit; font-size: 15px; }\n.hl-country-prompt select:focus { outline: none; border-color: var(--hl-accent); box-shadow: 0 0 0 3px var(--hl-accent-soft); }\n.hl-country-prompt__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }\n.hl-country-prompt button { height: 40px; padding: 0 18px; border-radius: var(--hl-radius-control); border: 0; background: var(--hl-accent); color: var(--hl-on-accent); font: inherit; font-weight: 600; cursor: pointer; }\n.hl-country-prompt button:disabled { opacity: 0.6; cursor: default; }\n.hl-country-prompt .hl-country-prompt__skip { background: transparent; color: var(--hl-muted); }\n.hl-country-prompt [role=\"alert\"] { color: var(--hl-danger); font-size: 13px; }\n";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** The alert bar and the maintenance screen. CRITICAL red, WARN amber, INFO the app's accent. */
|
|
2
2
|
export const STATUS_CSS = `
|
|
3
3
|
.hl-alerts { display: flex; flex-direction: column; }
|
|
4
|
-
.hl-alert { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 44px
|
|
5
|
-
.hl-alert__text { margin: 0; flex: 1; min-width: 0; }
|
|
4
|
+
.hl-alert { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 44px; font-size: 14px; }
|
|
5
|
+
.hl-alert__text { margin: 0; flex: 1; min-width: 0; text-align: center; }
|
|
6
6
|
.hl-alert__text a { color: inherit; font-weight: 700; text-decoration: underline; }
|
|
7
7
|
.hl-alert__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.75; }
|
|
8
8
|
.hl-alert__close:hover, .hl-alert__close:focus-visible { opacity: 1; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haatlabs-core/ui",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.5",
|
|
4
4
|
"description": "React components for an app's dashboard, styled by the app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"haatlabs",
|
|
@@ -67,12 +67,12 @@
|
|
|
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/tsconfig": "0.30.
|
|
71
|
-
"@haatlabs-core/vitest-config": "0.30.
|
|
70
|
+
"@haatlabs-core/tsconfig": "0.30.5",
|
|
71
|
+
"@haatlabs-core/vitest-config": "0.30.5"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@haatlabs-core/
|
|
75
|
-
"@haatlabs-core/
|
|
74
|
+
"@haatlabs-core/auth-contracts": "0.30.5",
|
|
75
|
+
"@haatlabs-core/announcements-contracts": "0.30.5"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|