@netlify/spark-ui 1.5.0-alpha.8 → 1.5.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 (98) hide show
  1. package/dist/assets/SearchHeading.css +1 -1
  2. package/dist/assets/SearchLink.css +1 -1
  3. package/dist/assets/SearchModal.css +1 -1
  4. package/dist/chunks/compat.module.DJD78v1z.js +175 -0
  5. package/dist/chunks/hooks.module.D9IrxdEh.js +138 -0
  6. package/dist/chunks/{useTimeout.Cq4aqnDe.js → useTimeout.YR4eKwj7.js} +1 -1
  7. package/dist/components/index.d.ts +0 -1
  8. package/dist/components/preact/Icon/index.d.ts +2 -2
  9. package/dist/components/preact/Icon/index.js +75 -87
  10. package/dist/components/preact/Modal/Modal.js +1 -1
  11. package/dist/components/preact/SearchModal/components/SearchInput.d.ts +0 -2
  12. package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
  13. package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.d.ts +1 -1
  14. package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +17 -35
  15. package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +49 -72
  16. package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
  17. package/dist/components/preact/SearchModal/components/SearchWindow.d.ts +1 -1
  18. package/dist/components/preact/SearchModal/components/SearchWindow.js +30 -49
  19. package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +6 -6
  20. package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
  21. package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
  22. package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
  23. package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
  24. package/dist/components/preact/SearchModal/hooks/useSearchToggles.d.ts +1 -3
  25. package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +10 -13
  26. package/dist/components/preact/SearchModal/types/search.types.d.ts +1 -6
  27. package/dist/components/preact/index.d.ts +0 -1
  28. package/dist/components/preact/index.js +5 -7
  29. package/package.json +3 -5
  30. package/packages/assets/icons/ai.svg +22 -0
  31. package/packages/assets/icons/dev.svg +8 -0
  32. package/packages/assets/icons/ecommerce.svg +16 -0
  33. package/packages/assets/icons/marketing.svg +20 -0
  34. package/packages/components/CodeBlock.astro +4 -1
  35. package/packages/components/SectionTabbedContent.astro +185 -0
  36. package/packages/components/Tab.astro +12 -0
  37. package/packages/components/TabList.astro +7 -0
  38. package/packages/components/TabPanel.astro +13 -0
  39. package/packages/components/TabPanelGroup.astro +45 -0
  40. package/packages/components/TabbedContent.astro +72 -0
  41. package/packages/components/Tabs.astro +0 -2
  42. package/packages/components/Testimonial.astro +0 -0
  43. package/packages/components/index.ts +0 -1
  44. package/packages/components/preact/Icon/index.tsx +55 -56
  45. package/packages/components/preact/SearchModal/components/SearchHeading/SearchHeading.css +4 -5
  46. package/packages/components/preact/SearchModal/components/SearchInput.tsx +7 -9
  47. package/packages/components/preact/SearchModal/components/SearchLink/SearchLink.css +9 -14
  48. package/packages/components/preact/SearchModal/components/SearchLink/SearchLink.tsx +7 -27
  49. package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.css +29 -67
  50. package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.tsx +30 -60
  51. package/packages/components/preact/SearchModal/components/SearchWindow.tsx +18 -32
  52. package/packages/components/preact/SearchModal/hooks/useKeyboardNav.ts +2 -2
  53. package/packages/components/preact/SearchModal/hooks/useSearchToggles.ts +3 -11
  54. package/packages/components/preact/SearchModal/types/search.types.tsx +2 -5
  55. package/packages/components/preact/index.ts +0 -1
  56. package/packages/styles/code-block.css +22 -23
  57. package/packages/styles/fonts.css +8 -3
  58. package/packages/styles/layout.css +33 -0
  59. package/packages/styles/tokens.css +22 -36
  60. package/packages/themes/poimandres.json +6 -19
  61. package/dist/assets/AskNetlify.css +0 -1
  62. package/dist/assets/Orb.css +0 -1
  63. package/dist/chunks/compat.module.BNbXPLVY.js +0 -298
  64. package/dist/chunks/hooks.module.DGkdD5n9.js +0 -177
  65. package/dist/components/preact/AskNetlify/AskNetlify.d.ts +0 -7
  66. package/dist/components/preact/AskNetlify/AskNetlify.js +0 -5778
  67. package/dist/components/preact/Orb/Orb.d.ts +0 -2
  68. package/dist/components/preact/Orb/Orb.js +0 -5
  69. package/dist/components/preact/SpriteIcon/index.d.ts +0 -7
  70. package/dist/components/preact/SpriteIcon/index.js +0 -7
  71. package/dist/components/preact/icons/AskNetlify.d.ts +0 -5
  72. package/dist/components/preact/icons/AskNetlify.js +0 -69
  73. package/dist/components/preact/icons/Book.d.ts +0 -5
  74. package/dist/components/preact/icons/Book.js +0 -23
  75. package/dist/components/preact/icons/CircleQuestion.d.ts +0 -5
  76. package/dist/components/preact/icons/CircleQuestion.js +0 -25
  77. package/dist/components/preact/icons/Comment.d.ts +0 -5
  78. package/dist/components/preact/icons/Comment.js +0 -23
  79. package/dist/components/preact/icons/Lightbulb.d.ts +0 -5
  80. package/dist/components/preact/icons/Lightbulb.js +0 -34
  81. package/dist/components/preact/icons/MagnifyingGlass.d.ts +0 -5
  82. package/dist/components/preact/icons/MagnifyingGlass.js +0 -23
  83. package/dist/utils/theme.d.ts +0 -3
  84. package/packages/assets/icons/AskNetlify.svg +0 -23
  85. package/packages/assets/icons/icons.svg +0 -10
  86. package/packages/assets/icons/lightbulb.svg +0 -4
  87. package/packages/components/preact/AskNetlify/AskNetlify.css +0 -224
  88. package/packages/components/preact/AskNetlify/AskNetlify.tsx +0 -163
  89. package/packages/components/preact/Orb/Orb.css +0 -94
  90. package/packages/components/preact/Orb/Orb.tsx +0 -7
  91. package/packages/components/preact/SpriteIcon/index.tsx +0 -13
  92. package/packages/components/preact/icons/AskNetlify.tsx +0 -46
  93. package/packages/components/preact/icons/Book.tsx +0 -20
  94. package/packages/components/preact/icons/CircleQuestion.tsx +0 -22
  95. package/packages/components/preact/icons/Comment.tsx +0 -20
  96. package/packages/components/preact/icons/Lightbulb.tsx +0 -26
  97. package/packages/components/preact/icons/MagnifyingGlass.tsx +0 -20
  98. package/packages/utils/theme.ts +0 -12
