@celestia-island/hikari 0.40.11 → 0.40.13
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/package.json +1 -1
- package/src/components/HkDrawer.scss +11 -12
- package/src/components/HkErrorBoundary.test.tsx +103 -0
- package/src/components/HkErrorBoundary.tsx +65 -43
- package/src/components/HkErrorLanding.scss +9 -0
- package/src/components/HkErrorLanding.test.tsx +8 -0
- package/src/components/HkErrorLanding.tsx +12 -1
- package/src/components/HkModal.scss +12 -14
- package/src/components/HkPopover.scss +7 -0
- package/src/components/HkPopover.tsx +20 -9
- package/src/components/HkSelect.scss +8 -0
- package/src/components/HkSelectPanel.tsx +6 -1
- package/src/components/_scrim-fade.scss +59 -0
- package/src/components/scrim-fade.contract.test.ts +80 -0
- package/src/errorReporting/HkErrorReportingOverlay.scss +9 -0
- package/src/errorReporting/HkErrorReportingOverlay.tsx +103 -0
- package/src/errorReporting/index.test.tsx +165 -0
- package/src/errorReporting/index.ts +158 -0
- package/src/errorReporting/state.ts +104 -0
- package/src/i18n/locales/ar/errors.json +3 -1
- package/src/i18n/locales/de/errors.json +3 -1
- package/src/i18n/locales/en/errors.json +3 -1
- package/src/i18n/locales/es/errors.json +3 -1
- package/src/i18n/locales/fr/errors.json +3 -1
- package/src/i18n/locales/ja/errors.json +3 -1
- package/src/i18n/locales/ko/errors.json +3 -1
- package/src/i18n/locales/pt/errors.json +3 -1
- package/src/i18n/locales/ru/errors.json +3 -1
- package/src/i18n/locales/zh-Hans/errors.json +3 -1
- package/src/i18n/locales/zh-Hant/errors.json +3 -1
- package/src/index.ts +10 -0
- package/src/components/HkErrorBoundary.scss +0 -67
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Use theme variables with namespace to avoid conflicts
|
|
2
|
-
@use "./hikari-vars" as vars;
|
|
3
|
-
|
|
4
|
-
.hk-error-boundary {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: 2rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.hk-error-boundary-card {
|
|
12
|
-
max-width: 28rem;
|
|
13
|
-
width: 100%;
|
|
14
|
-
background: rgb(from var(--hi-color-error, #f85149) r g b / 0.06);
|
|
15
|
-
border: 1px solid rgb(from var(--hi-color-error, #f85149) r g b / 0.18);
|
|
16
|
-
border-radius: 8px;
|
|
17
|
-
padding: 1.25rem;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 0.75rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.hk-error-boundary-header {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: 0.5rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.hk-error-boundary-icon {
|
|
30
|
-
color: var(--hi-color-error, #f85149);
|
|
31
|
-
flex-shrink: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.hk-error-boundary-label {
|
|
35
|
-
font-size: 0.75rem;
|
|
36
|
-
font-weight: 600;
|
|
37
|
-
color: var(--hi-color-error, #f85149);
|
|
38
|
-
letter-spacing: 0.02em;
|
|
39
|
-
text-transform: uppercase;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.hk-error-boundary-tag {
|
|
43
|
-
font-size: 0.75rem;
|
|
44
|
-
font-weight: 500;
|
|
45
|
-
padding: 0.0625rem 0.375rem;
|
|
46
|
-
border-radius: 4px;
|
|
47
|
-
background: rgb(from var(--hi-color-error, #f85149) r g b / 0.12);
|
|
48
|
-
color: var(--hi-color-error, #f85149);
|
|
49
|
-
font-family: var(--font-mono, vars.$hikari-font-family-mono);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.hk-error-boundary-msg {
|
|
53
|
-
font-size: 0.8125rem;
|
|
54
|
-
line-height: 1.5;
|
|
55
|
-
color: var(--hi-color-text-primary, #c9d1d9);
|
|
56
|
-
opacity: 0.85;
|
|
57
|
-
word-break: break-word;
|
|
58
|
-
white-space: pre-wrap;
|
|
59
|
-
font-family: var(--font-mono, vars.$hikari-font-family-mono);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.hk-error-boundary-actions {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: flex-end;
|
|
66
|
-
gap: 0.5rem;
|
|
67
|
-
}
|