Skip to content

Commit

Permalink
WIP SplitButton on Dashbaords Create
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com>
  • Loading branch information
pjfitzgibbons committed Jan 12, 2024
1 parent a4ae399 commit aaa0c8a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dashboarding"
],
"private": true,
"version": "3.0.0",
"version": "2.11.0",
"branch": "main",
"types": "./opensearch_dashboards.d.ts",
"tsdocMetadata": "./build/tsdoc-metadata.json",
Expand Down Expand Up @@ -128,7 +128,7 @@
"dependencies": {
"@aws-crypto/client-node": "^3.1.1",
"@elastic/datemath": "5.0.3",
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"@elastic/good": "^9.0.1-kibana3",
"@elastic/numeral": "npm:@amoo-miki/numeral@2.6.0",
"@elastic/request-crypto": "2.0.0",
Expand Down Expand Up @@ -470,4 +470,4 @@
"node": ">=14.20.1 <19",
"yarn": "^1.22.10"
}
}
}
4 changes: 2 additions & 2 deletions packages/osd-ui-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"enzyme-adapter-react-16": "^1.9.1"
},
"devDependencies": {
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"@osd/babel-preset": "1.0.0",
"@osd/optimizer": "1.0.0",
"comment-stripper": "^0.0.4",
Expand All @@ -36,4 +36,4 @@
"postcss": "^8.4.5",
"sinon": "^7.4.2"
}
}
}
5 changes: 2 additions & 3 deletions packages/osd-ui-shared-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@elastic/charts": "31.1.0",
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"@elastic/numeral": "npm:@amoo-miki/numeral@2.6.0",
"@opensearch/datemath": "5.0.3",
"@osd/i18n": "1.0.0",
Expand Down Expand Up @@ -51,5 +51,4 @@
"val-loader": "^2.1.2",
"webpack": "npm:@amoo-miki/webpack@4.46.0-rc.2"
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
EuiContextMenuPanel,
EuiFlexItem,
EuiPopover,
EuiSplitButton,
} from '@elastic/eui';
import type { DashboardProvider } from '../../../types';

interface CreateButtonProps {
dashboardProviders?: { [key: string]: DashboardProvider };
Expand Down Expand Up @@ -47,15 +47,18 @@ const CreateButton = (props: CreateButtonProps) => {

const renderCreateMenuDropDown = () => {
const button = (
<EuiButton
iconType="arrowDown"
iconSide="right"
onClick={onMenuButtonClick}
fill
data-test-subj="createMenuDropdown"
>
<FormattedMessage id="dashboard.listing.createButtonText" defaultMessage="Create" />
</EuiButton>
<>
<EuiSplitButton fill>Test</EuiSplitButton>
<EuiButton
iconType="arrowDown"
iconSide="right"
onClick={onMenuButtonClick}
fill
data-test-subj="createMenuDropdown"
>
<FormattedMessage id="dashboard.listing.createButtonText" defaultMessage="Create" />
</EuiButton>
</>
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
},
"devDependencies": {
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"@osd/plugin-helpers": "1.0.0",
"react": "^16.14.0",
"react-dom": "^16.12.0",
"typescript": "4.0.2"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
},
"devDependencies": {
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"react": "^16.14.0",
"typescript": "4.0.2"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
},
"devDependencies": {
"@elastic/eui": "npm:@opensearch-project/oui@1.4.0",
"@elastic/eui": "npm:@pjfitzgibbons/oui@1.4.0-metrics.4",
"@osd/plugin-helpers": "1.0.0",
"react": "^16.14.0",
"typescript": "4.0.2"
}
}
}

0 comments on commit aaa0c8a

Please sign in to comment.