@@ -0,0 +1,45 @@
1
+ ---
2
+ interface Props {
3
+ class?: string;
4
+ isUniformHeight?: boolean;
5
+ noPadding?: boolean;
6
+ }
7
+
8
+ const { class: className, isUniformHeight, noPadding, ...rest } = Astro.props;
9
+ ---
10
+
11
+ <div
12
+ class:list={[
13
+ 'n-tabpanel-group',
14
+ isUniformHeight && 'n-tabpanel-group-uniform-height n-stack',
15
+ noPadding && 'n-tabpanel-group-no-padding',
16
+ className,
17
+ ]}
18
+ {...rest}
19
+ >
20
+ <slot />
21
+ </div>
22
+
23
+ <style>
24
+ .n-tabpanel-group {
25
+ --_radius: var(--radius-m);
26
+ background-color: var(--tabbed-content-bg-color-active);
27
+ border: var(--_border-size) var(--_border-style) var(--_border-color-active);
28
+ border-bottom-left-radius: var(--_radius);
29
+ border-bottom-right-radius: var(--_radius);
30
+ overflow: clip;
31
+ }
32
+
33
+ .n-tabpanel-group :global([role='tabpanel']) {
34
+ padding: var(--space-xl);
35
+ }
36
+
37
+ .n-tabpanel-group-uniform-height :global([role='tabpanel'][hidden]) {
38
+ display: block;
39
+ visibility: hidden;
40
+ }
41
+
42
+ .n-tabpanel-group-no-padding :global([role='tabpanel']) {
43
+ padding: unset;
44
+ }
45
+ </style>
@@ -0,0 +1,72 @@
1
+ ---
2
+ import Tabs from './Tabs.astro';
3
+
4
+ interface Props {
5
+ id?: string;
6
+ class?: string;
7
+ }
8
+
9
+ const { id, class: className, ...rest } = Astro.props;
10
+ ---
11
+
12
+ <Tabs {id} class:list={['n-tabbed-content', className]} {...rest}>
13
+ <slot />
14
+ </Tabs>
15
+
16
+ <style>
17
+ .n-tabbed-content {
18
+ --_border-size: 1px;
19
+ --_border-style: solid;
20
+ --_border-color-inactive: var(--color-bg-3);
21
+ --_border-color-active: var(--color-icon);
22
+ }
23
+
24
+ .n-tabbed-content :global([role='tablist']) {
25
+ position: relative;
26
+ display: flex;
27
+ border: none;
28
+ overflow-x: auto;
29
+ }
30
+
31
+ .n-tabbed-content :global([role='tab']) {
32
+ position: relative;
33
+ cursor: pointer;
34
+ flex: 1;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: var(--space-xs);
39
+ text-wrap: nowrap;
40
+ outline-offset: -1px;
41
+ padding: var(--space-xs) var(--space-s);
42
+ font-family: var(--font-family-display);
43
+ font-size: var(--font-size-text-lg);
44
+ font-weight: var(--font-weight-semibold);
45
+ line-height: var(--line-height-heading);
46
+ text-align: center;
47
+ color: var(--body-text-color);
48
+ background: var(--tabbed-content-bg-color);
49
+ border: var(--_border-size) var(--_border-style) var(--_border-color-inactive);
50
+ border-block-end: unset;
51
+
52
+ > :is(svg, img) {
53
+ flex-shrink: 0;
54
+ width: 1em;
55
+ height: auto;
56
+ }
57
+
58
+ + [role='tab'] {
59
+ margin-inline-start: -1px;
60
+ }
61
+
62
+ &[aria-selected='true'] {
63
+ --_radius: var(--radius-s);
64
+ color: var(--tabbed-content-tab-text-color-active);
65
+ border-top-left-radius: var(--_radius);
66
+ border-top-right-radius: var(--_radius);
67
+ border-color: var(--_border-color-active);
68
+ background: var(--tabbed-content-bg-color-active);
69
+ z-index: 1;
70
+ }
71
+ }
72
+ </style>
@@ -1,6 +1,4 @@
1
1
  ---
