-
Notifications
You must be signed in to change notification settings - Fork 844
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 feat/hello-monorepo
- Loading branch information
Showing
44 changed files
with
726 additions
and
66 deletions.
There are no files selected for viewing
Binary file added
BIN
+4.49 KB
...chrome_desktop_Display_EuiGlobalToastList_EuiGlobalToastListItem_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.6 KB
...nce/chrome_desktop_Display_EuiGlobalToastList_EuiGlobalToastList_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.1 KB
...desktop_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItemEvent_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
..._desktop_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItemIcon_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.34 KB
...rome_desktop_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItem_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.03 KB
...i/.loki/reference/chrome_desktop_Display_EuiTimeline_EuiTimeline_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.8 KB
packages/eui/.loki/reference/chrome_desktop_Display_EuiToast_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+927 Bytes
....loki/reference/chrome_desktop_Navigation_EuiSteps_EuiStepNumber_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.53 KB
...desktop_Navigation_EuiSteps_EuiStepsHorizontal_EuiStepHorizontal_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.2 KB
...esktop_Navigation_EuiSteps_EuiStepsHorizontal_EuiStepsHorizontal_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.96 KB
...ki/reference/chrome_desktop_Navigation_EuiSteps_EuiSteps_EuiStep_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.1 KB
.../eui/.loki/reference/chrome_desktop_Navigation_EuiSteps_EuiSteps_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.7 KB
...i/.loki/reference/chrome_desktop_Navigation_EuiSteps_EuiSubSteps_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10 KB
.../chrome_mobile_Display_EuiGlobalToastList_EuiGlobalToastListItem_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.2 KB
...ence/chrome_mobile_Display_EuiGlobalToastList_EuiGlobalToastList_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.64 KB
..._mobile_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItemEvent_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.1 KB
...e_mobile_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItemIcon_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.68 KB
...hrome_mobile_Display_EuiTimeline_EuiTimelineItem_EuiTimelineItem_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
...ui/.loki/reference/chrome_mobile_Display_EuiTimeline_EuiTimeline_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.4 KB
packages/eui/.loki/reference/chrome_mobile_Display_EuiToast_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.71 KB
.../.loki/reference/chrome_mobile_Navigation_EuiSteps_EuiStepNumber_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.21 KB
..._mobile_Navigation_EuiSteps_EuiStepsHorizontal_EuiStepHorizontal_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.4 KB
...mobile_Navigation_EuiSteps_EuiStepsHorizontal_EuiStepsHorizontal_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.81 KB
...oki/reference/chrome_mobile_Navigation_EuiSteps_EuiSteps_EuiStep_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.3 KB
...s/eui/.loki/reference/chrome_mobile_Navigation_EuiSteps_EuiSteps_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.88 KB
...ui/.loki/reference/chrome_mobile_Navigation_EuiSteps_EuiSubSteps_Playground.png
Oops, something went wrong.
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 @@ | ||
- Updated `EuiSuperDatePicker`'s absolute tab UX to support setting manual timestamps via mouse click as well as enter key |
31 changes: 13 additions & 18 deletions
31
packages/eui/src/components/date_picker/super_date_picker/date_popover/_absolute_tab.scss
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,24 +1,19 @@ | ||
.euiSuperDatePicker__absoluteDateFormRow { | ||
.euiSuperDatePicker__absoluteDateForm { | ||
padding: 0 $euiSizeS $euiSizeS; | ||
} | ||
|
||
/* A bit of a visual trickery to make the format "hint" become an "error" text. | ||
NOTE: Normally reordering visually (vs DOM) isn't super great for screen reader users, | ||
but as the help text is already read out via `aria-describedby`, and the error text | ||
is read out immediately via `aria-live`, we can fairly safely prioritize visuals instead */ | ||
.euiFormRow__fieldWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
}; | ||
|
||
.euiFormControlLayout { | ||
order: 0; | ||
} | ||
.euiSuperDatePicker__absoluteDateFormSubmit { | ||
flex-shrink: 0; | ||
} | ||
|
||
.euiFormHelpText { | ||
order: 1; | ||
} | ||
.euiSuperDatePicker__absoluteDateFormRow { | ||
flex-grow: 1; | ||
|
||
.euiFormErrorText { | ||
order: 2; | ||
// CSS hack to make the help/error text extend to the submit button. | ||
// We can't actually put the submit button within an EuiFormRow due to | ||
// cloneElement limitations (https://github.com/elastic/eui/issues/2493#issuecomment-561278494) | ||
// TODO: Remove this and clean up DOM rendering once we can | ||
.euiFormRow__text { | ||
margin-inline-end: -1 * ($euiSizeXL + $euiSizeS); // XL - size of the button, S - size of the flex gap | ||
} | ||
} |
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
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,37 @@ | ||
/* | ||
* 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 type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { hideStorybookControls } from '../../../.storybook/utils'; | ||
import { STATUS } from './step_number'; | ||
import { EuiStep, EuiStepProps } from './step'; | ||
|
||
const meta: Meta<EuiStepProps> = { | ||
title: 'Navigation/EuiSteps/EuiSteps/EuiStep', | ||
component: EuiStep, | ||
argTypes: { | ||
status: { options: [undefined, ...STATUS] }, | ||
}, | ||
args: { | ||
headingElement: 'p', | ||
titleSize: 's', | ||
step: 1, | ||
}, | ||
}; | ||
hideStorybookControls(meta, ['aria-label']); | ||
|
||
export default meta; | ||
type Story = StoryObj<EuiStepProps>; | ||
|
||
export const Playground: Story = { | ||
args: { | ||
title: 'Step 1', | ||
children: 'lorem ipsum', | ||
}, | ||
}; |
39 changes: 39 additions & 0 deletions
39
packages/eui/src/components/steps/step_horizontal.stories.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,39 @@ | ||
/* | ||
* 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 type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { | ||
enableFunctionToggleControls, | ||
hideStorybookControls, | ||
} from '../../../.storybook/utils'; | ||
import { EuiStepHorizontal, EuiStepHorizontalProps } from './step_horizontal'; | ||
|
||
const meta: Meta<EuiStepHorizontalProps> = { | ||
title: 'Navigation/EuiSteps/EuiStepsHorizontal/EuiStepHorizontal', | ||
component: EuiStepHorizontal, | ||
args: { | ||
size: 'm', | ||
step: 1, | ||
status: 'incomplete', | ||
// set up for easier testing/QA | ||
disabled: false, | ||
}, | ||
}; | ||
hideStorybookControls(meta, ['aria-label']); | ||
enableFunctionToggleControls(meta, ['onClick']); | ||
|
||
export default meta; | ||
type Story = StoryObj<EuiStepHorizontalProps>; | ||
|
||
export const Playground: Story = { | ||
args: { | ||
title: 'Step 1', | ||
children: 'lorem ipsum', | ||
}, | ||
}; |
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,33 @@ | ||
/* | ||
* 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 type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { hideStorybookControls } from '../../../.storybook/utils'; | ||
import { EuiStepNumber, EuiStepNumberProps, STATUS } from './step_number'; | ||
|
||
const meta: Meta<EuiStepNumberProps> = { | ||
title: 'Navigation/EuiSteps/Subcomponents/EuiStepNumber', | ||
component: EuiStepNumber, | ||
argTypes: { | ||
status: { options: [undefined, ...STATUS] }, | ||
}, | ||
args: { | ||
titleSize: 's', | ||
}, | ||
}; | ||
hideStorybookControls(meta, ['aria-label']); | ||
|
||
export default meta; | ||
type Story = StoryObj<EuiStepNumberProps>; | ||
|
||
export const Playground: Story = { | ||
args: { | ||
number: 1, | ||
}, | ||
}; |
Oops, something went wrong.