Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecations, October 2021 Edition #5323

Merged
merged 27 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1ed22be
remove betaBadgeLabel, betaBadgeTooltipContent, betaBadgeTitle props …
thompsongl Oct 25, 2021
bebb30d
remove panelPaddingSize from EuiPageContent
thompsongl Oct 25, 2021
805cd26
remove secondary color prop options
thompsongl Oct 25, 2021
4ab8a68
remove makeId
thompsongl Oct 25, 2021
036b25b
remove old mobile only props from EuiTableRowCell
thompsongl Oct 25, 2021
e0a137d
remove EuiLoadingKibana
thompsongl Oct 25, 2021
ce99781
remove EuiCodeEditor
thompsongl Oct 25, 2021
0a9af3b
remove loading_kibana and code_editor scss imports
thompsongl Oct 26, 2021
29689c9
remove subdued color prop option from EuiButtonIcon
thompsongl Oct 26, 2021
cf6397f
Merge branch 'master' into 1469-october-2021
thompsongl Oct 26, 2021
d3b3f7e
CL
thompsongl Oct 26, 2021
84fea9e
secondary -> success
thompsongl Oct 27, 2021
b9c8acd
EuiCard beta badge:
Oct 27, 2021
0ca8103
Removing `secondary`: More finds
Oct 27, 2021
6a4ce22
EuiTableRowCell mobile props:
Oct 27, 2021
097b0e6
EuiLoadingKibana
Oct 27, 2021
b41f1f8
Merge branch '1469-october-2021' of https://github.com/thompsongl/eui…
thompsongl Oct 28, 2021
321a903
clean up
thompsongl Oct 28, 2021
eae3495
[EuiButtonDisplay] Setting better fallbacks for color vs `null`
Oct 28, 2021
9a8ac1e
Merge branch 'master' into 1469-october-2021
thompsongl Oct 28, 2021
a25f002
Merge branch '1469-october-2021' of https://github.com/thompsongl/eui…
thompsongl Oct 28, 2021
c9f9525
restore i18ntokens.json
thompsongl Oct 28, 2021
66ef400
Merge branch 'master' into 1469-october-2021
thompsongl Oct 28, 2021
ae1bca6
Found more `mobileOptions.fullWidth`
Oct 28, 2021
0dde0a3
🤦‍♀️ Undo `secondary` button
Oct 28, 2021
2d70163
A couple last fixes found from console errors
Oct 28, 2021
6e285a8
cl
Oct 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
- Fixed default text alignment in `EuiTableRowCell` on Safari ([#5283](https://github.com/elastic/eui/pull/5283))
- Fixed `mobileOptions.truncateText` from getting overridden by `truncateText` in `EuiTableRowCell` ([#5283](https://github.com/elastic/eui/pull/5283))

**Breaking changes**

- Removed `EuiCodeEditor` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `betaBadgeLabel`, `betaBadgeTooltipContent`, `betaBadgeTitle` props from `EuiCard` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `EuiLoadingKibana` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `secondary` color prop options ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `subdued` color prop option from `EuiButtonIcon` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `panelPaddingSize` from `EuiPageContent` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed `makeId` ([#5323](https://github.com/elastic/eui/pull/5323))
- Removed mobile-only props from `EuiTableRowCell` ([#5323](https://github.com/elastic/eui/pull/5323))

**Theme: Amsterdam**

- Fixed `mobileOptions.enlarge` styling in `EuiTableRowCell` ([#5283](https://github.com/elastic/eui/pull/5283))
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"mdast-util-to-hast": "^10.0.0",
"numeral": "^2.0.6",
"prop-types": "^15.6.0",
"react-ace": "^7.0.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to describe the joy I feel

"react-beautiful-dnd": "^13.0.0",
"react-dropzone": "^11.2.0",
"react-focus-on": "^3.5.0",
Expand Down
3 changes: 0 additions & 3 deletions src-docs/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ import { CardExample } from './views/card/card_example';

import { CallOutExample } from './views/call_out/call_out_example';

import { CodeEditorExample } from './views/code_editor/code_editor_example';

import { CodeExample } from './views/code/code_example';

import { CollapsibleNavExample } from './views/collapsible_nav/collapsible_nav_example';
Expand Down Expand Up @@ -464,7 +462,6 @@ const navigation = [
MarkdownFormatExample,
MarkdownEditorExample,
MarkdownPluginExample,
CodeEditorExample,
CodeExample,
].map((example) => createExample(example)),
},
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/button/button_toggle_aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default () => {
title="Autosave"
iconType="save"
aria-pressed={toggle3On}
color={toggle3On ? 'primary' : 'subdued'}
color={toggle3On ? 'primary' : 'text'}
onClick={() => {
setToggle3On((isOn) => !isOn);
}}
Expand Down
12 changes: 6 additions & 6 deletions src-docs/src/views/button/guidelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export default () => (

<EuiTableBody>
<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButton>Add thing</EuiButton>
</EuiTableRowCell>

Expand All @@ -447,7 +447,7 @@ export default () => (
</EuiTableRow>

<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButtonEmpty size="s">Cancel</EuiButtonEmpty>
</EuiTableRowCell>
<EuiTableRowCell>
Expand All @@ -458,7 +458,7 @@ export default () => (
</EuiTableRow>

<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButton fill>Create thing</EuiButton>
</EuiTableRowCell>

Expand All @@ -471,7 +471,7 @@ export default () => (
</EuiTableRow>

<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButton color="danger" fill>
Delete
</EuiButton>
Expand All @@ -495,7 +495,7 @@ export default () => (
</EuiTableRow>

<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButton color="danger">Remove</EuiButton>&nbsp;&nbsp;
<EuiButtonIcon
size="s"
Expand All @@ -512,7 +512,7 @@ export default () => (
</EuiTableRow>

<EuiTableRow>
<EuiTableRowCell isMobileFullWidth>
<EuiTableRowCell mobileOptions={{ width: '100%' }}>
<EuiButton fill>Save</EuiButton>&nbsp;&nbsp;
<EuiButton fill color="secondary" iconType="check">
Save and complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,29 @@ import {
EuiFlexItem,
} from '../../../../src/components';

const icons = ['dashboard', 'monitoring'];
const badges = [null, 'Beta'];

const cardNodes = icons.map(function (item, index) {
return (
<EuiFlexItem key={index}>
export default () => (
<EuiFlexGroup gutterSize="l">
<EuiFlexItem>
<EuiCard
icon={<EuiIcon size="xxl" type={`${item}App`} />}
title={`Kibana ${item}`}
icon={<EuiIcon size="xxl" type="dashboardApp" />}
title="Dashboards"
description="Example of a card's description. Stick to one or two sentences."
betaBadgeLabel={badges[index]}
betaBadgeTooltipContent={
badges[index]
? 'This module is not GA. Please help us by reporting any bugs.'
: undefined
}
onClick={() => {}}
/>
</EuiFlexItem>
);
});

export default () => (
<EuiFlexGroup gutterSize="l">
{cardNodes}
<EuiFlexItem>
<EuiCard
icon={<EuiIcon size="xxl" type="monitoringApp" />}
title="Monitoring"
description="Example of a card's description. Stick to one or two sentences."
betaBadgeProps={{
label: 'Beta',
tooltipContent:
'This module is not GA. Please help us by reporting any bugs.',
}}
onClick={() => {}}
/>
</EuiFlexItem>
<EuiFlexItem>
<EuiCard
icon={<EuiIcon size="xxl" type="lensApp" />}
Expand All @@ -41,9 +39,9 @@ export default () => (
betaBadgeProps={{
href: 'http://www.elastic.co/subscriptions',
target: '_blank',
label: 'Basic',
tooltipContent: 'This feature requires a Basic License',
}}
betaBadgeLabel="Basic"
betaBadgeTooltipContent="This feature requires a Basic License"
onClick={() => {}}
/>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ export default () => (
title="Transparent"
display="transparent"
description="This one doesn't have a background color anymore."
betaBadgeLabel="Beta"
betaBadgeTooltipContent="This module is not GA. Please help us by reporting any bugs."
betaBadgeProps={{
label: 'Beta',
tooltipContent:
'This module is not GA. Please help us by reporting any bugs.',
}}
onClick={() => {}}
/>
</EuiFlexItem>
Expand Down
16 changes: 9 additions & 7 deletions src-docs/src/views/card/card_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ export const CardExample = {
text: (
<p>
If the card links to or references a module that is not GA (beta, lab,
etc), you can add a <EuiCode>betaBadgeLabel</EuiCode> and{' '}
<EuiCode>betaBadgeTooltipContent</EuiCode> to the card and it will
properly create and position an <strong>EuiBetaBadge</strong>. If you
want to change the title of the tooltip, supply a{' '}
<EuiCode>betaBadgeTitle</EuiCode> prop.
etc), you can add a <EuiCode>betaBadgeProps.label</EuiCode> and{' '}
<EuiCode>betaBadgeProps.tooltipContent</EuiCode> to the card and it
will properly create and position an <strong>EuiBetaBadge</strong>. If
you want to change the title of the tooltip, supply a{' '}
<EuiCode>betaBadgeProps.title</EuiCode> prop.
</p>
),
props: { EuiCard },
Expand All @@ -259,8 +259,10 @@ export const CardExample = {
title="title"
description="description"
onClick={handleClick}
betaBadgeLabel="betaBadgeLabel"
betaBadgeTooltipContent={betaBadgeTooltipContent}
betaBadgeProps={{
label: 'betaBadgeLabel',
toolTipContent: 'betaBadgeTooltipContent',
}}
/>`,
},
{
Expand Down
5 changes: 0 additions & 5 deletions src-docs/src/views/card/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ export const cardConfig = () => {
type: PropTypes.String,
};

propsToUse.betaBadgeTooltipContent = {
...propsToUse.betaBadgeTooltipContent,
type: PropTypes.String,
};

propsToUse.onClick = simulateFunction(propsToUse.onClick);
propsToUse.display = createOptionalEnum(propsToUse.display);

Expand Down
33 changes: 0 additions & 33 deletions src-docs/src/views/code_editor/code_editor.js

This file was deleted.

32 changes: 0 additions & 32 deletions src-docs/src/views/code_editor/code_editor_example.js

This file was deleted.

30 changes: 0 additions & 30 deletions src-docs/src/views/code_editor/custom_mode.js

This file was deleted.

Loading