@celestia-island/hikari 0.55.76 → 0.55.78
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/HkFilterBar.scss +59 -0
- package/src/components/HkFilterBar.test.tsx +130 -0
- package/src/components/HkFilterBar.tsx +143 -0
- package/src/components/HkGaugeRing.tsx +13 -1
- package/src/components/HkSelectionGrid.scss +91 -0
- package/src/components/HkSelectionGrid.test.tsx +68 -0
- package/src/components/HkSelectionGrid.tsx +56 -1
- package/src/components/HkSettingsDialog.scss +12 -1
- package/src/components/HkStatCard.scss +107 -0
- package/src/components/HkStatCard.tsx +173 -21
- package/src/components/HkStatCard.variants.test.tsx +210 -0
- package/src/components/HkStepGuide.scss +177 -0
- package/src/components/HkStepGuide.test.tsx +81 -0
- package/src/components/HkStepGuide.tsx +129 -0
- package/src/components/HkThemeToggle.test.ts +23 -0
- package/src/components/HkThemeToggle.tsx +11 -2
- package/src/i18n/locales/ar/components.json +5 -1
- package/src/i18n/locales/de/components.json +5 -1
- package/src/i18n/locales/en/components.json +5 -1
- package/src/i18n/locales/es/components.json +5 -1
- package/src/i18n/locales/fr/components.json +5 -1
- package/src/i18n/locales/ja/components.json +5 -1
- package/src/i18n/locales/ko/components.json +5 -1
- package/src/i18n/locales/pt/components.json +5 -1
- package/src/i18n/locales/ru/components.json +5 -1
- package/src/i18n/locales/zh-Hans/components.json +5 -1
- package/src/i18n/locales/zh-Hant/components.json +5 -1
- package/src/index.ts +6 -1
- package/src/styles/admin-tokens.scss +21 -0
- package/src/theme/presets.ts +7 -0
|
@@ -193,7 +193,10 @@
|
|
|
193
193
|
"hikari::statusBar.region.CN": "中國大陸",
|
|
194
194
|
"hikari::statusBar.region.HK": "中國香港",
|
|
195
195
|
"hikari::statusBar.region.MO": "中國澳門",
|
|
196
|
-
"hikari::statusBar.region.TW": "中國台灣"
|
|
196
|
+
"hikari::statusBar.region.TW": "中國台灣",
|
|
197
|
+
"hikari::filterBar.trigger": "篩選",
|
|
198
|
+
"hikari::filterBar.apply": "套用",
|
|
199
|
+
"hikari::filterBar.reset": "重設"
|
|
197
200
|
},
|
|
198
201
|
"hikari::affixPicker.title": "選項",
|
|
199
202
|
"hikari::affixPicker.search": "搜尋",
|
|
@@ -224,6 +227,7 @@
|
|
|
224
227
|
"hikari::tagInput.reorder": "拖曳排序 — {label}",
|
|
225
228
|
"hikari::modal.hiddenLayers": "隱藏層級",
|
|
226
229
|
"hikari::theme.modeTabHint": "切換這裡編輯的是對應模式的調色盤;要切換應用整體深/淺,請用主題彈窗頂部的模式條。",
|
|
230
|
+
"hikari::theme.defaultThemeName": "預設",
|
|
227
231
|
"hikari::emptyState.loading": "載入中",
|
|
228
232
|
"hikari::mfaVerify.title": "驗證帳戶",
|
|
229
233
|
"hikari::mfaVerify.verifySubtitle": "正在驗證 {name} 的身分,請完成驗證以繼續登入",
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,8 @@ export {
|
|
|
25
25
|
} from "./components/HkDockBar";
|
|
26
26
|
export { default as HDrawer } from "./components/HkDrawer";
|
|
27
27
|
export { default as HEmptyState } from "./components/HkEmptyState";
|
|
28
|
+
export { default as HStepGuide } from "./components/HkStepGuide";
|
|
29
|
+
export type { StepGuideItem } from "./components/HkStepGuide";
|
|
28
30
|
export { default as HExpansionPanel } from "./components/HkExpansionPanel";
|
|
29
31
|
export { default as HFab, type HFabAction } from "./components/HkFab";
|
|
30
32
|
export { default as HIcon } from "./components/HkIcon";
|
|
@@ -492,7 +494,7 @@ export type { ChallengeDescriptor } from "./utils/powNonce";
|
|
|
492
494
|
export { HkAdminTablePage as HAdminTablePage } from "./components/HkAdminTablePage";
|
|
493
495
|
export type { HTableColumn } from "./components/HkAdminTablePage";
|
|
494
496
|
export { HkPageHeader as HPageHeader } from "./components/HkPageHeader";
|
|
495
|
-
export { HkStatCard as HStatCard
|
|
497
|
+
export { HkStatCard as HStatCard } from "./components/HkStatCard";
|
|
496
498
|
export { HkStatusPill as HStatusPill, type PillState } from "./components/HkStatusPill";
|
|
497
499
|
export { HkShareBar as HShareBar } from "./components/HkShareBar";
|
|
498
500
|
export { HkSecretRevealModal as HSecretRevealModal } from "./components/HkSecretRevealModal";
|
|
@@ -749,7 +751,10 @@ export { HkLocalePicker as HkLocalePicker } from "./components/HkLocalePicker";
|
|
|
749
751
|
export { HkAdminTablePage as HkAdminTablePage } from "./components/HkAdminTablePage";
|
|
750
752
|
export { HkPageHeader as HkPageHeader } from "./components/HkPageHeader";
|
|
751
753
|
export { HkStatCard as HkStatCard } from "./components/HkStatCard";
|
|
754
|
+
export { statToneColor, type StatTone as StatTone, type StatVariant as StatVariant } from "./components/HkStatCard";
|
|
752
755
|
export { HkStatusPill as HkStatusPill } from "./components/HkStatusPill";
|
|
756
|
+
export { default as HkFilterBar } from "./components/HkFilterBar";
|
|
757
|
+
export { default as HFilterBar } from "./components/HkFilterBar";
|
|
753
758
|
export { HkShareBar as HkShareBar } from "./components/HkShareBar";
|
|
754
759
|
export { HkSecretRevealModal as HkSecretRevealModal } from "./components/HkSecretRevealModal";
|
|
755
760
|
export { HkCaptchaWidget as HkCaptchaWidget } from "./components/HkCaptchaWidget";
|
|
@@ -1040,3 +1040,24 @@
|
|
|
1040
1040
|
.a-auth-page {
|
|
1041
1041
|
min-height: calc(100vh - var(--s-footer-height, 3rem));
|
|
1042
1042
|
}
|
|
1043
|
+
|
|
1044
|
+
// ── adjacent-button spacing (the button-row grammar) ──────────────────────
|
|
1045
|
+
// EVERY horizontal run of buttons keeps a visible gap between neighbours —
|
|
1046
|
+
// two buttons touching reads as one split control (user direction
|
|
1047
|
+
// 2026-09-25). Hosts wrap their button clusters in .hk-button-row and get
|
|
1048
|
+
// the house rhythm; modal footers and step docks already carry their own
|
|
1049
|
+
// gap on the same token, so everything agrees.
|
|
1050
|
+
.hk-button-row {
|
|
1051
|
+
display: flex;
|
|
1052
|
+
flex-direction: row;
|
|
1053
|
+
align-items: center;
|
|
1054
|
+
gap: var(--space-12, 0.75rem);
|
|
1055
|
+
|
|
1056
|
+
&[data-compact] {
|
|
1057
|
+
gap: var(--space-8, 0.5rem);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
&[data-end] {
|
|
1061
|
+
justify-content: flex-end;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
package/src/theme/presets.ts
CHANGED
|
@@ -60,6 +60,13 @@ export interface ThemeTokenGroupModes {
|
|
|
60
60
|
|
|
61
61
|
export interface ThemePreset {
|
|
62
62
|
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* Display name: either a literal string or a message key resolvable in
|
|
65
|
+
* hikari's own i18n catalog (e.g. "hikari::theme.defaultThemeName").
|
|
66
|
+
* Theme rows resolve names through `t()`, which falls back to the raw
|
|
67
|
+
* string for anything that is not a key, so user-named customs and
|
|
68
|
+
* literal preset names render unchanged while keyed built-ins localize.
|
|
69
|
+
*/
|
|
63
70
|
name: string;
|
|
64
71
|
dark: ThemeSchemeTokens;
|
|
65
72
|
light: ThemeSchemeTokens;
|