Skip to content

Commit 3da6540

Browse files
authored
Merge branch 'main' into search-bar-filters-accessibility
2 parents 0379f7b + df7a98f commit 3da6540

595 files changed

Lines changed: 64688 additions & 7433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
diff --git a/dist/css/default/default.css b/dist/css/default/default.css
2+
index 66dd808169d8697ca5de07ba260c9ee01338d855..df63274cf24a6176a66c05557aa14314b776178a 100644
3+
--- a/dist/css/default/default.css
4+
+++ b/dist/css/default/default.css
5+
@@ -1165,54 +1165,6 @@ ol ol ol {
6+
list-style-type: lower-alpha;
7+
}
8+
9+
-/**
10+
- * Copyright (c) Facebook, Inc. and its affiliates.
11+
- *
12+
- * This source code is licensed under the MIT license found in the
13+
- * LICENSE file in the root directory of this source tree.
14+
- */
15+
-
16+
-table {
17+
- border-collapse: collapse;
18+
- display: block;
19+
- margin-bottom: var(--ifm-spacing-vertical);
20+
- overflow: auto;
21+
-}
22+
-
23+
-table thead tr {
24+
- border-bottom: 2px solid var(--ifm-table-border-color);
25+
- }
26+
-
27+
-table thead {
28+
- background-color: var(--ifm-table-stripe-background);
29+
- }
30+
-
31+
-table tr {
32+
- background-color: var(--ifm-table-background);
33+
- border-top: var(--ifm-table-border-width) solid
34+
- var(--ifm-table-border-color);
35+
- }
36+
-
37+
-table tr:nth-child(2n) {
38+
- background-color: var(--ifm-table-stripe-background);
39+
- }
40+
-
41+
-table th,
42+
- table td {
43+
- border: var(--ifm-table-border-width) solid var(--ifm-table-border-color);
44+
- padding: var(--ifm-table-cell-padding);
45+
- }
46+
-
47+
-table th {
48+
- background-color: var(--ifm-table-head-background);
49+
- color: var(--ifm-table-head-color);
50+
- font-weight: var(--ifm-table-head-font-weight);
51+
- }
52+
-
53+
-table td {
54+
- color: var(--ifm-table-cell-color);
55+
- }
56+
-
57+
/**
58+
* Copyright (c) Facebook, Inc. and its affiliates.
59+
*

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"@babel/core": "^7.21.8",
3333
"jsdom": "24.1.0",
3434
"@types/jsdom@npm:^20.0.0": "patch:@types/jsdom@npm%3A20.0.1#~/.yarn/patches/@types-jsdom-npm-20.0.1-5bb899e006.patch",
35-
"infima@npm:0.2.0-alpha.43": "patch:infima@npm%3A0.2.0-alpha.43#~/.yarn/patches/infima-npm-0.2.0-alpha.43-8d3b77b44d.patch"
35+
"infima@npm:0.2.0-alpha.43": "patch:infima@npm%3A0.2.0-alpha.43#~/.yarn/patches/infima-npm-0.2.0-alpha.43-8d3b77b44d.patch",
36+
"infima@npm:0.2.0-alpha.44": "patch:infima@npm%3A0.2.0-alpha.44#~/.yarn/patches/infima-npm-0.2.0-alpha.44-145834fad0.patch"
3637
},
3738
"packageManager": "yarn@4.2.2"
3839
}

packages/docusaurus-theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@docusaurus/theme-common": "^3.5.2",
3535
"@docusaurus/utils-validation": "^3.5.2",
3636
"@elastic/datemath": "^5.0.3",
37-
"@elastic/eui": "94.5.0",
37+
"@elastic/eui": "97.2.0",
3838
"@elastic/eui-docgen": "workspace:^",
3939
"@emotion/css": "^11.11.2",
4040
"@emotion/react": "^11.11.4",

packages/docusaurus-theme/src/components/call_out/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const getStyles = (theme: UseEuiTheme, variant: VARIANTS) => {
4343

4444
return {
4545
note: css`
46+
margin-block-start: var(--eui-theme-content-vertical-spacing);
47+
4648
&:not(:last-child) {
4749
margin-block-end: ${euiTheme.size.xl};
4850
}
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
export const CodeSandboxIcon = () => (
2-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" preserveAspectRatio="xMidYMid"
3-
viewBox="-20 0 296 296">
4-
<path
5-
d="M115.498 261.088v-106.61L23.814 101.73v60.773l41.996 24.347v45.7l49.688 28.54Zm23.814.627 50.605-29.151V185.78l42.269-24.495v-60.011l-92.874 53.621v106.82Zm80.66-180.887-48.817-28.289-42.863 24.872-43.188-24.897-49.252 28.667 91.914 52.882 92.206-53.235ZM0 222.212V74.495L127.987 0 256 74.182v147.797l-128.016 73.744L0 222.212Z" />
1+
import { HTMLAttributes } from 'react';
2+
3+
type Props = HTMLAttributes<SVGElement>;
4+
5+
export const CodeSandboxIcon = (props: Props) => (
6+
<svg
7+
xmlns="http://www.w3.org/2000/svg"
8+
width="16"
9+
height="16"
10+
preserveAspectRatio="xMidYMid"
11+
viewBox="-20 0 296 296"
12+
{...props}
13+
>
14+
<path d="M115.498 261.088v-106.61L23.814 101.73v60.773l41.996 24.347v45.7l49.688 28.54Zm23.814.627 50.605-29.151V185.78l42.269-24.495v-60.011l-92.874 53.621v106.82Zm80.66-180.887-48.817-28.289-42.863 24.872-43.188-24.897-49.252 28.667 91.914 52.882 92.206-53.235ZM0 222.212V74.495L127.987 0 256 74.182v147.797l-128.016 73.744L0 222.212Z" />
615
</svg>
716
);

packages/docusaurus-theme/src/components/demo/actions_bar/actions_bar.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
19
import {
210
EuiButton,
311
EuiButtonIcon,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
19
export { DemoActionsBar, type DemoActionsBarProps } from './actions_bar';

packages/docusaurus-theme/src/components/demo/code_transformer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
19
const IMPORT_REGEX = /^import [^'"]* from ['"]([^.'"\n ][^'"\n ]*)['"];?/gm;
210
const DEFAULT_EXPORT_REGEX = /export default /;
311
const COMPONENT_ONLY_REGEX = /^\(?</;

packages/docusaurus-theme/src/components/demo/context.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
19
import { createContext, useContext } from 'react';
210
import { DemoSourceMeta } from './demo';
311

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
9+
import { Demo, DemoProps } from './demo';
10+
11+
/**
12+
* Creates a custom <Demo /> component with predefined props.
13+
*/
14+
export const createDemo =
15+
(defaultProps: Partial<DemoProps>): typeof Demo =>
16+
(props: DemoProps) =>
17+
<Demo {...defaultProps} {...props} />;

0 commit comments

Comments
 (0)