@celestia-island/hikari 0.4.4 → 0.30.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.
Files changed (385) hide show
  1. package/README.md +1 -1
  2. package/package.json +22 -7
  3. package/src/DemoApp.tsx +491 -0
  4. package/src/animation/registerAnimations.test.ts +94 -0
  5. package/src/animation/registerAnimations.ts +103 -0
  6. package/src/components/HkAboutModal.scss +95 -0
  7. package/src/components/HkAboutModal.tsx +114 -0
  8. package/src/components/HkAdaptiveDialog.scss +22 -0
  9. package/src/components/HkAdaptiveDialog.test.tsx +271 -0
  10. package/src/components/HkAdaptiveDialog.tsx +167 -0
  11. package/src/components/HkAdminHeader.test.tsx +185 -0
  12. package/src/components/HkAdminHeader.tsx +308 -0
  13. package/src/components/HkAdminShell.test.tsx +237 -0
  14. package/src/components/HkAdminShell.tsx +129 -0
  15. package/src/components/HkAdminTablePage.tsx +70 -0
  16. package/src/components/HkAdminWidgets.test.ts +89 -0
  17. package/src/components/HkAlert.tsx +1 -1
  18. package/src/components/HkAltSignIn.scss +55 -0
  19. package/src/components/HkAltSignIn.test.tsx +88 -0
  20. package/src/components/HkAltSignIn.tsx +92 -0
  21. package/src/components/HkAttachmentModal.scss +49 -0
  22. package/src/components/HkAttachmentModal.tsx +318 -0
  23. package/src/components/HkAuthCard.tsx +50 -0
  24. package/src/components/HkAuthSubmitButton.scss +12 -0
  25. package/src/components/HkAuthSubmitButton.tsx +94 -0
  26. package/src/components/HkAvatar.scss +93 -0
  27. package/src/components/HkAvatar.tsx +2 -2
  28. package/src/components/HkBlockingToast.scss +123 -0
  29. package/src/components/HkBlockingToast.test.tsx +221 -0
  30. package/src/components/HkBlockingToast.tsx +182 -0
  31. package/src/components/HkBreadcrumb.scss +624 -0
  32. package/src/components/HkBreadcrumb.tsx +2 -2
  33. package/src/components/HkButton.scss +16 -2
  34. package/src/components/HkCaptchaModal.scss +14 -0
  35. package/src/components/HkCaptchaModal.tsx +62 -0
  36. package/src/components/HkCaptchaWidget.scss +30 -0
  37. package/src/components/HkCaptchaWidget.tsx +181 -0
  38. package/src/components/HkCard.scss +1 -1
  39. package/src/components/HkChatTypes.ts +65 -0
  40. package/src/components/HkCheckbox.scss +4 -9
  41. package/src/components/HkCheckbox.tsx +18 -6
  42. package/src/components/HkColorPicker.scss +120 -3
  43. package/src/components/HkColorPicker.tsx +130 -19
  44. package/src/components/HkColorPickerTouch.test.tsx +145 -0
  45. package/src/components/HkColorSchemeDialog.scss +52 -0
  46. package/src/components/HkColorSchemeDialog.test.ts +201 -0
  47. package/src/components/HkColorSchemeDialog.tsx +96 -0
  48. package/src/components/HkColorSchemeEditor.test.ts +270 -0
  49. package/src/components/HkColorSchemeEditor.tsx +410 -0
  50. package/src/components/HkConfirmDialog.scss +43 -3
  51. package/src/components/HkConfirmDialog.tsx +7 -4
  52. package/src/components/HkConnectionInfo.ts +80 -0
  53. package/src/components/HkConnectionStatus.tsx +158 -0
  54. package/src/components/HkCookieConsent.scss +22 -0
  55. package/src/components/HkCookieConsent.test.tsx +70 -0
  56. package/src/components/HkCookieConsent.tsx +56 -0
  57. package/src/components/HkCountdownDigit.tsx +105 -0
  58. package/src/components/HkDatePicker.scss +361 -0
  59. package/src/components/HkDatePicker.test.ts +459 -0
  60. package/src/components/HkDatePicker.tsx +568 -0
  61. package/src/components/HkDateTimePicker.scss +65 -37
  62. package/src/components/HkDateTimePicker.test.ts +344 -0
  63. package/src/components/HkDateTimePicker.tsx +249 -82
  64. package/src/components/HkDraggableGrid.scss +4 -1
  65. package/src/components/HkDraggableList.scss +4 -1
  66. package/src/components/HkDrawer.scss +27 -13
  67. package/src/components/HkDrawer.test.tsx +73 -0
  68. package/src/components/HkDrawer.tsx +157 -10
  69. package/src/components/HkErrorBoundary.scss +5 -2
  70. package/src/components/HkErrorBoundary.tsx +7 -4
  71. package/src/components/HkExpansionPanel.scss +143 -0
  72. package/src/components/HkExpansionPanel.test.tsx +109 -0
  73. package/src/components/HkExpansionPanel.tsx +101 -0
  74. package/src/components/HkFab.scss +162 -0
  75. package/src/components/HkFab.test.tsx +217 -0
  76. package/src/components/HkFab.tsx +214 -0
  77. package/src/components/HkHoverRevealAction.scss +6 -0
  78. package/src/components/HkHoverRevealAction.test.ts +68 -0
  79. package/src/components/HkHoverRevealAction.tsx +84 -6
  80. package/src/components/HkIcon.scss +123 -0
  81. package/src/components/HkIcon.tsx +7 -23
  82. package/src/components/HkIconButton.scss +170 -0
  83. package/src/components/HkIconButton.test.tsx +75 -0
  84. package/src/components/HkIconButton.tsx +4 -3
  85. package/src/components/HkIconButtonVars.scss +180 -0
  86. package/src/components/HkInput.affix.test.ts +253 -0
  87. package/src/components/HkInput.enter.test.ts +88 -0
  88. package/src/components/HkInput.scss +127 -8
  89. package/src/components/HkInput.tsx +245 -13
  90. package/src/components/HkKeywordSearchModal.scss +13 -0
  91. package/src/components/HkKeywordSearchModal.tsx +46 -9
  92. package/src/components/HkLabel.scss +34 -0
  93. package/src/components/HkLabel.test.tsx +61 -0
  94. package/src/components/HkLabel.tsx +45 -0
  95. package/src/components/HkListTransition.scss +26 -0
  96. package/src/components/HkListTransition.tsx +57 -0
  97. package/src/components/HkLocalePicker.scss +37 -0
  98. package/src/components/HkLocalePicker.tsx +133 -0
  99. package/src/components/HkLocalePickerPopup.tsx +35 -19
  100. package/src/components/HkLocalizedInput.scss +277 -0
  101. package/src/components/HkLocalizedInput.test.tsx +693 -0
  102. package/src/components/HkLocalizedInput.tsx +495 -0
  103. package/src/components/HkLogWindow.scss +121 -0
  104. package/src/components/HkLogWindow.tsx +195 -0
  105. package/src/components/HkLogo.scss +1 -1
  106. package/src/components/HkLogo.tsx +1 -1
  107. package/src/components/HkMarkdownRenderer.scss +22 -2
  108. package/src/components/HkMarkdownRenderer.tsx +33 -3
  109. package/src/components/HkMediaControlBar.tsx +20 -13
  110. package/src/components/HkMenu.scss +200 -0
  111. package/src/components/HkMenu.test.ts +779 -0
  112. package/src/components/HkMenu.tsx +770 -0
  113. package/src/components/HkMenuActionItem.scss +58 -0
  114. package/src/components/HkMenuActionItem.tsx +41 -0
  115. package/src/components/HkMenuIdentityItem.scss +70 -0
  116. package/src/components/HkMenuIdentityItem.tsx +42 -0
  117. package/src/components/HkMenuPanel.scss +20 -0
  118. package/src/components/HkMenuPanel.test.tsx +118 -0
  119. package/src/components/HkMenuPanel.tsx +32 -0
  120. package/src/components/HkMinimap.tsx +16 -8
  121. package/src/components/HkModal.autofollow.test.ts +44 -0
  122. package/src/components/HkModal.scss +170 -53
  123. package/src/components/HkModal.sheetgap.test.ts +82 -0
  124. package/src/components/HkModal.test.tsx +334 -0
  125. package/src/components/HkModal.tsx +314 -68
  126. package/src/components/HkModalBreadcrumb.scss +4 -1
  127. package/src/components/HkModalBreadcrumb.test.tsx +111 -0
  128. package/src/components/HkModalBreadcrumb.tsx +34 -11
  129. package/src/components/HkModelCatalog.ts +98 -0
  130. package/src/components/HkModelTag.scss +130 -0
  131. package/src/components/HkModelTag.test.tsx +111 -0
  132. package/src/components/HkModelTag.tsx +190 -0
  133. package/src/components/HkNavItem.scss +13 -2
  134. package/src/components/HkNavItem.tsx +2 -1
  135. package/src/components/HkNavSidebar.tsx +99 -0
  136. package/src/components/HkNumberInput.scss +12 -0
  137. package/src/components/HkNumberInput.tsx +15 -8
  138. package/src/components/HkPageHeader.scss +79 -0
  139. package/src/components/HkPageHeader.test.ts +67 -0
  140. package/src/components/HkPageHeader.tsx +51 -0
  141. package/src/components/HkPasswordInput.scss +29 -17
  142. package/src/components/HkPasswordInput.test.ts +281 -0
  143. package/src/components/HkPasswordInput.tsx +337 -59
  144. package/src/components/HkPickerPane.scss +158 -0
  145. package/src/components/HkPlaceholderMarquee.scss +109 -0
  146. package/src/components/HkPlaceholderMarquee.test.ts +305 -0
  147. package/src/components/HkPlaceholderMarquee.tsx +170 -0
  148. package/src/components/HkPopover.scss +134 -10
  149. package/src/components/HkPopover.sheetdock.test.ts +34 -0
  150. package/src/components/HkPopover.surfacevars.test.ts +20 -0
  151. package/src/components/HkPopover.titleSuppress.test.tsx +265 -0
  152. package/src/components/HkPopover.tsx +225 -50
  153. package/src/components/HkPopoverSheet.test.tsx +130 -0
  154. package/src/components/HkPopupSelect.scss +30 -10
  155. package/src/components/HkPopupSelect.tsx +21 -1
  156. package/src/components/HkProgressDialog.scss +31 -0
  157. package/src/components/HkProgressDialog.tsx +37 -19
  158. package/src/components/HkProtocolModal.scss +26 -0
  159. package/src/components/HkProtocolModal.tsx +112 -0
  160. package/src/components/HkRadio.scss +1 -16
  161. package/src/components/HkRadio.tsx +5 -2
  162. package/src/components/HkRichInput.scss +162 -0
  163. package/src/components/HkRichInput.tsx +335 -0
  164. package/src/components/HkRollingNumber.test.ts +90 -0
  165. package/src/components/HkRollingNumber.tsx +39 -1
  166. package/src/components/HkScrollContainer.scss +71 -54
  167. package/src/components/HkScrollContainer.test.ts +160 -0
  168. package/src/components/HkScrollContainer.tsx +187 -160
  169. package/src/components/HkSearchInput.tsx +3 -3
  170. package/src/components/HkSecretRevealModal.scss +61 -0
  171. package/src/components/HkSecretRevealModal.tsx +91 -0
  172. package/src/components/HkSelect.scss +263 -12
  173. package/src/components/HkSelect.sheetdock.test.ts +30 -0
  174. package/src/components/HkSelect.test.tsx +88 -0
  175. package/src/components/HkSelect.tsx +59 -74
  176. package/src/components/HkSelectPanel.test.tsx +666 -0
  177. package/src/components/HkSelectPanel.tsx +595 -0
  178. package/src/components/HkSelectSheet.test.tsx +132 -0
  179. package/src/components/HkSelectionGrid.scss +1 -1
  180. package/src/components/HkSelectionGrid.tsx +2 -1
  181. package/src/components/HkSelectionWaterfall.scss +1 -1
  182. package/src/components/HkShareBar.scss +40 -0
  183. package/src/components/HkShareBar.tsx +50 -0
  184. package/src/components/HkSidebar.scss +15 -10
  185. package/src/components/HkSidebar.tsx +26 -2
  186. package/src/components/HkSignInCard.test.ts +154 -0
  187. package/src/components/HkSignInCard.tsx +155 -0
  188. package/src/components/HkSlider.scss +99 -0
  189. package/src/components/HkSlider.test.tsx +155 -0
  190. package/src/components/HkSlider.tsx +173 -0
  191. package/src/components/HkSpinner.scss +36 -1
  192. package/src/components/HkSpinner.test.tsx +63 -0
  193. package/src/components/HkSpinner.tsx +16 -1
  194. package/src/components/HkSplash.scss +1 -1
  195. package/src/components/HkSplash.tsx +3 -1
  196. package/src/components/HkStatCard.scss +73 -0
  197. package/src/components/HkStatCard.tsx +46 -0
  198. package/src/components/HkStatusBar.test.tsx +178 -0
  199. package/src/components/HkStatusBar.tsx +379 -0
  200. package/src/components/HkStatusPill.scss +73 -0
  201. package/src/components/HkStatusPill.tsx +41 -0
  202. package/src/components/HkStepFlow.scss +75 -0
  203. package/src/components/HkStepFlow.test.tsx +246 -0
  204. package/src/components/HkStepFlow.tsx +115 -0
  205. package/src/components/HkSwitch.scss +5 -17
  206. package/src/components/HkSwitch.tsx +6 -3
  207. package/src/components/HkTable.scss +20 -1
  208. package/src/components/HkTable.tsx +28 -3
  209. package/src/components/HkTabs.scss +222 -48
  210. package/src/components/HkTabs.test.ts +517 -0
  211. package/src/components/HkTabs.tsx +567 -56
  212. package/src/components/HkTag.tsx +2 -1
  213. package/src/components/HkTextarea.tsx +5 -0
  214. package/src/components/HkThemeToggle.scss +232 -0
  215. package/src/components/HkThemeToggle.test.ts +231 -0
  216. package/src/components/HkThemeToggle.tsx +289 -0
  217. package/src/components/HkTimeline.scss +134 -1
  218. package/src/components/HkTimeline.test.tsx +319 -0
  219. package/src/components/HkTimeline.tsx +303 -54
  220. package/src/components/HkToast.scss +34 -5
  221. package/src/components/HkToast.test.tsx +109 -0
  222. package/src/components/HkToast.tsx +57 -8
  223. package/src/components/HkTokenUsageBadge.scss +53 -0
  224. package/src/components/HkTokenUsageBadge.test.tsx +59 -0
  225. package/src/components/HkTokenUsageBadge.tsx +54 -0
  226. package/src/components/HkTokenUsagePanel.scss +95 -0
  227. package/src/components/HkTokenUsagePanel.tsx +140 -0
  228. package/src/components/HkToolBlock.scss +428 -0
  229. package/src/components/HkToolBlock.tsx +639 -0
  230. package/src/components/HkTooltip.scss +14 -2
  231. package/src/components/HkTooltip.tsx +25 -2
  232. package/src/components/HkTrendChart.tsx +27 -16
  233. package/src/components/HkVoiceInputPopup.scss +77 -0
  234. package/src/components/HkVoiceInputPopup.tsx +97 -0
  235. package/src/components/HkZoomToolbar.scss +4 -1
  236. package/src/components/HkZoomToolbar.tsx +7 -4
  237. package/src/components/_hikari-vars.scss +6 -0
  238. package/src/composables/highlightLanguages.ts +109 -0
  239. package/src/composables/iconRegistry.ts +127 -0
  240. package/src/composables/messaging/browserTransport.ts +96 -0
  241. package/src/composables/messaging/index.ts +204 -0
  242. package/src/composables/messaging/messaging.test.ts +256 -0
  243. package/src/composables/messaging/toastTransport.ts +26 -0
  244. package/src/composables/messaging/types.ts +115 -0
  245. package/src/composables/useActionBar.ts +66 -0
  246. package/src/composables/useAttachments.ts +154 -0
  247. package/src/composables/useConnectionProbe.ts +142 -0
  248. package/src/composables/useDeferredTransition.ts +16 -0
  249. package/src/composables/useEngineHealth.ts +69 -0
  250. package/src/composables/useHighlight.ts +124 -0
  251. package/src/composables/useMeasuredHighlight.ts +150 -0
  252. package/src/composables/useOverlayScrollbar.test.ts +221 -0
  253. package/src/composables/useOverlayScrollbar.ts +296 -0
  254. package/src/composables/usePageTitle.ts +37 -0
  255. package/src/composables/useReducedMotion.ts +34 -0
  256. package/src/composables/useResourceListModal.tsx +147 -0
  257. package/src/composables/useSafeArea.ts +137 -0
  258. package/src/composables/useSendShortcut.ts +35 -0
  259. package/src/composables/useSizeMorph.test.ts +156 -0
  260. package/src/composables/useSizeMorph.ts +149 -0
  261. package/src/composables/useSurfaceTransition.test.ts +96 -0
  262. package/src/composables/useSurfaceTransition.ts +71 -0
  263. package/src/composables/useZoomPan.ts +192 -0
  264. package/src/demo.scss +9 -1
  265. package/src/demo.ts +5 -1
  266. package/src/i18n/locales/ar/chat.json +38 -0
  267. package/src/i18n/locales/ar/components.json +141 -40
  268. package/src/i18n/locales/ar/components.toml +59 -0
  269. package/src/i18n/locales/ar/platform.json +65 -0
  270. package/src/i18n/locales/de/chat.json +38 -0
  271. package/src/i18n/locales/de/components.json +139 -38
  272. package/src/i18n/locales/de/components.toml +59 -0
  273. package/src/i18n/locales/de/platform.json +65 -0
  274. package/src/i18n/locales/en/chat.json +38 -0
  275. package/src/i18n/locales/en/components.json +104 -3
  276. package/src/i18n/locales/en/components.toml +59 -0
  277. package/src/i18n/locales/en/platform.json +65 -0
  278. package/src/i18n/locales/es/chat.json +38 -0
  279. package/src/i18n/locales/es/components.json +141 -40
  280. package/src/i18n/locales/es/components.toml +59 -0
  281. package/src/i18n/locales/es/platform.json +65 -0
  282. package/src/i18n/locales/fr/chat.json +38 -0
  283. package/src/i18n/locales/fr/components.json +137 -36
  284. package/src/i18n/locales/fr/components.toml +59 -0
  285. package/src/i18n/locales/fr/platform.json +65 -0
  286. package/src/i18n/locales/ja/chat.json +38 -0
  287. package/src/i18n/locales/ja/components.json +104 -3
  288. package/src/i18n/locales/ja/components.toml +59 -0
  289. package/src/i18n/locales/ja/platform.json +65 -0
  290. package/src/i18n/locales/ko/chat.json +38 -0
  291. package/src/i18n/locales/ko/components.json +104 -3
  292. package/src/i18n/locales/ko/components.toml +59 -0
  293. package/src/i18n/locales/ko/platform.json +65 -0
  294. package/src/i18n/locales/pt/chat.json +38 -0
  295. package/src/i18n/locales/pt/components.json +141 -40
  296. package/src/i18n/locales/pt/components.toml +59 -0
  297. package/src/i18n/locales/pt/platform.json +65 -0
  298. package/src/i18n/locales/ru/chat.json +38 -0
  299. package/src/i18n/locales/ru/components.json +141 -40
  300. package/src/i18n/locales/ru/components.toml +59 -0
  301. package/src/i18n/locales/ru/platform.json +65 -0
  302. package/src/i18n/locales/zh-Hans/chat.json +38 -0
  303. package/src/i18n/locales/zh-Hans/components.json +109 -4
  304. package/src/i18n/locales/zh-Hans/components.toml +59 -0
  305. package/src/i18n/locales/zh-Hans/platform.json +65 -0
  306. package/src/i18n/locales/zh-Hant/chat.json +38 -0
  307. package/src/i18n/locales/zh-Hant/components.json +109 -4
  308. package/src/i18n/locales/zh-Hant/components.toml +59 -0
  309. package/src/i18n/locales/zh-Hant/platform.json +65 -0
  310. package/src/index.ts +225 -6
  311. package/src/plugins/bootScriptsPlugin.ts +47 -0
  312. package/src/plugins/buildHashPlugin.ts +67 -0
  313. package/src/plugins/index.ts +2 -0
  314. package/src/render.ts +1 -1
  315. package/src/runtime/animationBus.test.ts +112 -0
  316. package/src/runtime/animationBus.ts +33 -2
  317. package/src/runtime/backStack.test.ts +334 -0
  318. package/src/runtime/backStack.ts +377 -0
  319. package/src/runtime/env.ts +4 -0
  320. package/src/runtime/index.ts +15 -3
  321. package/src/runtime/intervalBus.test.ts +118 -0
  322. package/src/runtime/intervalBus.ts +189 -0
  323. package/src/runtime/mobileViewport.test.ts +132 -0
  324. package/src/runtime/mobileViewport.ts +157 -0
  325. package/src/runtime/pageLifecycle.ts +91 -0
  326. package/src/runtime/useBlockingToast.ts +112 -0
  327. package/src/runtime/useClipboard.ts +28 -0
  328. package/src/runtime/useConfirm.ts +15 -7
  329. package/src/runtime/useMediaQuery.test.ts +67 -0
  330. package/src/runtime/useMediaQuery.ts +89 -0
  331. package/src/runtime/useOverlay.test.ts +160 -0
  332. package/src/runtime/useOverlay.ts +59 -12
  333. package/src/runtime/usePopupManager.test.ts +200 -0
  334. package/src/runtime/usePopupManager.ts +106 -10
  335. package/src/runtime/useToast.test.ts +90 -0
  336. package/src/runtime/useToast.ts +20 -2
  337. package/src/styles/admin-tokens.scss +744 -0
  338. package/src/styles/index.scss +5 -3
  339. package/src/styles/theme/_glass.scss +33 -0
  340. package/src/styles/theme/_layout.scss +123 -0
  341. package/src/styles/theme/_scrollbar.scss +73 -0
  342. package/src/styles/theme/_tokens.scss +69 -0
  343. package/src/styles/theme/base.scss +617 -0
  344. package/src/styles/theme/foundation.scss +219 -0
  345. package/src/styles/theme/mixins.scss +793 -0
  346. package/src/styles/theme/themes.scss +25 -0
  347. package/src/styles/theme/variables.scss +125 -0
  348. package/src/theme/_field.scss +116 -0
  349. package/src/theme/fontContext.test.ts +179 -0
  350. package/src/theme/fontContext.ts +169 -0
  351. package/src/theme/index.ts +19 -2
  352. package/src/theme/presets.ts +86 -18
  353. package/src/theme/theme.scss +61 -1
  354. package/src/theme/tokenGroups.test.ts +534 -0
  355. package/src/theme/tokenGroups.ts +552 -0
  356. package/src/theme/useSolarTime.test.ts +113 -0
  357. package/src/theme/useSolarTime.ts +95 -20
  358. package/src/theme/useTheme.test.ts +72 -0
  359. package/src/theme/useTheme.ts +144 -9
  360. package/src/tokens.scss +110 -0
  361. package/src/utils/base64.ts +31 -0
  362. package/src/utils/connectivity.ts +51 -0
  363. package/src/utils/dom.test.ts +131 -0
  364. package/src/utils/dom.ts +133 -0
  365. package/src/utils/download.ts +22 -0
  366. package/src/utils/fileType.ts +127 -0
  367. package/src/utils/format.ts +98 -0
  368. package/src/utils/fuzzy.ts +77 -0
  369. package/src/utils/fuzzySearch.test.ts +87 -0
  370. package/src/utils/healthProbe.ts +64 -0
  371. package/src/utils/objectPath.ts +59 -0
  372. package/src/utils/password.ts +53 -0
  373. package/src/utils/pow.test.ts +45 -0
  374. package/src/utils/pow.ts +226 -0
  375. package/src/utils/powNonce.ts +95 -0
  376. package/src/utils/validation.test.ts +78 -0
  377. package/src/DemoApp.vue +0 -400
  378. package/src/components/HkCollapse.tsx +0 -48
  379. package/src/components/HkMorphingTabs.scss +0 -141
  380. package/src/components/HkMorphingTabs.tsx +0 -113
  381. package/src/composables/useBreakpoint.ts +0 -41
  382. package/src/composables/useClipboard.ts +0 -37
  383. package/src/composables/useConfirm.ts +0 -35
  384. package/src/composables/useToast.ts +0 -2
  385. package/src/runtime/useAsyncData.ts +0 -30
