@xynolog/react-ui 0.0.0-stage → 0.8.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.
- package/LICENSE +201 -0
- package/README.md +359 -2
- package/dist/PdfAnnotationCanvas.client-S64VRLUN.css +193 -0
- package/dist/PdfAnnotationCanvas.client-V7R4NXFO.js +799 -0
- package/dist/ar-AIV7P4FL.js +594 -0
- package/dist/bn-J2OR57PB.js +594 -0
- package/dist/chunk-4L3TYOIV.js +172 -0
- package/dist/chunk-BM76QBIO.js +594 -0
- package/dist/chunk-D2O46PZQ.js +240 -0
- package/dist/chunk-O23TLLXW.js +42 -0
- package/dist/chunk-WGTUIB6C.js +304 -0
- package/dist/cs-JNEAMHFB.js +594 -0
- package/dist/da-UY5ZRVTZ.js +594 -0
- package/dist/de-EETVXC42.js +594 -0
- package/dist/el-S5YKDMTL.js +594 -0
- package/dist/en-3YQWF45H.js +61 -0
- package/dist/es-GHA7S27R.js +594 -0
- package/dist/fa-JTR3GF6I.js +594 -0
- package/dist/fi-CQZ7BW57.js +594 -0
- package/dist/fr-OJH2WIY7.js +594 -0
- package/dist/he-2DBXWA2V.js +594 -0
- package/dist/hi-NZP7B55I.js +594 -0
- package/dist/id-4KXFKWOI.js +594 -0
- package/dist/index.css +4134 -0
- package/dist/index.d.ts +4040 -0
- package/dist/index.js +29638 -0
- package/dist/it-XBMYGKKY.js +594 -0
- package/dist/ja-OVHZS3EH.js +594 -0
- package/dist/ko-NW2MVM5L.js +594 -0
- package/dist/ms-RXLPBZLK.js +594 -0
- package/dist/nl-77CTBEDA.js +594 -0
- package/dist/no-RAPO56SE.js +594 -0
- package/dist/pl-XCFXZCTT.js +594 -0
- package/dist/pt-EMBE27IS.js +594 -0
- package/dist/ro-M7QLJBYN.js +594 -0
- package/dist/sv-ST6CITQY.js +594 -0
- package/dist/test-utils.css +112 -0
- package/dist/test-utils.d.ts +126 -0
- package/dist/test-utils.js +13119 -0
- package/dist/th-EEQGL3G7.js +594 -0
- package/dist/tr-5FYHZQKD.js +594 -0
- package/dist/uk-VTWDC467.js +594 -0
- package/dist/vi-ISBKJ66X.js +594 -0
- package/dist/zh-2AW2N66Z.js +594 -0
- package/package.json +132 -4
- package/src/components/ProtectedErrorBoundary.css +121 -0
- package/src/components/SessionExpiryBanner.css +67 -0
- package/src/components/StatusDisplay.css +439 -0
- package/src/components/Toast.css +136 -0
- package/src/components/annotation/annotation-entries.css +138 -0
- package/src/components/annotation/annotations.css +93 -0
- package/src/components/annotation/references.css +300 -0
- package/src/components/branding/Branding.css +129 -0
- package/src/components/error-states/errors.css +34 -0
- package/src/components/layout/Header.css +99 -0
- package/src/components/layout/LeftSidebar.css +115 -0
- package/src/components/layout/ResizeHandle.css +110 -0
- package/src/components/layout/SkipLinks.css +84 -0
- package/src/components/loading-states/loading.css +42 -0
- package/src/components/modals/SearchModal.css +1019 -0
- package/src/components/modals/modals.css +655 -0
- package/src/components/navigation/CollapsibleResourceNavigation.css +10 -0
- package/src/components/navigation/NavigationMenu.css +59 -0
- package/src/components/navigation/NavigationTabs.css +466 -0
- package/src/components/navigation/SimpleNavigation.css +9 -0
- package/src/components/pdf-annotation/PdfAnnotationCanvas.css +288 -0
- package/src/components/resource/panels/CollaborationPanel.css +184 -0
- package/src/components/resource/panels/DelegateSection.css +330 -0
- package/src/components/resource/panels/JsonLdPanel.css +37 -0
- package/src/components/resource/panels/ReferencesPanel.css +108 -0
- package/src/components/resource/panels/ResourceInfoPanel.css +183 -0
- package/src/components/resource/panels/StatisticsPanel.css +127 -0
- package/src/components/resource/panels/UnifiedAnnotationsPanel.css +129 -0
- package/src/components/settings/SettingsPanel.css +92 -0
- package/src/components/toolbar/Toolbar.css +245 -0
- package/src/features/auth/auth.css +120 -0
- package/src/styles/base/reset.css +105 -0
- package/src/styles/base/utilities.css +35 -0
- package/src/styles/core/badges.css +17 -0
- package/src/styles/core/buttons.css +772 -0
- package/src/styles/core/checkboxes.css +85 -0
- package/src/styles/core/forms.css +237 -0
- package/src/styles/core/index.css +43 -0
- package/src/styles/core/indicators.css +24 -0
- package/src/styles/core/inputs.css +164 -0
- package/src/styles/core/progress.css +85 -0
- package/src/styles/core/selects.css +119 -0
- package/src/styles/core/sliders.css +180 -0
- package/src/styles/core/tags.css +86 -0
- package/src/styles/core/textareas.css +104 -0
- package/src/styles/core/toggles.css +82 -0
- package/src/styles/features/compose.css +341 -0
- package/src/styles/features/entity-tags.css +140 -0
- package/src/styles/features/recent-docs.css +97 -0
- package/src/styles/features/resource-discovery.css +349 -0
- package/src/styles/features/resource-viewer.css +609 -0
- package/src/styles/features/resource.css +483 -0
- package/src/styles/features/schemas.css +222 -0
- package/src/styles/index.css +84 -0
- package/src/styles/layout/layout.css +28 -0
- package/src/styles/motivations/motivation-assessment.css +179 -0
- package/src/styles/motivations/motivation-comment.css +164 -0
- package/src/styles/motivations/motivation-highlight.css +132 -0
- package/src/styles/motivations/motivation-reference.css +167 -0
- package/src/styles/motivations/motivation-tag.css +182 -0
- package/src/styles/panels/history-panel.css +212 -0
- package/src/styles/panels/user-panel.css +21 -0
- package/src/styles/patterns/cards.css +26 -0
- package/src/styles/patterns/panel-helpers.css +32 -0
- package/src/styles/patterns/panels-base.css +272 -0
- package/src/styles/utilities/contrast.css +280 -0
- package/src/styles/utilities/focus-extended.css +276 -0
- package/src/styles/utilities/focus.css +41 -0
- package/src/styles/utilities/motion-overrides.css +286 -0
- package/src/styles/utilities/motion.css +184 -0
- package/src/styles/utilities/semantic-indicators.css +254 -0
- package/src/styles/variables.css +410 -0
- package/translations/ar.json +534 -0
- package/translations/bn.json +534 -0
- package/translations/cs.json +534 -0
- package/translations/da.json +534 -0
- package/translations/de.json +534 -0
- package/translations/el.json +534 -0
- package/translations/en.json +534 -0
- package/translations/es.json +534 -0
- package/translations/fa.json +534 -0
- package/translations/fi.json +534 -0
- package/translations/fr.json +534 -0
- package/translations/he.json +534 -0
- package/translations/hi.json +534 -0
- package/translations/id.json +534 -0
- package/translations/it.json +534 -0
- package/translations/ja.json +534 -0
- package/translations/ko.json +534 -0
- package/translations/ms.json +534 -0
- package/translations/nl.json +534 -0
- package/translations/no.json +534 -0
- package/translations/pl.json +534 -0
- package/translations/pt.json +534 -0
- package/translations/ro.json +534 -0
- package/translations/sv.json +534 -0
- package/translations/th.json +534 -0
- package/translations/tr.json +534 -0
- package/translations/uk.json +534 -0
- package/translations/vi.json +534 -0
- package/translations/zh.json +534 -0
package/package.json
CHANGED
|
@@ -1,6 +1,134 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynolog/react-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=24.15.0"
|
|
6
|
+
},
|
|
7
|
+
"description": "React components and hooks for Xynolog",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./test-utils": {
|
|
18
|
+
"types": "./dist/test-utils.d.ts",
|
|
19
|
+
"import": "./dist/test-utils.js",
|
|
20
|
+
"default": "./dist/test-utils.js"
|
|
21
|
+
},
|
|
22
|
+
"./styles": "./src/styles/index.css",
|
|
23
|
+
"./styles/index.css": "./src/styles/index.css",
|
|
24
|
+
"./styles/variables.css": "./src/styles/variables.css",
|
|
25
|
+
"./translations/*": "./translations/*.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"!dist/**/*.map",
|
|
30
|
+
"src/styles",
|
|
31
|
+
"src/components/**/*.css",
|
|
32
|
+
"src/features/**/*.css",
|
|
33
|
+
"translations",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"lint:css": "stylelint 'src/**/*.css'",
|
|
38
|
+
"build": "npm run lint:css && npm run typecheck && tsup && tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs && rm -rf dist-types",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"clean": "rm -rf dist dist-types",
|
|
41
|
+
"audit:compliance": "./scripts/generate-compliance-report.sh",
|
|
42
|
+
"audit:compliance:tests": "./scripts/generate-test-compliance-report.sh",
|
|
43
|
+
"test": "npm run test:split",
|
|
44
|
+
"test:watch": "vitest",
|
|
45
|
+
"test:coverage": "npm run test:shard:1 -- --coverage --coverage.reportsDirectory=coverage/shard-1 && npm run test:shard:2 -- --coverage --coverage.reportsDirectory=coverage/shard-2 && npm run test:shard:3 -- --coverage --coverage.reportsDirectory=coverage/shard-3 && npm run test:shard:4 -- --coverage --coverage.reportsDirectory=coverage/shard-4",
|
|
46
|
+
"test:a11y": "NODE_OPTIONS=--max-old-space-size=8192 vitest run -t \"Accessibility\"",
|
|
47
|
+
"test:a11y:watch": "vitest -t \"Accessibility\"",
|
|
48
|
+
"test:components:panels": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/resource/panels",
|
|
49
|
+
"test:components:navigation": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/navigation",
|
|
50
|
+
"test:components:layout": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/layout src/components/branding",
|
|
51
|
+
"test:components:states": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/error-states src/components/loading-states",
|
|
52
|
+
"test:components:modals:basic": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/modals/__tests__/SearchModal.basic.test.tsx",
|
|
53
|
+
"test:components:modals:keyboard": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/modals/__tests__/SearchModal.keyboard.test.tsx",
|
|
54
|
+
"test:components:modals:accessibility": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/modals/__tests__/SearchModal.accessibility.test.tsx",
|
|
55
|
+
"test:components:modals:auth": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/modals/__tests__/SessionEndedModal.test.tsx src/components/modals/__tests__/PermissionDeniedModal.test.tsx",
|
|
56
|
+
"test:components:modals": "npm run test:components:modals:basic && npm run test:components:modals:keyboard && npm run test:components:modals:accessibility && npm run test:components:modals:auth",
|
|
57
|
+
"test:components:other": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components/annotation src/components/Button src/components/resource/__tests__ src/components/__tests__",
|
|
58
|
+
"test:features": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/features",
|
|
59
|
+
"test:other": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/contexts src/hooks src/lib",
|
|
60
|
+
"test:shard:1": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --shard=1/4",
|
|
61
|
+
"test:shard:2": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --shard=2/4",
|
|
62
|
+
"test:shard:3": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --shard=3/4",
|
|
63
|
+
"test:shard:4": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --shard=4/4",
|
|
64
|
+
"test:split": "npm run test:shard:1 && npm run test:shard:2 && npm run test:shard:3 && npm run test:shard:4"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "^19.2.8",
|
|
68
|
+
"react-dom": "^19.2.8",
|
|
69
|
+
"vitest": "^4.0.0 || ^5.0.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"vitest": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@headlessui/react": "^2.2.10",
|
|
78
|
+
"@testing-library/dom": "^10.4.2",
|
|
79
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
80
|
+
"@testing-library/react": "^16.3.3",
|
|
81
|
+
"@testing-library/user-event": "^14.6.8",
|
|
82
|
+
"@types/react": "^19.3.0",
|
|
83
|
+
"@types/react-dom": "^19.3.0",
|
|
84
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
85
|
+
"autoprefixer": "^10.6.2",
|
|
86
|
+
"axe-core": "^4.14.0",
|
|
87
|
+
"cssnano": "^9.9.0",
|
|
88
|
+
"fast-check": "^4.10.0",
|
|
89
|
+
"jest-axe": "^11.0.0",
|
|
90
|
+
"jsdom": "^31.0.0",
|
|
91
|
+
"postcss-import": "^17.0.1",
|
|
92
|
+
"react": "^19.3.1",
|
|
93
|
+
"react-dom": "^19.3.1",
|
|
94
|
+
"rollup": "^4.67.5",
|
|
95
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
96
|
+
"tsup": "^9.0.0",
|
|
97
|
+
"typescript": "^6.0.2",
|
|
98
|
+
"vitest": "^5.1.0"
|
|
99
|
+
},
|
|
100
|
+
"publishConfig": {
|
|
101
|
+
"access": "public"
|
|
102
|
+
},
|
|
103
|
+
"author": "Xynolog",
|
|
104
|
+
"license": "Apache-2.0",
|
|
105
|
+
"repository": {
|
|
106
|
+
"type": "git",
|
|
107
|
+
"url": "git+https://github.com/xynolog/sdk.git",
|
|
108
|
+
"directory": "typescript/react-ui"
|
|
109
|
+
},
|
|
110
|
+
"homepage": "https://github.com/xynolog/sdk#readme",
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/xynolog/sdk/issues"
|
|
113
|
+
},
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
116
|
+
"@codemirror/lang-markdown": "^6.5.2",
|
|
117
|
+
"@codemirror/language": "^6.13.1",
|
|
118
|
+
"@codemirror/state": "^6.7.6",
|
|
119
|
+
"@codemirror/view": "^6.43.15",
|
|
120
|
+
"@dnd-kit/core": "^6.3.1",
|
|
121
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
122
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
123
|
+
"@heroicons/react": "^2.2.0",
|
|
124
|
+
"@xynolog/core": "0.8.1",
|
|
125
|
+
"@xynolog/http-transport": "0.8.1",
|
|
126
|
+
"@xynolog/sdk": "0.8.1",
|
|
127
|
+
"clsx": "^2.1.1",
|
|
128
|
+
"pdfjs-dist": "^6.5.438",
|
|
129
|
+
"react-error-boundary": "^6.1.6",
|
|
130
|
+
"react-markdown": "^10.1.0",
|
|
131
|
+
"remark-gfm": "^4.0.1",
|
|
132
|
+
"use-sync-external-store": "^1.7.0"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
ProtectedErrorBoundary Component Styles
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
.xynolog-protected-error-boundary-container {
|
|
6
|
+
min-height: 400px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: var(--xynolog-spacing-md);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.xynolog-protected-error-boundary-card {
|
|
14
|
+
max-width: 28rem;
|
|
15
|
+
width: 100%;
|
|
16
|
+
background-color: var(--xynolog-color-white);
|
|
17
|
+
border-radius: var(--xynolog-radius-lg);
|
|
18
|
+
box-shadow: var(--xynolog-shadow-lg);
|
|
19
|
+
padding: var(--xynolog-spacing-lg);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-card {
|
|
23
|
+
background-color: var(--xynolog-color-gray-800);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.xynolog-protected-error-boundary-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 0.75rem;
|
|
30
|
+
margin-bottom: var(--xynolog-spacing-md);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.xynolog-protected-error-boundary-icon-wrapper {
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: 2.5rem;
|
|
39
|
+
height: 2.5rem;
|
|
40
|
+
border-radius: var(--xynolog-radius-full);
|
|
41
|
+
background-color: var(--xynolog-color-red-100);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-icon-wrapper {
|
|
45
|
+
background-color: rgba(127, 29, 29, 0.3);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.xynolog-protected-error-boundary-icon {
|
|
49
|
+
width: 1.5rem;
|
|
50
|
+
height: 1.5rem;
|
|
51
|
+
color: var(--xynolog-color-red-600);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-icon {
|
|
55
|
+
color: var(--xynolog-color-red-400);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.xynolog-protected-error-boundary-title {
|
|
59
|
+
font-size: var(--xynolog-text-xl);
|
|
60
|
+
font-weight: var(--xynolog-font-semibold);
|
|
61
|
+
color: var(--xynolog-color-gray-900);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-title {
|
|
65
|
+
color: var(--xynolog-color-white);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.xynolog-protected-error-boundary-message {
|
|
69
|
+
color: var(--xynolog-color-gray-600);
|
|
70
|
+
margin-bottom: var(--xynolog-spacing-lg);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-message {
|
|
74
|
+
color: var(--xynolog-color-gray-300);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.xynolog-protected-error-boundary-details {
|
|
78
|
+
margin-bottom: var(--xynolog-spacing-md);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.xynolog-protected-error-boundary-summary {
|
|
82
|
+
font-size: var(--xynolog-text-sm);
|
|
83
|
+
color: var(--xynolog-color-gray-500);
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.xynolog-protected-error-boundary-summary:hover {
|
|
88
|
+
color: var(--xynolog-color-gray-700);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* gray-500 is thin for this size on a near-black surface, and the hover below
|
|
92
|
+
already lifts to gray-300 — resting darker than its own hover target. */
|
|
93
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-summary {
|
|
94
|
+
color: var(--xynolog-color-gray-400);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-summary:hover {
|
|
98
|
+
color: var(--xynolog-color-gray-300);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.xynolog-protected-error-boundary-stack {
|
|
102
|
+
margin-top: var(--xynolog-spacing-sm);
|
|
103
|
+
font-size: var(--xynolog-text-xs);
|
|
104
|
+
background-color: var(--xynolog-color-gray-100);
|
|
105
|
+
padding: var(--xynolog-spacing-sm);
|
|
106
|
+
border-radius: var(--xynolog-radius-sm);
|
|
107
|
+
overflow: auto;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-theme="dark"] .xynolog-protected-error-boundary-stack {
|
|
111
|
+
background-color: var(--xynolog-color-gray-900);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.xynolog-protected-error-boundary-actions {
|
|
115
|
+
display: flex;
|
|
116
|
+
gap: 0.75rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.xynolog-protected-error-boundary-actions .xynolog-button {
|
|
120
|
+
flex: 1 1 0;
|
|
121
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SessionExpiryBanner
|
|
3
|
+
*
|
|
4
|
+
* A warning that the session is about to end, shown above the app.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.xynolog-session-expiry-banner {
|
|
8
|
+
padding: 0.5rem 1rem;
|
|
9
|
+
background-color: var(--xynolog-color-warning-light);
|
|
10
|
+
border-bottom: 1px solid var(--xynolog-color-warning);
|
|
11
|
+
color: var(--xynolog-color-warning-dark);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-theme="dark"] .xynolog-session-expiry-banner {
|
|
15
|
+
/* The light fill is unreadable on a dark ground; the border and text carry
|
|
16
|
+
the warning instead. */
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
color: var(--xynolog-color-warning-light);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.xynolog-session-expiry-content {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
gap: 1rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.xynolog-session-expiry-message {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 0.5rem;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.xynolog-session-expiry-icon {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.xynolog-session-expiry-text {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: var(--xynolog-text-sm);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.xynolog-session-expiry-label {
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.xynolog-session-expiry-dismiss {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
padding: 0.25rem;
|
|
53
|
+
border: none;
|
|
54
|
+
background: none;
|
|
55
|
+
color: inherit;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
border-radius: var(--xynolog-radius-sm);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.xynolog-session-expiry-dismiss:hover {
|
|
61
|
+
background-color: var(--xynolog-bg-hover);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.xynolog-session-expiry-dismiss:focus-visible {
|
|
65
|
+
outline: 2px solid var(--xynolog-color-primary-500);
|
|
66
|
+
outline-offset: 2px;
|
|
67
|
+
}
|