ydb-ui-components 6.0.0 → 6.1.0
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/NavigationTree/NavigationTreeNode.js +2 -0
- package/build/cjs/components/NavigationTree/types.d.ts +1 -1
- package/build/cjs/components/icons/Secret.d.ts +2 -0
- package/build/cjs/components/icons/Secret.js +8 -0
- package/build/cjs/components/icons/index.d.ts +1 -0
- package/build/cjs/components/icons/index.js +3 -1
- package/build/esm/components/NavigationTree/NavigationTreeNode.js +3 -1
- package/build/esm/components/NavigationTree/types.d.ts +1 -1
- package/build/esm/components/icons/Secret.d.ts +2 -0
- package/build/esm/components/icons/Secret.js +5 -0
- package/build/esm/components/icons/index.d.ts +1 -0
- package/build/esm/components/icons/index.js +1 -0
- package/package.json +1 -1
|
@@ -40,6 +40,8 @@ function renderIcon(type, collapsed) {
|
|
|
40
40
|
return (0, jsx_runtime_1.jsx)(icons_1.ViewIcon, {});
|
|
41
41
|
case 'resource_pool':
|
|
42
42
|
return (0, jsx_runtime_1.jsx)(icons_1.ResourcePoolIcon, {});
|
|
43
|
+
case 'secret':
|
|
44
|
+
return (0, jsx_runtime_1.jsx)(icons_1.SecretIcon, {});
|
|
43
45
|
default:
|
|
44
46
|
return null;
|
|
45
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DropdownMenuItemMixed } from '@gravity-ui/uikit';
|
|
3
|
-
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'system_table' | 'streaming_query' | 'table' | 'topic' | 'transfer' | 'view';
|
|
3
|
+
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'secret' | 'stream' | 'system_table' | 'streaming_query' | 'table' | 'topic' | 'transfer' | 'view';
|
|
4
4
|
export interface NavigationTreeDataItem<M = unknown> {
|
|
5
5
|
name: string;
|
|
6
6
|
type: NavigationTreeNodeType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecretIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function SecretIcon(props) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", height: 16, width: 16, viewBox: "0 0 16 16", fill: "currentColor" }, props, { children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1a4 4 0 0 1 4 4v1l.154.004A3 3 0 0 1 15 9v3a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9a3 3 0 0 1 2.846-2.996L4 6V5a4 4 0 0 1 4-4m0 7.75a.75.75 0 0 0-.75.75v2a.75.75 0 0 0 1.5 0v-2A.75.75 0 0 0 8 8.75M8 2.5A2.5 2.5 0 0 0 5.5 5v1h5V5A2.5 2.5 0 0 0 8 2.5" }) })));
|
|
7
|
+
}
|
|
8
|
+
exports.SecretIcon = SecretIcon;
|
|
@@ -6,6 +6,7 @@ export { ExternalTableIcon } from './ExternalTable';
|
|
|
6
6
|
export { FolderIcon } from './Folder';
|
|
7
7
|
export { FolderOpenIcon } from './FolderOpen';
|
|
8
8
|
export { ResourcePoolIcon } from './ResourcePool';
|
|
9
|
+
export { SecretIcon } from './Secret';
|
|
9
10
|
export { TableIcon } from './Table';
|
|
10
11
|
export { TableIndexIcon } from './TableIndex';
|
|
11
12
|
export { TopicIcon } from './Topic';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamingQueryIcon = exports.ViewIcon = exports.TransferIcon = exports.TopicIcon = exports.TableIndexIcon = exports.TableIcon = exports.ResourcePoolIcon = exports.FolderOpenIcon = exports.FolderIcon = exports.ExternalTableIcon = exports.ExternalDataSourceIcon = exports.DatabaseIcon = exports.ColumnTableIcon = exports.AsyncReplicationIcon = void 0;
|
|
3
|
+
exports.StreamingQueryIcon = exports.ViewIcon = exports.TransferIcon = exports.TopicIcon = exports.TableIndexIcon = exports.TableIcon = exports.SecretIcon = exports.ResourcePoolIcon = exports.FolderOpenIcon = exports.FolderIcon = exports.ExternalTableIcon = exports.ExternalDataSourceIcon = exports.DatabaseIcon = exports.ColumnTableIcon = exports.AsyncReplicationIcon = void 0;
|
|
4
4
|
var AsyncReplication_1 = require("./AsyncReplication");
|
|
5
5
|
Object.defineProperty(exports, "AsyncReplicationIcon", { enumerable: true, get: function () { return AsyncReplication_1.AsyncReplicationIcon; } });
|
|
6
6
|
var ColumnTable_1 = require("./ColumnTable");
|
|
@@ -17,6 +17,8 @@ var FolderOpen_1 = require("./FolderOpen");
|
|
|
17
17
|
Object.defineProperty(exports, "FolderOpenIcon", { enumerable: true, get: function () { return FolderOpen_1.FolderOpenIcon; } });
|
|
18
18
|
var ResourcePool_1 = require("./ResourcePool");
|
|
19
19
|
Object.defineProperty(exports, "ResourcePoolIcon", { enumerable: true, get: function () { return ResourcePool_1.ResourcePoolIcon; } });
|
|
20
|
+
var Secret_1 = require("./Secret");
|
|
21
|
+
Object.defineProperty(exports, "SecretIcon", { enumerable: true, get: function () { return Secret_1.SecretIcon; } });
|
|
20
22
|
var Table_1 = require("./Table");
|
|
21
23
|
Object.defineProperty(exports, "TableIcon", { enumerable: true, get: function () { return Table_1.TableIcon; } });
|
|
22
24
|
var TableIndex_1 = require("./TableIndex");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TreeView } from '../TreeView/TreeView';
|
|
4
|
-
import { AsyncReplicationIcon, ColumnTableIcon, DatabaseIcon, ExternalDataSourceIcon, ExternalTableIcon, FolderIcon, FolderOpenIcon, ResourcePoolIcon, StreamingQueryIcon, TableIcon, TableIndexIcon, TopicIcon, TransferIcon, ViewIcon, } from '../icons';
|
|
4
|
+
import { AsyncReplicationIcon, ColumnTableIcon, DatabaseIcon, ExternalDataSourceIcon, ExternalTableIcon, FolderIcon, FolderOpenIcon, ResourcePoolIcon, SecretIcon, StreamingQueryIcon, TableIcon, TableIndexIcon, TopicIcon, TransferIcon, ViewIcon, } from '../icons';
|
|
5
5
|
import { NavigationTreeActionType } from './state';
|
|
6
6
|
function renderIcon(type, collapsed) {
|
|
7
7
|
switch (type) {
|
|
@@ -34,6 +34,8 @@ function renderIcon(type, collapsed) {
|
|
|
34
34
|
return _jsx(ViewIcon, {});
|
|
35
35
|
case 'resource_pool':
|
|
36
36
|
return _jsx(ResourcePoolIcon, {});
|
|
37
|
+
case 'secret':
|
|
38
|
+
return _jsx(SecretIcon, {});
|
|
37
39
|
default:
|
|
38
40
|
return null;
|
|
39
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DropdownMenuItemMixed } from '@gravity-ui/uikit';
|
|
3
|
-
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'system_table' | 'streaming_query' | 'table' | 'topic' | 'transfer' | 'view';
|
|
3
|
+
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'secret' | 'stream' | 'system_table' | 'streaming_query' | 'table' | 'topic' | 'transfer' | 'view';
|
|
4
4
|
export interface NavigationTreeDataItem<M = unknown> {
|
|
5
5
|
name: string;
|
|
6
6
|
type: NavigationTreeNodeType;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export function SecretIcon(props) {
|
|
4
|
+
return (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", height: 16, width: 16, viewBox: "0 0 16 16", fill: "currentColor" }, props, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1a4 4 0 0 1 4 4v1l.154.004A3 3 0 0 1 15 9v3a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9a3 3 0 0 1 2.846-2.996L4 6V5a4 4 0 0 1 4-4m0 7.75a.75.75 0 0 0-.75.75v2a.75.75 0 0 0 1.5 0v-2A.75.75 0 0 0 8 8.75M8 2.5A2.5 2.5 0 0 0 5.5 5v1h5V5A2.5 2.5 0 0 0 8 2.5" }) })));
|
|
5
|
+
}
|
|
@@ -6,6 +6,7 @@ export { ExternalTableIcon } from './ExternalTable';
|
|
|
6
6
|
export { FolderIcon } from './Folder';
|
|
7
7
|
export { FolderOpenIcon } from './FolderOpen';
|
|
8
8
|
export { ResourcePoolIcon } from './ResourcePool';
|
|
9
|
+
export { SecretIcon } from './Secret';
|
|
9
10
|
export { TableIcon } from './Table';
|
|
10
11
|
export { TableIndexIcon } from './TableIndex';
|
|
11
12
|
export { TopicIcon } from './Topic';
|
|
@@ -6,6 +6,7 @@ export { ExternalTableIcon } from './ExternalTable';
|
|
|
6
6
|
export { FolderIcon } from './Folder';
|
|
7
7
|
export { FolderOpenIcon } from './FolderOpen';
|
|
8
8
|
export { ResourcePoolIcon } from './ResourcePool';
|
|
9
|
+
export { SecretIcon } from './Secret';
|
|
9
10
|
export { TableIcon } from './Table';
|
|
10
11
|
export { TableIndexIcon } from './TableIndex';
|
|
11
12
|
export { TopicIcon } from './Topic';
|