@@ -0,0 +1,624 @@
1
+ // Use theme variables with namespace to avoid conflicts
2
+ @use "./hikari-vars" as vars;
3
+
4
+ // ------
5
+ // Hikari Breadcrumb Component
6
+ // Features: Glowing separators, smooth transitions, hover effects
7
+ // ------
8
+
9
+ // ------
10
+ // Base Breadcrumb Styles
11
+ // ------
12
+
13
+ .hk-breadcrumb {
14
+ // Layout
15
+ display: flex;
16
+ align-items: center;
17
+ flex-wrap: wrap;
18
+
19
+ // Reset
20
+ list-style: none;
21
+ margin: 0;
22
+ padding: 0;
23
+
24
+ // Typography
25
+ font-family: vars.$hikari-font-family-sans;
26
+ font-size: vars.$hikari-font-size-sm;
27
+ line-height: 1.5;
28
+
29
+ // Gap
30
+ gap: 0.5rem;
31
+ }
32
+
33
+ // ------
34
+ // Breadcrumb Item
35
+ // ------
36
+
37
+ .hk-breadcrumb-item {
38
+ // Layout
39
+ display: flex;
40
+ align-items: center;
41
+
42
+ // Spacing
43
+ margin: 0;
44
+
45
+ // Position
46
+ position: relative;
47
+
48
+ // Not the last item
49
+ &:not(:last-child) {
50
+ // Separator
51
+ .hk-breadcrumb-separator {
52
+ margin-left: 0.5rem;
53
+ color: var(--hi-color-text-secondary);
54
+ opacity: 0.5;
55
+ // DISABLED - migrated to JS animation
56
+
57
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
58
+
59
+ // Glow effect on separator
60
+ filter: drop-shadow(0 0 4px var(--hi-primary));
61
+
62
+ svg {
63
+ width: 1rem;
64
+ height: 1rem;
65
+ }
66
+ }
67
+ }
68
+
69
+ // Last item (current page)
70
+ &:last-child {
71
+ .hk-breadcrumb-link {
72
+ color: var(--hi-color-text-primary);
73
+ font-weight: 500;
74
+ cursor: default;
75
+ pointer-events: none;
76
+
77
+ // Subtle glow on current item
78
+ text-shadow: 0 0 8px var(--hi-primary);
79
+ }
80
+ }
81
+ }
82
+
83
+ // ------
84
+ // Breadcrumb Link
85
+ // ------
86
+
87
+ .hk-breadcrumb-link {
88
+ // Typography
89
+ color: var(--hi-color-text-secondary);
90
+ text-decoration: none;
91
+ white-space: nowrap;
92
+
93
+ // Cursor
94
+ cursor: pointer;
95
+
96
+ // Transitions
97
+ // DISABLED - migrated to JS animation
98
+
99
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
100
+
101
+ // Padding
102
+ padding: 0.25rem 0.5rem;
103
+ margin: -0.25rem -0.5rem;
104
+ border-radius: vars.$hikari-radius-fui-sm;
105
+
106
+ // Display
107
+ display: inline-flex;
108
+ align-items: center;
109
+ gap: 0.375rem;
110
+
111
+ // Icon
112
+ .hk-breadcrumb-icon {
113
+ flex-shrink: 0;
114
+ width: 1rem;
115
+ height: 1rem;
116
+ // DISABLED - migrated to JS animation
117
+
118
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
119
+
120
+ svg {
121
+ width: 100%;
122
+ height: 100%;
123
+ }
124
+ }
125
+
126
+ // Hover state
127
+ &:hover {
128
+ color: var(--hi-color-text-primary);
129
+ background: var(--hi-primary);
130
+
131
+ .hk-breadcrumb-icon {
132
+ color: var(--hi-color-primary);
133
+ filter: drop-shadow(0 0 4px var(--hi-primary));
134
+ }
135
+
136
+ // Glow effect on text
137
+ text-shadow: 0 0 8px var(--hi-primary);
138
+ }
139
+
140
+ // Active/focus state
141
+ &:focus-visible {
142
+ outline: none;
143
+ background: var(--hi-primary);
144
+ box-shadow:
145
+ 0 0 0 2px var(--hi-primary),
146
+ 0 0 12px var(--hi-primary);
147
+ }
148
+
149
+ // Active state (for non-last items)
150
+ &.hk-breadcrumb-link-active {
151
+ color: var(--hi-color-text-primary);
152
+ font-weight: 500;
153
+ }
154
+ }
155
+
156
+ // ------
157
+ // Breadcrumb Separator
158
+ // ------
159
+
160
+ .hk-breadcrumb-separator {
161
+ // Layout
162
+ display: inline-flex;
163
+ align-items: center;
164
+
165
+ // Typography
166
+ font-size: 0.875rem;
167
+
168
+ // Transitions
169
+ // DISABLED - migrated to JS animation
170
+
171
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
172
+
173
+ // Custom separator glow
174
+ &.hk-breadcrumb-separator-glow {
175
+ color: var(--hi-color-primary);
176
+ opacity: 0.8;
177
+ filter: drop-shadow(0 0 6px var(--hi-primary));
178
+ }
179
+ }
180
+
181
+ // ------
182
+ // Separator Variants
183
+ // ------
184
+
185
+ // Slash separator
186
+ .hk-breadcrumb-separator-slash {
187
+ &::before {
188
+ content: '/';
189
+ }
190
+ }
191
+
192
+ // Arrow separator
193
+ .hk-breadcrumb-separator-arrow {
194
+ &::before {
195
+ content: '›';
196
+ font-size: 1.1em;
197
+ }
198
+ }
199
+
200
+ // Double arrow separator
201
+ .hk-breadcrumb-separator-double-arrow {
202
+ &::before {
203
+ content: '»';
204
+ font-size: 0.9em;
205
+ }
206
+ }
207
+
208
+ // Chevron separator (default with icon)
209
+ .hk-breadcrumb-separator-chevron {
210
+ // Uses chevron-right icon
211
+ }
212
+
213
+ // Dot separator
214
+ .hk-breadcrumb-separator-dot {
215
+ &::before {
216
+ content: '•';
217
+ font-size: 1.2em;
218
+ }
219
+ }
220
+
221
+ // ------
222
+ // Breadcrumb Dropdown (for nested paths)
223
+ // ------
224
+
225
+ .hk-breadcrumb-dropdown {
226
+ // Layout
227
+ position: relative;
228
+ display: inline-flex;
229
+ align-items: center;
230
+
231
+ // Trigger
232
+ .hk-breadcrumb-dropdown-trigger {
233
+ // Layout
234
+ display: inline-flex;
235
+ align-items: center;
236
+ gap: 0.25rem;
237
+
238
+ // Arrow icon
239
+ .hk-breadcrumb-dropdown-arrow {
240
+ width: 0.75rem;
241
+ height: 0.75rem;
242
+ // DISABLED - migrated to JS animation
243
+
244
+ // transition: transform vars.$hikari-duration-fast vars.$hikari-ease-smooth;
245
+
246
+ svg {
247
+ width: 100%;
248
+ height: 100%;
249
+ }
250
+ }
251
+
252
+ // Open state
253
+ &.hk-breadcrumb-dropdown-open {
254
+ .hk-breadcrumb-dropdown-arrow {
255
+ transform: rotate(180deg);
256
+ }
257
+ }
258
+ }
259
+
260
+ // Dropdown menu
261
+ .hk-breadcrumb-dropdown-menu {
262
+ // Layout
263
+ position: absolute;
264
+ top: calc(100% + 4px);
265
+ left: 0;
266
+ min-width: 200px;
267
+ z-index: 100;
268
+
269
+ // Appearance
270
+ border-radius: vars.$hikari-radius-fui-md;
271
+ border: 1px solid var(--hi-color-border);
272
+ background: var(--hi-surface);
273
+ backdrop-filter: blur(4px);
274
+ box-shadow:
275
+ 0 8px 16px var(--hi-black-30, rgba(0, 0, 0, 0.3)),
276
+ 0 0 0 1px var(--hi-white-5, rgba(255, 255, 255, 0.05)) inset;
277
+
278
+ // Padding
279
+ padding: 0.5rem;
280
+
281
+ // Transitions
282
+ // DISABLED - migrated to JS animation
283
+
284
+ // transition: all vars.$hikari-duration-normal vars.$hikari-ease-smooth;
285
+
286
+ // Animation
287
+ opacity: 0;
288
+ transform: translateY(-8px);
289
+ pointer-events: none;
290
+
291
+ // Open state
292
+ &.hk-breadcrumb-dropdown-menu-open {
293
+ opacity: 1;
294
+ transform: translateY(0);
295
+ pointer-events: auto;
296
+ }
297
+
298
+ // Menu items
299
+ .hk-breadcrumb-dropdown-item {
300
+ // Layout
301
+ display: flex;
302
+ align-items: center;
303
+ gap: 0.5rem;
304
+
305
+ // Spacing
306
+ padding: 0.5rem 0.75rem;
307
+ margin: 0.125rem 0;
308
+
309
+ // Typography
310
+ font-size: vars.$hikari-font-size-sm;
311
+ color: var(--hi-color-text-primary);
312
+ text-decoration: none;
313
+ white-space: nowrap;
314
+
315
+ // Appearance
316
+ border-radius: vars.$hikari-radius-fui-sm;
317
+
318
+ // Cursor
319
+ cursor: pointer;
320
+
321
+ // Transitions
322
+ // DISABLED - migrated to JS animation
323
+
324
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
325
+
326
+ // Hover state
327
+ &:hover {
328
+ background: var(--hi-primary);
329
+ color: var(--hi-color-text-primary);
330
+ box-shadow:
331
+ 0 0 12px var(--hi-primary),
332
+ inset 0 0 8px var(--hi-primary);
333
+ }
334
+ }
335
+ }
336
+ }
337
+
338
+ // ------
339
+ // Icon Styles
340
+ // ------
341
+
342
+ .hk-breadcrumb-icon {
343
+ // Layout
344
+ display: inline-flex;
345
+ align-items: center;
346
+
347
+ // Size
348
+ width: 1rem;
349
+ height: 1rem;
350
+
351
+ // Color
352
+ color: var(--hi-color-text-secondary);
353
+
354
+ // Transitions
355
+ // DISABLED - migrated to JS animation
356
+
357
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
358
+
359
+ svg {
360
+ width: 100%;
361
+ height: 100%;
362
+ }
363
+ }
364
+
365
+ // ------
366
+ // Size Variants
367
+ // ------
368
+
369
+ .hk-breadcrumb-sm {
370
+ font-size: 0.75rem;
371
+ gap: 0.375rem;
372
+
373
+ .hk-breadcrumb-link {
374
+ padding: 0.125rem 0.375rem;
375
+ margin: -0.125rem -0.375rem;
376
+
377
+ .hk-breadcrumb-icon {
378
+ width: 0.875rem;
379
+ height: 0.875rem;
380
+ }
381
+ }
382
+
383
+ .hk-breadcrumb-separator {
384
+ margin-left: 0.375rem;
385
+ font-size: 0.75rem;
386
+
387
+ svg {
388
+ width: 0.875rem;
389
+ height: 0.875rem;
390
+ }
391
+ }
392
+ }
393
+
394
+ .hk-breadcrumb-md {
395
+ font-size: vars.$hikari-font-size-sm;
396
+ gap: 0.5rem;
397
+ }
398
+
399
+ .hk-breadcrumb-lg {
400
+ font-size: 1rem;
401
+ gap: 0.625rem;
402
+
403
+ .hk-breadcrumb-link {
404
+ padding: 0.375rem 0.625rem;
405
+ margin: -0.375rem -0.625rem;
406
+
407
+ .hk-breadcrumb-icon {
408
+ width: 1.125rem;
409
+ height: 1.125rem;
410
+ }
411
+ }
412
+
413
+ .hk-breadcrumb-separator {
414
+ margin-left: 0.625rem;
415
+ font-size: 1rem;
416
+
417
+ svg {
418
+ width: 1.125rem;
419
+ height: 1.125rem;
420
+ }
421
+ }
422
+ }
423
+
424
+ // ------
425
+ // Theme Variants
426
+ // ------
427
+
428
+ // With background
429
+ .hk-breadcrumb-background {
430
+ gap: 0;
431
+
432
+ .hk-breadcrumb-item {
433
+ background: var(--hi-card-bg);
434
+ padding: 0.375rem 0.75rem;
435
+ border-radius: vars.$hikari-radius-fui-sm;
436
+ // DISABLED - migrated to JS animation
437
+
438
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
439
+
440
+ &:not(:last-child):hover {
441
+ background: var(--hi-primary);
442
+ }
443
+
444
+ &:last-child {
445
+ background: var(--hi-primary);
446
+ box-shadow:
447
+ 0 0 12px var(--hi-primary),
448
+ inset 0 0 8px var(--hi-primary);
449
+ }
450
+ }
451
+ }
452
+
453
+ // Pill style
454
+ .hk-breadcrumb-pill {
455
+ .hk-breadcrumb-item {
456
+ background: var(--hi-card-bg);
457
+ padding: 0.375rem 0.875rem;
458
+ border-radius: 999px;
459
+ border: 1px solid var(--hi-color-border);
460
+ // DISABLED - migrated to JS animation
461
+
462
+ // transition: all vars.$hikari-duration-fast vars.$hikari-ease-smooth;
463
+
464
+ &:not(:last-child) {
465
+ &:hover {
466
+ background: var(--hi-primary);
467
+ border-color: var(--hi-primary);
468
+ }
469
+ }
470
+
471
+ &:last-child {
472
+ background: linear-gradient(135deg, var(--hi-primary), var(--hi-primary));
473
+ border-color: var(--hi-primary);
474
+ box-shadow:
475
+ 0 0 12px var(--hi-primary),
476
+ inset 0 0 8px var(--hi-primary);
477
+ }
478
+ }
479
+ }
480
+
481
+ // ------
482
+ // Separator Animations
483
+ // ------
484
+
485
+ // Animated separator (pulsing glow)
486
+ .hk-breadcrumb-separator-animated {
487
+ // DISABLED - migrated to JS animation
488
+
489
+ // animation: breadcrumb-separator-pulse 2s ease-in-out infinite;
490
+ }
491
+
492
+ // DISABLED - migrated to JS animation
493
+ // @keyframes breadcrumb-separator-pulse {
494
+ // 0%, 100% {
495
+ // opacity: 0.5;
496
+ // filter: drop-shadow(0 0 4px var(--hi-primary));
497
+ // }
498
+ // 50% {
499
+ // opacity: 1;
500
+ // filter: drop-shadow(0 0 8px var(--hi-primary));
501
+ // }
502
+ // }
503
+
504
+ // ------
505
+ // Collapsible Breadcrumb (for mobile)
506
+ // ------
507
+
508
+ .hk-breadcrumb-collapsible {
509
+ // Hide middle items on small screens
510
+ .hk-breadcrumb-item {
511
+ &:nth-child(n+2):nth-last-child(n+3) {
512
+ @media (max-width: 768px) {
513
+ display: none;
514
+ }
515
+ }
516
+
517
+ // Show ellipsis
518
+ &.hk-breadcrumb-ellipsis {
519
+ @media (max-width: 768px) {
520
+ display: flex;
521
+ }
522
+ }
523
+ }
524
+ }
525
+
526
+ // ------
527
+ // Animations
528
+ // ------
529
+
530
+ // Fade-in animation
531
+ .hk-breadcrumb-animate-in {
532
+ .hk-breadcrumb-item {
533
+ opacity: 0;
534
+ // DISABLED - migrated to JS animation
535
+
536
+ // animation: breadcrumb-fade-in vars.$hikari-duration-normal vars.$hikari-ease-smooth forwards;
537
+
538
+ @for $i from 1 through 10 {
539
+ &:nth-child(#{$i}) {
540
+ animation-delay: #{$i * 0.1s};
541
+ }
542
+ }
543
+ }
544
+ }
545
+
546
+ // DISABLED - migrated to JS animation
547
+ // @keyframes breadcrumb-fade-in {
548
+ // from {
549
+ // opacity: 0;
550
+ // transform: translateY(-4px);
551
+ // }
552
+ // to {
553
+ // opacity: 1;
554
+ // transform: translateY(0);
555
+ // }
556
+ // }
557
+
558
+ // Slide-in animation
559
+ .hk-breadcrumb-slide-in {
560
+ .hk-breadcrumb-item {
561
+ opacity: 0;
562
+ // DISABLED - migrated to JS animation
563
+
564
+ // animation: breadcrumb-slide-in vars.$hikari-duration-normal vars.$hikari-ease-smooth forwards;
565
+
566
+ @for $i from 1 through 10 {
567
+ &:nth-child(#{$i}) {
568
+ animation-delay: #{$i * 0.08s};
569
+ }
570
+ }
571
+ }
572
+ }
573
+
574
+ // DISABLED - migrated to JS animation
575
+ // @keyframes breadcrumb-slide-in {
576
+ // from {
577
+ // opacity: 0;
578
+ // transform: translateX(-8px);
579
+ // }
580
+ // to {
581
+ // opacity: 1;
582
+ // transform: translateX(0);
583
+ // }
584
+ // }
585
+
586
+ // ------
587
+ // Custom Colors
588
+ // ------
589
+
590
+ .hk-breadcrumb-primary {
591
+ .hk-breadcrumb-link {
592
+ &:hover {
593
+ color: var(--hi-color-primary);
594
+ text-shadow: 0 0 8px var(--hi-color-primary);
595
+ }
596
+ }
597
+ }
598
+
599
+ .hk-breadcrumb-success {
600
+ .hk-breadcrumb-link {
601
+ &:hover {
602
+ color: var(--hi-color-success);
603
+ text-shadow: 0 0 8px var(--hi-color-success);
604
+ }
605
+ }
606
+ }
607
+
608
+ .hk-breadcrumb-warning {
609
+ .hk-breadcrumb-link {
610
+ &:hover {
611
+ color: var(--hi-color-warning);
612
+ text-shadow: 0 0 8px var(--hi-color-warning);
613
+ }
614
+ }
615
+ }
616
+
617
+ .hk-breadcrumb-danger {
618
+ .hk-breadcrumb-link {
619
+ &:hover {
620
+ color: var(--hi-color-danger);
621
+ text-shadow: 0 0 8px var(--hi-color-danger);
622
+ }
623
+ }
624
+ }
@@ -1,6 +1,6 @@
1
1
  import { computed, defineComponent, type PropType } from "vue";
