@jetbrains/kotlin-web-site-ui 4.1.0-alpha.1 → 4.1.0-alpha.2

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.
@@ -32,7 +32,10 @@ const Chapters = ({
32
32
  }, React__default.createElement("h4", {
33
33
  className: classNames(textCn('rs-h4'), styles.headliner)
34
34
  }, React__default.createElement("a", {
35
- className: classNames(styles.chapterTitle, textCn('rs-link')),
35
+ className: classNames(styles.chapterTitle, textCn('rs-link', {
36
+ mode: 'clear',
37
+ hardness: 'hard'
38
+ })),
36
39
  href: url,
37
40
  id: chapterId,
38
41
  dangerouslySetInnerHTML: {
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { useTextStyles } from '@rescui/typography';
3
- import getExtendedHits from '../result/get-extended-hits.js';
3
+ import getExtendedHits from './get-extended-hits.js';
4
4
  import { Chapters } from '../chapters/chapters.js';
5
5
  import classNames from 'classnames';
6
6
  import styles from './hit-list.module.pcss.js';
@@ -24,7 +24,10 @@ const HitList = ({
24
24
  }, React__default.createElement("h3", {
25
25
  className: textCn('rs-h3')
26
26
  }, React__default.createElement("a", {
27
- className: classNames(styles.titleLink, textCn('rs-link')),
27
+ className: classNames(styles.titleLink, textCn('rs-link', {
28
+ mode: 'clear',
29
+ hardness: 'hard'
30
+ })),
28
31
  href: url,
29
32
  dangerouslySetInnerHTML: {
30
33
  __html: title
@@ -1,5 +1,6 @@
1
1
  import React__default, { forwardRef, useState, useMemo, useRef, useImperativeHandle, useLayoutEffect, useCallback, useEffect } from 'react';
2
2
  import { ThemeProvider } from '@rescui/ui-contexts';
3
+ import FocusManager from '@rescui/focus-manager';
3
4
  import useResizeObserver from '@react-hook/resize-observer';
4
5
  import OutsideClickHandler from 'react-outside-click-handler';
5
6
  import { LogoLarge } from './logo-large/logo-large.js';
@@ -60,6 +61,9 @@ const Header = forwardRef(({
60
61
  useEffect(() => {
61
62
  if (typeof document !== `undefined`) {
62
63
  document.addEventListener('keydown', fullSearchKeyHandler);
64
+ document.addEventListener('DOMContentLoaded', () => {
65
+ new FocusManager();
66
+ });
63
67
  return () => {
64
68
  document.removeEventListener('keydown', fullSearchKeyHandler);
65
69
  };
@@ -280,6 +280,7 @@
280
280
  }
281
281
  .ktl-result-module_result_EKhUw:hover {
282
282
  background: rgba(255, 255, 255, 0.1);
283
+ text-decoration: none;
283
284
  }
284
285
  .ktl-result-module_result_EKhUw:focus {
285
286
  outline: none;
@@ -332,10 +333,15 @@
332
333
  box-shadow: rgba(107, 87, 255, 0.8) 0 0 0 4px;
333
334
  }
334
335
 
336
+ .ktl-list-module_advancedSearchTitle_sHR3T {
337
+ color: #ffffff;
338
+ }
339
+
335
340
  @media (min-width: 768px) {
336
341
  .ktl-list-module_results_LlxqY {
337
342
  max-height: 434px;
338
343
  }
344
+
339
345
  .ktl-list-module_topBar_OO0XT {
340
346
  display: flex;
341
347
  align-items: center;
@@ -457,9 +463,13 @@
457
463
  }
458
464
 
459
465
  .ktl-chapters-module_chapterTitle_b6Rdz {
460
- border-bottom-color: transparent;
466
+ //border-bottom-color: transparent;
461
467
  }
462
468
 
469
+ .ktl-chapters-module_chapterTitle_b6Rdz:hover {
470
+ //border-bottom-color: #19191C;
471
+ }
472
+
463
473
  .ktl-chapters-module_chapterTitle_b6Rdz em {
464
474
  background: rgba(127, 82, 255, 0.2);
465
475
  font-style: normal;
@@ -498,10 +508,6 @@
498
508
  margin: 24px 0;
499
509
  }
500
510
 
501
- .ktl-hit-list-module_titleLink_rdJ6u {
502
- border-bottom-color: transparent;
503
- }
504
-
505
511
  .ktl-hit-list-module_titleLink_rdJ6u em {
506
512
  background: rgba(127, 82, 255, 0.2);
507
513
  font-style: normal;
@@ -1,6 +1,7 @@
1
1
  import React__default, { useMemo } from 'react';
2
2
  import { Result } from '../result/result.js';
3
3
  import { useTextStyles } from '@rescui/typography';
4
+ import classNames from 'classnames';
4
5
  import { isMacOs } from '../../is-macos.js';
5
6
  import styles from './list.module.pcss.js';
6
7
 
@@ -21,7 +22,7 @@ const ResultsList = ({
21
22
  className: styles.advancedSearch,
22
23
  onClick: toggleFullSearch
23
24
  }, React__default.createElement("div", {
24
- className: textCn('rs-text-3')
25
+ className: classNames(textCn('rs-text-3'), styles.advancedSearchTitle)
25
26
  }, "Advanced search ", isMacOs() ? '⌘K' : 'Ctrl+K'))), results.map((searchResult, index) => React__default.createElement(Result, {
26
27
  key: index,
27
28
  hit: searchResult
@@ -1,6 +1,7 @@
1
1
  var styles = {
2
2
  "results": "ktl-list-module_results_LlxqY",
3
3
  "topBar": "ktl-list-module_topBar_OO0XT",
4
- "advancedSearch": "ktl-list-module_advancedSearch_XNy88"
4
+ "advancedSearch": "ktl-list-module_advancedSearch_XNy88",
5
+ "advancedSearchTitle": "ktl-list-module_advancedSearchTitle_sHR3T"
5
6
  };
6
7
  export { styles as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "4.1.0-alpha.1",
4
+ "version": "4.1.0-alpha.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [
@@ -29,11 +29,12 @@
29
29
  "@rescui/tooltip": "0.x",
30
30
  "@rescui/typography": "0.x",
31
31
  "@rescui/ui-contexts": "0.x",
32
+ "@rescui/focus-manager": "0.x",
32
33
  "algoliasearch": "4.x",
33
34
  "formik": "2.x",
34
35
  "react": ">= 16.8.6 < 18",
35
36
  "react-dom": ">= 16.8.6 < 18",
36
- "react-outside-click-handler": "^1.3.0",
37
+ "react-outside-click-handler": "1.x",
37
38
  "react-swipeable-views": "0.x",
38
39
  "sha.js": "2.x"
39
40
  },
@@ -47,6 +48,7 @@
47
48
  "@react-hook/resize-observer": "^1.2.5",
48
49
  "@rescui/button": "^0.2.1",
49
50
  "@rescui/checkbox": "^0.1.0",
51
+ "@rescui/focus-manager": "^0.1.1",
50
52
  "@rescui/icons": "^0.2.0",
51
53
  "@rescui/input": "^0.1.2",
52
54
  "@rescui/switcher": "^0.2.2",