@digi-frontend/dgate-api-documentation 4.0.1 → 4.0.3

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/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { create } from "zustand";
2
2
  import { devtools } from "zustand/middleware";
3
3
  import { immer } from "zustand/middleware/immer";
4
4
  import { useEffect, useMemo, useRef, useState } from "react";
5
- import { Alert, Breadcrumb, Button, Card, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
5
+ import { Alert, Breadcrumb, Button, Card, Col, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Row, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
6
6
  import { useStyleRegister } from "@ant-design/cssinjs";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  import Text from "antd/es/typography/Text.js";
@@ -1255,8 +1255,7 @@ const ApiCard = ({ api, viewStyle }) => {
1255
1255
  fontFamily: token.fontFamily
1256
1256
  },
1257
1257
  [scope("grid-card")]: {
1258
- width: "17.5rem",
1259
- height: "100%",
1258
+ width: "100%",
1260
1259
  borderRadius: token.borderRadiusLG
1261
1260
  },
1262
1261
  [scope("grid-title")]: {
@@ -1674,10 +1673,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
1674
1673
  level: 4,
1675
1674
  children: tagName
1676
1675
  }),
1677
- /* @__PURE__ */ jsx(Flex, {
1678
- wrap: "wrap",
1679
- gap: viewStyle === "grid" ? "1.5rem" : 0,
1680
- vertical: viewStyle === "list",
1676
+ viewStyle === "grid" ? /* @__PURE__ */ jsx(Row, {
1677
+ gutter: [24, 24],
1678
+ children: apis.map((item) => /* @__PURE__ */ jsx(Col, {
1679
+ xs: 24,
1680
+ sm: 24,
1681
+ md: 12,
1682
+ lg: 8,
1683
+ xl: 8,
1684
+ children: /* @__PURE__ */ jsx(ApiCard, {
1685
+ api: item,
1686
+ viewStyle
1687
+ })
1688
+ }, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
1689
+ }) : /* @__PURE__ */ jsx(Flex, {
1690
+ vertical: true,
1681
1691
  children: apis.map((item) => /* @__PURE__ */ jsx(ApiCard, {
1682
1692
  api: item,
1683
1693
  viewStyle