@lobehub/ui 5.58.0 → 5.59.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.
Files changed (81) hide show
  1. package/es/Grid/style.mjs +8 -8
  2. package/es/Grid/style.mjs.map +1 -1
  3. package/es/base-ui/Input/style.mjs +8 -2
  4. package/es/base-ui/Input/style.mjs.map +1 -1
  5. package/es/dashboard/ChartGrid/ChartGrid.d.mts +10 -0
  6. package/es/dashboard/ChartGrid/ChartGrid.mjs +18 -0
  7. package/es/dashboard/ChartGrid/ChartGrid.mjs.map +1 -0
  8. package/es/dashboard/ChartGrid/index.d.mts +3 -0
  9. package/es/dashboard/ChartGrid/style.mjs +32 -0
  10. package/es/dashboard/ChartGrid/style.mjs.map +1 -0
  11. package/es/dashboard/ChartGrid/type.d.mts +9 -0
  12. package/es/dashboard/ConsoleShell/ConsoleShell.d.mts +1 -1
  13. package/es/dashboard/ConsoleShell/ConsoleShell.mjs +12 -4
  14. package/es/dashboard/ConsoleShell/ConsoleShell.mjs.map +1 -1
  15. package/es/dashboard/ConsoleShell/style.mjs +15 -0
  16. package/es/dashboard/ConsoleShell/style.mjs.map +1 -1
  17. package/es/dashboard/ConsoleShell/type.d.mts +2 -0
  18. package/es/dashboard/FilterStrip/FilterStrip.d.mts +11 -0
  19. package/es/dashboard/FilterStrip/FilterStrip.mjs +51 -0
  20. package/es/dashboard/FilterStrip/FilterStrip.mjs.map +1 -0
  21. package/es/dashboard/FilterStrip/index.d.mts +3 -0
  22. package/es/dashboard/FilterStrip/style.mjs +93 -0
  23. package/es/dashboard/FilterStrip/style.mjs.map +1 -0
  24. package/es/dashboard/FilterStrip/type.d.mts +26 -0
  25. package/es/dashboard/LabelWithKey/LabelWithKey.d.mts +10 -0
  26. package/es/dashboard/LabelWithKey/LabelWithKey.mjs +18 -0
  27. package/es/dashboard/LabelWithKey/LabelWithKey.mjs.map +1 -0
  28. package/es/dashboard/LabelWithKey/index.d.mts +3 -0
  29. package/es/dashboard/LabelWithKey/type.d.mts +12 -0
  30. package/es/dashboard/MetricStrip/MetricStrip.d.mts +10 -0
  31. package/es/dashboard/MetricStrip/MetricStrip.mjs +76 -0
  32. package/es/dashboard/MetricStrip/MetricStrip.mjs.map +1 -0
  33. package/es/dashboard/MetricStrip/index.d.mts +3 -0
  34. package/es/dashboard/MetricStrip/style.mjs +116 -0
  35. package/es/dashboard/MetricStrip/style.mjs.map +1 -0
  36. package/es/dashboard/MetricStrip/type.d.mts +25 -0
  37. package/es/dashboard/PageToolbar/PageToolbar.d.mts +10 -0
  38. package/es/dashboard/PageToolbar/PageToolbar.mjs +21 -0
  39. package/es/dashboard/PageToolbar/PageToolbar.mjs.map +1 -0
  40. package/es/dashboard/PageToolbar/index.d.mts +3 -0
  41. package/es/dashboard/PageToolbar/style.mjs +34 -0
  42. package/es/dashboard/PageToolbar/style.mjs.map +1 -0
  43. package/es/dashboard/PageToolbar/type.d.mts +12 -0
  44. package/es/dashboard/PanelSurface/PanelSurface.d.mts +10 -0
  45. package/es/dashboard/PanelSurface/PanelSurface.mjs +36 -0
  46. package/es/dashboard/PanelSurface/PanelSurface.mjs.map +1 -0
  47. package/es/dashboard/PanelSurface/index.d.mts +3 -0
  48. package/es/dashboard/PanelSurface/style.mjs +24 -0
  49. package/es/dashboard/PanelSurface/style.mjs.map +1 -0
  50. package/es/dashboard/PanelSurface/type.d.mts +18 -0
  51. package/es/dashboard/Section/Section.d.mts +10 -0
  52. package/es/dashboard/Section/Section.mjs +81 -0
  53. package/es/dashboard/Section/Section.mjs.map +1 -0
  54. package/es/dashboard/Section/index.d.mts +3 -0
  55. package/es/dashboard/Section/style.mjs +35 -0
  56. package/es/dashboard/Section/style.mjs.map +1 -0
  57. package/es/dashboard/Section/type.d.mts +24 -0
  58. package/es/dashboard/Surface/Surface.d.mts +4 -3
  59. package/es/dashboard/Surface/Surface.mjs +67 -7
  60. package/es/dashboard/Surface/Surface.mjs.map +1 -1
  61. package/es/dashboard/Surface/index.d.mts +3 -2
  62. package/es/dashboard/Surface/link.d.mts +14 -0
  63. package/es/dashboard/Surface/link.mjs +22 -0
  64. package/es/dashboard/Surface/link.mjs.map +1 -0
  65. package/es/dashboard/Surface/style.d.mts +23 -0
  66. package/es/dashboard/Surface/style.mjs +283 -2
  67. package/es/dashboard/Surface/style.mjs.map +1 -1
  68. package/es/dashboard/Surface/type.d.mts +30 -2
  69. package/es/dashboard/TableIconActions/TableIconActions.d.mts +17 -0
  70. package/es/dashboard/TableIconActions/TableIconActions.mjs +39 -0
  71. package/es/dashboard/TableIconActions/TableIconActions.mjs.map +1 -0
  72. package/es/dashboard/TableIconActions/index.d.mts +3 -0
  73. package/es/dashboard/TableIconActions/type.d.mts +18 -0
  74. package/es/dashboard/TitleWithTips/TitleWithTips.d.mts +10 -0
  75. package/es/dashboard/TitleWithTips/TitleWithTips.mjs +28 -0
  76. package/es/dashboard/TitleWithTips/TitleWithTips.mjs.map +1 -0
  77. package/es/dashboard/TitleWithTips/index.d.mts +3 -0
  78. package/es/dashboard/TitleWithTips/type.d.mts +11 -0
  79. package/es/dashboard/index.d.mts +30 -2
  80. package/es/dashboard/index.mjs +12 -2
  81. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import FlexBasic_default from "../../Flex/FlexBasic.mjs";
