@dovetail-v2/refine 0.1.17-alpha.0 → 0.1.17-alpha.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.
@@ -1,3 +1,4 @@
1
+ import { StatusCapsuleColor } from '@cloudtower/eagle';
1
2
  import { useTable } from '@refinedev/core';
2
3
  import { i18n as I18nType } from 'i18next';
3
4
  import { Unstructured } from 'k8s-api-provider';
@@ -34,6 +35,10 @@ export type ShowTab<Model extends ResourceModel> = {
34
35
  export interface ShowConfig<Model extends ResourceModel = ResourceModel> {
35
36
  tabs?: ShowTab<Model>[];
36
37
  renderExtraButton?: (record: Model) => React.ReactNode;
38
+ resourceStateMap?: {
39
+ color: Record<string, StatusCapsuleColor | 'loading'>;
40
+ text: Record<string, string>;
41
+ };
37
42
  }
38
43
  export declare const ImageField: <Model extends WorkloadBaseModel>(i18n: I18nType) => ShowField<Model>;
39
44
  export declare const ReplicaField: <Model extends JobModel | WorkloadModel>() => ShowField<Model>;
@@ -1,10 +1,14 @@
1
+ import { StatusCapsuleColor } from '@cloudtower/eagle';
1
2
  import React from 'react';
2
3
  import { ResourceState } from '../../constants';
3
4
  type Props = {
4
5
  state?: ResourceState;
5
- resourceKind?: string;
6
6
  className?: string;
7
7
  hideBackground?: boolean;
8
+ customResourceStateMap?: {
9
+ color: Record<string, StatusCapsuleColor | 'loading'>;
10
+ text: Record<string, string>;
11
+ };
8
12
  };
9
13
  export declare const StateTag: React.FC<Props>;
10
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.17-alpha.0",
3
+ "version": "0.1.17-alpha.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",