2
2
  import { useI18n } from "../i18n/context";
3
- import "../../../components/src/styles/components/breadcrumb.scss";
3
+ import "./HkBreadcrumb.scss";
4
4
 
5
5
  export default defineComponent({
6
6
  name: "HkBreadcrumb",
@@ -14,7 +14,7 @@ export default defineComponent({
14
14
  const cls = computed(() => ["hk-breadcrumb", `hk-breadcrumb-${props.size}`]);
15
15
 
16
16
  return () => (
17
- <nav aria-label={t("hk.breadcrumb.label", "Breadcrumb")}>
17
+ <nav aria-label={t("hikari::breadcrumb.label", "Breadcrumb")}>
18
18
  <ol class={cls.value}>
19
19
  {props.items.map((item, index) => (
20
20
  <li key={index} class="hk-breadcrumb-item">
@@ -17,7 +17,6 @@
17
17
  user-select: none;
18
18
  outline: none;
19
19
  position: relative;
20
- min-height: 2.5rem;
21
20
  }
22
21
 
23
22
  .hk-btn:focus-visible {
@@ -32,20 +31,29 @@
32
31
  }
33
32
 
34
33
  /* ---- Size variants ---- */
34
+ /* Height scales WITH the size: a single base min-height made every sm
35
+ button 2.5rem (40px) tall — comically oversized next to page-header
36
+ text and toolbar rows. Font size does NOT scale with the size
37
+ (2026-08-30 user report, Material-Design convention): md and lg share
38
+ --text-base and lg only grows padding/min-height for a larger touch
39
+ target; sm keeps its compact --text-xs. */
35
40
 
36
41
  .hk-btn-sm {
37
42
  padding: var(--space-6) var(--space-12);
38
43
  font-size: var(--text-xs);
44
+ min-height: 1.75rem;
39
45
  }
40
46
 
41
47
  .hk-btn-md {
42
48
  padding: var(--space-8) var(--space-16);
43
49
  font-size: var(--text-base);
50
+ min-height: 2.5rem;
44
51
  }
45
52
 
46
53
  .hk-btn-lg {
47
54
  padding: var(--space-10) var(--space-24);
48
- font-size: var(--text-md);
55
+ font-size: var(--text-base);
56
+ min-height: 2.75rem;
49
57
  }
50
58
 
51
59
  /* ---- Primary ---- */
@@ -53,6 +61,12 @@
53
61
  .hk-btn-primary {
54
62
  background: rgb(var(--color-primary));
55
63
  color: rgb(var(--color-on-solid));
64
+
65
+ /* Glyphs follow the icon slot so custom themes can split text/icon ink
66
+ (mirrors the legacy button-vars primary block). */
67
+ svg {
68
+ color: rgb(var(--color-on-solid-icon, 255 255 255));
69
+ }
56
70
  }
57
71
 
58
72
  .hk-btn-primary:hover:not(:disabled) {
@@ -0,0 +1,14 @@
1
+ .s-captcha-modal {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ gap: var(--space-12, 0.75rem);
6
+ padding: var(--space-8, 0.5rem) 0;
7
+ }
8
+
9
+ .s-captcha-modal-prompt {
10
+ margin: 0;
11
+ font-size: var(--text-sm, 0.8125rem);
12
+ color: rgb(var(--color-muted));
13
+ text-align: center;
14
+ }