3
+ import Icon from "../../Icon/Icon.mjs";
4
+ import { Tooltip } from "../../base-ui/Tooltip/Tooltip.mjs";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { cssVar } from "antd-style";
7
+ import { InfoIcon } from "lucide-react";
8
+ //#region src/dashboard/TitleWithTips/TitleWithTips.tsx
9
+ /** A column or field title with an info icon that explains it on hover. */
10
+ const TitleWithTips = ({ className, tips, title }) => /* @__PURE__ */ jsxs(FlexBasic_default, {
11
+ horizontal: true,
12
+ align: "center",
13
+ className,
14
+ gap: 4,
15
+ children: [/* @__PURE__ */ jsx("span", { children: title }), /* @__PURE__ */ jsx(Tooltip, {
16
+ title: tips,
17
+ children: /* @__PURE__ */ jsx(Icon, {
18
+ color: cssVar.colorTextTertiary,
19
+ icon: InfoIcon,
20
+ style: { cursor: "help" }
21
+ })
22
+ })]
23
+ });
24
+ TitleWithTips.displayName = "TitleWithTips";
25
+ //#endregion
26
+ export { TitleWithTips as default };
27
+
28
+ //# sourceMappingURL=TitleWithTips.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleWithTips.mjs","names":["Flexbox"],"sources":["../../../src/dashboard/TitleWithTips/TitleWithTips.tsx"],"sourcesContent":["'use client';\n\nimport { cssVar } from 'antd-style';\nimport { InfoIcon } from 'lucide-react';\n\nimport Tooltip from '@/base-ui/Tooltip';\nimport { Flexbox } from '@/Flex';\nimport Icon from '@/Icon';\n\nimport type { TitleWithTipsProps } from './type';\n\n/** A column or field title with an info icon that explains it on hover. */\nconst TitleWithTips = ({ className, tips, title }: TitleWithTipsProps) => (\n <Flexbox horizontal align={'center'} className={className} gap={4}>\n <span>{title}</span>\n <Tooltip title={tips}>\n <Icon color={cssVar.colorTextTertiary} icon={InfoIcon} style={{ cursor: 'help' }} />\n </Tooltip>\n </Flexbox>\n);\n\nTitleWithTips.displayName = 'TitleWithTips';\n\nexport default TitleWithTips;\n"],"mappings":";;;;;;;;;AAYA,MAAM,iBAAiB,EAAE,WAAW,MAAM,YACxC,qBAACA,mBAAD;CAAS,YAAA;CAAW,OAAO;CAAqB;CAAW,KAAK;CAAhE,UAAA,CACE,oBAAC,QAAD,EAAA,UAAO,MAAY,CAAA,GACnB,oBAAC,SAAD;EAAS,OAAO;EACd,UAAA,oBAAC,MAAD;GAAM,OAAO,OAAO;GAAmB,MAAM;GAAU,OAAO,EAAE,QAAQ,OAAO;EAAI,CAAA;CAC5E,CAAA,CACF;;AAGX,cAAc,cAAc"}
@@ -0,0 +1,3 @@
1
+ import { TitleWithTipsProps } from "./type.mjs";
2
+ import TitleWithTips from "./TitleWithTips.mjs";
3
+ export { type TitleWithTipsProps, TitleWithTips as default };
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ //#region src/dashboard/TitleWithTips/type.d.ts
3
+ interface TitleWithTipsProps {
4
+ className?: string;
5
+ /** Tooltip shown on the info icon. */
6
+ tips: ReactNode;
7
+ title: ReactNode;
8
+ }
9
+ //#endregion
10
+ export { TitleWithTipsProps };
11
+ //# sourceMappingURL=type.d.mts.map
@@ -4,6 +4,9 @@ import "./AuthLayout/index.mjs";
4
4
  import { BreadcrumbItem, BreadcrumbProps } from "./Breadcrumb/type.mjs";
