@dovetail-v2/refine 0.0.64 → 0.0.66-alpha.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.
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
10
10
  import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useCan, useTable, useDeleteMany, CanAccess, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
11
11
  import { parse, stringify } from "qs";
12
12
  import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
13
- import { Typo, Tag, useUIKit, kitContext, OverflowTooltip, Tooltip, StatusCapsule, usePushModal, Icon as Icon$1, Link as Link$1, Button, usePopModal, Loading, Divider, Fields, Space, Form, Modal, Select, AntdOption, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
13
+ import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$1, Pagination, OverflowTooltip, StatusCapsule, Tooltip, usePushModal, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Modal, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, Alert, usePopModal, Fields, DonutChart, SegmentControl, Checkbox, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
14
14
  import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
15
15
  import { omit as omit$1, merge, get as get$3, first, debounce, last, isObject as isObject$4, keyBy } from "lodash-es";
16
16
  import yaml from "js-yaml";
@@ -8326,9 +8326,8 @@ function Breadcrumb(props) {
8326
8326
  });
8327
8327
  }
8328
8328
  function NameInputWidget(props) {
8329
- const kit = useUIKit();
8330
8329
  const { action } = useResource();
8331
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { ...props, disabled: action === "edit" });
8330
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { ...props, disabled: action === "edit" });
8332
8331
  }
8333
8332
  const dnsSubDomainRules = [
8334
8333
  {
@@ -8373,7 +8372,6 @@ const rfc1035LabelRules = [
8373
8372
  }
8374
8373
  ];
8375
8374
  function NamespaceSelectWidget(props) {
8376
- const kit = useUIKit();
8377
8375
  const { action } = useResource();
8378
8376
  const { data: data2 } = useList({
8379
8377
  resource: "namespaces",
@@ -8385,7 +8383,7 @@ function NamespaceSelectWidget(props) {
8385
8383
  mode: "off"
8386
8384
  }
8387
8385
  });
8388
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8386
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8389
8387
  }
8390
8388
  const namespaceRules = [
8391
8389
  {
@@ -8395,7 +8393,6 @@ const namespaceRules = [
8395
8393
  ];
8396
8394
  function KeyValueInput(props) {
8397
8395
  const { children, item } = props;
8398
- const kit = useUIKit();
8399
8396
  const onKeyChange = useCallback(
8400
8397
  (event2) => {
8401
8398
  var _a;
@@ -8418,14 +8415,13 @@ function KeyValueInput(props) {
8418
8415
  },
8419
8416
  [item, props]
8420
8417
  );
8421
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { children: [
8422
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { value: item.key, onChange: onKeyChange }),
8423
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.textArea, { value: item.value, onChange: onValueChange }),
8418
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { children: [
8419
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { value: item.key, onChange: onKeyChange }),
8420
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { value: item.value, onChange: onValueChange }),
8424
8421
  children
8425
8422
  ] });
8426
8423
  }
8427
8424
  function KeyValueListWidget(props) {
8428
- const kit = useUIKit();
8429
8425
  const { value: value2 } = props;
8430
8426
  const items = useMemo(() => {
8431
8427
  return Object.entries(value2 || {}).map(([key2, value22]) => ({
@@ -8467,7 +8463,7 @@ function KeyValueListWidget(props) {
8467
8463
  onChange(temp);
8468
8464
  },
8469
8465
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
8470
- kit.button,
8466
+ Button,
8471
8467
  {
8472
8468
  onClick: () => {
8473
8469
  onRemove(index2);
@@ -8480,15 +8476,14 @@ function KeyValueListWidget(props) {
8480
8476
  index2
8481
8477
  );
8482
8478
  }),
8483
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
8479
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onAdd, children: "Add" }) })
8484
8480
  ] });
8485
8481
  }
8486
8482
  function MetadataForm() {
8487
- const kit = useUIKit();
8488
8483
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8489
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8484
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8490
8485
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8491
- kit.form.Item,
8486
+ Form.Item,
8492
8487
  {
8493
8488
  label: "Namespace",
8494
8489
  name: ["metadata", "namespace"],
@@ -8496,8 +8491,8 @@ function MetadataForm() {
8496
8491
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(NamespaceSelectWidget, {})
8497
8492
  }
8498
8493
  ),
8499
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8500
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8494
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8495
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8501
8496
  ] });
8502
8497
  }
