@haatlabs-core/ui 0.25.1 → 0.25.3
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.
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* density (13px). Scoped to `.hl-notify*`; button rules out-rank an app's own
|
|
4
4
|
* `button:hover:not(:disabled)`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const NOTIFICATIONS_CSS = "\n.hl-notify { position: relative; display: inline-flex; }\n.hl-notify button.hl-notify__bell, .hl-notify button.hl-notify__bell:hover:not(:disabled) { position: relative; width: 32px; height: 32px; min-height: 32px; padding: 0; box-sizing: border-box; display: grid; place-items: center; border: 1px solid var(--hl-border); border-radius: 999px; background: var(--hl-surface); color: var(--hl-text); cursor: pointer; }\n.hl-notify button.hl-notify__bell:hover:not(:disabled), .hl-notify button.hl-notify__bell[aria-expanded=\"true\"] { border-color: var(--hl-accent); }\n.hl-notify__badge { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--hl-accent); color: var(--hl-on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }\n.hl-notify__popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 360px; max-width: calc(100vw - 32px); max-height: 70vh; display: flex; flex-direction: column; background: var(--hl-surface); color: var(--hl-text); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); box-shadow: 0 12px 32px color-mix(in srgb, var(--hl-text) 18%, transparent); font-size: 13px; overflow: hidden; }\n.hl-notify__popover:focus { outline: none; }\n.hl-notify__popover:focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 2px; }\n.hl-notify__head, .hl-notify__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }\n.hl-notify__head { border-bottom: 1px solid var(--hl-border); }\n.hl-notify__foot { border-top: 1px solid var(--hl-border); justify-content: center; }\n.hl-notify__popover .hl-notify__list { overflow-y: auto; }\n.hl-notify__list { list-style: none; margin: 0; padding: 0; }\n.hl-notify__item + .hl-notify__item { border-top: 1px solid var(--hl-border); }\n.hl-notify__item button.hl-notify__open, .hl-notify__item button.hl-notify__open:hover:not(:disabled) { width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px 8px 24px; position: relative; border: 0; border-radius: 0; background: transparent; color: var(--hl-text); font: inherit; font-size: 13px; font-weight: 400; text-align: left; cursor: pointer; }\n.hl-notify__item button.hl-notify__open:hover:not(:disabled) { background: var(--hl-faint); }\n.hl-notify__item--unread button.hl-notify__open::before { content: \"\"; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 999px; background: var(--hl-accent); }\n.hl-notify__item strong { font-weight: 500; }\n.hl-notify__item--unread strong { font-weight: 700; }\n.hl-notify__body { color: var(--hl-muted); }\n.hl-notify__item time { color: var(--hl-muted); font-size: 12px; }\n.hl-notify__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n.hl-notify button.hl-notify__action, .hl-notify-page button.hl-notify__action, .hl-notify-prefs button.hl-notify__action, .hl-notify-page button.hl-notify__more { min-height: 30px; padding: 0 10px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-control); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }\n.hl-notify .hl-notify__head button.hl-notify__action { border-color: transparent; color: var(--hl-accent-text); }\n.hl-notify button.hl-notify__action:hover:not(:disabled), .hl-notify-page button.hl-notify__more:hover:not(:disabled), .hl-notify-prefs button.hl-notify__action:hover:not(:disabled) { border-color: var(--hl-accent); }\n.hl-notify button.hl-notify__action:disabled, .hl-notify-page button.hl-notify__more:disabled, .hl-notify-prefs button.hl-notify__action:disabled { opacity: .55; cursor: not-allowed; }\n.hl-notify__error { margin: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hl-danger); font-size: 13px; }\n.hl-notify__popover .empty, .hl-notify-page .empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; color: var(--hl-muted); text-align: center; }\n.hl-notify__popover .empty strong, .hl-notify-page .empty strong { color: var(--hl-text); }\n.hl-notify-page { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }\n.hl-notify-page .hl-notify__list { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow: hidden; }\n.hl-notify-page .hl-notify__more { align-self: center; }\n.hl-notify-page .hl-notify__error { margin: 0; }\n.hl-notify__segments { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hl-faint); }\n.hl-notify__segments button, .hl-notify__segments button:hover:not(:disabled) { min-height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--hl-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }\n.hl-notify__segments button:hover:not(:disabled) { color: var(--hl-text); }\n.hl-notify__segments button[aria-pressed=\"true\"], .hl-notify__segments button[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--hl-surface); color: var(--hl-text); }\n.hl-notify-prefs { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }\n.hl-notify-prefs .hl-notify__error { margin: 0; }\n.hl-notify-prefs .hl-notify__table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }\n.hl-notify-prefs table { width: 100%; border-collapse: collapse; color: var(--hl-text); }\n.hl-notify-prefs th, .hl-notify-prefs td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; font-weight: 400; }\n.hl-notify-prefs thead th { color: var(--hl-muted); font-size: 12px; font-weight: 700; }\n.hl-notify-prefs thead th + th, .hl-notify-prefs td { width: 120px; text-align: right; }\n.hl-notify-prefs th:last-child, .hl-notify-prefs td:last-child { padding-right: 32px; }\n.hl-notify-prefs th.hl-notify__group { padding-right: 14px; }\n.hl-notify-prefs th.hl-notify__group { padding-top: 12px; background: var(--hl-faint); font-weight: 700; }\n.hl-notify__cell { display: inline-flex; align-items: center; gap: 8px; }\n.hl-notify__required { color: var(--hl-muted); font-size: 12px; }\n.hl-notify-prefs .hl-notify__switch { appearance: none; position: relative; width: 32px; height: 18px; min-height: 0; padding: 0; border: 0; margin: 0; flex: none; border-radius: 999px; background: var(--hl-muted); cursor: pointer; transition: background .15s; }\n.hl-notify-prefs .hl-notify__switch::before { content: \"\"; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: var(--hl-surface); transition: transform .15s; }\n.hl-notify-prefs .hl-notify__switch:checked { background: var(--hl-accent); }\n.hl-notify-prefs .hl-notify__switch:checked::before { transform: translateX(14px); background: var(--hl-on-accent); }\n.hl-notify-prefs .hl-notify__switch:disabled { opacity: .55; cursor: not-allowed; }\n.hl-notify__device { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 32px 12px 14px; background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); }\n.hl-notify__device-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.hl-notify-prefs .hl-notify__device-text label { display: block; min-height: 0; font-size: 13px; font-weight: 700; color: var(--hl-text); cursor: pointer; }\n.hl-notify__device > .hl-notify__error { flex-basis: 100%; margin: 0; }\n.hl-notify__note { margin: 0; color: var(--hl-muted); }\n@media (prefers-reduced-motion: reduce) { .hl-notify-prefs .hl-notify__switch, .hl-notify-prefs .hl-notify__switch::before { transition: none; } }\n";
|
|
6
|
+
export declare const NOTIFICATIONS_CSS = "\n.hl-notify { position: relative; display: inline-flex; }\n.hl-notify button.hl-notify__bell, .hl-notify button.hl-notify__bell:hover:not(:disabled) { position: relative; width: 32px; height: 32px; min-height: 32px; padding: 0; box-sizing: border-box; display: grid; place-items: center; border: 1px solid var(--hl-border); border-radius: 999px; background: var(--hl-surface); color: var(--hl-text); cursor: pointer; }\n.hl-notify button.hl-notify__bell:hover:not(:disabled), .hl-notify button.hl-notify__bell[aria-expanded=\"true\"] { border-color: var(--hl-accent); }\n.hl-notify__badge { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--hl-accent); color: var(--hl-on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }\n.hl-notify__popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 360px; max-width: calc(100vw - 32px); max-height: 70vh; display: flex; flex-direction: column; background: var(--hl-surface); color: var(--hl-text); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); box-shadow: 0 12px 32px color-mix(in srgb, var(--hl-text) 18%, transparent); font-size: 13px; overflow: hidden; }\n.hl-notify__popover:focus { outline: none; }\n.hl-notify__popover:focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 2px; }\n.hl-notify__head, .hl-notify__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }\n.hl-notify__head { border-bottom: 1px solid var(--hl-border); }\n.hl-notify__foot { border-top: 1px solid var(--hl-border); justify-content: center; }\n.hl-notify__popover .hl-notify__list { overflow-y: auto; }\n.hl-notify__list { list-style: none; margin: 0; padding: 0; }\n.hl-notify__item + .hl-notify__item { border-top: 1px solid var(--hl-border); }\n.hl-notify__item button.hl-notify__open, .hl-notify__item button.hl-notify__open:hover:not(:disabled) { width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px 8px 24px; position: relative; border: 0; border-radius: 0; background: transparent; color: var(--hl-text); font: inherit; font-size: 13px; font-weight: 400; text-align: left; cursor: pointer; }\n.hl-notify__item button.hl-notify__open:hover:not(:disabled) { background: var(--hl-faint); }\n.hl-notify__item--unread button.hl-notify__open::before { content: \"\"; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 999px; background: var(--hl-accent); }\n.hl-notify__item strong { font-weight: 500; }\n.hl-notify__item--unread strong { font-weight: 700; }\n.hl-notify__body { color: var(--hl-muted); }\n.hl-notify__item time { color: var(--hl-muted); font-size: 12px; }\n.hl-notify__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n.hl-notify button.hl-notify__action, .hl-notify-page button.hl-notify__action, .hl-notify-prefs button.hl-notify__action, .hl-notify-page button.hl-notify__more { min-height: 30px; padding: 0 10px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-control); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }\n.hl-notify .hl-notify__head button.hl-notify__action { border-color: transparent; color: var(--hl-accent-text); }\n.hl-notify button.hl-notify__action:hover:not(:disabled), .hl-notify-page button.hl-notify__more:hover:not(:disabled), .hl-notify-prefs button.hl-notify__action:hover:not(:disabled) { border-color: var(--hl-accent); }\n.hl-notify button.hl-notify__action:disabled, .hl-notify-page button.hl-notify__more:disabled, .hl-notify-prefs button.hl-notify__action:disabled { opacity: .55; cursor: not-allowed; }\n.hl-notify__error { margin: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hl-danger); font-size: 13px; }\n.hl-notify__popover .empty, .hl-notify-page .empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; color: var(--hl-muted); text-align: center; }\n.hl-notify__popover .empty strong, .hl-notify-page .empty strong { color: var(--hl-text); }\n.hl-notify-page { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }\n.hl-notify-page .hl-notify__list { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow: hidden; }\n.hl-notify-page .hl-notify__more { align-self: center; }\n.hl-notify-page .hl-notify__error { margin: 0; }\n.hl-notify__segments { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hl-faint); }\n.hl-notify__segments button, .hl-notify__segments button:hover:not(:disabled) { min-height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--hl-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }\n.hl-notify__segments button:hover:not(:disabled) { color: var(--hl-text); }\n.hl-notify__segments button[aria-pressed=\"true\"], .hl-notify__segments button[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--hl-surface); color: var(--hl-text); }\n.hl-notify-prefs { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }\n.hl-notify-prefs .hl-notify__error { margin: 0; }\n.hl-notify-prefs .hl-notify__table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }\n.hl-notify-prefs table { width: 100%; border-collapse: collapse; color: var(--hl-text); }\n.hl-notify-prefs th, .hl-notify-prefs td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; font-weight: 400; }\n.hl-notify-prefs thead th { color: var(--hl-muted); font-size: 12px; font-weight: 700; }\n.hl-notify-prefs thead th + th, .hl-notify-prefs td { width: 120px; text-align: right; }\n.hl-notify-prefs th:last-child, .hl-notify-prefs td:last-child { padding-right: 32px; }\n.hl-notify-prefs th.hl-notify__group { padding-right: 14px; }\n.hl-notify-prefs th.hl-notify__group { padding-top: 12px; background: var(--hl-faint); font-weight: 700; }\n.hl-notify__cell { display: inline-flex; align-items: center; gap: 8px; }\n.hl-notify__required { color: var(--hl-muted); font-size: 12px; }\n.hl-notify-prefs .hl-notify__switch { appearance: none; position: relative; width: 32px; height: 18px; min-height: 0; padding: 0; border: 0; margin: 0; flex: none; border-radius: 999px; background: var(--hl-muted); cursor: pointer; transition: background .15s; }\n.hl-notify-prefs .hl-notify__switch::before { content: \"\"; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: var(--hl-surface); transition: transform .15s; }\n.hl-notify-prefs .hl-notify__switch:checked { background: var(--hl-accent); }\n.hl-notify-prefs .hl-notify__switch:checked::before { transform: translateX(14px); background: var(--hl-on-accent); }\n.hl-notify-prefs .hl-notify__switch:disabled { opacity: .55; cursor: not-allowed; }\n.hl-notify__device { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 32px 12px 14px; background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); }\n.hl-notify__device-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.hl-notify-prefs .hl-notify__device-text label { display: block; min-height: 0; font-size: 13px; font-weight: 700; color: var(--hl-text); cursor: pointer; }\n.hl-notify__device > .hl-notify__error { flex-basis: 100%; margin: 0; }\n.hl-notify__note { margin: 0; color: var(--hl-muted); }\n@media (max-width: 600px) { .hl-notify__popover { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; width: auto; max-width: none; } }\n@media (prefers-reduced-motion: reduce) { .hl-notify-prefs .hl-notify__switch, .hl-notify-prefs .hl-notify__switch::before { transition: none; } }\n";
|
|
@@ -62,6 +62,7 @@ export const NOTIFICATIONS_CSS = `
|
|
|
62
62
|
.hl-notify-prefs .hl-notify__device-text label { display: block; min-height: 0; font-size: 13px; font-weight: 700; color: var(--hl-text); cursor: pointer; }
|
|
63
63
|
.hl-notify__device > .hl-notify__error { flex-basis: 100%; margin: 0; }
|
|
64
64
|
.hl-notify__note { margin: 0; color: var(--hl-muted); }
|
|
65
|
+
@media (max-width: 600px) { .hl-notify__popover { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; width: auto; max-width: none; } }
|
|
65
66
|
@media (prefers-reduced-motion: reduce) { .hl-notify-prefs .hl-notify__switch, .hl-notify-prefs .hl-notify__switch::before { transition: none; } }
|
|
66
67
|
`;
|
|
67
68
|
//# sourceMappingURL=notifications-css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-css.js","sourceRoot":"","sources":["../../src/notifications/notifications-css.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"notifications-css.js","sourceRoot":"","sources":["../../src/notifications/notifications-css.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DhC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haatlabs-core/ui",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
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.25.
|
|
71
|
-
"@haatlabs-core/tsconfig": "0.25.
|
|
70
|
+
"@haatlabs-core/vitest-config": "0.25.3",
|
|
71
|
+
"@haatlabs-core/tsconfig": "0.25.3"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@haatlabs-core/auth-contracts": "0.25.
|
|
74
|
+
"@haatlabs-core/auth-contracts": "0.25.3"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|