-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into search-bar-filters-accessibility
- Loading branch information
Showing
595 changed files
with
64,688 additions
and
7,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
diff --git a/dist/css/default/default.css b/dist/css/default/default.css | ||
index 66dd808169d8697ca5de07ba260c9ee01338d855..df63274cf24a6176a66c05557aa14314b776178a 100644 | ||
--- a/dist/css/default/default.css | ||
+++ b/dist/css/default/default.css | ||
@@ -1165,54 +1165,6 @@ ol ol ol { | ||
list-style-type: lower-alpha; | ||
} | ||
|
||
-/** | ||
- * Copyright (c) Facebook, Inc. and its affiliates. | ||
- * | ||
- * This source code is licensed under the MIT license found in the | ||
- * LICENSE file in the root directory of this source tree. | ||
- */ | ||
- | ||
-table { | ||
- border-collapse: collapse; | ||
- display: block; | ||
- margin-bottom: var(--ifm-spacing-vertical); | ||
- overflow: auto; | ||
-} | ||
- | ||
-table thead tr { | ||
- border-bottom: 2px solid var(--ifm-table-border-color); | ||
- } | ||
- | ||
-table thead { | ||
- background-color: var(--ifm-table-stripe-background); | ||
- } | ||
- | ||
-table tr { | ||
- background-color: var(--ifm-table-background); | ||
- border-top: var(--ifm-table-border-width) solid | ||
- var(--ifm-table-border-color); | ||
- } | ||
- | ||
-table tr:nth-child(2n) { | ||
- background-color: var(--ifm-table-stripe-background); | ||
- } | ||
- | ||
-table th, | ||
- table td { | ||
- border: var(--ifm-table-border-width) solid var(--ifm-table-border-color); | ||
- padding: var(--ifm-table-cell-padding); | ||
- } | ||
- | ||
-table th { | ||
- background-color: var(--ifm-table-head-background); | ||
- color: var(--ifm-table-head-color); | ||
- font-weight: var(--ifm-table-head-font-weight); | ||
- } | ||
- | ||
-table td { | ||
- color: var(--ifm-table-cell-color); | ||
- } | ||
- | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ | |
"@babel/core": "^7.21.8", | ||
"jsdom": "24.1.0", | ||
"@types/jsdom@npm:^20.0.0": "patch:@types/jsdom@npm%3A20.0.1#~/.yarn/patches/@types-jsdom-npm-20.0.1-5bb899e006.patch", | ||
"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" | ||
"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", | ||
"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" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
export const CodeSandboxIcon = () => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" preserveAspectRatio="xMidYMid" | ||
viewBox="-20 0 296 296"> | ||
<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" /> | ||
import { HTMLAttributes } from 'react'; | ||
|
||
type Props = HTMLAttributes<SVGElement>; | ||
|
||
export const CodeSandboxIcon = (props: Props) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="16" | ||
height="16" | ||
preserveAspectRatio="xMidYMid" | ||
viewBox="-20 0 296 296" | ||
{...props} | ||
> | ||
<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" /> | ||
</svg> | ||
); |
8 changes: 8 additions & 0 deletions
8
packages/docusaurus-theme/src/components/demo/actions_bar/actions_bar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/docusaurus-theme/src/components/demo/actions_bar/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { DemoActionsBar, type DemoActionsBarProps } from './actions_bar'; |
8 changes: 8 additions & 0 deletions
8
packages/docusaurus-theme/src/components/demo/code_transformer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/docusaurus-theme/src/components/demo/create_demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { Demo, DemoProps } from './demo'; | ||
|
||
/** | ||
* Creates a custom <Demo /> component with predefined props. | ||
*/ | ||
export const createDemo = | ||
(defaultProps: Partial<DemoProps>): typeof Demo => | ||
(props: DemoProps) => | ||
<Demo {...defaultProps} {...props} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/docusaurus-theme/src/components/demo/editor/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { DemoEditor } from './editor'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { Demo, type DemoProps } from './demo'; | ||
export { DemoSource } from './source'; | ||
export { createDemo } from './create_demo'; |
8 changes: 8 additions & 0 deletions
8
packages/docusaurus-theme/src/components/demo/preview/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { DemoPreview } from './preview'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
import React from 'react'; | ||
import * as EUI from '@elastic/eui'; | ||
import * as EmotionReact from '@emotion/react'; | ||
|
||
/** | ||
* A custom client-side require() alternative to inform users it's not available | ||
* in our demo environment | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
const clientSideRequire = () => { | ||
throw new Error('require() is not accessible in the interactive demo environment! All EUI and React exports are available in the global scope for you to use without the need to import them.'); | ||
} | ||
|
||
export const demoDefaultScope: Record<string, unknown> = { | ||
// React | ||
import React from 'react'; | ||
|
||
export const originalScope: Record<string, unknown> = { | ||
React, | ||
...React, | ||
|
||
// EUI exports | ||
...EUI, | ||
|
||
// Emotion | ||
...EmotionReact, | ||
|
||
require: clientSideRequire, | ||
}; |
Oops, something went wrong.