@vuer-ai/vuer-uikit 0.0.75 → 0.0.76
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/chunk-2DA6GE5K.mjs +184 -0
- package/dist/{chunk-VNYP2IVJ.cjs → chunk-AHNVEAOM.cjs} +2 -2
- package/dist/chunk-BWBBQCG2.mjs +217 -0
- package/dist/chunk-D4W2G6CY.cjs +494 -0
- package/dist/{chunk-2274XZ2C.cjs → chunk-E6D3BSYY.cjs} +6 -6
- package/dist/chunk-HTAFERCZ.mjs +1 -0
- package/dist/chunk-HVVT3D2T.mjs +1 -0
- package/dist/chunk-IMN6FIOY.cjs +187 -0
- package/dist/{chunk-P27TWGME.cjs → chunk-IQAZZPJD.cjs} +2 -2
- package/dist/chunk-KFPS5CCR.cjs +2 -0
- package/dist/{chunk-P5T6EVSQ.mjs → chunk-LBENVTO2.mjs} +1 -1
- package/dist/{chunk-NS2P4CPA.mjs → chunk-MMT74K7A.mjs} +5 -5
- package/dist/chunk-OEM5OJDP.mjs +489 -0
- package/dist/chunk-RM7E3WGH.cjs +71 -0
- package/dist/chunk-SYXRPCBO.cjs +220 -0
- package/dist/{chunk-IZFHHQ6S.mjs → chunk-TSHZODTT.mjs} +2 -2
- package/dist/chunk-VOTZLQ6J.cjs +2 -0
- package/dist/chunk-W4CDQ2RJ.mjs +69 -0
- package/dist/index.cjs +75 -50
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +21 -16
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/index.cjs +75 -50
- package/dist/ui/index.d.cts +6 -2
- package/dist/ui/index.d.ts +6 -2
- package/dist/ui/index.mjs +21 -16
- package/dist/ui/inputs/index.cjs +15 -15
- package/dist/ui/inputs/index.mjs +3 -3
- package/dist/ui/inputs/number-inputs/index.cjs +15 -15
- package/dist/ui/inputs/number-inputs/index.mjs +3 -3
- package/dist/ui/layouts/index.cjs +6 -6
- package/dist/ui/layouts/index.mjs +2 -2
- package/dist/ui/{tree-view.cjs → simple-tree-view.cjs} +3 -3
- package/dist/ui/{tree-view.d.cts → simple-tree-view.d.cts} +1 -1
- package/dist/ui/{tree-view.d.ts → simple-tree-view.d.ts} +1 -1
- package/dist/ui/{tree-view.mjs → simple-tree-view.mjs} +1 -1
- package/dist/ui/timeline.cjs +3 -3
- package/dist/ui/timeline.d.cts +1 -1
- package/dist/ui/timeline.d.ts +1 -1
- package/dist/ui/timeline.mjs +2 -2
- package/dist/ui/tree-view/TreeSearchBar.cjs +22 -0
- package/dist/ui/tree-view/TreeSearchBar.d.cts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.d.ts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.mjs +13 -0
- package/dist/ui/tree-view/TreeView.cjs +24 -0
- package/dist/ui/tree-view/TreeView.d.cts +48 -0
- package/dist/ui/tree-view/TreeView.d.ts +48 -0
- package/dist/ui/tree-view/TreeView.mjs +11 -0
- package/dist/ui/tree-view/hooks.cjs +14 -0
- package/dist/ui/tree-view/hooks.d.cts +38 -0
- package/dist/ui/tree-view/hooks.d.ts +38 -0
- package/dist/ui/tree-view/hooks.mjs +1 -0
- package/dist/ui/tree-view/index.cjs +42 -0
- package/dist/ui/tree-view/index.d.cts +6 -0
- package/dist/ui/tree-view/index.d.ts +6 -0
- package/dist/ui/tree-view/index.mjs +17 -0
- package/dist/ui/tree-view/types.cjs +4 -0
- package/dist/ui/tree-view/types.d.cts +24 -0
- package/dist/ui/tree-view/types.d.ts +24 -0
- package/dist/ui/tree-view/types.mjs +1 -0
- package/dist/ui/tree-view-legacy.cjs +37 -0
- package/dist/ui/tree-view-legacy.d.cts +108 -0
- package/dist/ui/tree-view-legacy.d.ts +108 -0
- package/dist/ui/{tree-view-v2.mjs → tree-view-legacy.mjs} +1 -1
- package/dist/ui/waterfall/TimelineEvent.d.cts +1 -1
- package/dist/ui/waterfall/TimelineEvent.d.ts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.d.cts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.d.ts +1 -1
- package/dist/ui/waterfall/Wedges.d.cts +1 -1
- package/dist/ui/waterfall/Wedges.d.ts +1 -1
- package/dist/ui/waterfall/hooks/useTimelineState.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useTimelineState.d.ts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.ts +1 -2
- package/dist/ui/waterfall/index.cjs +7 -7
- package/dist/ui/waterfall/index.d.cts +1 -1
- package/dist/ui/waterfall/index.d.ts +1 -1
- package/dist/ui/waterfall/index.mjs +6 -6
- package/dist/ui/waterfall/types.d.cts +1 -2
- package/dist/ui/waterfall/types.d.ts +1 -2
- package/package.json +1 -1
- package/dist/chunk-5432JOTN.mjs +0 -94
- package/dist/chunk-FD5AAGON.cjs +0 -487
- package/dist/chunk-ILGNKXK2.mjs +0 -485
- package/dist/chunk-Z5P6VCGR.cjs +0 -99
- package/dist/ui/tree-view-v2.cjs +0 -25
- package/dist/ui/tree-view-v2.d.cts +0 -43
- package/dist/ui/tree-view-v2.d.ts +0 -43
- /package/dist/{chunk-SUABRIFA.mjs → chunk-2SWBXWLK.mjs} +0 -0
- /package/dist/{chunk-XMUP5MIM.mjs → chunk-G3EIVAVR.mjs} +0 -0
- /package/dist/{chunk-OX2U5RAG.cjs → chunk-G5NT42YF.cjs} +0 -0
- /package/dist/{chunk-J5DLIKNB.cjs → chunk-X2A7TKER.cjs} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Minimal tree node shape used by `TreeViewV2`.
|
|
6
|
+
*/
|
|
7
|
+
type TreeDataItem = {
|
|
8
|
+
id: string;
|
|
9
|
+
parentId: string | null;
|
|
10
|
+
label: string;
|
|
11
|
+
isCollapsible?: boolean;
|
|
12
|
+
actions?: ReactNode;
|
|
13
|
+
disable?: boolean;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
type TreeDataItemWithMeta<T extends TreeDataItem> = T & {
|
|
17
|
+
indent: number;
|
|
18
|
+
isLast: boolean;
|
|
19
|
+
ancestors: T[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Props for the virtualized filterable tree view.
|
|
23
|
+
*/
|
|
24
|
+
type TreeViewProps<T extends TreeDataItem> = {
|
|
25
|
+
data: T[];
|
|
26
|
+
getIcon: (item: T) => ReactNode;
|
|
27
|
+
onVisibleDataChange?: (data: (T & {
|
|
28
|
+
indent: number;
|
|
29
|
+
isLast: boolean;
|
|
30
|
+
ancestors: T[];
|
|
31
|
+
})[]) => void;
|
|
32
|
+
onItemHover?: (id: string | null) => void;
|
|
33
|
+
className?: string;
|
|
34
|
+
hoveredId?: string | null;
|
|
35
|
+
isSelectable?: boolean;
|
|
36
|
+
selectedItemId?: string | null;
|
|
37
|
+
onSelectChange?: (id: string | null) => void;
|
|
38
|
+
isSearchable?: boolean;
|
|
39
|
+
alwaysShowExpand?: boolean;
|
|
40
|
+
useSyncScroll?: boolean;
|
|
41
|
+
searchQuery?: string;
|
|
42
|
+
onSearchQueryChange?: (query: string) => void;
|
|
43
|
+
isCaseSensitive?: boolean;
|
|
44
|
+
onIsCaseSensitiveChange?: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
45
|
+
isRegex?: boolean;
|
|
46
|
+
onIsRegexChange?: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Filterable and highlightable tree view with keyboardless interactions.
|
|
50
|
+
* Supports search (plain or regex), hover highlights, and collapsible nodes.
|
|
51
|
+
*/
|
|
52
|
+
declare function TreeView<T extends TreeDataItem>({ data, getIcon, onVisibleDataChange, onItemHover, className, hoveredId, isSelectable, selectedItemId, onSelectChange, isSearchable, alwaysShowExpand, useSyncScroll, searchQuery: externalSearchQuery, onSearchQueryChange: externalOnSearchQueryChange, isCaseSensitive: externalIsCaseSensitive, onIsCaseSensitiveChange: externalOnIsCaseSensitiveChange, isRegex: externalIsRegex, onIsRegexChange: externalOnIsRegexChange, }: TreeViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/**
|
|
54
|
+
* Search bar component for the TreeView
|
|
55
|
+
*/
|
|
56
|
+
type TreeSearchBarProps = {
|
|
57
|
+
searchQuery: string;
|
|
58
|
+
setSearchQuery: (query: string) => void;
|
|
59
|
+
isCaseSensitive: boolean;
|
|
60
|
+
setIsCaseSensitive: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
61
|
+
isRegex: boolean;
|
|
62
|
+
setIsRegex: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
63
|
+
isRegexValid: boolean;
|
|
64
|
+
searchResultsCount: number;
|
|
65
|
+
};
|
|
66
|
+
declare function TreeSearchBar({ searchQuery, setSearchQuery, isCaseSensitive, setIsCaseSensitive, isRegex, setIsRegex, isRegexValid, searchResultsCount, }: TreeSearchBarProps): react_jsx_runtime.JSX.Element;
|
|
67
|
+
/**
|
|
68
|
+
* Individual tree entry item component
|
|
69
|
+
*/
|
|
70
|
+
type TreeEntryItemProps<T extends TreeDataItem> = {
|
|
71
|
+
item: TreeDataItemWithMeta<T>;
|
|
72
|
+
hoveredId?: string | null;
|
|
73
|
+
onItemHover?: (id: string | null) => void;
|
|
74
|
+
isSelectable?: boolean;
|
|
75
|
+
selectedItemId?: string | null;
|
|
76
|
+
handleItemSelect: (id: string) => void;
|
|
77
|
+
expandedItems: Set<string>;
|
|
78
|
+
toggleItem: (id: string) => void;
|
|
79
|
+
alwaysShowExpand?: boolean;
|
|
80
|
+
hasDescendants: (id: string) => boolean;
|
|
81
|
+
getIcon: (item: T) => ReactNode;
|
|
82
|
+
renderLabel: (label: string) => ReactNode;
|
|
83
|
+
dataWithMeta: TreeDataItemWithMeta<T>[];
|
|
84
|
+
};
|
|
85
|
+
declare function TreeEntryItem<T extends TreeDataItem>({ item, hoveredId, onItemHover, isSelectable, selectedItemId, handleItemSelect, expandedItems, toggleItem, alwaysShowExpand, hasDescendants, getIcon, renderLabel, dataWithMeta, }: TreeEntryItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* Tree entries wrapper component
|
|
88
|
+
*/
|
|
89
|
+
type TreeEntriesProps<T extends TreeDataItem> = {
|
|
90
|
+
visibleData: TreeDataItemWithMeta<T>[];
|
|
91
|
+
hoveredId?: string | null;
|
|
92
|
+
onItemHover?: (id: string | null) => void;
|
|
93
|
+
isSelectable?: boolean;
|
|
94
|
+
selectedItemId?: string | null;
|
|
95
|
+
handleItemSelect: (id: string) => void;
|
|
96
|
+
expandedItems: Set<string>;
|
|
97
|
+
toggleItem: (id: string) => void;
|
|
98
|
+
alwaysShowExpand?: boolean;
|
|
99
|
+
hasDescendants: (id: string) => boolean;
|
|
100
|
+
getIcon: (item: T) => ReactNode;
|
|
101
|
+
renderLabel: (label: string) => ReactNode;
|
|
102
|
+
dataWithMeta: TreeDataItemWithMeta<T>[];
|
|
103
|
+
useSyncScroll?: boolean;
|
|
104
|
+
className?: string;
|
|
105
|
+
};
|
|
106
|
+
declare function TreeEntries<T extends TreeDataItem>({ visibleData, hoveredId, onItemHover, isSelectable, selectedItemId, handleItemSelect, expandedItems, toggleItem, alwaysShowExpand, hasDescendants, getIcon, renderLabel, dataWithMeta, useSyncScroll, className, }: TreeEntriesProps<T>): react_jsx_runtime.JSX.Element;
|
|
107
|
+
|
|
108
|
+
export { type TreeDataItem, type TreeDataItemWithMeta, TreeEntries, type TreeEntriesProps, TreeEntryItem, type TreeEntryItemProps, TreeSearchBar, type TreeSearchBarProps, TreeView, type TreeViewProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { LogItemType, LogItemWithMeta } from '../types.cjs';
|
|
3
|
-
import '../../tree-view
|
|
4
|
-
import 'react/jsx-runtime';
|
|
3
|
+
import '../../tree-view/types.cjs';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Custom hook for managing timeline waterfall state including item expansion, hover interactions, and hierarchical data processing.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { LogItemType, LogItemWithMeta } from '../types.js';
|
|
3
|
-
import '../../tree-view
|
|
4
|
-
import 'react/jsx-runtime';
|
|
3
|
+
import '../../tree-view/types.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Custom hook for managing timeline waterfall state including item expansion, hover interactions, and hierarchical data processing.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE6D3BSYY_cjs = require('../../chunk-E6D3BSYY.cjs');
|
|
4
4
|
require('../../chunk-WJL5HMO6.cjs');
|
|
5
5
|
require('../../chunk-RJ7I6ZQK.cjs');
|
|
6
|
-
require('../../chunk-Z6UDRPC2.cjs');
|
|
7
|
-
require('../../chunk-2J75MYQA.cjs');
|
|
8
|
-
require('../../chunk-LP3AGGRK.cjs');
|
|
9
6
|
require('../../chunk-6TSA7KXX.cjs');
|
|
10
7
|
require('../../chunk-MVAFOQ67.cjs');
|
|
11
8
|
require('../../chunk-TUYG6BYZ.cjs');
|
|
12
9
|
require('../../chunk-YXFHJKNW.cjs');
|
|
13
|
-
require('../../chunk-G2ZYONQO.cjs');
|
|
14
10
|
require('../../chunk-5MNZYCN2.cjs');
|
|
15
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-Z6UDRPC2.cjs');
|
|
12
|
+
require('../../chunk-2J75MYQA.cjs');
|
|
13
|
+
require('../../chunk-LP3AGGRK.cjs');
|
|
14
|
+
require('../../chunk-G2ZYONQO.cjs');
|
|
15
|
+
require('../../chunk-D4W2G6CY.cjs');
|
|
16
16
|
require('../../chunk-LCCNBVKZ.cjs');
|
|
17
17
|
require('../../chunk-JMCH2AFN.cjs');
|
|
18
18
|
require('../../chunk-VBBJSIY7.cjs');
|
|
@@ -33,5 +33,5 @@ require('../../chunk-OHIB3TEN.cjs');
|
|
|
33
33
|
|
|
34
34
|
Object.defineProperty(exports, "Waterfall", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkE6D3BSYY_cjs.Waterfall; }
|
|
37
37
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default, { ReactNode } from 'react';
|
|
3
3
|
import { LogItemType } from './types.cjs';
|
|
4
|
-
import '../tree-view
|
|
4
|
+
import '../tree-view/types.cjs';
|
|
5
5
|
|
|
6
6
|
interface WaterfallProps {
|
|
7
7
|
logData: LogItemType[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default, { ReactNode } from 'react';
|
|
3
3
|
import { LogItemType } from './types.js';
|
|
4
|
-
import '../tree-view
|
|
4
|
+
import '../tree-view/types.js';
|
|
5
5
|
|
|
6
6
|
interface WaterfallProps {
|
|
7
7
|
logData: LogItemType[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { Waterfall } from '../../chunk-
|
|
1
|
+
export { Waterfall } from '../../chunk-MMT74K7A.mjs';
|
|
2
2
|
import '../../chunk-JWKOW2OV.mjs';
|
|
3
3
|
import '../../chunk-VPQ5SSY3.mjs';
|
|
4
|
-
import '../../chunk-CIPI2V54.mjs';
|
|
5
|
-
import '../../chunk-SA5WKLYB.mjs';
|
|
6
|
-
import '../../chunk-5EXV5EWF.mjs';
|
|
7
4
|
import '../../chunk-K22BEXUA.mjs';
|
|
8
5
|
import '../../chunk-OC4HRPZU.mjs';
|
|
9
6
|
import '../../chunk-N6DSPSMM.mjs';
|
|
10
7
|
import '../../chunk-CO6EASQO.mjs';
|
|
11
|
-
import '../../chunk-4U232QAX.mjs';
|
|
12
8
|
import '../../chunk-IR334P7F.mjs';
|
|
13
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-CIPI2V54.mjs';
|
|
10
|
+
import '../../chunk-SA5WKLYB.mjs';
|
|
11
|
+
import '../../chunk-5EXV5EWF.mjs';
|
|
12
|
+
import '../../chunk-4U232QAX.mjs';
|
|
13
|
+
import '../../chunk-OEM5OJDP.mjs';
|
|
14
14
|
import '../../chunk-PCSY5IJ2.mjs';
|
|
15
15
|
import '../../chunk-BNDRHLLZ.mjs';
|
|
16
16
|
import '../../chunk-BEJIZ56L.mjs';
|
package/package.json
CHANGED
package/dist/chunk-5432JOTN.mjs
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
|
-
import { GitBranch } from 'lucide-react';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var PACKAGE_VERSION = "0.0.74" ;
|
|
6
|
-
var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
|
|
7
|
-
var GIT_HASH = "5cd2f59" ;
|
|
8
|
-
function PackageBadge({
|
|
9
|
-
className,
|
|
10
|
-
packageName,
|
|
11
|
-
packageFullName,
|
|
12
|
-
versionText,
|
|
13
|
-
linkable = true,
|
|
14
|
-
gitHash
|
|
15
|
-
}) {
|
|
16
|
-
const npmUrl = packageFullName && versionText ? `https://www.npmjs.com/package/${packageFullName}/v/${versionText.replace("v", "")}` : void 0;
|
|
17
|
-
return /* @__PURE__ */ jsxs(
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
className: `rounded-uk-xs rounded-r-uk-xs text-uk-sm bg-icon-withbg inline-flex items-center ${className || ""}`,
|
|
21
|
-
style: linkable ? { cursor: "pointer" } : void 0,
|
|
22
|
-
children: [
|
|
23
|
-
(packageName || versionText) && /* @__PURE__ */ jsxs("div", { className: "rounded-uk-xs inline-flex items-center overflow-hidden", children: [
|
|
24
|
-
packageName && /* @__PURE__ */ jsx(
|
|
25
|
-
"span",
|
|
26
|
-
{
|
|
27
|
-
className: "pl-sm pr-xs py-xxxs bg-brand-primary text-text-withbg text-uk-xs",
|
|
28
|
-
style: {
|
|
29
|
-
backgroundColor: "var(--color-brand-primary, var(--brand-primary))",
|
|
30
|
-
color: "white",
|
|
31
|
-
textShadow: "0 1px 2px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.1)"
|
|
32
|
-
},
|
|
33
|
-
children: packageName
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
versionText && /* @__PURE__ */ jsx(
|
|
37
|
-
"a",
|
|
38
|
-
{
|
|
39
|
-
href: linkable && npmUrl ? npmUrl : void 0,
|
|
40
|
-
className: cn(
|
|
41
|
-
"pl-xs pr-sm py-xxxs rounded-r-uk-xs",
|
|
42
|
-
"bg-alt-primary",
|
|
43
|
-
"text-text-secondary",
|
|
44
|
-
"text-text-primary text-uk-xs",
|
|
45
|
-
linkable && "hover:text-brand-primary"
|
|
46
|
-
),
|
|
47
|
-
style: {
|
|
48
|
-
textShadow: "0 1px 1px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.05)"
|
|
49
|
-
},
|
|
50
|
-
onClick: !linkable ? (e) => e.preventDefault() : void 0,
|
|
51
|
-
children: versionText
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] }),
|
|
55
|
-
gitHash && gitHash !== "unknown" && /* @__PURE__ */ jsxs(
|
|
56
|
-
"a",
|
|
57
|
-
{
|
|
58
|
-
href: linkable ? `https://github.com/vuer-ai/vuer-uikit/commit/${gitHash}` : void 0,
|
|
59
|
-
className: "px-md rounded-uk-ssx font-number-input text-text-tertiary text-uk-xs ml-[0px] bg-transparent py-[0px]",
|
|
60
|
-
onClick: !linkable ? (e) => e.preventDefault() : void 0,
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx(GitBranch, { className: "mr-[2px] inline-block size-2" }),
|
|
63
|
-
gitHash
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
function UIKitBadge({
|
|
72
|
-
className,
|
|
73
|
-
package: showPackage = false,
|
|
74
|
-
prefix = false,
|
|
75
|
-
linkable = false,
|
|
76
|
-
version = false,
|
|
77
|
-
hash = false
|
|
78
|
-
}) {
|
|
79
|
-
const packageShortName = PACKAGE_NAME.split("/").pop() || PACKAGE_NAME;
|
|
80
|
-
const versionText = version ? prefix ? `v${PACKAGE_VERSION}` : PACKAGE_VERSION : void 0;
|
|
81
|
-
return /* @__PURE__ */ jsx(
|
|
82
|
-
PackageBadge,
|
|
83
|
-
{
|
|
84
|
-
className,
|
|
85
|
-
packageName: showPackage ? packageShortName : void 0,
|
|
86
|
-
packageFullName: PACKAGE_NAME,
|
|
87
|
-
versionText,
|
|
88
|
-
linkable,
|
|
89
|
-
gitHash: hash ? GIT_HASH : void 0
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { GIT_HASH, PACKAGE_VERSION, PackageBadge, UIKitBadge };
|