@gravity-ui/dashkit 6.1.0-beta.0 → 6.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/components/ActionPanel/ActionPanel.d.ts +2 -3
- package/build/cjs/components/ActionPanel/ActionPanel.js +1 -1
- package/build/cjs/components/DashKit/index.d.ts +1 -0
- package/build/cjs/components/DashKit/index.js +3 -0
- package/build/cjs/components/OverlayControls/OverlayControls.css +3 -3
- package/build/esm/components/ActionPanel/ActionPanel.d.ts +2 -3
- package/build/esm/components/ActionPanel/ActionPanel.js +1 -1
- package/build/esm/components/DashKit/index.d.ts +1 -0
- package/build/esm/components/DashKit/index.js +1 -0
- package/build/esm/components/OverlayControls/OverlayControls.css +3 -3
- package/package.json +1 -1
|
@@ -2,12 +2,11 @@ import React from 'react';
|
|
|
2
2
|
export type ActionPanelItem = {
|
|
3
3
|
id: string;
|
|
4
4
|
icon: React.ReactNode;
|
|
5
|
-
title: string
|
|
5
|
+
title: string;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
type ActionPanelProps = {
|
|
9
|
+
export type ActionPanelProps = {
|
|
10
10
|
items: ActionPanelItem[];
|
|
11
11
|
};
|
|
12
12
|
export declare const ActionPanel: (props: ActionPanelProps) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -9,7 +9,7 @@ const ActionPanel = (props) => {
|
|
|
9
9
|
return (react_1.default.createElement("div", { className: b() }, props.items.map((item) => {
|
|
10
10
|
return (react_1.default.createElement("div", { role: "button", className: b('item', item.className), key: `dk-action-panel-${item.id}`, onClick: item.onClick },
|
|
11
11
|
react_1.default.createElement("div", { className: b('icon') }, item.icon),
|
|
12
|
-
react_1.default.createElement("div", { className: b('title') }, item.title)));
|
|
12
|
+
react_1.default.createElement("div", { className: b('title'), title: item.title }, item.title)));
|
|
13
13
|
})));
|
|
14
14
|
};
|
|
15
15
|
exports.ActionPanel = ActionPanel;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DashkitActionPanel = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./DashKit"), exports);
|
|
6
|
+
var ActionPanel_1 = require("../ActionPanel/ActionPanel");
|
|
7
|
+
Object.defineProperty(exports, "DashkitActionPanel", { enumerable: true, get: function () { return ActionPanel_1.ActionPanel; } });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.dashkit-overlay-controls {
|
|
2
2
|
position: absolute;
|
|
3
3
|
display: flex;
|
|
4
|
-
}
|
|
5
|
-
.dashkit-overlay-controls__default-controls {
|
|
6
|
-
display: flex;
|
|
7
4
|
background-color: var(--g-color-base-float);
|
|
8
5
|
border-radius: var(--g-border-radius-m);
|
|
9
6
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
|
|
10
7
|
}
|
|
8
|
+
.dashkit-overlay-controls__default-controls {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
11
|
.dashkit-overlay-controls_position_top_right {
|
|
12
12
|
top: 7px;
|
|
13
13
|
right: 7px;
|
|
@@ -3,12 +3,11 @@ import './ActionPanel.css';
|
|
|
3
3
|
export type ActionPanelItem = {
|
|
4
4
|
id: string;
|
|
5
5
|
icon: React.ReactNode;
|
|
6
|
-
title: string
|
|
6
|
+
title: string;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
type ActionPanelProps = {
|
|
10
|
+
export type ActionPanelProps = {
|
|
11
11
|
items: ActionPanelItem[];
|
|
12
12
|
};
|
|
13
13
|
export declare const ActionPanel: (props: ActionPanelProps) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -6,6 +6,6 @@ export const ActionPanel = (props) => {
|
|
|
6
6
|
return (React.createElement("div", { className: b() }, props.items.map((item) => {
|
|
7
7
|
return (React.createElement("div", { role: "button", className: b('item', item.className), key: `dk-action-panel-${item.id}`, onClick: item.onClick },
|
|
8
8
|
React.createElement("div", { className: b('icon') }, item.icon),
|
|
9
|
-
React.createElement("div", { className: b('title') }, item.title)));
|
|
9
|
+
React.createElement("div", { className: b('title'), title: item.title }, item.title)));
|
|
10
10
|
})));
|
|
11
11
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.dashkit-overlay-controls {
|
|
2
2
|
position: absolute;
|
|
3
3
|
display: flex;
|
|
4
|
-
}
|
|
5
|
-
.dashkit-overlay-controls__default-controls {
|
|
6
|
-
display: flex;
|
|
7
4
|
background-color: var(--g-color-base-float);
|
|
8
5
|
border-radius: var(--g-border-radius-m);
|
|
9
6
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
|
|
10
7
|
}
|
|
8
|
+
.dashkit-overlay-controls__default-controls {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
11
|
.dashkit-overlay-controls_position_top_right {
|
|
12
12
|
top: 7px;
|
|
13
13
|
right: 7px;
|