8503
8498
  function memoize$2(fn) {
@@ -8687,7 +8682,6 @@ const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
8687
8682
  const index_dmbxj3 = "";
8688
8683
  const TableContainerStyle = "t1upn1sz";
8689
8684
  function Table(props) {
8690
- const kit = useUIKit();
8691
8685
  const {
8692
8686
  t: t2
8693
8687
  } = useTranslation();
@@ -8732,7 +8726,7 @@ function Table(props) {
8732
8726
  return columns;
8733
8727
  }, [columns, RowMenu]);
8734
8728
  if (loading) {
8735
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
8729
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
8736
8730
  } else if (error) {
8737
8731
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
8738
8732
  errorText: t2("dovetail.retry_when_access_data_failed"),
@@ -8752,7 +8746,7 @@ function Table(props) {
8752
8746
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
8753
8747
  ref: wrapperRef,
8754
8748
  className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
8755
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
8749
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
8756
8750
  tableLayout: "fixed",
8757
8751
  columns: finalColumns,
8758
8752
  dataSource,
@@ -8763,7 +8757,7 @@ function Table(props) {
8763
8757
  scroll
8764
8758
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
8765
8759
  ref: auxiliaryLineRef
8766
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8760
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Pagination, {
8767
8761
  current: currentPage,
8768
8762
  size: defaultSize,
8769
8763
  count: total,
@@ -8804,7 +8798,7 @@ function useTableData({ data: data2, columns, pageSize = 10, defaultSorters }) {
8804
8798
  const PodSelectorTable = ({ podSelectors = {} }) => {
8805
8799
  const { t: t2 } = useTranslation();
8806
8800
  const component = useContext(ComponentContext);
8807
- const Table$1 = component.Table || Table;
8801
+ const Table$12 = component.Table || Table;
8808
8802
  const currentSize = 10;
8809
8803
  const datas = Object.keys(podSelectors).map((key2) => ({
8810
8804
  id: key2,
@@ -8849,7 +8843,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8849
8843
  );
8850
8844
  }
8851
8845
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8852
- Table$1,
8846
+ Table$12,
8853
8847
  {
8854
8848
  tableKey: "podSelector",
8855
8849
  loading: false,
@@ -8869,7 +8863,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8869
8863
  const PortsTable = ({ service }) => {
8870
8864
  const { t: t2 } = useTranslation();
8871
8865
  const component = useContext(ComponentContext);
8872
- const Table$1 = component.Table || Table;
8866
+ const Table$12 = component.Table || Table;
8873
8867
  const currentSize = 10;
8874
8868
  const columns = [
8875
8869
  {
@@ -8937,7 +8931,7 @@ const PortsTable = ({ service }) => {
8937
8931
  );
8938
8932
  }
8939
8933
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8940
- Table$1,
8934
+ Table$12,
8941
8935
  {
8942
8936
  tableKey: "ports",
8943
8937
  loading: false,
@@ -10214,14 +10208,13 @@ const Tags = (props) => {
10214
10208
  const {
10215
10209
  value: value2
10216
10210
  } = props;
10217
- const kit = useUIKit();
10218
10211
  if (!value2) {
10219
10212
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
10220
10213
  value: ""
10221
10214
  });
10222
10215
  }
10223
10216
  const tags = Object.keys(value2).map((key2) => {
10224
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tag.SplitTag, {
10217
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tag.SplitTag, {
10225
10218
  className: TagStyle,
10226
10219
  primaryContent: key2,
10227
10220
  secondaryContent: value2[key2],
@@ -10229,7 +10222,7 @@ const Tags = (props) => {
10229
10222
  color: "gray"
10230
10223
  }, key2);
10231
10224
  });
10232
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
10225
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Space, {
10233
10226
  className: TagWrapper,
10234
10227
  size: 8,
10235
10228
  children: tags
@@ -10242,7 +10235,6 @@ const StateTag = ({
10242
10235
  hideBackground,
10243
10236
  className
10244
10237
  }) => {
10245
- const kit = useUIKit();
10246
10238
  const {
10247
10239
  t: t2
10248
10240
  } = useTranslation();
@@ -10261,7 +10253,7 @@ const StateTag = ({
10261
10253
  terminated: "red",
10262
10254
  stopped: "gray"
10263
10255
  };
10264
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.statusCapsule, {
10256
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, {
10265
10257
  className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
10266
10258
  color: statusMap[state2] !== "loading" ? statusMap[state2] : void 0,
10267
10259
  loading: statusMap[state2] === "loading",
@@ -10385,7 +10377,7 @@ const Time = (props) => {
10385
10377
  const ConditionsTable = ({ conditions = [] }) => {
10386
10378
  const { t: t2 } = useTranslation();
10387
10379
  const component = useContext(ComponentContext);
10388
- const Table$1 = component.Table || Table;
10380
+ const Table$12 = component.Table || Table;
10389
10381
  const conditionsWithId = addId(conditions, "type");
10390
10382
  const columns = [
10391
10383
  {
@@ -10461,7 +10453,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10461
10453
  );
10462
10454
  }
10463
10455
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10464
- Table$1,
10456
+ Table$12,
10465
10457
  {
10466
10458
  tableKey: "condition",
10467
10459
  loading: false,
@@ -10580,7 +10572,6 @@ function useOpenForm(options) {
10580
10572
  }
10581
10573
  function K8sDropdown(props) {
10582
10574
  const { record, size = "normal" } = props;
10583
- const kit = useUIKit();
10584
10575
  const { globalStore } = useGlobalStore();
10585
10576
  const useResourceResult = useResource();
10586
10577
  const resource = useResourceResult.resource;
@@ -10601,18 +10592,18 @@ function K8sDropdown(props) {
10601
10592
  });
10602
10593
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10603
10594
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10604
- kit.dropdown,
10595
+ Dropdown,
10605
10596
  {
10606
- overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.menu, { children: [
10597
+ overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(Menu$1, { children: [
10607
10598
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
10608
- kit.menuItem,
10599
+ Menu$1.Item,
10609
10600
  {
10610
10601
  onClick: openForm,
10611
10602
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
10612
10603
  }
10613
10604
  ),
10614
10605
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10615
- kit.menu.Item,
10606
+ Menu$1.Item,
10616
10607
  {
10617
10608
  onClick: () => {
10618
10609
  var _a;
@@ -10627,9 +10618,9 @@ function K8sDropdown(props) {
10627
10618
  }
10628
10619
  ),
10629
10620
  props.children,
10630
- (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, { style: { margin: 0 } }) : null,
10621
+ (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { style: { margin: 0 } }) : null,
10631
10622
  (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10632
- kit.menuItem,
10623
+ Menu$1.Item,
10633
10624
  {
10634
10625
  danger: true,
10635
10626
  onClick: () => {
@@ -10641,7 +10632,7 @@ function K8sDropdown(props) {
10641
10632
  ] }),
10642
10633
  trigger: ["click"],
10643
10634
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10644
- kit.button,
10635
+ Button,
10645
10636
  {
10646
10637
  type: "quiet",
10647
10638
  size: size === "large" ? "middle" : "small",
@@ -10658,7 +10649,7 @@ function K8sDropdown(props) {
10658
10649
  )
10659
10650
  }
10660
10651
  ),
10661
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10652
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
10662
10653
  ] });
10663
10654
  }
10664
10655
  var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
@@ -10686,7 +10677,7 @@ function addDefaultRenderToColumns(columns) {
10686
10677
  }
10687
10678
  const useEagleTable = (params) => {
10688
10679
  var _a, _b;
10689
- const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
10680
+ const { columns, tableProps, formatter, Dropdown: Dropdown2 = K8sDropdown } = params;
10690
10681
  const [selectedKeys, setSelectedKeys] = useState([]);
10691
10682
  const [currentPage, setCurrentPage] = useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
10692
10683
  const { resource } = useResource();
@@ -10742,7 +10733,7 @@ const useEagleTable = (params) => {
10742
10733
  setSelectedKeys(keys);
10743
10734
  },
10744
10735
  total,
10745
- RowMenu: Dropdown,
10736
+ RowMenu: Dropdown2,
10746
10737
  ...tableProps,
10747
10738
  defaultSize: currentSize
10748
10739
  };
@@ -10756,12 +10747,11 @@ const useEagleTable = (params) => {
10756
10747
  };
10757
10748
  function CreateButton() {
10758
10749
  var _a;
10759
- const kit = useUIKit();
10760
10750
  const { t: t2 } = useTranslation();
10761
10751
  const openForm = useOpenForm();
10762
10752
  const { resource } = useResource();
10763
10753
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10764
- kit.button,
10754
+ Button,
10765
10755
  {
10766
10756
  prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusAddCreateNew16BoldOntintIcon, {}),
10767
10757
  type: "primary",
@@ -10800,7 +10790,6 @@ const useDeleteManyModal = (resource, ids) => {
10800
10790
  };
10801
10791
  const DeleteManyButton = (props) => {
10802
10792
  const { resource } = useResource();
10803
- const kit = useUIKit();
10804
10793
  const { t: t2 } = useTranslation();
10805
10794
  const { modalProps, visible, setVisible } = useDeleteManyModal(
10806
10795
  (resource == null ? void 0 : resource.name) || "",
@@ -10810,8 +10799,8 @@ const DeleteManyButton = (props) => {
10810
10799
  setVisible(true);
10811
10800
  }, [setVisible]);
10812
10801
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10813
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10814
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10802
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10803
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
10815
10804
  ] });
10816
10805
  };
10817
10806
  const TableToolBar_4s5vf2 = "";
@@ -10825,18 +10814,17 @@ const TableToolBar = ({
10825
10814
  hideCreate
10826
10815
  }) => {
10827
10816
  var _a;
10828
- const kit = useUIKit();
10829
10817
  const {
10830
10818
  resource
10831
10819
  } = useResource();
10832
10820
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10833
10821
  className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
10834
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10822
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
10835
10823
  className: ToolbarStyle$1,
10836
10824
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10837
10825
  className: cx_default(Typo.Display.d2_regular_title, TitleStyle$2),
10838
10826
  children: (_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind
10839
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10827
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
10840
10828
  children: [selectedKeys.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteManyButton, {
10841
10829
  ids: selectedKeys
10842
10830
  }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
@@ -10871,10 +10859,9 @@ const CronjobJobsTable = ({
10871
10859
  const {
10872
10860
  i18n: i18n2
10873
10861
  } = useTranslation();
10874
- const kit = useUIKit();
10875
10862
  const [selectedKeys] = useState([]);
10876
10863
  const component = useContext(ComponentContext);
10877
- const Table$1 = component.Table || Table;
10864
+ const Table$12 = component.Table || Table;
10878
10865
  const columns = useMemo(() => [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
10879
10866
  ...WorkloadImageColumnRenderer(i18n2),
10880
10867
  width: 238
@@ -10909,13 +10896,13 @@ const CronjobJobsTable = ({
10909
10896
  type: ErrorContentType.Card
10910
10897
  });
10911
10898
  }
10912
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10899
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
10913
10900
  direction: "vertical",
10914
10901
  className: WrapperStyle$5,
10915
10902
  children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
10916
10903
  selectedKeys,
10917
10904
  hideCreate: true
10918
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
10905
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
10919
10906
  ...tableProps,
10920
10907
  tableKey: "cronjobs",
10921
10908
  showMenuColumn: false
@@ -10989,7 +10976,7 @@ const EventsTable = ({ uid }) => {
10989
10976
  }), [columns, uid]);
10990
10977
  const { tableProps } = useEagleTable(params);
10991
10978
  const component = useContext(ComponentContext);
10992
- const Table$1 = component.Table || Table;
10979
+ const Table$12 = component.Table || Table;
10993
10980
  if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
10994
10981
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10995
10982
  WidgetErrorContent,
@@ -10999,7 +10986,7 @@ const EventsTable = ({ uid }) => {
10999
10986
  );
11000
10987
  }
11001
10988
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
11002
- Table$1,
10989
+ Table$12,
11003
10990
  {
11004
10991
  ...tableProps,
11005
10992
  tableKey: "events",
@@ -11046,7 +11033,6 @@ const ResourceLink = (props) => {
11046
11033
  namespace: namespace2,
11047
11034
  resourceId
11048
11035
  } = props;
11049
- const kit = useUIKit();
11050
11036
  const navigation = useNavigation();
11051
11037
  const go = useGo();
11052
11038
  const onClick = () => {
@@ -11060,7 +11046,7 @@ const ResourceLink = (props) => {
11060
11046
  }
11061
11047
  });
11062
11048
  };
11063
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, {
11049
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
11064
11050
  className: LinkStyle,
11065
11051
  onClick,
11066
11052
  children: resourceId
@@ -11072,7 +11058,7 @@ const IngressRulesTable = ({ ingress }) => {
11072
11058
  return addId(ingress.flattenedRules || [], "fullPath");
11073
11059
  }, [ingress.flattenedRules]);
11074
11060
  const component = useContext(ComponentContext);
11075
- const Table$1 = component.Table || Table;
11061
+ const Table$12 = component.Table || Table;
11076
11062
  const currentSize = 10;
11077
11063
  const columns = [
11078
11064
  {
@@ -11161,7 +11147,7 @@ const IngressRulesTable = ({ ingress }) => {
11161
11147
  );
11162
11148
  }
11163
11149
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
11164
- Table$1,
11150
+ Table$12,
11165
11151
  {
11166
11152
  tableKey: "ingressRules",
11167
11153
  loading: false,
@@ -11254,9 +11240,8 @@ function KeyValueAnnotation(props) {
11254
11240
  }
11255
11241
  function Tabs(props) {
11256
11242
  const { tabs, className } = props;
11257
- const kit = useUIKit();
11258
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, { className, children: tabs.map((tab) => {
11259
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11243
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$1, { className, children: tabs.map((tab) => {
11244
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11260
11245
  }) });
11261
11246
  }
11262
11247
  const ShowContent_1u0cbxv = "";
@@ -11295,9 +11280,8 @@ const ShowContent = (props) => {
11295
11280
  const {
11296
11281
  showConfig,
11297
11282
  formatter,
11298
- Dropdown = K8sDropdown
11283
+ Dropdown: Dropdown2 = K8sDropdown
11299
11284
  } = props;
11300
- const kit = useUIKit();
11301
11285
  const parsed = useParsed();
11302
11286
  const {
11303
11287
  resource
@@ -11321,7 +11305,7 @@ const ShowContent = (props) => {
11321
11305
  id
11322
11306
  });
11323
11307
  const Component = useContext(ComponentContext);
11324
- const Tabs$1 = Component.Tabs || Tabs;
11308
+ const Tabs$12 = Component.Tabs || Tabs;
11325
11309
  if (!(data2 == null ? void 0 : data2.data)) {
11326
11310
  return null;
11327
11311
  }
@@ -11340,7 +11324,7 @@ const ShowContent = (props) => {
11340
11324
  } else {
11341
11325
  content = get$3(record, field.path);
11342
11326
  }
11343
- return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.col, {
11327
+ return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(Col, {
11344
11328
  flex: areaType === AreaType.Inline ? "none" : "",
11345
11329
  span: field.col || 24,
11346
11330
  children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -11395,7 +11379,7 @@ const ShowContent = (props) => {
11395
11379
  children: (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind
11396
11380
  })
11397
11381
  })
11398
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11382
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
11399
11383
  className: TopBarStyle,
11400
11384
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11401
11385
  style: {
@@ -11407,11 +11391,11 @@ const ShowContent = (props) => {
11407
11391
  }), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
11408
11392
  state: stateDisplay
11409
11393
  }) : void 0]
11410
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11394
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
11411
11395
  children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
11412
11396
  resource: resource == null ? void 0 : resource.name,
11413
11397
  action: AccessControlAuth.Edit,
11414
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11398
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
11415
11399
  style: {
11416
11400
  marginRight: 8
11417
11401
  },
@@ -11419,14 +11403,14 @@ const ShowContent = (props) => {
11419
11403
  prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditPen16GradientBlueIcon, {}),
11420
11404
  children: t2("dovetail.edit_yaml")
11421
11405
  })
11422
- }) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
11406
+ }) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown2, {
11423
11407
  record,
11424
11408
  size: "large"
11425
11409
  })]
11426
11410
  })]
11427
11411
  })]
11428
11412
  });
11429
- const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$1, {
11413
+ const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$12, {
11430
11414
  tabs: (showConfig.tabs || []).map((tab) => {
11431
11415
  var _a2;
11432
11416
  return {
@@ -11436,7 +11420,7 @@ const ShowContent = (props) => {
11436
11420
  className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
11437
11421
  children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
11438
11422
  const GroupContainer = group.title ? ShowGroupComponent : React__default.Fragment;
11439
- const FieldContainer = group.title ? kit.row : React__default.Fragment;
11423
+ const FieldContainer = group.title ? Row : React__default.Fragment;
11440
11424
  const groupContainerProps = group.title ? {
11441
11425
  title: group.title || ""
11442
11426
  } : {};
@@ -11449,7 +11433,7 @@ const ShowContent = (props) => {
11449
11433
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
11450
11434
  ...fieldContainerProps,
11451
11435
  children: renderFields(area.fields, area.type, !!group.title)
11452
- }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
11436
+ }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
11453
11437
  style: {
11454
11438
  margin: "8px 0 12px 0"
11455
11439
  }
@@ -11464,7 +11448,7 @@ const ShowContent = (props) => {
11464
11448
  });
11465
11449
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11466
11450
  className: ShowContentWrapperStyle,
11467
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
11451
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Space, {
11468
11452
  direction: "vertical",
11469
11453
  className: ShowContentHeaderStyle,
11470
11454
  children: topBar
@@ -11515,10 +11499,9 @@ const WorkloadPodsTable = ({
11515
11499
  const {
11516
11500
  i18n: i18n2
11517
11501
  } = useTranslation();
11518
- const kit = useUIKit();
11519
11502
  const [selectedKeys, setSelectedKeys] = useState([]);
11520
11503
  const component = useContext(ComponentContext);
11521
- const Table$1 = component.Table || Table;
11504
+ const Table$12 = component.Table || Table;
11522
11505
  const currentSize = 10;
11523
11506
  const columns = [NameColumnRenderer(i18n2, "pods"), StateDisplayColumnRenderer(i18n2), {
11524
11507
  key: "ip",
@@ -11560,13 +11543,13 @@ const WorkloadPodsTable = ({
11560
11543
  type: ErrorContentType.Card
11561
11544
  });
11562
11545
  }
11563
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11546
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
11564
11547
  direction: "vertical",
11565
11548
  className: "c1dicff8",
11566
11549
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
11567
11550
  selectedKeys,
11568
11551
  hideCreate: true
11569
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
11552
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
11570
11553
  ...tableProps,
11571
11554
  tableKey: "pods",
11572
11555
  onSelect: (keys) => setSelectedKeys(keys),
@@ -11578,9 +11561,8 @@ const WorkloadPodsTable = ({
11578
11561
  function FormErrorAlert(props) {
11579
11562
  const { errorMsgs, style, className, isEdit } = props;
11580
11563
  const { i18n: i18n2 } = useTranslation();
11581
- const kit = useUIKit();
11582
11564
  return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
11583
- kit.alert,
11565
+ Alert,
11584
11566
  {
11585
11567
  message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
11586
11568
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
@@ -11688,7 +11670,6 @@ function EditFieldModal(props) {
11688
11670
  formRef: form,
11689
11671
  renderContent
11690
11672
  } = props;
11691
- const kit = useUIKit();
11692
11673
  const {
11693
11674
  i18n: i18n2
11694
11675
  } = useTranslation();
@@ -11708,7 +11689,7 @@ function EditFieldModal(props) {
11708
11689
  popModal();
11709
11690
  reset();
11710
11691
  }, [reset]);
11711
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.modal, {
11692
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
11712
11693
  className: ModalStyle,
11713
11694
  title: title || i18n2.t("dovetail.edit"),
11714
11695
  confirmLoading: submitting,
@@ -11730,7 +11711,6 @@ function EditField(props) {
11730
11711
  const {
11731
11712
  modalProps
11732
11713
  } = props;
11733
- const kit = useUIKit();
11734
11714
  const {
11735
11715
  i18n: i18n2
11736
11716
  } = useTranslation();
@@ -11741,7 +11721,7 @@ function EditField(props) {
11741
11721
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
11742
11722
  resource: resource == null ? void 0 : resource.name,
11743
11723
  action: AccessControlAuth.Edit,
11744
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11724
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
11745
11725
  className: EditButtonStyle,
11746
11726
  type: "link",
11747
11727
  onClick: () => {
@@ -11770,7 +11750,6 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
11770
11750
  record,
11771
11751
  label: label2
11772
11752
  } = props;
11773
- const kit = useUIKit();
11774
11753
  const {
11775
11754
  resource
11776
11755
  } = useResource();
@@ -11807,7 +11786,7 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
11807
11786
  useImperativeHandle(ref, () => ({
11808
11787
  submit
11809
11788
  }), [submit]);
11810
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
11789
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
11811
11790
  label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11812
11791
  style: {
11813
11792
  width: "134px"
@@ -11815,7 +11794,7 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
11815
11794
  children: label2
11816
11795
  }),
11817
11796
  colon: false,
11818
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.fields.Integer, {
11797
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.Integer, {
11819
11798
  style: {
11820
11799
  width: "142px"
11821
11800
  },
@@ -11840,7 +11819,6 @@ function WorkloadReplicas({
11840
11819
  record,
11841
11820
  editable
11842
11821
  }) {
11843
- const kit = useUIKit();
11844
11822
  const {
11845
11823
  t: t2
11846
11824
  } = useTranslation();
@@ -11868,7 +11846,7 @@ function WorkloadReplicas({
11868
11846
  className: WorkloadReplicasWrapperStyle,
11869
11847
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
11870
11848
  className: DonutChartWrapperStyle,
11871
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.DonutChart, {
11849
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(DonutChart, {
11872
11850
  className: DonutChartStyle,
11873
11851
  data: donutData,
11874
11852
  width: 70,
@@ -17799,7 +17777,6 @@ const PodLog = ({
17799
17777
  pod: pod2
17800
17778
  }) => {
17801
17779
  var _a, _b, _c, _d, _e;
17802
- const kit = useUIKit();
17803
17780
  const [selectedContainer, setSelectedContainer] = useState(((_b = (_a = pod2.spec) == null ? void 0 : _a.containers[0]) == null ? void 0 : _b.name) || "");
17804
17781
  const [logs, setLogs] = useState([]);
17805
17782
  const [logType, setLogType] = useState("realtime");
@@ -17922,7 +17899,7 @@ const PodLog = ({
17922
17899
  className: ToolbarStyle,
17923
17900
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17924
17901
  className: ToolbarAreaStyle,
17925
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.SegmentedControl, {
17902
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SegmentControl, {
17926
17903
  options: [{
17927
17904
  label: t2("dovetail.realtime_log"),
17928
17905
  value: "realtime"
@@ -17935,7 +17912,7 @@ const PodLog = ({
17935
17912
  setLogType(value2);
17936
17913
  setLogs([]);
17937
17914
  }
17938
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
17915
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
17939
17916
  input: {
17940
17917
  onChange: (newValue) => {
17941
17918
  stopFetchingLogs();
@@ -17949,22 +17926,22 @@ const PodLog = ({
17949
17926
  style: {
17950
17927
  width: 200
17951
17928
  },
17952
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17929
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
17953
17930
  value: "",
17954
17931
  disabled: true,
17955
17932
  children: t2("dovetail.select_container")
17956
- }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17933
+ }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
17957
17934
  value: container2.name,
17958
17935
  children: container2.name
17959
17936
  }, container2.name))]
17960
17937
  })]
17961
17938
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17962
17939
  className: ToolbarAreaStyle,
17963
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.checkbox, {
17940
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, {
17964
17941
  checked: wrap,
17965
17942
  onChange: (e2) => setWrap(e2.target.checked),
17966
17943
  children: t2("dovetail.auto_wrap")
17967
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
17944
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
17968
17945
  onClick: () => setPaused((prev) => !prev),
17969
17946
  prefixIcon: paused ? /* @__PURE__ */ jsxRuntimeExports.jsx(RecoverContinue16GradientBlueIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(SuspendedPause16GradientBlueIcon, {}),
17970
17947
  size: "middle",
@@ -18226,7 +18203,7 @@ const PodContainersTable = ({
18226
18203
  }) => {
18227
18204
  const { i18n: i18n2 } = useTranslation();
18228
18205
  const component = useContext(ComponentContext);
18229
- const Table$1 = component.Table || Table;
18206
+ const Table$12 = component.Table || Table;
18230
18207
  const currentSize = 10;
18231
18208
  const columns = useMemo(
18232
18209
  () => [
@@ -18321,7 +18298,7 @@ const PodContainersTable = ({
18321
18298
  );
18322
18299
  }
18323
18300
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
18324
- Table$1,
18301
+ Table$12,
18325
18302
  {
18326
18303
  tableKey: "podContainers",
18327
18304
  loading: false,
@@ -18545,7 +18522,6 @@ function FormLayout(props) {
18545
18522
  const {
18546
18523
  saveButtonProps
18547
18524
  } = props;
18548
- const kit = useUIKit();
18549
18525
  const {
18550
18526
  resource,
18551
18527
  action
@@ -18558,8 +18534,8 @@ function FormLayout(props) {
18558
18534
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
18559
18535
  className: cx_default(Typo.Display.d2_bold_title, TitleStyle),
18560
18536
  children: [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, ":", " ", action === "create" ? t2("dovetail.create") : t2("dovetail.edit")]
18561
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
18562
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
18537
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
18538
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
18563
18539
  type: "primary",
18564
18540
  ...saveButtonProps,
18565
18541
  children: t2("dovetail.save")
@@ -18569,7 +18545,6 @@ function FormLayout(props) {
18569
18545
  }
18570
18546
  function WorkloadDropdown(props) {
18571
18547
  const { record, size, children } = props;
18572
- const kit = useUIKit();
18573
18548
  const { resource } = useResource();
18574
18549
  const { mutateAsync } = useUpdate();
18575
18550
  const { t: t2 } = useTranslation();
@@ -18579,7 +18554,7 @@ function WorkloadDropdown(props) {
18579
18554
  });
18580
18555
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(K8sDropdown, { record, size, children: [
18581
18556
  (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
18582
- kit.menu.Item,
18557
+ Menu$1.Item,
18583
18558
  {
18584
18559
  onClick: async () => {
18585
18560
  const v = record.redeploy();
@@ -18623,7 +18598,6 @@ function WorkloadDropdown(props) {
18623
18598
  }
18624
18599
  function ReplicasDropdown(props) {
18625
18600
  const { record, size, children } = props;
18626
- const kit = useUIKit();
18627
18601
  const { t: t2 } = useTranslation();
18628
18602
  const pushModal = usePushModal();
18629
18603
  const formRef = useRef(null);
@@ -18635,7 +18609,7 @@ function ReplicasDropdown(props) {
18635
18609
  });
18636
18610
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(WorkloadDropdown, { record, size, children: [
18637
18611
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
18638
- kit.menu.Item,
18612
+ Menu$1.Item,
18639
18613
  {
18640
18614
  onClick: () => {
18641
18615
  const modalProps = {
@@ -18825,7 +18799,6 @@ const useNamespacesFilter = () => {
18825
18799
  const NamespacesFilter = ({
18826
18800
  className
18827
18801
  }) => {
18828
- const kit = useUIKit();
18829
18802
  const {
18830
18803
  t: t2
18831
18804
  } = useTranslation();
@@ -18874,7 +18847,7 @@ const NamespacesFilter = ({
18874
18847
  }, [calcTagMaxWidth]);
18875
18848
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18876
18849
  className: WRAPPER_CLASS,
18877
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
18850
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
18878
18851
  loading: isLoading,
18879
18852
  className: cx_default(SelectStyle, SELECT_CLASS, className),
18880
18853
  style: {
@@ -18895,14 +18868,14 @@ const NamespacesFilter = ({
18895
18868
  },
18896
18869
  dropdownRender: (menu) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18897
18870
  className: SelectContentStyle,
18898
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.searchInput, {
18871
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
18899
18872
  style: {
18900
18873
  width: "100%"
18901
18874
  },
18902
18875
  className: SearchInputStyle,
18903
18876
  onChange: debouncedSetSearch,
18904
18877
  placeholder: t2("dovetail.please_input")
18905
- }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : null]
18878
+ }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : null]
18906
18879
  }),
18907
18880
  tagRender: ({
18908
18881
  label: label2,
@@ -18921,17 +18894,17 @@ const NamespacesFilter = ({
18921
18894
  marginLeft: 8
18922
18895
  },
18923
18896
  children: label2
18924
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
18897
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Token, {
18925
18898
  className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
18926
18899
  closable,
18927
18900
  size: "medium",
18928
18901
  onClose,
18929
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18930
- content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
18902
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
18903
+ content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
18931
18904
  title: isCountToken ? value2.slice(MAX_TAG_COUNT).map((namespace2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18932
18905
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18933
18906
  children: namespace2
18934
- }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
18907
+ }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
18935
18908
  style: {
18936
18909
  margin: "6px 0",
18937
18910
  borderColor: "rgba(107, 128, 167, 0.60)"
@@ -18956,26 +18929,26 @@ const NamespacesFilter = ({
18956
18929
  setOpen(open2);
18957
18930
  },
18958
18931
  multiple: true,
18959
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18932
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
18960
18933
  value: "_all",
18961
18934
  label: t2("dovetail.all_namespaces"),
18962
18935
  className: AllNamespaceOptionStyle,
18963
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18936
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
18964
18937
  content: t2("dovetail.all_namespaces"),
18965
18938
  className: LabelWrapperStyle
18966
18939
  })
18967
- }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.selectOptGroup, {
18940
+ }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(AntdSelectOptGroup, {
18968
18941
  label: "",
18969
18942
  className: SelectOptionGroupStyle,
18970
18943
  children: data2 == null ? void 0 : data2.data.map((namespace2) => {
18971
18944
  const {
18972
18945
  name: name2
18973
18946
  } = namespace2.metadata;
18974
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18947
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
18975
18948
  value: name2,
18976
18949
  label: name2,
18977
18950
  className: OptionStyle,
18978
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18951
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
18979
18952
  content: name2,
18980
18953
  className: LabelWrapperStyle
18981
18954
  })
@@ -19017,7 +18990,7 @@ function ListPage(props) {
19017
18990
  const {
19018
18991
  t: t2
19019
18992
  } = useTranslation();
19020
- const Table$1 = TableComponent || Table;
18993
+ const Table$12 = TableComponent || Table;
19021
18994
  const {
19022
18995
  resource
19023
18996
  } = useResource();
@@ -19047,7 +19020,7 @@ function ListPage(props) {
19047
19020
  errorText: tableProps.empty || t2("dovetail.no_resource", {
19048
19021
  kind: ` ${config.kind}`
19049
19022
  })
19050
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
19023
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
19051
19024
  ...tableProps,
19052
19025
  empty: tableProps.empty || t2("dovetail.no_resource", {
19053
19026
  kind: ` ${config.kind}`
@@ -19062,7 +19035,7 @@ function ListPage(props) {
19062
19035
  });
19063
19036
  }
19064
19037
  function ResourceList(props) {
19065
- const { formatter, columns, Dropdown, noShow } = props.config;
19038
+ const { formatter, columns, Dropdown: Dropdown2, noShow } = props.config;
19066
19039
  const { i18n: i18n2 } = useTranslation();
19067
19040
  const nameRenderer = noShow ? PlainTextNameColumnRenderer(i18n2) : NameColumnRenderer(i18n2);
19068
19041
  const filters = useNamespaceRefineFilter();
@@ -19076,7 +19049,7 @@ function ResourceList(props) {
19076
19049
  ...props.config.tableProps
19077
19050
  },
19078
19051
  formatter,
19079
- Dropdown
19052
+ Dropdown: Dropdown2
19080
19053
  });
19081
19054
  useEffect(() => {
19082
19055
  tableProps.onPageChange(1);
@@ -19084,13 +19057,13 @@ function ResourceList(props) {
19084
19057
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ListPage, { selectedKeys, tableProps });
19085
19058
  }
19086
19059
  function ResourceShow(props) {
19087
- const { formatter, showConfig, Dropdown } = props.config;
19060
+ const { formatter, showConfig, Dropdown: Dropdown2 } = props.config;
19088
19061
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19089
19062
  PageShow,
19090
19063
  {
19091
19064
  showConfig: (showConfig == null ? void 0 : showConfig()) || {},
19092
19065
  formatter,
19093
- Dropdown
19066
+ Dropdown: Dropdown2
19094
19067
  }
19095
19068
  );
19096
19069
  }
@@ -23103,7 +23076,7 @@ const Separator = () => {
23103
23076
  });
23104
23077
  };
23105
23078
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
23106
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c863e3f0.js"));
23079
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-bcc9a5fe.js"));
23107
23080
  const YamlEditorComponent = forwardRef(
23108
23081
  function YamlEditorComponent2(props, ref) {
23109
23082
  const {
@@ -23118,7 +23091,6 @@ const YamlEditorComponent = forwardRef(
23118
23091
  eleRef,
23119
23092
  className
23120
23093
  } = props;
23121
- const kit = useUIKit();
23122
23094
  const { t: t2 } = useTranslation();
23123
23095
  const [isCollapsed, setIsCollapsed] = useState(
23124
23096
  collapsable ? isDefaultCollapsed : false
@@ -23178,14 +23150,14 @@ const YamlEditorComponent = forwardRef(
23178
23150
  ref: eleRef,
23179
23151
  children: [
23180
23152
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
23181
- kit.space,
23153
+ Space,
23182
23154
  {
23183
23155
  className: cx_default(ToolBarStyle, isCollapsed ? "collapsed" : ""),
23184
23156
  direction: "vertical",
23185
23157
  size: 0,
23186
23158
  children: [
23187
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ToolBarHeaderStyle, children: [
23188
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 8, children: [
23159
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { className: ToolBarHeaderStyle, children: [
23160
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { size: 8, children: [
23189
23161
  collapsable && /* @__PURE__ */ jsxRuntimeExports.jsx(
23190
23162
  Icon$1,
23191
23163
  {
@@ -23199,10 +23171,10 @@ const YamlEditorComponent = forwardRef(
23199
23171
  ),
23200
23172
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx_default(TitleStyle$1, "yaml-editor-title"), children: title || t2("dovetail.configure_file") })
23201
23173
  ] }),
23202
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 14, children: [
23174
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { size: 14, children: [
23203
23175
  isDiff ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
23204
23176
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23205
- kit.tooltip,
23177
+ Tooltip,
23206
23178
  {
23207
23179
  title: isCollapsed ? "" : copyTooltip,
23208
23180
  onVisibleChange: (visible) => {
@@ -23233,7 +23205,7 @@ const YamlEditorComponent = forwardRef(
23233
23205
  ),
23234
23206
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {}),
23235
23207
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23236
- kit.tooltip,
23208
+ Tooltip,
23237
23209
  {
23238
23210
  title: isCollapsed ? "" : resetTooltip,
23239
23211
  onVisibleChange: (visible) => {
@@ -23266,7 +23238,7 @@ const YamlEditorComponent = forwardRef(
23266
23238
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {})
23267
23239
  ] }),
23268
23240
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23269
- kit.tooltip,
23241
+ Tooltip,
23270
23242
  {
23271
23243
  title: isCollapsed ? "" : isDiff ? t2("dovetail.back_to_edit") : t2("dovetail.view_changes"),
23272
23244
  children: isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23296,7 +23268,7 @@ const YamlEditorComponent = forwardRef(
23296
23268
  )
23297
23269
  ] })
23298
23270
  ] }),
23299
- errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23271
+ errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23300
23272
  /* @__PURE__ */ jsxRuntimeExports.jsx(XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
23301
23273
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: ErrorMsgStyle, children: [
23302
23274
  errorMsgs.length > 1 ? `${index2 + 1}. ` : "",
@@ -23483,7 +23455,6 @@ const useYamlForm = ({
23483
23455
  const [errorResponseBody, setErrorResponseBody] = useState(null);
23484
23456
  const useResourceResult = useResource();
23485
23457
  const { globalStore } = useGlobalStore();
23486
- const kit = useUIKit();
23487
23458
  const {
23488
23459
  schema,
23489
23460
  loading: isLoadingSchema,
@@ -23492,7 +23463,7 @@ const useYamlForm = ({
23492
23463
  } = useSchema({
23493
23464
  skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
23494
23465
  });
23495
- const [formAnt] = kit.form.useForm();
23466
+ const [formAnt] = Form.useForm();
23496
23467
  const formSF = useForm$3({
23497
23468
  form: formAnt
23498
23469
  });
@@ -23726,7 +23697,6 @@ function YamlForm(props) {
23726
23697
  },
23727
23698
  ...useFormProps
23728
23699
  });
23729
- const kit = useUIKit();
23730
23700
  const {
23731
23701
  t: t2,
23732
23702
  i18n: i18n2
@@ -23762,7 +23732,7 @@ function YamlForm(props) {
23762
23732
  }, [responseErrors, onErrorsChange]);
23763
23733
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormWrapper, {
23764
23734
  ...formWrapperProps,
23765
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form, {
23735
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Form, {
23766
23736
  ...formProps,
23767
23737
  initialValues: formProps.initialValues,
23768
23738
  layout: "horizontal",
@@ -23770,10 +23740,10 @@ function YamlForm(props) {
23770
23740
  onFinish,
23771
23741
  children: (() => {
23772
23742
  if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
23773
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
23743
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
23774
23744
  }
23775
23745
  return editorProps.schema || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
23776
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23746
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
23777
23747
  style: {
23778
23748
  flex: 1
23779
23749
  },
@@ -23783,7 +23753,7 @@ function YamlForm(props) {
23783
23753
  schema,
23784
23754
  collapsable: false
23785
23755
  })
23786
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23756
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
23787
23757
  children: mutationResult.error && /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
23788
23758
  errorMsgs: errorResponseBody ? responseErrors : [mutationResult.error.message],
23789
23759
  style: {
@@ -24007,7 +23977,6 @@ function ResourceCRUD(props) {
24007
23977
  function CronJobDropdown(props) {
24008
23978
  const { record, size } = props;
24009
23979
  const { spec } = record;
24010
- const kit = useUIKit();
24011
23980
  const { resource } = useResource();
24012
23981
  const { mutateAsync } = useUpdate();
24013
23982
  const { t: t2 } = useTranslation();
@@ -24017,7 +23986,7 @@ function CronJobDropdown(props) {
24017
23986
  });
24018
23987
  const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
24019
23988
  return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, size, children: (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
24020
- kit.menu.Item,
23989
+ Menu$1.Item,
24021
23990
  {
24022
23991
  onClick: async () => {
24023
23992
  const v = suspended2 ? record.resume() : record.suspend();
@@ -24123,36 +24092,34 @@ const ResourceUsageBar = (props) => {
24123
24092
  const DeleteButton = () => {
24124
24093
  const { resource } = useResource();
24125
24094
  const { id } = useParsed();
24126
- const kit = useUIKit();
24127
24095
  const { t: t2 } = useTranslation();
24128
24096
  const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
24129
24097
  (resource == null ? void 0 : resource.name) || ""
24130
24098
  );
24131
24099
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
24132
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
24133
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
24100
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
24101
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
24134
24102
  ] });
24135
24103
  };
24136
24104
  const index_1wt5px2 = "";
24137
24105
  const MenuStyle = "mdppgn0";
24138
24106
  const Menu = () => {
24139
- const kit = useUIKit();
24140
24107
  const {
24141
24108
  menuItems,
24142
24109
  selectedKey
24143
24110
  } = useMenu();
24144
24111
  function renderMenuItems(items) {
24145
- return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItem, {
24112
+ return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, {
24146
24113
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, {
24147
24114
  to: item.route || "",
24148
24115
  children: item.label
24149
24116
  })
24150
- }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItemGroup, {
24117
+ }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItemGroup, {
24151
24118
  title: item.name,
24152
24119
  children: renderMenuItems(item.children)
24153
24120
  }, item.key));
24154
24121
  }
24155
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menu, {
24122
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1, {
24156
24123
  className: MenuStyle,
24157
24124
  theme: "light",
24158
24125
  selectedKeys: [selectedKey],
@@ -24167,21 +24134,20 @@ const ContentStyle = "cyc9hl2";
24167
24134
  const Layout = ({
24168
24135
  children
24169
24136
  }) => {
24170
- const kit = useUIKit();
24171
24137
  const [collapsed, setCollapsed] = useState(false);
24172
24138
  const {
24173
24139
  Header,
24174
24140
  Content,
24175
24141
  Sider
24176
- } = kit.layout;
24177
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24142
+ } = Layout$1;
24143
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Layout$1, {
24178
24144
  style: {
24179
24145
  height: "100%"
24180
24146
  },
24181
24147
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Header, {
24182
24148
  className: cx_default(HeaderStyle, Typo.Heading.h1_bold_title),
24183
24149
  children: "Dovetail 2"
24184
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24150
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Layout$1, {
24185
24151
  className: ContentLayoutStyle,
24186
24152
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Sider, {
24187
24153
  width: 256,
@@ -24199,7 +24165,6 @@ const Layout = ({
24199
24165
  };
24200
24166
  const DrawerShow = (props) => {
24201
24167
  var _a, _b;
24202
- const kit = useUIKit();
24203
24168
  const parsed = useParsed();
24204
24169
  const nav = useNavigation();
24205
24170
  const { queryResult } = useShow({ id: (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id });
@@ -24212,16 +24177,15 @@ const DrawerShow = (props) => {
24212
24177
  onClose: () => nav.goBack(),
24213
24178
  width: "50%",
24214
24179
  visible: !!((_b = parsed == null ? void 0 : parsed.params) == null ? void 0 : _b.id),
24215
- children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24180
+ children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24216
24181
  }
24217
24182
  );
24218
24183
  };
24219
24184
  const EditButton = () => {
24220
24185
  const { id } = useParsed();
24221
- const kit = useUIKit();
24222
24186
  const { edit: edit2 } = useEdit();
24223
24187
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24224
- kit.button,
24188
+ Button,
24225
24189
  {
24226
24190
  type: "primary",
24227
24191
  onClick: () => {
@@ -24288,11 +24252,10 @@ function ResourceSelect(props) {
24288
24252
  );
24289
24253
  }
24290
24254
  const IngressRulesComponent = ({ ingress }) => {
24291
- const kit = useUIKit();
24292
24255
  const result = ingress.flattenedRules.map((r2) => {
24293
24256
  const divider = " > ";
24294
24257
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24295
- kit.overflowTooltip,
24258
+ OverflowTooltip,
24296
24259
  {
24297
24260
  content: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
24298
24261
  /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: r2.fullPath }),
@@ -24329,12 +24292,11 @@ const NameLink = (props) => {
24329
24292
  id,
24330
24293
  resource
24331
24294
  } = props;
24332
- const kit = useUIKit();
24333
24295
  const go = useGo();
24334
24296
  const navigation = useNavigation();
24335
24297
  const parsed = useParsed();
24336
24298
  const resourceName = resource || ((_a = parsed.resource) == null ? void 0 : _a.name) || "";
24337
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
24299
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
24338
24300
  type: "link",
24339
24301
  onClick: () => {
24340
24302
  go({
@@ -24479,7 +24441,6 @@ const AgeColumnRenderer = (i18n2, config, {
24479
24441
  isRelativeTime = true
24480
24442
  } = {}) => {
24481
24443
  const dataIndex = ["metadata", "creationTimestamp"];
24482
- const kit = useUIKit();
24483
24444
  return {
24484
24445
  key: "creationTimestamp",
24485
24446
  display: true,
@@ -24491,7 +24452,7 @@ const AgeColumnRenderer = (i18n2, config, {
24491
24452
  return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
24492
24453
  date: new Date(value2)
24493
24454
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
24494
- value: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.time, {
24455
+ value: /* @__PURE__ */ jsxRuntimeExports.jsx(Time$1, {
24495
24456
  date: value2,
24496
24457
  timeTemplate: "HH:mm:ss",
24497
24458
  dateTemplate: "YYYY-MM-DD"
@@ -24993,25 +24954,27 @@ const Dovetail = (props) => {
24993
24954
  }
24994
24955
  ) }) }) }) });
24995
24956
  };
24996
- const ModelMap = {
24997
- Deployment: DeploymentModel,
24998
- DaemonSet: DaemonSetModel,
24999
- StatefulSet: StatefulSetModel,
25000
- CronJob: CronJobModel,
25001
- Job: JobModel,
25002
- Pod: PodModel,
25003
- Event: EventModel,
25004
- Ingress: IngressModel,
25005
- NetworkPolicy: NetworkPolicyModel,
25006
- Service: ServiceModel,
25007
- Node: NodeModel,
25008
- StorageClass: StorageClassModel,
25009
- PersistentVolume: PersistentVolumeModel,
25010
- PersistentVolumeClaim: PersistentVolumeClaimModel
25011
- };
25012
24957
  class ModelPlugin {
25013
24958
  constructor() {
25014
24959
  __publicField(this, "_globalStore");
24960
+ __publicField(this, "ModelMap", new Map(
24961
+ Object.entries({
24962
+ Deployment: DeploymentModel,
24963
+ DaemonSet: DaemonSetModel,
24964
+ StatefulSet: StatefulSetModel,
24965
+ CronJob: CronJobModel,
24966
+ Job: JobModel,
24967
+ Pod: PodModel,
24968
+ Event: EventModel,
24969
+ Ingress: IngressModel,
24970
+ NetworkPolicy: NetworkPolicyModel,
24971
+ Service: ServiceModel,
24972
+ Node: NodeModel,
24973
+ StorageClass: StorageClassModel,
24974
+ PersistentVolume: PersistentVolumeModel,
24975
+ PersistentVolumeClaim: PersistentVolumeClaimModel
24976
+ })
24977
+ ));
25015
24978
  }
25016
24979
  init(globalStore) {
25017
24980
  this._globalStore = globalStore;
@@ -25032,7 +24995,7 @@ class ModelPlugin {
25032
24995
  };
25033
24996
  }
25034
24997
  async processItem(item) {
25035
- const Model = ModelMap[item.kind] || ResourceModel;
24998
+ const Model = this.ModelMap.get(item.kind) || ResourceModel;
25036
24999
  const result = new Model(item, this._globalStore);
25037
25000
  await result.init();
25038
25001
  return result;
@@ -25045,6 +25008,9 @@ class ModelPlugin {
25045
25008
  restoreItem(item) {
25046
25009
  return item._rawYaml;
25047
25010
  }
25011
+ setModelMap(key2, model) {
25012
+ this.ModelMap.set(key2, model);
25013
+ }
25048
25014
  }
25049
25015
  const modelPlugin = new ModelPlugin();
25050
25016
  class RelationPlugin {
@@ -25319,6 +25285,10 @@ export {
25319
25285
  PersistentVolumeModel as co,
25320
25286
  PersistentVolumeClaimModel as cp,
25321
25287
  ProviderPlugins as cq,
25288
+ ModelPlugin as cr,
25289
+ modelPlugin as cs,
25290
+ RelationPlugin as ct,
25291
+ relationPlugin as cu,
25322
25292
  dovetailRefineI18n as d,
25323
25293
  WorkloadRestartsColumnRenderer as e,
25324
25294
  NodeNameColumnRenderer as f,