@vuer-ai/vuer-uikit 0.0.76 → 0.0.77

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 (59) hide show
  1. package/dist/chunk-33ZAFHOY.cjs +99 -0
  2. package/dist/{chunk-TSHZODTT.mjs → chunk-3HERIMKO.mjs} +1 -1
  3. package/dist/{chunk-2DA6GE5K.mjs → chunk-3LM4LVYM.mjs} +8 -5
  4. package/dist/chunk-6E4NTY34.cjs +494 -0
  5. package/dist/chunk-7644AY3P.cjs +855 -0
  6. package/dist/chunk-AOAM6HV2.mjs +94 -0
  7. package/dist/chunk-CSSMBHBD.mjs +853 -0
  8. package/dist/chunk-CW6FHIAT.cjs +624 -0
  9. package/dist/chunk-D5YKZOUG.mjs +247 -0
  10. package/dist/chunk-HOJOWLJT.mjs +142 -0
  11. package/dist/chunk-HTHCG2AN.cjs +125 -0
  12. package/dist/chunk-IZJYFVS7.mjs +15 -0
  13. package/dist/chunk-KQXLV6YW.mjs +489 -0
  14. package/dist/chunk-NEOSSUNE.mjs +599 -0
  15. package/dist/chunk-TE5JNR5C.mjs +117 -0
  16. package/dist/{chunk-IMN6FIOY.cjs → chunk-UHDBWDHS.cjs} +8 -5
  17. package/dist/{chunk-IQAZZPJD.cjs → chunk-V2OROE7H.cjs} +1 -1
  18. package/dist/chunk-XKIB3LSS.cjs +167 -0
  19. package/dist/chunk-YPQYI63K.cjs +249 -0
  20. package/dist/chunk-ZO3X2NDT.cjs +21 -0
  21. package/dist/highlight-cursor/enhanced-components.cjs +8 -8
  22. package/dist/highlight-cursor/enhanced-components.mjs +3 -3
  23. package/dist/highlight-cursor/index.cjs +12 -12
  24. package/dist/highlight-cursor/index.mjs +3 -3
  25. package/dist/index.cjs +430 -430
  26. package/dist/index.mjs +46 -46
  27. package/dist/ui/UIKitBadge.cjs +5 -5
  28. package/dist/ui/UIKitBadge.mjs +1 -1
  29. package/dist/ui/badge.d.cts +1 -1
  30. package/dist/ui/badge.d.ts +1 -1
  31. package/dist/ui/index.cjs +345 -345
  32. package/dist/ui/index.mjs +45 -45
  33. package/dist/ui/inputs/index.cjs +18 -18
  34. package/dist/ui/inputs/index.mjs +4 -4
  35. package/dist/ui/inputs/input.d.cts +1 -1
  36. package/dist/ui/inputs/input.d.ts +1 -1
  37. package/dist/ui/inputs/number-inputs/index.cjs +15 -15
  38. package/dist/ui/inputs/number-inputs/index.mjs +3 -3
  39. package/dist/ui/pagination.cjs +9 -9
  40. package/dist/ui/pagination.mjs +2 -2
  41. package/dist/ui/select.d.cts +1 -1
  42. package/dist/ui/select.d.ts +1 -1
  43. package/dist/ui/sidebar.cjs +26 -26
  44. package/dist/ui/sidebar.mjs +2 -2
  45. package/dist/ui/tabs.cjs +6 -6
  46. package/dist/ui/tabs.mjs +2 -2
  47. package/dist/ui/textarea.d.cts +1 -1
  48. package/dist/ui/textarea.d.ts +1 -1
  49. package/dist/ui/timeline.cjs +4 -4
  50. package/dist/ui/timeline.mjs +3 -3
  51. package/dist/ui/tree-view/TreeView.cjs +3 -3
  52. package/dist/ui/tree-view/TreeView.mjs +1 -1
  53. package/dist/ui/tree-view/index.cjs +3 -3
  54. package/dist/ui/tree-view/index.mjs +1 -1
  55. package/dist/ui/tree-view-legacy.cjs +6 -6
  56. package/dist/ui/tree-view-legacy.mjs +2 -2
  57. package/dist/ui/waterfall/index.cjs +8 -8
  58. package/dist/ui/waterfall/index.mjs +7 -7
  59. package/package.json +1 -1
@@ -0,0 +1,94 @@
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.75" ;
6
+ var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
7
+ var GIT_HASH = "f5eb08c" ;
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 };