2
- import '../styles/tabs.css';
3
-
4
2
  interface Props {
5
3
  id?: string;
6
4
  class?: string;
File without changes
@@ -6,5 +6,4 @@ export { default as SearchLink } from './preact/SearchModal/components/SearchLin
6
6
  export { default as SearchHeading } from './preact/SearchModal/components/SearchHeading/SearchHeading';
7
7
  export { default as SearchToggle } from './preact/SearchModal/components/SearchToggle/SearchToggle';
8
8
  export { default as SearchModal } from './preact/SearchModal/components/SearchModal/SearchModal';
9
- export { default as ChatApp } from './preact/ChatApp/ChatApp';
10
9
  export { type IconName } from './preact/Icon';
@@ -7,121 +7,121 @@ type Props = {
7
7
  export default function Icon(props: Props) {
8
8
  const IconPath = iconPathMap[props.name];
9
9
 
10
- if (!IconPath) return;
11
-
12
- return (
13
- <svg
14
- id={`icon-${props.name}`}
15
- data-icon={props.name}
16
- viewBox="0 0 16 16"
17
- fill="none"
18
- xmlns="http://www.w3.org/2000/svg"
19
- {...props}
20
- >
21
- <IconPath />;
10
+ return (
11
+ <svg data-icon={props.name} viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
12
+ <IconPath />
22
13
  </svg>
23
14
  );
24
15
  }
25
16
 
26
- const AskNetlify: FunctionComponent = () => {
17
+ const SearchIcon: FunctionComponent = () => {
18
+ return (
19
+ <path
20
+ d="M8.5328 26.6769C8.5328 16.6562 16.6562 8.5328 26.6769 8.5328C36.6977 8.5328 44.8211 16.6562 44.8211 26.6769C44.8211 36.6977 36.6977 44.8211 26.6769 44.8211C16.6562 44.8211 8.5328 36.6977 8.5328 26.6769ZM26.6769 0C11.9437 0 0 11.9437 0 26.6769C0 41.4102 11.9437 53.3539 26.6769 53.3539C32.5038 53.3539 37.8943 51.4858 42.2822 48.3158L56.7168 62.7504C58.3829 64.4165 61.0843 64.4165 62.7504 62.7504C64.4165 61.0843 64.4165 58.3829 62.7504 56.7168L48.3158 42.2822C51.4858 37.8943 53.3539 32.5038 53.3539 26.6769C53.3539 11.9437 41.4102 0 26.6769 0Z"
21
+ fill="currentColor"
22
+ />
23
+ );
24
+ };
25
+
26
+ const SparklesIcon: FunctionComponent = () => {
27
+ return (
28
+ <path
29
+ d="M45.264 17.719L37.08 15.439C35.64 14.987 35.64 13.011 37.08 12.631L45.264 10.275C45.4922 10.1958 45.6994 10.0656 45.8699 9.89446C46.0404 9.72329 46.1697 9.51555 46.248 9.287L48.6 1.083C49.052 -0.361 51.024 -0.361 51.4 1.083L53.676 9.287C53.7543 9.51555 53.8836 9.72329 54.0541 9.89446C54.2246 10.0656 54.4318 10.1958 54.66 10.275L62.92 12.635C64.36 13.087 64.36 15.063 62.92 15.443L54.736 17.723C54.5078 17.8022 54.3006 17.9324 54.1301 18.1035C53.9596 18.2747 53.8303 18.4824 53.752 18.711L51.4 26.915C50.948 28.359 48.976 28.359 48.6 26.915L46.248 18.711C46.1694 18.4826 46.0401 18.275 45.8696 18.1039C45.6992 17.9327 45.4921 17.8025 45.264 17.723V17.719ZM29.36 33.663L42.348 37.615C44.536 38.271 44.536 41.643 42.424 42.383L29.436 46.335C29.0506 46.4707 28.7043 46.6988 28.4274 46.9994C28.1506 47.2999 27.9516 47.6637 27.848 48.059L24.224 62.211C24.1201 62.7151 23.8456 63.1679 23.4466 63.4931C23.0476 63.8182 22.5487 63.9958 22.034 63.9958C21.5193 63.9958 21.0204 63.8182 20.6214 63.4931C20.2224 63.1679 19.9479 62.7151 19.844 62.211L16.22 48.059C16.1164 47.6637 15.9174 47.2999 15.6406 46.9994C15.3637 46.6988 15.0174 46.4707 14.632 46.335L1.644 42.383C-0.548 41.727 -0.548 38.271 1.644 37.615L14.556 33.663C14.9414 33.5273 15.2877 33.2992 15.5646 32.9986C15.8414 32.6981 16.0404 32.3343 16.144 31.939L19.768 17.787C19.8719 17.2829 20.1464 16.8301 20.5454 16.5049C20.9444 16.1798 21.4433 16.0022 21.958 16.0022C22.4727 16.0022 22.9716 16.1798 23.3706 16.5049C23.7696 16.8301 24.0441 17.2829 24.148 17.787L27.772 31.939C28 32.759 28.604 33.419 29.36 33.663Z"
30
+ fill="currentColor"
31
+ />
32
+ );
33
+ };
34
+
35
+ const NetlifyIcon: FunctionComponent = () => {
27
36
  return (
28
37
  <>
29
38
  <path
30
- id="ask-netlify-tick-3"
31
- d="M9.26465 1.02094L9.31322 0.921348L10.0528 0.666687L10.1524 0.715259L10.5563 1.9638L10.2999 2.4895L10.195 2.52628L9.6685 2.26948L9.26465 1.02094Z"
39
+ d="M35.9844 32.8064H28.0101L27.3492 32.1231V23.877L28.0101 23.1936H35.9844L36.6452 23.877V32.1231L35.9844 32.8064Z"
32
40
  fill="currentColor"
33
41
  />
34
42
  <path
35
- id="ask-netlify-tick-1"
36
- d="M15.5915 3.11667L15.6942 3.15818L15.9999 3.8782L15.9584 3.98093L14.741 4.4709L14.1987 4.25179L14.1547 4.14977L14.3742 3.60663L15.5915 3.11667Z"
43
+ d="M19.3916 45.233H18.7141L15.3322 41.7359V41.041L20.5022 35.6891L24.084 35.6948L24.5616 36.1829V39.8868L19.3916 45.233Z"
37
44
  fill="currentColor"
38
45
  />
39
46
  <path
40
- id="ask-netlify-tick-2"
41
- d="M12.8306 0.944052L12.9353 0.907978L13.6384 1.25087L13.6744 1.35564L12.9408 2.91375L12.3877 3.10417L12.2876 3.05604L12.0969 2.50216L12.8306 0.944052Z"
47
+ d="M15.3322 14.9647V14.2642L18.7141 10.767H19.3916L24.5616 16.1132V19.8113L24.084 20.3109H20.5022L15.3322 14.9647Z"
42
48
  fill="currentColor"
43
49
  />
44
50
  <path
45
- d="M5.60625 10.7823C5.60625 11.421 5.09138 11.9387 4.45625 11.9387C3.82112 11.9387 3.30625 11.421 3.30625 10.7823C3.30625 10.1436 3.82112 9.62585 4.45625 9.62585C5.09138 9.62585 5.60625 10.1436 5.60625 10.7823Z"
51
+ d="M20.0913 30.9746H0.410933L0 30.5496V25.4504L0.410933 25.0254H20.0913L20.5022 25.4504V30.5496L20.0913 30.9746Z"
46
52
  fill="currentColor"
47
53
  />
48
54
  <path
49
- d="M10.8777 11.9387C11.5129 11.9387 12.0277 11.421 12.0277 10.7823C12.0277 10.1436 11.5129 9.62585 10.8777 9.62585C10.2426 9.62585 9.72774 10.1436 9.72774 10.7823C9.72774 11.421 10.2426 11.9387 10.8777 11.9387Z"
55
+ d="M63.5891 30.9746H43.9087L43.4978 30.5496V25.4504L43.9087 25.0254H63.5891L64 25.4504V30.5496L63.5891 30.9746Z"
50
56
  fill="currentColor"
51
57
  />
52
58
  <path
53
- d="M8.41582 10.9491L8.43331 10.994L8.43337 11.2417L8.41589 11.2866L7.86046 12.4215L7.78018 12.4806H7.5763L7.49602 12.4215L6.91751 11.2866L6.90003 11.2417L6.89997 11.2114V10.994L6.91745 10.9491L7.55316 10.526H7.75704L8.41582 10.9491Z"
59
+ d="M29.1263 15.6883V0.424938L29.5372 0H34.4684L34.8793 0.424938V15.6883L34.4684 16.1132H29.5372L29.1263 15.6883Z"
54
60
  fill="currentColor"
55
61
  />
56
62
  <path
57
- fill-rule="evenodd"
58
- clip-rule="evenodd"
59
- d="M7.86997 4.00002C11.9918 4.00002 15.3333 6.70814 15.3333 10.853C15.3333 13.3274 13.3386 15.3334 10.878 15.3334H0V10.853C0 6.70814 3.34157 4.00002 7.46336 4.00002H7.86997ZM0.990302 10.5245C0.990302 8.69571 2.51537 7.15558 4.33747 7.15558C5.71877 7.15558 6.90206 7.9938 7.41504 9.19232C7.41751 9.1981 7.42291 9.20918 7.42291 9.20918H7.91072C7.91072 9.20918 7.91612 9.1981 7.91859 9.19232C8.43157 7.9938 9.61486 7.15558 10.9962 7.15558C12.8183 7.15558 14.3433 8.69571 14.3433 10.5245C14.3433 12.2311 12.9812 13.8499 11.447 13.8845H4.15184C2.38987 13.7867 0.990302 12.323 0.990302 10.5245Z"
63
+ d="M29.1263 55.5751V40.3117L29.5372 39.8868H34.4684L34.8793 40.3117V55.5751L34.4684 56H29.5372L29.1263 55.5751Z"
64
+ fill="currentColor"
65
+ />
66
+ <path
67
+ d="M36.6452 32.1231L35.9844 32.8064H28.0101L27.3492 32.1231V23.877L28.0101 23.1936H35.9844L36.6452 23.877V32.1231ZM35.0452 24.7936H28.9492V31.2064H35.0452V24.7936ZM18.7141 45.233L15.3322 41.7359V41.041L20.5022 35.6891L24.084 35.6948L24.5616 36.1829V39.8868L19.3916 45.233H18.7141ZM22.9616 39.2397L19.0528 43.2816L17.2216 41.388L21.1802 37.2902L22.9616 37.293V39.2397ZM17.2193 14.6144L21.1807 18.7109H22.9616V16.7603L19.0528 12.7184L17.2193 14.6144ZM15.3322 14.2642L18.7141 10.767H19.3916L24.5616 16.1132V19.8113L24.084 20.3109H20.5022L15.3322 14.9647V14.2642ZM20.5022 30.5496L20.0913 30.9746H0.410933L0 30.5496V25.4504L0.410933 25.0254H20.0913L20.5022 25.4504V30.5496ZM18.9022 26.6254V29.3746H1.6V26.6254H18.9022ZM62.4 29.3746V26.6254H45.0978V29.3746H62.4ZM43.4978 30.5496V25.4504L43.9087 25.0254H63.5891L64 25.4504V30.5496L63.5891 30.9746H43.9087L43.4978 30.5496ZM30.7263 14.5132H33.2793V1.6H30.7263V14.5132ZM29.5372 0H34.4684L34.8793 0.424938V15.6883L34.4684 16.1132H29.5372L29.1263 15.6883V0.424938L29.5372 0ZM30.7263 54.4H33.2793V41.4868H30.7263V54.4ZM29.5372 39.8868H34.4684L34.8793 40.3117V55.5751L34.4684 56H29.5372L29.1263 55.5751V40.3117L29.5372 39.8868Z"
60
68
  fill="currentColor"
61
69
  />
62
70
  </>
63
71
  );
64
72
  };
65
73
 
66
- const SearchIcon: FunctionComponent = () => {
74
+ const BookIcon: FunctionComponent = () => {
67
75
  return (
68
76
  <path
69
- d="M12.3756 6.68667C12.3756 7.94156 11.9681 9.10077 11.2818 10.0413L14.7436 13.5052C15.0855 13.8469 15.0855 14.4019 14.7436 14.7437C14.4018 15.0854 13.8467 15.0854 13.5049 14.7437L10.043 11.2797C9.10235 11.9687 7.94292 12.3733 6.68778 12.3733C3.54583 12.3733 1 9.828 1 6.68667C1 3.54533 3.54583 1 6.68778 1C9.82973 1 12.3756 3.54533 12.3756 6.68667ZM6.68778 10.6236C7.20488 10.6236 7.71692 10.5218 8.19467 10.3239C8.67241 10.1261 9.1065 9.83607 9.47215 9.47049C9.83779 9.10491 10.1278 8.67091 10.3257 8.19326C10.5236 7.71561 10.6255 7.20367 10.6255 6.68667C10.6255 6.16966 10.5236 5.65772 10.3257 5.18007C10.1278 4.70242 9.83779 4.26842 9.47215 3.90284C9.1065 3.53726 8.67241 3.24727 8.19467 3.04942C7.71692 2.85158 7.20488 2.74974 6.68778 2.74974C6.17067 2.74974 5.65863 2.85158 5.18089 3.04942C4.70315 3.24727 4.26906 3.53726 3.90341 3.90284C3.53776 4.26842 3.24771 4.70242 3.04982 5.18007C2.85194 5.65772 2.75009 6.16966 2.75009 6.68667C2.75009 7.20367 2.85194 7.71561 3.04982 8.19326C3.24771 8.67091 3.53776 9.10491 3.90341 9.47049C4.26906 9.83607 4.70315 10.1261 5.18089 10.3239C5.65863 10.5218 6.17067 10.6236 6.68778 10.6236Z"
77
+ d="M0 11C0 4.925 4.925 0 11 0H49C52.8625 0 56 3.1375 56 7V43C56 45.7875 54.3625 48.2 52 49.325V58H53C54.6625 58 56 59.3375 56 61C56 62.6625 54.6625 64 53 64H10C4.475 64 0 59.525 0 54C0 53.6625 0.0125 53.325 0.05 53H0V11ZM10 50C7.7875 50 6 51.7875 6 54C6 56.2125 7.7875 58 10 58H46V50H10ZM6 44.8375C7.225 44.3 8.575 44 10 44H49C49.55 44 50 43.55 50 43V7C50 6.45 49.55 6 49 6H11C8.2375 6 6 8.2375 6 11V44.8375ZM19 14H41C42.6625 14 44 15.3375 44 17C44 18.6625 42.6625 20 41 20H19C17.3375 20 16 18.6625 16 17C16 15.3375 17.3375 14 19 14ZM19 24H41C42.6625 24 44 25.3375 44 27C44 28.6625 42.6625 30 41 30H19C17.3375 30 16 28.6625 16 27C16 25.3375 17.3375 24 19 24Z"
70
78
  fill="currentColor"
71
79
  />
72
80
  );
73
81
  };
74
82
 
75
- const BookIcon: FunctionComponent = () => {
83
+ const PencilIcon: FunctionComponent = () => {
76
84
  return (
77
85
  <path
78
- d="M4.57143 1C3.15179 1 2 2.17578 2 3.625V12.375C2 13.8242 3.15179 15 4.57143 15H12.2857H13.1429C13.617 15 14 14.609 14 14.125C14 13.641 13.617 13.25 13.1429 13.25V11.5C13.617 11.5 14 11.109 14 10.625V1.875C14 1.39102 13.617 1 13.1429 1H12.2857H4.57143ZM4.57143 11.5H11.4286V13.25H4.57143C4.09732 13.25 3.71429 12.859 3.71429 12.375C3.71429 11.891 4.09732 11.5 4.57143 11.5ZM5.42857 4.9375C5.42857 4.69687 5.62143 4.5 5.85714 4.5H11C11.2357 4.5 11.4286 4.69687 11.4286 4.9375C11.4286 5.17813 11.2357 5.375 11 5.375H5.85714C5.62143 5.375 5.42857 5.17813 5.42857 4.9375ZM5.85714 6.25H11C11.2357 6.25 11.4286 6.44687 11.4286 6.6875C11.4286 6.92813 11.2357 7.125 11 7.125H5.85714C5.62143 7.125 5.42857 6.92813 5.42857 6.6875C5.42857 6.44687 5.62143 6.25 5.85714 6.25Z"
86
+ d="M50.963 8.1111C50.1278 8.1111 49.3269 8.44286 48.7364 9.03338L9.92665 47.8431L8.44226 53.7807L14.3798 52.2963L53.1896 13.4865C53.482 13.1941 53.7139 12.847 53.8722 12.465C54.0304 12.0829 54.1118 11.6735 54.1118 11.26C54.1118 10.8465 54.0304 10.437 53.8722 10.0549C53.7139 9.67291 53.482 9.32578 53.1896 9.03338C52.8972 8.74098 52.55 8.50904 52.168 8.3508C51.786 8.19255 51.3765 8.1111 50.963 8.1111ZM43.7081 4.00507C45.6322 2.08096 48.2419 1 50.963 1C52.3103 1 53.6445 1.26538 54.8893 1.78099C56.1341 2.29661 57.2651 3.05235 58.2179 4.00507C59.1706 4.9578 59.9263 6.08884 60.4419 7.33364C60.9576 8.57844 61.2229 9.9126 61.2229 11.26C61.2229 12.6073 60.9576 13.9415 60.4419 15.1863C59.9263 16.4311 59.1706 17.5621 58.2179 18.5149L18.7117 58.021C18.2561 58.4767 17.6851 58.7999 17.0599 58.9562L4.41798 62.1167C3.20633 62.4196 1.9246 62.0646 1.04147 61.1815C0.158343 60.2983 -0.196675 59.0166 0.106235 57.805L3.26673 45.163C3.42302 44.5378 3.74629 43.9669 4.20196 43.5112L43.7081 4.00507ZM28.4445 58.6673C28.4445 56.7036 30.0364 55.1118 32 55.1118H60.4444C62.4081 55.1118 64 56.7036 64 58.6673C64 60.631 62.4081 62.2229 60.4444 62.2229H32C30.0364 62.2229 28.4445 60.631 28.4445 58.6673Z"
79
87
  fill="currentColor"
80
88
  />
81
89
  );
82
90
  };
83
91
 
84
- const CaretRightIcon: FunctionComponent = () => {
92
+ const CubeIcon: FunctionComponent = () => {
85
93
  return (
86
94
  <path
87
- d="M11.7071 7.29399C12.0976 7.68448 12.0976 8.31864 11.7071 8.70914L5.70826 14.7071C5.31771 15.0976 4.68346 15.0976 4.29291 14.7071C3.90236 14.3166 3.90236 13.6825 4.29291 13.292L9.58563 8L4.29604 2.70802C3.90549 2.31753 3.90549 1.68336 4.29604 1.29287C4.68658 0.902376 5.32084 0.902376 5.71138 1.29287L11.7102 7.29086L11.7071 7.29399Z"
95
+ d="M50.963 8.1111C50.1278 8.1111 49.3269 8.44286 48.7364 9.03338L9.92665 47.8431L8.44226 53.7807L14.3798 52.2963L53.1896 13.4865C53.482 13.1941 53.7139 12.847 53.8722 12.465C54.0304 12.0829 54.1118 11.6735 54.1118 11.26C54.1118 10.8465 54.0304 10.437 53.8722 10.0549C53.7139 9.67291 53.482 9.32578 53.1896 9.03338C52.8972 8.74098 52.55 8.50904 52.168 8.3508C51.786 8.19255 51.3765 8.1111 50.963 8.1111ZM43.7081 4.00507C45.6322 2.08096 48.2419 1 50.963 1C52.3103 1 53.6445 1.26538 54.8893 1.78099C56.1341 2.29661 57.2651 3.05235 58.2179 4.00507C59.1706 4.9578 59.9263 6.08884 60.4419 7.33364C60.9576 8.57844 61.2229 9.9126 61.2229 11.26C61.2229 12.6073 60.9576 13.9415 60.4419 15.1863C59.9263 16.4311 59.1706 17.5621 58.2179 18.5149L18.7117 58.021C18.2561 58.4767 17.6851 58.7999 17.0599 58.9562L4.41798 62.1167C3.20633 62.4196 1.9246 62.0646 1.04147 61.1815C0.158343 60.2983 -0.196675 59.0166 0.106235 57.805L3.26673 45.163C3.42302 44.5378 3.74629 43.9669 4.20196 43.5112L43.7081 4.00507ZM28.4445 58.6673C28.4445 56.7036 30.0364 55.1118 32 55.1118H60.4444C62.4081 55.1118 64 56.7036 64 58.6673C64 60.631 62.4081 62.2229 60.4444 62.2229H32C30.0364 62.2229 28.4445 60.631 28.4445 58.6673Z"
88
96
  fill="currentColor"
89
97
  />
90
98
  );
91
99
  };
92
100
 
93
- const RSSIcon: FunctionComponent = () => {
101
+ const CaretRightIcon: FunctionComponent = () => {
94
102
  return (
95
103
  <path
96
- d="M0 4.57143C0 2.04286 2.04286 0 4.57143 0C37.4 0 64 26.6 64 59.4286C64 61.9571 61.9571 64 59.4286 64C56.9 64 54.8571 61.9571 54.8571 59.4286C54.8571 31.6571 32.3429 9.14286 4.57143 9.14286C2.04286 9.14286 0 7.1 0 4.57143ZM0 54.8571C0 52.4323 0.963263 50.1068 2.67788 48.3922C4.3925 46.6776 6.71802 45.7143 9.14286 45.7143C11.5677 45.7143 13.8932 46.6776 15.6078 48.3922C17.3225 50.1068 18.2857 52.4323 18.2857 54.8571C18.2857 57.282 17.3225 59.6075 15.6078 61.3221C13.8932 63.0367 11.5677 64 9.14286 64C6.71802 64 4.3925 63.0367 2.67788 61.3221C0.963263 59.6075 0 57.282 0 54.8571ZM4.57143 18.2857C27.3 18.2857 45.7143 36.7 45.7143 59.4286C45.7143 61.9571 43.6714 64 41.1429 64C38.6143 64 36.5714 61.9571 36.5714 59.4286C36.5714 41.7571 22.2429 27.4286 4.57143 27.4286C2.04286 27.4286 0 25.3857 0 22.8571C0 20.3286 2.04286 18.2857 4.57143 18.2857Z"
104
+ d="M44.0011 24.0013L51.9987 31.9989L52.0008 32.0011L20.0018 64L12.0021 56.0003L36.0013 32.0011L12 7.99974L19.9997 0L44.0011 24.0013Z"
97
105
  fill="currentColor"
98
106
  />
99
107
  );
100
108
  };
101
109
 
102
- const CommentIcon: FunctionComponent = () => {
110
+ const RSSIcon: FunctionComponent = () => {
103
111
  return (
104
112
  <path
105
- d="M15 7.57143C15 10.6491 11.8666 13.1429 8.00041 13.1429C6.98601 13.1429 6.02357 12.9714 5.15409 12.6634C4.82871 12.8964 4.29828 13.2152 3.66941 13.483C3.01319 13.7616 2.22301 14 1.43829 14C1.26056 14 1.10198 13.8955 1.03362 13.7348C0.965266 13.5741 1.00355 13.392 1.12658 13.2688L1.13479 13.2607C1.14299 13.2527 1.15393 13.242 1.17033 13.2232C1.20041 13.1911 1.24689 13.1402 1.30431 13.0705C1.41641 12.9366 1.56679 12.7384 1.71991 12.492C1.99333 12.0473 2.25308 11.4634 2.30503 10.8071C1.48477 9.89643 1.00081 8.77946 1.00081 7.57143C1.00081 4.49375 4.13422 2 8.00041 2C11.8666 2 15 4.49375 15 7.57143Z"
113
+ d="M0 4.57143C0 2.04286 2.04286 0 4.57143 0C37.4 0 64 26.6 64 59.4286C64 61.9571 61.9571 64 59.4286 64C56.9 64 54.8571 61.9571 54.8571 59.4286C54.8571 31.6571 32.3429 9.14286 4.57143 9.14286C2.04286 9.14286 0 7.1 0 4.57143ZM0 54.8571C0 52.4323 0.963263 50.1068 2.67788 48.3922C4.3925 46.6776 6.71802 45.7143 9.14286 45.7143C11.5677 45.7143 13.8932 46.6776 15.6078 48.3922C17.3225 50.1068 18.2857 52.4323 18.2857 54.8571C18.2857 57.282 17.3225 59.6075 15.6078 61.3221C13.8932 63.0367 11.5677 64 9.14286 64C6.71802 64 4.3925 63.0367 2.67788 61.3221C0.963263 59.6075 0 57.282 0 54.8571ZM4.57143 18.2857C27.3 18.2857 45.7143 36.7 45.7143 59.4286C45.7143 61.9571 43.6714 64 41.1429 64C38.6143 64 36.5714 61.9571 36.5714 59.4286C36.5714 41.7571 22.2429 27.4286 4.57143 27.4286C2.04286 27.4286 0 25.3857 0 22.8571C0 20.3286 2.04286 18.2857 4.57143 18.2857Z"
106
114
  fill="currentColor"
107
115
  />
108
116
  );
109
117
  };
110
118
 
111
- const LightbulbIcon: FunctionComponent = () => {
119
+ const CommentIcon: FunctionComponent = () => {
112
120
  return (
113
- <>
114
- <path
115
- fill-rule="evenodd"
116
- clip-rule="evenodd"
117
- d="M4.04938 8.73798C3.2407 7.81172 2.75 6.59946 2.75 5.27071C2.75 2.48473 4.94068 0.00930912 7.98359 2.55322e-05C10.8908 -0.00895859 13.25 2.35416 13.25 5.27071C13.25 6.59946 12.7593 7.81172 11.9506 8.73798C11.4578 9.30248 10.687 10.9818 10.3932 11.9766L10.3899 12H5.61006L5.60678 11.9766C5.31295 10.9818 4.54216 9.30248 4.04938 8.73798ZM8.34274 2.03953C8.42611 2.41703 8.18767 2.79064 7.81017 2.87402C6.80315 3.09642 6.06073 3.89938 5.85994 4.87157C5.78174 5.25018 5.41143 5.49371 5.03282 5.41552C4.65421 5.33732 4.41068 4.96701 4.48888 4.5884C4.79524 3.10505 5.93379 1.85468 7.50825 1.50696C7.88575 1.42359 8.25936 1.66203 8.34274 2.03953Z"
118
- fill="currentColor"
119
- />
120
- <path
121
- d="M5.76932 14.9479C5.67636 14.81 5.62681 14.6478 5.62655 14.4823L5.62521 13.5L10.3752 13.5L10.3741 14.4823C10.374 14.648 10.3243 14.81 10.2314 14.9479L9.77614 15.6241C9.69838 15.7397 9.5929 15.8345 9.46909 15.9001C9.34529 15.9657 9.207 16 9.06653 16L6.93417 16C6.7937 16 6.65541 15.9657 6.5316 15.9001C6.4078 15.8345 6.30232 15.7397 6.22455 15.6241L5.76932 14.9479Z"
122
- fill="currentColor"
123
- />
124
- </>
121
+ <path
122
+ d="M15.4623 44.9025C17.0744 43.7277 19.1614 43.4278 21.0359 44.1027C24.3475 45.3024 28.0591 45.9897 32.0081 45.9897C47.5917 45.9897 58.0015 35.9295 58.0015 25.9942C58.0015 16.0589 47.5917 5.99866 32.0081 5.99866C16.4246 5.99866 6.01468 16.0589 6.01468 25.9942C6.01468 29.9933 7.56429 33.8424 10.4761 37.1417C11.5508 38.3539 12.0756 39.9536 11.9507 41.5782C11.7757 43.8402 11.2384 45.9148 10.5385 47.7518C12.663 46.7646 14.4251 45.6648 15.4623 44.915V44.9025ZM2.66553 49.9763C2.89048 49.6389 3.10292 49.3015 3.30287 48.9641C4.55255 46.8895 5.73975 44.1651 5.97719 41.1033C2.22814 36.8418 0.0162028 31.6304 0.0162028 25.9942C0.0162028 11.6349 14.3376 0 32.0081 0C49.6786 0 64 11.6349 64 25.9942C64 40.3535 49.6786 51.9884 32.0081 51.9884C27.3718 51.9884 22.9729 51.1886 18.9989 49.7514C17.5118 50.8387 15.0874 52.3258 12.2131 53.5755C10.3261 54.4004 8.17664 55.1502 5.9522 55.5876C5.85222 55.6126 5.75225 55.6251 5.65228 55.6501C5.10241 55.7501 4.56505 55.8375 4.00269 55.8875C3.9777 55.8875 3.94021 55.9 3.91522 55.9C3.27788 55.9625 2.64054 56 2.0032 56C1.19091 56 0.466089 55.5126 0.153668 54.7628C-0.158753 54.0129 0.0162028 53.1631 0.57856 52.5883C1.09093 52.0634 1.55331 51.501 1.9907 50.9011C2.20315 50.6137 2.4031 50.3263 2.59055 50.0388L2.62804 49.9763H2.66553Z"
123
+ fill="currentColor"
124
+ />
125
125
  );
126
126
  };
127
127
 
@@ -146,7 +146,7 @@ const CodeIcon: FunctionComponent = () => {
146
146
  const PageWithLinesIcon: FunctionComponent = () => {
147
147
  return (
148
148
  <path
149
- d="M4.83333 1C3.82214 1 3 1.78477 3 2.75V13.25C3 14.2152 3.82214 15 4.83333 15H12.1667C13.1779 15 14 14.2152 14 13.25V5.375H10.3333C9.8263 5.375 9.41667 4.98398 9.41667 4.5V1H4.83333ZM10.3333 1V4.5H14L10.3333 1ZM6.20833 8H10.7917C11.0438 8 11.25 8.19687 11.25 8.4375C11.25 8.67813 11.0438 8.875 10.7917 8.875H6.20833C5.95625 8.875 5.75 8.67813 5.75 8.4375C5.75 8.19687 5.95625 8 6.20833 8ZM6.20833 9.75H10.7917C11.0438 9.75 11.25 9.94687 11.25 10.1875C11.25 10.4281 11.0438 10.625 10.7917 10.625H6.20833C5.95625 10.625 5.75 10.4281 5.75 10.1875C5.75 9.94687 5.95625 9.75 6.20833 9.75ZM6.20833 11.5H10.7917C11.0438 11.5 11.25 11.6969 11.25 11.9375C11.25 12.1781 11.0438 12.375 10.7917 12.375H6.20833C5.95625 12.375 5.75 12.1781 5.75 11.9375C5.75 11.6969 5.95625 11.5 6.20833 11.5Z"
149
+ d="M8 58C6.9 58 6 57.1 6 56V8C6 6.9 6.9 6 8 6H28V16C28 18.2125 29.7875 20 32 20H42V56C42 57.1 41.1 58 40 58H8ZM8 0C3.5875 0 0 3.5875 0 8V56C0 60.4125 3.5875 64 8 64H40C44.4125 64 48 60.4125 48 56V19.3125C48 17.1875 47.1625 15.15 45.6625 13.65L34.3375 2.3375C32.8375 0.8375 30.8125 0 28.6875 0H8ZM15 32C13.3375 32 12 33.3375 12 35C12 36.6625 13.3375 38 15 38H33C34.6625 38 36 36.6625 36 35C36 33.3375 34.6625 32 33 32H15ZM15 44C13.3375 44 12 45.3375 12 47C12 48.6625 13.3375 50 15 50H33C34.6625 50 36 48.6625 36 47C36 45.3375 34.6625 44 33 44H15Z"
150
150
  fill="currentColor"
151
151
  />
152
152
  );
@@ -164,9 +164,7 @@ const TerminalIcon: FunctionComponent = () => {
164
164
  const QuestionIcon: FunctionComponent = () => {
165
165
  return (
166
166
  <path
167
- fill-rule="evenodd"
168
- clip-rule="evenodd"
169
- d="M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM7.48998 7.58293C7.24532 7.9418 7.1073 8.36489 7.09243 8.80158L7.09232 9.00062C7.09232 9.21263 7.17498 9.41595 7.32211 9.56587C7.46924 9.71578 7.6688 9.8 7.87688 9.8C8.08495 9.8 8.28451 9.71578 8.43164 9.56587C8.57878 9.41595 8.66143 9.21263 8.66143 9.00062V8.8172C8.67459 8.68789 8.72283 8.56481 8.80083 8.46179C8.82284 8.43271 8.87624 8.39281 8.96482 8.34893C9.04677 8.30834 9.13665 8.27475 9.21483 8.24583L9.2194 8.24414L9.22961 8.24053L9.23662 8.2376C9.7635 8.01739 10.1981 7.61624 10.4651 7.10372C10.7321 6.5912 10.8149 5.99957 10.6987 5.43153L10.6962 5.42197C10.5641 4.91215 10.2876 4.45323 9.90133 4.10235C9.51593 3.7523 9.03819 3.52522 8.52737 3.44924C8.1077 3.37054 7.67619 3.38633 7.26312 3.49553C6.849 3.605 6.46349 3.80568 6.13376 4.08342C5.58181 4.54443 5.25866 5.23048 5.25 5.95706V5.95934C5.25 6.17135 5.33266 6.37468 5.47979 6.52459C5.62692 6.6745 5.82648 6.75872 6.03456 6.75872C6.24264 6.75872 6.44219 6.6745 6.58933 6.52459C6.73595 6.37519 6.81855 6.17275 6.81911 5.96153C6.82486 5.70702 6.94287 5.46722 7.13988 5.30865C7.29566 5.18188 7.47721 5.09021 7.67067 5.04112C7.86413 4.99203 8.06566 4.98632 8.26159 5.02383L8.2716 5.02518C8.47683 5.05273 8.67003 5.13962 8.82831 5.27556C8.98372 5.40903 9.09909 5.5843 9.16133 5.78128C9.23237 6.20988 8.99652 6.63061 8.59639 6.78484L8.59136 6.78696C8.22065 6.94277 7.74615 7.20718 7.48998 7.58293ZM7.87406 12.6C8.42636 12.6 8.8741 12.1523 8.8741 11.6C8.8741 11.0477 8.42636 10.6 7.87406 10.6C7.32175 10.6 6.87402 11.0477 6.87402 11.6C6.87402 12.1523 7.32175 12.6 7.87406 12.6Z"
167
+ d="M8 20.0002C8 14.4752 12.475 10.0002 18 10.0002H22C27.525 10.0002 32 14.4752 32 20.0002V20.5752C32 23.5877 30.5 26.4002 27.9875 28.0627L21.45 32.4252C18.675 34.2752 17 37.4002 17 40.7502V41.0002C17 42.6627 18.3375 44.0002 20 44.0002C21.6625 44.0002 23 42.6627 23 41.0002V40.7502C23 39.4127 23.6625 38.1627 24.775 37.4252L31.3125 33.0627C35.4875 30.2752 37.9875 25.6002 37.9875 20.5877V20.0127C37.9875 11.1752 30.825 4.01271 21.9875 4.01271H17.9875C9.1625 4.00021 2 11.1627 2 20.0002C2 21.6627 3.3375 23.0002 5 23.0002C6.6625 23.0002 8 21.6627 8 20.0002ZM20 60.0002C21.0609 60.0002 22.0783 59.5788 22.8284 58.8286C23.5786 58.0785 24 57.0611 24 56.0002C24 54.9393 23.5786 53.9219 22.8284 53.1718C22.0783 52.4216 21.0609 52.0002 20 52.0002C18.9391 52.0002 17.9217 52.4216 17.1716 53.1718C16.4214 53.9219 16 54.9393 16 56.0002C16 57.0611 16.4214 58.0785 17.1716 58.8286C17.9217 59.5788 18.9391 60.0002 20 60.0002Z"
170
168
  fill="currentColor"
171
169
  />
172
170
  );
@@ -209,18 +207,17 @@ const YouTubeIcon: FunctionComponent = () => {
209
207
  };
210
208
 
211
209
  export type IconName =
212
- | 'askNetlify'
213
210
  | 'book'
214
211
  | 'caretRight'
215
212
  | 'code'
216
213
  | 'comment'
217
214
  | 'cube'
218
- | 'lightbulb'
219
215
  | 'link'
220
216
  | 'pageWithLines'
221
217
  | 'pencil'
222
218
  | 'rss'
223
219
  | 'search'
220
+ | 'sparkles'
224
221
  | 'terminal'
225
222
  | 'question'
226
223
  | 'linkedin'
@@ -230,20 +227,22 @@ export type IconName =
230
227
  | 'youtube';
231
228
 
232
229
  const iconPathMap: Record<IconName, FunctionComponent> = {
233
- askNetlify: AskNetlify,
234
230
  book: BookIcon,
235
231
  caretRight: CaretRightIcon,
236
232
  code: CodeIcon,
237
233
  comment: CommentIcon,
234
+ cube: CubeIcon,
238
235
  link: LinkIcon,
239
- lightbulb: LightbulbIcon,
240
236
  pageWithLines: PageWithLinesIcon,
237
+ pencil: PencilIcon,
241
238
  rss: RSSIcon,
242
239
  search: SearchIcon,
240
+ sparkles: SparklesIcon,
243
241
  terminal: TerminalIcon,
244
242
  question: QuestionIcon,
245
243
  bluesky: BlueSkyIcon,
246
244
  linkedin: LinkedInIcon,
245
+ netlify: NetlifyIcon,
247
246
  twitter: TwitterIcon,
248
247
  youtube: YouTubeIcon,
249
248
  };
@@ -1,13 +1,12 @@
1
1
  .n-search-heading {
2
- --n-search-heading-weight: var(--font-weight-semibold, 400);
3
- --n-search-heading-size: var(--font-size-text-xs, 13px);
4
- --n-search-heading-color: var(--color-text-weaker, #757575);
2
+ --n-search-heading-weight: var(--font-weight-regular, 400);
3
+ --n-search-heading-size: var(--font-size-text-sm, 13px);
4
+ --n-search-heading-color: var(--color-text-weak, #757575);
5
5
 
6
6
  font-size: var(--n-search-heading-size);
7
7
  font-weight: var(--n-search-heading-weight);
8
- font-family: var(--font-family-mono);
9
8
  color: var(--n-search-heading-color);
10
- padding-inline: var(--space-xs);
9
+ padding-inline: 1rem;
11
10
  margin-block: var(--space-xs);
12
11
  letter-spacing: 0.2px;
13
12
  }
@@ -6,22 +6,20 @@ interface Props {
6
6
  setSearchTerm: (term: string) => void;
7
7
  placeholder?: string;
8
8
  initialValue?: string;
9
- isGeneratingAnswer?: boolean;
10
- isPreparingAnswer?: boolean;
11
9
  }
12
10
 
13
11
  const SearchInput = (props: Props) => {
14
12
  const [value, setValue] = useState<string>('');
15
13
 
16
- const { reset, run } = useTimeout((query: string) => {
17
- props.setSearchTerm(query);
18
- }, 300);
19
-
20
- const handleInput = (e: InputEvent) => {
14
+ const { reset, run } = useTimeout((query: string) => {
15
+ props.setSearchTerm(query);
16
+ }, 300);
17
+
18
+ const handleInput = (e: InputEvent) => {
21
19
  const target = e.target as HTMLInputElement;
22
20
  setValue(target.value);
23
- reset();
24
- run(target.value);
21
+ reset()
22
+ run(target.value)
25
23
  };
26
24
 
27
25
  useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  .n-search-link {
2
- --n-search-icon-size: 1.25em;
3
- box-sizing: border-box;
2
+ --n-search-icon-size: 1em;
3
+ all: unset;
4
4
  display: flex;
5
5
  justify-content: space-between;
6
6
  flex-wrap: wrap;
@@ -11,11 +11,6 @@
11
11
  font-weight: var(--font-weight-regular);
12
12
  text-decoration: none;
13
13
  cursor: pointer;
14
- width: 100%;
15
- border: none;
16
- text-align: left;
17
- outline: none;
18
- border-radius: var(--radius-l);
19
14
  }
20
15
 
21
16
  .n-search-link-body {
@@ -25,17 +20,17 @@
25
20
  text-wrap: pretty;
26
21
  }
27
22
 
28
- .n-search-link:is(:hover, :focus-visible) {
23
+ .n-search-link:is(:hover, :focus-within) {
29
24
  background: var(--n-search-color-bg-2);
30
25
 
31
26
  & .n-search-link-icon [data-icon='caretRight'] {
32
- opacity: 1;
27
+ display: block;
33
28
  }
34
29
  }
35
30
 
36
31
  .n-search-link-title {
37
32
  font-weight: var(--font-weight-medium);
38
- color: var(--color-text-1);
33
+ color: var(--color-text);
39
34
  line-height: 1.5;
40
35
  }
41
36
 
@@ -54,8 +49,7 @@
54
49
  background-color: var(--mark-bg, var(--color-highlight));
55
50
  }
56
51
 
57
- .n-search-link-icon,
58
- .n-search-link-icon svg {
52
+ .n-search-link-icon {
59
53
  display: flex;
60
54
  width: var(--n-search-icon-size);
61
55
  height: var(--n-search-icon-size);
@@ -63,8 +57,9 @@
63
57
  }
64
58
 
65
59
  .n-search-link-icon [data-icon='caretRight'] {
66
- width: 1em;
67
- opacity: 0;
60
+ display: none;
61
+ width: 0.8em;
62
+ opacity: 0.3;
68
63
  }
69
64
 
70
65
  .n-search-link-label {
@@ -4,40 +4,20 @@ import './SearchLink.css';
4
4
 
5
5
  import Icon from '../../../Icon';
6
6
 
7
- const SearchLink = ({
8
- as: Component = 'a',
9
- icon,
10
- label,
11
- url,
12
- excerpt,
13
- resource,
14
- onClick,
15
- }: SearchLinkProps) => {
16
- const { handleClick: log } = useSearchLogger();
17
-
7
+ const SearchLink = ({ icon, label, url, excerpt, resource }: SearchLinkProps) => {
8
+ const { handleClick } = useSearchLogger()
9
+
18
10
  return (
19
- <Component
20
- className="n-search-link"
21
- href={url}
22
- onClick={(e: Event) => {
23
- onClick && onClick();
24
- log(e);
25
- }}
26
- >
11
+ <a className="n-search-link" href={url} onClick={handleClick}>
27
12
  {icon && (
28
13
  <span className="n-search-link-icon">
29
14
  <Icon name={icon} />
30
15
  </span>
31
16
  )}
32
17
  <div className="n-search-link-body">
18
+
33
19
  <p className="n-search-link-title">
34
- <span className="n-search-link-label">{label}</span>{' '}
35
- {resource && (
36
- <span className="n-search-link-badge" data-resource={resource}>
37
- {resource}
38
- </span>
39
- )}
40
- </p>
20
+ <span className="n-search-link-label">{label}</span> {resource && <span className="n-search-link-badge" data-resource={resource}>{resource}</span>}</p>
41
21
  {excerpt && (
42
22
  <p className="n-search-link-excerpt" dangerouslySetInnerHTML={{ __html: excerpt }} />
43
23
  )}
@@ -45,7 +25,7 @@ const SearchLink = ({
45
25
  <div className="n-search-link-icon">
46
26
  <Icon name="caretRight" />
47
27
  </div>
48
- </Component>
28
+ </a>
49
29
  );
50
30
  };
51
31