5
5
  import Breadcrumb from "./Breadcrumb/Breadcrumb.mjs";
6
6
  import "./Breadcrumb/index.mjs";
7
+ import { ChartGridProps } from "./ChartGrid/type.mjs";
8
+ import ChartGrid from "./ChartGrid/ChartGrid.mjs";
9
+ import "./ChartGrid/index.mjs";
7
10
  import { ConsoleNavGroup, ConsoleNavItem, ConsoleNavProps } from "./ConsoleNav/type.mjs";
8
11
  import { resolveActiveHref } from "./ConsoleNav/active.mjs";
9
12
  import ConsoleNav from "./ConsoleNav/ConsoleNav.mjs";
@@ -17,6 +20,16 @@ import { useInFilterSplit } from "./FilterSidebar/context.mjs";
17
20
  import { FilterOptionProps, FilterRowProps, FilterSidebarProps } from "./FilterSidebar/type.mjs";
18
21
  import FilterSidebar, { FilterOption, FilterRow } from "./FilterSidebar/FilterSidebar.mjs";
19
22
  import "./FilterSidebar/index.mjs";
23
+ import { FilterStripItem, FilterStripProps } from "./FilterStrip/type.mjs";
24
+ import FilterStrip, { formatInteger } from "./FilterStrip/FilterStrip.mjs";
25
+ import "./FilterStrip/index.mjs";
26
+ import { LabelWithKeyProps } from "./LabelWithKey/type.mjs";
27
+ import LabelWithKey from "./LabelWithKey/LabelWithKey.mjs";
28
+ import "./LabelWithKey/index.mjs";
29
+ import { SurfaceLinkProps, SurfaceProps, SurfaceRenderLink } from "./Surface/type.mjs";
30
+ import { MetricItem, MetricStripProps } from "./MetricStrip/type.mjs";
31
+ import MetricStrip from "./MetricStrip/MetricStrip.mjs";
32
+ import "./MetricStrip/index.mjs";
20
33
  import { PageHeaderProps } from "./PageHeader/type.mjs";
21
34
  import PageHeader from "./PageHeader/PageHeader.mjs";
22
35
  import "./PageHeader/index.mjs";
