@haatlabs-core/ui 0.18.5 → 0.19.0
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/dist/client/usage-css.d.ts +1 -1
- package/dist/client/usage-css.js +8 -8
- package/dist/layout/layout-css.d.ts +1 -1
- package/dist/layout/layout-css.js +10 -10
- package/dist/shell/shell-css.d.ts +1 -1
- package/dist/shell/shell-css.js +9 -9
- package/dist/theme/tokens.js +4 -4
- package/dist/theme/tokens.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* The plans-and-usage page (UsagePage), on the theme tokens. Scoped to `.hl-usage` so it
|
|
3
3
|
* never restyles an app's own pages, whose class names it shares.
|
|
4
4
|
*/
|
|
5
|
-
export declare const USAGE_CSS = "\n.hl-usage h1 { margin: 0; font-size:
|
|
5
|
+
export declare const USAGE_CSS = "\n.hl-usage h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }\n.hl-usage h2 { margin: 0; font-size: 14px; font-weight: 700; }\n.hl-usage .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }\n.hl-usage .row.spread { justify-content: space-between; align-items: flex-end; }\n.hl-usage .muted { color: var(--hl-muted); font-size: 13px; }\n.hl-usage .mono { font-family: var(--hl-mono); font-size: 13px; }\n.hl-usage .eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-muted); }\n.hl-usage .panel { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }\n.hl-usage .notice { padding: 12px 16px; border-radius: var(--hl-radius-control); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); font-size: 14px; }\n.hl-usage button, .hl-usage .button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }\n.hl-usage button:hover:not(:disabled) { border-color: var(--hl-accent); }\n.hl-usage button.primary { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }\n.hl-usage button.strong { border-color: var(--hl-text); }\n.hl-usage button:disabled { opacity: .55; cursor: not-allowed; }\n.hl-usage .pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--hl-faint); color: var(--hl-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }\n.hl-usage .pill.done { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-usage .pill.failed { background: var(--hl-faint); color: var(--hl-danger); }\n.hl-usage .plan-card { background: var(--hl-panel); color: var(--hl-panel-text); border-radius: var(--hl-radius-card); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }\n.hl-usage .plan-card .eyebrow { color: var(--hl-panel-muted); }\n.hl-usage .plan-card strong { font-size: 20px; letter-spacing: -0.02em; }\n.hl-usage .plan-card p { max-width: 380px; color: var(--hl-panel-soft); font-size: 14px; }\n.hl-usage .meter { display: block; height: 8px; min-width: 160px; margin-top: 8px; background: var(--hl-faint); border-radius: 999px; overflow: hidden; }\n.hl-usage .meter > span { display: block; height: 100%; background: var(--hl-accent); border-radius: 999px; }\n.hl-usage .meter.full > span { background: var(--hl-danger); }\n.hl-usage .table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }\n.hl-usage table { width: 100%; min-width: 640px; border-collapse: collapse; color: var(--hl-text); }\n.hl-usage th, .hl-usage td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; }\n.hl-usage table.compare { min-width: 780px; table-layout: fixed; }\n.hl-usage table.compare td, .hl-usage table.compare th { text-align: center; padding-left: 8px; padding-right: 8px; }\n.hl-usage table.compare tr > :first-child { width: 170px; text-align: left; padding-left: 16px; }\n.hl-usage table.compare tbody th { color: var(--hl-muted); font-weight: 500; }\n.hl-usage table.compare thead th { padding: 14px 10px 12px; font-size: 14px; font-weight: 400; vertical-align: top; }\n.hl-usage table.compare thead th > span { display: block; }\n.hl-usage table.compare thead th > .pill { display: inline-flex; margin-top: 8px; }\n.hl-usage table.compare .plan-name { font-size: 16px; font-weight: 700; }\n.hl-usage table.compare .price { margin-top: 6px; font-size: 13px; color: var(--hl-muted); }\n.hl-usage table.compare .corner { color: var(--hl-muted); font-size: 13px; vertical-align: bottom; }\n.hl-usage table.compare tbody td { font-family: var(--hl-mono); font-size: 13px; overflow-wrap: anywhere; }\n.hl-usage table.compare .current { background: var(--hl-accent-soft); }\n.hl-usage table.compare thead .current { box-shadow: inset 0 3px 0 var(--hl-accent); }\n.hl-usage table.compare tfoot td { padding: 12px 8px 16px; border-bottom: 0; vertical-align: top; }\n.hl-usage table.compare tfoot button { width: 100%; padding: 0 8px; font-size: 14px; white-space: nowrap; }\n.hl-usage table.compare tfoot button + button { margin-top: 8px; }\n";
|
package/dist/client/usage-css.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* never restyles an app's own pages, whose class names it shares.
|
|
4
4
|
*/
|
|
5
5
|
export const USAGE_CSS = `
|
|
6
|
-
.hl-usage h1 { margin: 0; font-size:
|
|
7
|
-
.hl-usage h2 { margin: 0; font-size:
|
|
6
|
+
.hl-usage h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
|
|
7
|
+
.hl-usage h2 { margin: 0; font-size: 14px; font-weight: 700; }
|
|
8
8
|
.hl-usage .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
|
|
9
9
|
.hl-usage .row.spread { justify-content: space-between; align-items: flex-end; }
|
|
10
|
-
.hl-usage .muted { color: var(--hl-muted); font-size:
|
|
11
|
-
.hl-usage .mono { font-family: var(--hl-mono); font-size:
|
|
10
|
+
.hl-usage .muted { color: var(--hl-muted); font-size: 13px; }
|
|
11
|
+
.hl-usage .mono { font-family: var(--hl-mono); font-size: 13px; }
|
|
12
12
|
.hl-usage .eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-muted); }
|
|
13
|
-
.hl-usage .panel { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding:
|
|
13
|
+
.hl-usage .panel { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
14
14
|
.hl-usage .notice { padding: 12px 16px; border-radius: var(--hl-radius-control); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); font-size: 14px; }
|
|
15
|
-
.hl-usage button, .hl-usage .button { display: inline-flex; align-items: center; justify-content: center; min-height:
|
|
15
|
+
.hl-usage button, .hl-usage .button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
|
|
16
16
|
.hl-usage button:hover:not(:disabled) { border-color: var(--hl-accent); }
|
|
17
17
|
.hl-usage button.primary { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }
|
|
18
18
|
.hl-usage button.strong { border-color: var(--hl-text); }
|
|
@@ -22,14 +22,14 @@ export const USAGE_CSS = `
|
|
|
22
22
|
.hl-usage .pill.failed { background: var(--hl-faint); color: var(--hl-danger); }
|
|
23
23
|
.hl-usage .plan-card { background: var(--hl-panel); color: var(--hl-panel-text); border-radius: var(--hl-radius-card); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
|
|
24
24
|
.hl-usage .plan-card .eyebrow { color: var(--hl-panel-muted); }
|
|
25
|
-
.hl-usage .plan-card strong { font-size:
|
|
25
|
+
.hl-usage .plan-card strong { font-size: 20px; letter-spacing: -0.02em; }
|
|
26
26
|
.hl-usage .plan-card p { max-width: 380px; color: var(--hl-panel-soft); font-size: 14px; }
|
|
27
27
|
.hl-usage .meter { display: block; height: 8px; min-width: 160px; margin-top: 8px; background: var(--hl-faint); border-radius: 999px; overflow: hidden; }
|
|
28
28
|
.hl-usage .meter > span { display: block; height: 100%; background: var(--hl-accent); border-radius: 999px; }
|
|
29
29
|
.hl-usage .meter.full > span { background: var(--hl-danger); }
|
|
30
30
|
.hl-usage .table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }
|
|
31
31
|
.hl-usage table { width: 100%; min-width: 640px; border-collapse: collapse; color: var(--hl-text); }
|
|
32
|
-
.hl-usage th, .hl-usage td { padding:
|
|
32
|
+
.hl-usage th, .hl-usage td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; }
|
|
33
33
|
.hl-usage table.compare { min-width: 780px; table-layout: fixed; }
|
|
34
34
|
.hl-usage table.compare td, .hl-usage table.compare th { text-align: center; padding-left: 8px; padding-right: 8px; }
|
|
35
35
|
.hl-usage table.compare tr > :first-child { width: 170px; text-align: left; padding-left: 16px; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The layout pieces' look, on the theme tokens only. */
|
|
2
|
-
export declare const LAYOUT_CSS = "\n.hl-muted { color: var(--hl-muted); font-size:
|
|
2
|
+
export declare const LAYOUT_CSS = "\n.hl-muted { color: var(--hl-muted); font-size: 13px; }\n.hl-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }\n.hl-page-header h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }\n.hl-page-header p { margin: 2px 0 0; color: var(--hl-muted); }\n.hl-page-header__actions { display: flex; flex-wrap: wrap; gap: 8px; }\n.hl-card { padding: 14px 16px; border-radius: var(--hl-radius-card); background: var(--hl-surface); border: 1px solid var(--hl-border); display: flex; flex-direction: column; gap: 10px; min-width: 0; }\n.hl-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }\n.hl-card__head h2 { margin: 0; font-size: 14px; font-weight: 700; }\n.hl-card__head a { font-weight: 700; text-decoration: none; }\n.hl-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 14px; border-radius: var(--hl-radius-card); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); }\n.hl-callout__text { flex: 1 1 320px; display: flex; flex-direction: column; }\n.hl-callout a, .hl-callout button { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }\n.hl-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }\n.hl-checklist li { display: flex; gap: 12px; align-items: flex-start; }\n.hl-checklist__text { min-width: 0; flex: 1; }\n.hl-check { width: 24px; height: 24px; flex: none; box-sizing: border-box; border-radius: 999px; border: 2px solid var(--hl-border); display: grid; place-items: center; }\n.hl-check--done { border: 0; background: var(--hl-accent); color: #FFFFFF; }\n.hl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font-weight: 700; text-decoration: none; }\n.hl-chip:hover { border-color: var(--hl-accent); }\n";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/** The layout pieces' look, on the theme tokens only. */
|
|
2
2
|
export const LAYOUT_CSS = `
|
|
3
|
-
.hl-muted { color: var(--hl-muted); font-size:
|
|
4
|
-
.hl-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom:
|
|
5
|
-
.hl-page-header h1 { margin: 0; font-size:
|
|
6
|
-
.hl-page-header p { margin:
|
|
3
|
+
.hl-muted { color: var(--hl-muted); font-size: 13px; }
|
|
4
|
+
.hl-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
|
|
5
|
+
.hl-page-header h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
|
|
6
|
+
.hl-page-header p { margin: 2px 0 0; color: var(--hl-muted); }
|
|
7
7
|
.hl-page-header__actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
8
|
-
.hl-card { padding:
|
|
8
|
+
.hl-card { padding: 14px 16px; border-radius: var(--hl-radius-card); background: var(--hl-surface); border: 1px solid var(--hl-border); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
9
9
|
.hl-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
|
|
10
|
-
.hl-card__head h2 { margin: 0; font-size:
|
|
10
|
+
.hl-card__head h2 { margin: 0; font-size: 14px; font-weight: 700; }
|
|
11
11
|
.hl-card__head a { font-weight: 700; text-decoration: none; }
|
|
12
|
-
.hl-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding:
|
|
12
|
+
.hl-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 14px; border-radius: var(--hl-radius-card); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); }
|
|
13
13
|
.hl-callout__text { flex: 1 1 320px; display: flex; flex-direction: column; }
|
|
14
|
-
.hl-callout a, .hl-callout button { min-height:
|
|
15
|
-
.hl-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap:
|
|
14
|
+
.hl-callout a, .hl-callout button { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
|
|
15
|
+
.hl-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
16
16
|
.hl-checklist li { display: flex; gap: 12px; align-items: flex-start; }
|
|
17
17
|
.hl-checklist__text { min-width: 0; flex: 1; }
|
|
18
18
|
.hl-check { width: 24px; height: 24px; flex: none; box-sizing: border-box; border-radius: 999px; border: 2px solid var(--hl-border); display: grid; place-items: center; }
|
|
19
19
|
.hl-check--done { border: 0; background: var(--hl-accent); color: #FFFFFF; }
|
|
20
|
-
.hl-chip { display: inline-flex; align-items: center; gap: 8px; min-height:
|
|
20
|
+
.hl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font-weight: 700; text-decoration: none; }
|
|
21
21
|
.hl-chip:hover { border-color: var(--hl-accent); }
|
|
22
22
|
`;
|
|
23
23
|
//# sourceMappingURL=layout-css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The app shell's look, on the theme tokens only (see tokens.ts). */
|
|
2
|
-
export declare const SHELL_CSS = "\n.hl-shell { min-height: 100vh; display: flex; background: var(--hl-ground); color: var(--hl-text); }\n.hl-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font-weight: 700; }\n.hl-skip:focus { left: 8px; }\n.hl-sidebar { width:
|
|
2
|
+
export declare const SHELL_CSS = "\n.hl-shell { min-height: 100vh; display: flex; background: var(--hl-ground); color: var(--hl-text); }\n.hl-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font-weight: 700; }\n.hl-skip:focus { left: 8px; }\n.hl-sidebar { width: 210px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: var(--hl-sidebar); border-right: 1px solid var(--hl-border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }\n.hl-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--hl-text); text-decoration: none; }\n.hl-nav { display: flex; flex-direction: column; gap: 2px; }\n.hl-nav__group { margin: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.hl-nav a { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: var(--hl-radius-control); color: var(--hl-text); text-decoration: none; font-weight: 600; }\n.hl-nav a:hover { background: var(--hl-faint); }\n.hl-nav a[aria-current=\"page\"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); font-weight: 700; }\n.hl-nav ul ul a { min-height: 28px; padding-left: 36px; font-weight: 500; color: var(--hl-muted); }\n.hl-nav ul ul a[aria-current=\"page\"] { color: var(--hl-accent-text); }\n.hl-sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--hl-border); }\n.hl-theme-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-theme-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hl-faint); }\n.hl-shell .hl-theme-switch button { width: 34px; height: 30px; min-height: 30px; padding: 0; box-sizing: border-box; border: 0; border-radius: 999px; display: grid; place-items: center; background: transparent; color: var(--hl-muted); cursor: pointer; }\n.hl-shell .hl-theme-switch button:hover:not(:disabled) { background: var(--hl-surface); border-color: transparent; color: var(--hl-text); }\n.hl-shell .hl-theme-switch button[aria-pressed=\"true\"], .hl-shell .hl-theme-switch button[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }\n.hl-account { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }\n.hl-account__who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }\n.hl-avatar { width: 30px; height: 30px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--hl-accent); color: var(--hl-on-accent); font-weight: 700; }\n.hl-account__text { display: flex; flex-direction: column; min-width: 0; }\n.hl-account__text span { font-size: 13px; color: var(--hl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hl-shell button.hl-signout { min-height: 34px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: transparent; color: var(--hl-text); font: inherit; font-weight: 600; cursor: pointer; }\n.hl-shell button.hl-signout:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }\n.hl-shell button.hl-signout:disabled { background: transparent; border-color: var(--hl-border); color: var(--hl-muted); opacity: .7; cursor: default; }\n.hl-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.hl-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 24px; border-bottom: 1px solid var(--hl-border); background: var(--hl-ground); position: sticky; top: 0; z-index: 10; }\n.hl-search { position: relative; flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-muted); box-sizing: border-box; }\n.hl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--hl-text); font: inherit; }\n.hl-search:focus-within { border-color: var(--hl-accent); }\n.hl-search__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); box-shadow: 0 12px 30px rgba(0,0,0,.18); }\n.hl-search__list li { padding: 10px 12px; border-radius: 8px; color: var(--hl-text); cursor: pointer; }\n.hl-search__list li[aria-selected=\"true\"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-search__list .hl-search__empty { color: var(--hl-muted); cursor: default; }\n.hl-topbar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }\n.hl-shell button.hl-menu-button { min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; cursor: pointer; }\n.hl-shell button.hl-menu-button:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }\n.hl-main { padding: 20px 24px; width: 100%; max-width: 1180px; box-sizing: border-box; }\n.hl-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }\n.hl-drawer { position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(300px, 86vw); display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--hl-sidebar); overflow-y: auto; }\n@media (max-width: 899px) {\n .hl-topbar { padding: 12px 16px; }\n .hl-main { padding: 20px 16px; }\n}\n";
|
package/dist/shell/shell-css.js
CHANGED
|
@@ -3,15 +3,15 @@ export const SHELL_CSS = `
|
|
|
3
3
|
.hl-shell { min-height: 100vh; display: flex; background: var(--hl-ground); color: var(--hl-text); }
|
|
4
4
|
.hl-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font-weight: 700; }
|
|
5
5
|
.hl-skip:focus { left: 8px; }
|
|
6
|
-
.hl-sidebar { width:
|
|
7
|
-
.hl-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px
|
|
6
|
+
.hl-sidebar { width: 210px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: var(--hl-sidebar); border-right: 1px solid var(--hl-border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
|
|
7
|
+
.hl-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--hl-text); text-decoration: none; }
|
|
8
8
|
.hl-nav { display: flex; flex-direction: column; gap: 2px; }
|
|
9
|
-
.hl-nav__group { margin:
|
|
9
|
+
.hl-nav__group { margin: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }
|
|
10
10
|
.hl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
11
|
-
.hl-nav a { display: flex; align-items: center; gap: 10px; min-height:
|
|
11
|
+
.hl-nav a { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: var(--hl-radius-control); color: var(--hl-text); text-decoration: none; font-weight: 600; }
|
|
12
12
|
.hl-nav a:hover { background: var(--hl-faint); }
|
|
13
13
|
.hl-nav a[aria-current="page"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); font-weight: 700; }
|
|
14
|
-
.hl-nav ul ul a { min-height:
|
|
14
|
+
.hl-nav ul ul a { min-height: 28px; padding-left: 36px; font-weight: 500; color: var(--hl-muted); }
|
|
15
15
|
.hl-nav ul ul a[aria-current="page"] { color: var(--hl-accent-text); }
|
|
16
16
|
.hl-sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--hl-border); }
|
|
17
17
|
.hl-theme-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }
|
|
@@ -28,8 +28,8 @@ export const SHELL_CSS = `
|
|
|
28
28
|
.hl-shell button.hl-signout:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }
|
|
29
29
|
.hl-shell button.hl-signout:disabled { background: transparent; border-color: var(--hl-border); color: var(--hl-muted); opacity: .7; cursor: default; }
|
|
30
30
|
.hl-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
31
|
-
.hl-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding:
|
|
32
|
-
.hl-search { position: relative; flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; min-height:
|
|
31
|
+
.hl-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 24px; border-bottom: 1px solid var(--hl-border); background: var(--hl-ground); position: sticky; top: 0; z-index: 10; }
|
|
32
|
+
.hl-search { position: relative; flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-muted); box-sizing: border-box; }
|
|
33
33
|
.hl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--hl-text); font: inherit; }
|
|
34
34
|
.hl-search:focus-within { border-color: var(--hl-accent); }
|
|
35
35
|
.hl-search__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
|
|
@@ -37,9 +37,9 @@ export const SHELL_CSS = `
|
|
|
37
37
|
.hl-search__list li[aria-selected="true"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); }
|
|
38
38
|
.hl-search__list .hl-search__empty { color: var(--hl-muted); cursor: default; }
|
|
39
39
|
.hl-topbar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
|
|
40
|
-
.hl-shell button.hl-menu-button { min-height:
|
|
40
|
+
.hl-shell button.hl-menu-button { min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; cursor: pointer; }
|
|
41
41
|
.hl-shell button.hl-menu-button:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }
|
|
42
|
-
.hl-main { padding: 24px
|
|
42
|
+
.hl-main { padding: 20px 24px; width: 100%; max-width: 1180px; box-sizing: border-box; }
|
|
43
43
|
.hl-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
|
|
44
44
|
.hl-drawer { position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(300px, 86vw); display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--hl-sidebar); overflow-y: auto; }
|
|
45
45
|
@media (max-width: 899px) {
|
package/dist/theme/tokens.js
CHANGED
|
@@ -34,8 +34,8 @@ export const ACCENTS = {
|
|
|
34
34
|
};
|
|
35
35
|
export const NEUTRALS = {
|
|
36
36
|
light: {
|
|
37
|
-
ground: '#
|
|
38
|
-
sidebar: '#
|
|
37
|
+
ground: '#FFFFFF',
|
|
38
|
+
sidebar: '#F9FAFB',
|
|
39
39
|
surface: '#FFFFFF',
|
|
40
40
|
border: '#E2E2E9',
|
|
41
41
|
text: '#17171C',
|
|
@@ -90,10 +90,10 @@ export function themeCss(accent) {
|
|
|
90
90
|
const light = variables(NEUTRALS.light, a, false);
|
|
91
91
|
const dark = variables(NEUTRALS.dark, a, true);
|
|
92
92
|
return `
|
|
93
|
-
:root { ${light} --hl-on-accent: #FFFFFF; --hl-panel: #0D1020; --hl-panel-text: #FFFFFF; --hl-panel-soft: #D9DDF2; --hl-panel-muted: #9AA3C7; --hl-radius-card:
|
|
93
|
+
:root { ${light} --hl-on-accent: #FFFFFF; --hl-panel: #0D1020; --hl-panel-text: #FFFFFF; --hl-panel-soft: #D9DDF2; --hl-panel-muted: #9AA3C7; --hl-radius-card: 10px; --hl-radius-control: 8px; --hl-font: ${FONT}; --hl-mono: ${MONO}; }
|
|
94
94
|
:root[data-theme="dark"] { ${dark} }
|
|
95
95
|
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { ${dark} } }
|
|
96
|
-
body { margin: 0; background: var(--hl-ground); color: var(--hl-text); font-family: var(--hl-font); font-size:
|
|
96
|
+
body { margin: 0; background: var(--hl-ground); color: var(--hl-text); font-family: var(--hl-font); font-size: 13px; line-height: 1.5; }
|
|
97
97
|
code, kbd, pre, samp { font-family: var(--hl-mono); }
|
|
98
98
|
a { color: var(--hl-accent-text); }
|
|
99
99
|
:focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 2px; }
|
package/dist/theme/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkBH,MAAM,CAAC,MAAM,OAAO,GAAiD;IACnE,MAAM,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;CACF,CAAC;AAiBF,MAAM,CAAC,MAAM,QAAQ,GAAkD;IACrE,KAAK,EAAE;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;KAClB;IACD,IAAI,E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M,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,GAAG;QACjE,iBAAiB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG;KAC5C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAmC;IAC1D,MAAM,CAAC,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAChE,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAC/C,OAAO;UACC,KAAK,8LAA8L,IAAI,gBAAgB,IAAI;6BACxM,IAAI;kEACiC,IAAI;;;;;CAKrE,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haatlabs-core/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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/tsconfig": "0.
|
|
71
|
-
"@haatlabs-core/vitest-config": "0.
|
|
70
|
+
"@haatlabs-core/tsconfig": "0.19.0",
|
|
71
|
+
"@haatlabs-core/vitest-config": "0.19.0"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@haatlabs-core/auth-contracts": "0.
|
|
74
|
+
"@haatlabs-core/auth-contracts": "0.19.0"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|