@dovetail-v2/refine 0.0.34 → 0.0.35-beta.2

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/dist/style.css CHANGED
@@ -6,13 +6,13 @@
6
6
  .b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
7
7
  .eckm4od{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
8
8
  .e1hl982n{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e1hl982n .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
9
+ .ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
10
+ .t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
9
11
  .b1vtjd4k.ant-btn.ant-btn-link{display:block;}
10
12
  .t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;}
11
13
  .t12ikbmp{overflow:hidden;text-overflow:ellipsis;}
12
14
  .s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
13
15
  .t19ustft{padding-bottom:3px;border-bottom:1px dashed rgba(107,128,167,0.6);}
14
- .ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
15
- .t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
16
16
  .t1v3ienx{padding:12px 24px;}
17
17
  .tgejfwe{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
18
18
  .tq6dc79{color:#00122E;}
@@ -34,11 +34,11 @@
34
34
  .nqm4qz0{margin-right:8px;}
35
35
  .ticl0qc{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
36
36
  .so9uwk1{width:100%;}
37
- .ge26ou0{padding:12px 16px;border-radius:8px;border:1px solid rgba(211,218,235,0.6);box-shadow: 0px 0px 2.003px 0px rgba(107,125,153,0.15), 0px 0px 16px 0px rgba(107,125,153,0.08);background-color:#fff;margin:16px 0;overflow:auto;margin-bottom:0;width:100%;max-width:1592px;}.ge26ou0:not(:last-of-type){margin-bottom:24px;}
37
+ .ge26ou0{padding:12px 16px;border-radius:8px;border:1px solid rgba(211,218,235,0.6);box-shadow: 0px 0px 2.003px 0px rgba(107,125,153,0.15), 0px 0px 16px 0px rgba(107,125,153,0.08);background-color:#fff;margin:16px 24px;overflow:auto;margin-bottom:0;width:calc(100% - 48px);max-width:1592px;}.ge26ou0:not(:last-of-type){margin-bottom:24px;}
38
38
  .g17f8vl9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#1d326c;margin-bottom:12px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}
39
39
  .fykgn2i{background-color:#fff;height:100%;}
40
40
  .fngr745{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
41
- .t11wg61l{padding:0 24px;padding-bottom:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:952px;}
41
+ .t11wg61l{padding-bottom:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:952px;}
42
42
  .t1x3rivf.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.t1x3rivf.ant-tabs .ant-tabs-nav{margin-bottom:0;}.t1x3rivf.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.t1x3rivf.ant-tabs .ant-tabs-content-holder{overflow:auto;}.t1x3rivf.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.t1x3rivf.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
43
43
  .c1dicff8{width:100%;vertical-align:top;}
44
44
  .esoz3jw .ant-modal-content{border-radius:16px;}.esoz3jw .ant-modal-header{border-radius:16px 16px 0 0;}
@@ -49,8 +49,8 @@
49
49
  .d1i11os3{position:absolute;left:35px;top:35px;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);}
50
50
  .r1bm8olw{color:#00122E;}
51
51
  .r1oqudbh{color:rgba(44,56,82,0.60);}
52
- .c18i6jtg{margin:auto 0;position:relative;}
53
- .lpm22il{margin-right:40px;}
52
+ .c18i6jtg{display:table;margin:auto 0;position:relative;}
53
+ .lpm22il{padding-right:40px;}
54
54
  .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main {
55
55
  --pf-v5-global--Color--100: var(--pf-v5-global--Color--light-100);
56
56
  --pf-v5-global--Color--200: var(--pf-v5-global--Color--light-200);
@@ -1501,7 +1501,7 @@
1501
1501
  .eh2qjnl{color:#f0483e;font-size:12px;line-height:18px;word-break:break-all;}
1502
1502
  .e19q2bnp{margin-top:8px;}
1503
1503
  .y16u5v3w .monaco-editor{border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.y16u5v3w .monaco-editor .margin{border-bottom-left-radius:8px;}.y16u5v3w .monaco-editor .monaco-scrollable-element{border-bottom-right-radius:8px;}
1504
- .e151npt0{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e151npt0 .monaco-editor,.e151npt0 .monaco-scrollable-element,.e151npt0 .overflow-guard > .margin{border-radius:8px;}
1504
+ .e1cjl2b8{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e1cjl2b8 .monaco-editor,.e1cjl2b8 .monaco-scrollable-element,.e1cjl2b8 .overflow-guard > .margin{border-radius:8px;}
1505
1505
  .w1akirqw{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1506
1506
  .t30srnq{line-height:32px !important;}
1507
1507
  .sj0ggy.ant-select .ant-select-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;gap:4px;}.sj0ggy.ant-select .ant-select-selector > span:first-of-type{max-width:calc(100% - 76px);}.sj0ggy.ant-select .ant-select-selection-search{display:none;}
@@ -1514,7 +1514,7 @@
1514
1514
  .aqrghwd{border-radius:4px;margin:6px;margin-bottom:0;padding:4px 8px 4px 12px;}
1515
1515
  .opi7z1z.ant-select-item{margin:0 6px;border-radius:4px;padding:4px 8px 4px 12px;}.opi7z1z.ant-select-item:not(:last-of-type){margin-bottom:3px;}.opi7z1z.ant-select-item:last-of-type{margin-bottom:6px;}
1516
1516
  .laykzsq{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1517
- .l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1517
+ .l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1518
1518
  .tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
1519
1519
  .n1rqcyjn.ant-select{margin-bottom:12px;}
1520
1520
  .c154n7ie{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;width:100%;}
@@ -0,0 +1,8 @@
1
+ import type { NetworkPolicyIngressRule, NetworkPolicyEgressRule } from 'kubernetes-types/networking/v1';
2
+ import React from 'react';
3
+ type Props = {
4
+ ingressOrEgress: NetworkPolicyIngressRule[] | NetworkPolicyEgressRule[];
5
+ kind?: string;
6
+ };
7
+ export declare const NetworkPolicyRulesViewer: React.FC<Props>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './NetworkPolicyRulesViewer';
@@ -1,20 +1,23 @@
1
1
  import { TableProps as BaseTableProps, RequiredColumnProps } from '@cloudtower/eagle';
2
2
  import React from 'react';
3
3
  import { FormType } from 'src/types';
4
- import { ResourceModel } from '../../models';
5
4
  export type IDObject = {
6
5
  id: string;
7
6
  };
8
- export type Column<Data extends ResourceModel> = RequiredColumnProps<Data> & {
9
- display: boolean;
7
+ export type Column<Data extends {
8
+ id: string;
9
+ }> = RequiredColumnProps<Data> & {
10
+ display?: boolean;
10
11
  };
11
- export type TableProps<Data extends ResourceModel> = {
12
+ export type TableProps<Data extends {
13
+ id: string;
14
+ }> = {
12
15
  tableKey: string;
13
16
  className?: string;
14
17
  loading: boolean;
15
- error: boolean;
18
+ error?: boolean;
16
19
  data: Data[];
17
- refetch: () => void;
20
+ refetch?: () => void;
18
21
  rowKey: (string & keyof Data) | ((record: Data) => string);
19
22
  columns: Array<Column<Data>>;
20
23
  scroll?: BaseTableProps<Data>['scroll'];
@@ -29,6 +32,9 @@ export type TableProps<Data extends ResourceModel> = {
29
32
  formType?: FormType;
30
33
  }>;
31
34
  empty?: string;
35
+ showMenuColumn?: boolean;
32
36
  };
33
- declare function Table<Data extends ResourceModel>(props: TableProps<Data>): JSX.Element;
37
+ declare function Table<Data extends {
38
+ id: string;
39
+ }>(props: TableProps<Data>): JSX.Element;
34
40
  export default Table;
@@ -6,6 +6,7 @@ export * from './ConditionsTable';
6
6
  export * from './FormLayout';
7
7
  export * from './PodContainersTable';
8
8
  export * from './WorkloadDropdown';
9
+ export * from './ReplicasDropdown';
9
10
  export * from './CreateButton';
10
11
  export * from './ImageNames';
11
12
  export * from './ResourceCRUD';
@@ -36,5 +37,5 @@ export * from './ServiceComponents';
36
37
  export * from './Tags';
37
38
  export * from './TextTags';
38
39
  export * from './PodLog';
39
- export * from './NetworkPolicyRulesTable';
40
+ export * from './NetworkPolicyRulesViewer';
40
41
  export * from './Tabs';
@@ -0,0 +1,5 @@
1
+ export declare enum AccessControlAuth {
2
+ Edit = "Edit",
3
+ Delete = "Delete",
4
+ Create = "Create"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.34",
3
+ "version": "0.0.35-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -21,7 +21,7 @@
21
21
  "dayjs": "^1.11.10",
22
22
  "i18next": "^23.2.3",
23
23
  "js-yaml": "^4.1.0",
24
- "k8s-api-provider": "0.0.16",
24
+ "k8s-api-provider": "0.0.18",
25
25
  "ky": "^0.33.3",
26
26
  "lodash-es": "^4.17.21",
27
27
  "mitt": "^3.0.1",