@@ -25,13 +38,28 @@ import PageLoading, { LoadingAnnouncer, PageHeaderSkeleton, StatCardSkeleton, Ta
25
38
  import { PageTab, PageTabsProps } from "./PageTabs/type.mjs";
26
39
  import PageTabs from "./PageTabs/PageTabs.mjs";
27
40
  import "./PageTabs/index.mjs";
41
+ import { PageToolbarProps } from "./PageToolbar/type.mjs";
42
+ import PageToolbar from "./PageToolbar/PageToolbar.mjs";
43
+ import "./PageToolbar/index.mjs";
44
+ import { PanelSurfaceProps } from "./PanelSurface/type.mjs";
45
+ import PanelSurface from "./PanelSurface/PanelSurface.mjs";
46
+ import "./PanelSurface/index.mjs";
28
47
  import { RouteProgressProps } from "./RouteProgress/type.mjs";
29
48
  import RouteProgress from "./RouteProgress/RouteProgress.mjs";
49
+ import { SectionProps } from "./Section/type.mjs";
50
+ import Section from "./Section/Section.mjs";
51
+ import "./Section/index.mjs";
30
52
  import { StatCardProps, StatDirection } from "./StatCard/type.mjs";
31
53
  import StatCard from "./StatCard/StatCard.mjs";
32
54
  import "./StatCard/index.mjs";
55
+ import { SurfaceLinkProvider, useSurfaceDepth, useSurfaceLink } from "./Surface/link.mjs";
33
56
  import { styles } from "./Surface/style.mjs";
34
- import { SurfaceProps } from "./Surface/type.mjs";
35
57
  import Surface from "./Surface/Surface.mjs";
36
58
  import "./Surface/index.mjs";
37
- export { AuthLayout, type AuthLayoutProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, ConsoleBrand, type ConsoleBrandProps, ConsoleNav, type ConsoleNavGroup, type ConsoleNavItem, type ConsoleNavProps, ConsoleShell, type ConsoleShellProps, type ConsoleShellState, FilterOption, type FilterOptionProps, FilterRow, type FilterRowProps, FilterSidebar, type FilterSidebarProps, LoadingAnnouncer, PageHeader, type PageHeaderProps, PageHeaderSkeleton, PageLoading, type PageLoadingProps, type PageTab, PageTabs, type PageTabsProps, RouteProgress, type RouteProgressProps, StatCard, type StatCardProps, StatCardSkeleton, type StatDirection, Surface, type SurfaceProps, TableSkeleton, resolveActiveHref, styles as surfaceStyles, useConsoleShell, useInFilterSplit };
59
+ import { TableIconActionProps, TableIconActionsProps } from "./TableIconActions/type.mjs";
60
+ import TableIconActions, { TableIconAction, tableActionColumnWidth } from "./TableIconActions/TableIconActions.mjs";
61
+ import "./TableIconActions/index.mjs";
62
+ import { TitleWithTipsProps } from "./TitleWithTips/type.mjs";
63
+ import TitleWithTips from "./TitleWithTips/TitleWithTips.mjs";
64
+ import "./TitleWithTips/index.mjs";
65
+ export { AuthLayout, type AuthLayoutProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, ChartGrid, type ChartGridProps, ConsoleBrand, type ConsoleBrandProps, ConsoleNav, type ConsoleNavGroup, type ConsoleNavItem, type ConsoleNavProps, ConsoleShell, type ConsoleShellProps, type ConsoleShellState, FilterOption, type FilterOptionProps, FilterRow, type FilterRowProps, FilterSidebar, type FilterSidebarProps, FilterStrip, type FilterStripItem, type FilterStripProps, LabelWithKey, type LabelWithKeyProps, LoadingAnnouncer, type MetricItem, MetricStrip, type MetricStripProps, PageHeader, type PageHeaderProps, PageHeaderSkeleton, PageLoading, type PageLoadingProps, type PageTab, PageTabs, type PageTabsProps, PageToolbar, type PageToolbarProps, PanelSurface, type PanelSurfaceProps, RouteProgress, type RouteProgressProps, Section, type SectionProps, StatCard, type StatCardProps, StatCardSkeleton, type StatDirection, Surface, type SurfaceLinkProps, SurfaceLinkProvider, type SurfaceProps, type SurfaceRenderLink, TableIconAction, type TableIconActionProps, TableIconActions, type TableIconActionsProps, TableSkeleton, TitleWithTips, type TitleWithTipsProps, formatInteger, resolveActiveHref, styles as surfaceStyles, tableActionColumnWidth, useConsoleShell, useInFilterSplit, useSurfaceDepth, useSurfaceLink };
@@ -1,6 +1,7 @@
1
1
  import { styles } from "./Surface/style.mjs";
2
2
  import AuthLayout from "./AuthLayout/AuthLayout.mjs";
3
3
  import Breadcrumb from "./Breadcrumb/Breadcrumb.mjs";
4
+ import ChartGrid from "./ChartGrid/ChartGrid.mjs";
4
5
  import { resolveActiveHref } from "./ConsoleNav/active.mjs";
5
6
  import { useConsoleShell } from "./ConsoleShell/context.mjs";
6
7
  import ConsoleNav from "./ConsoleNav/ConsoleNav.mjs";
@@ -8,10 +9,19 @@ import ConsoleBrand from "./ConsoleShell/ConsoleBrand.mjs";
8
9
  import ConsoleShell from "./ConsoleShell/ConsoleShell.mjs";
9
10
  import { useInFilterSplit } from "./FilterSidebar/context.mjs";
10
11
  import FilterSidebar, { FilterOption, FilterRow } from "./FilterSidebar/FilterSidebar.mjs";
12
+ import { SurfaceLinkProvider, useSurfaceDepth, useSurfaceLink } from "./Surface/link.mjs";
13
+ import Surface from "./Surface/Surface.mjs";
14
+ import FilterStrip, { formatInteger } from "./FilterStrip/FilterStrip.mjs";
15
+ import LabelWithKey from "./LabelWithKey/LabelWithKey.mjs";
16
+ import MetricStrip from "./MetricStrip/MetricStrip.mjs";
11
17
  import PageHeader from "./PageHeader/PageHeader.mjs";
12
18
  import PageLoading, { LoadingAnnouncer, PageHeaderSkeleton, StatCardSkeleton, TableSkeleton } from "./PageSkeleton/PageSkeleton.mjs";
13
19
  import PageTabs from "./PageTabs/PageTabs.mjs";
20
+ import PageToolbar from "./PageToolbar/PageToolbar.mjs";
21
+ import PanelSurface from "./PanelSurface/PanelSurface.mjs";
14
22
  import RouteProgress from "./RouteProgress/RouteProgress.mjs";
23
+ import Section from "./Section/Section.mjs";
15
24
  import StatCard from "./StatCard/StatCard.mjs";
16
- import Surface from "./Surface/Surface.mjs";
17
- export { AuthLayout, Breadcrumb, ConsoleBrand, ConsoleNav, ConsoleShell, FilterOption, FilterRow, FilterSidebar, LoadingAnnouncer, PageHeader, PageHeaderSkeleton, PageLoading, PageTabs, RouteProgress, StatCard, StatCardSkeleton, Surface, TableSkeleton, resolveActiveHref, styles as surfaceStyles, useConsoleShell, useInFilterSplit };
25
+ import TableIconActions, { TableIconAction, tableActionColumnWidth } from "./TableIconActions/TableIconActions.mjs";
26
+ import TitleWithTips from "./TitleWithTips/TitleWithTips.mjs";
27
+ export { AuthLayout, Breadcrumb, ChartGrid, ConsoleBrand, ConsoleNav, ConsoleShell, FilterOption, FilterRow, FilterSidebar, FilterStrip, LabelWithKey, LoadingAnnouncer, MetricStrip, PageHeader, PageHeaderSkeleton, PageLoading, PageTabs, PageToolbar, PanelSurface, RouteProgress, Section, StatCard, StatCardSkeleton, Surface, SurfaceLinkProvider, TableIconAction, TableIconActions, TableSkeleton, TitleWithTips, formatInteger, resolveActiveHref, styles as surfaceStyles, tableActionColumnWidth, useConsoleShell, useInFilterSplit, useSurfaceDepth, useSurfaceLink };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "5.58.0",
3
+ "version": "5.59.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",