@humu-tech/ui 0.1.7 → 0.1.9

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.js CHANGED
@@ -4988,27 +4988,26 @@ var Sidebar = (0, import_react65.forwardRef)(function Sidebar2({
4988
4988
  children: [
4989
4989
  headerSlot && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: headerSlot }),
4990
4990
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4991
- "button",
4991
+ Tooltip,
4992
4992
  {
4993
- type: "button",
4994
- "aria-expanded": !collapsed,
4995
- "aria-label": collapsed ? "Expandir menu" : "Recolher menu",
4996
- onClick: toggleCollapse,
4997
- className: cn(
4998
- "inline-flex shrink-0 items-center gap-1.5 rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle",
4999
- collapsed ? "size-8 justify-center" : "h-8 px-2"
5000
- ),
5001
- children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react64.CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
5002
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react64.CaretDoubleLeft, { size: 16 }),
5003
- enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "hidden items-center gap-0.5 sm:inline-flex", children: getShortcutKeys("B").map((k) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5004
- "kbd",
5005
- {
5006
- className: "rounded-v2-sm border border-v2-border-default px-1 font-mono text-v2-xs font-semibold",
5007
- children: k
5008
- },
5009
- k
5010
- )) })
5011
- ] })
4993
+ side: "right",
4994
+ content: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { children: [
4995
+ collapsed ? "Expandir menu" : "Recolher menu",
4996
+ enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
4997
+ ] }),
4998
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4999
+ "button",
5000
+ {
5001
+ type: "button",
5002
+ "aria-expanded": !collapsed,
5003
+ "aria-label": collapsed ? "Expandir menu" : "Recolher menu",
5004
+ onClick: toggleCollapse,
5005
+ className: cn(
5006
+ "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
5007
+ ),
5008
+ children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react64.CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react64.CaretDoubleLeft, { size: 16 })
5009
+ }
5010
+ )
5012
5011
  }
5013
5012
  )
5014
5013
  ]
@@ -6970,6 +6969,8 @@ var DonutChart = (0, import_react89.forwardRef)(
6970
6969
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6971
6970
  import_recharts.Tooltip,
6972
6971
  {
6972
+ allowEscapeViewBox: { x: false, y: true },
6973
+ position: { y: -12 },
6973
6974
  content: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6974
6975
  ChartTooltip,
6975
6976
  {
package/dist/index.mjs CHANGED
@@ -4928,27 +4928,26 @@ var Sidebar = forwardRef38(function Sidebar2({
4928
4928
  children: [
4929
4929
  headerSlot && !collapsed && /* @__PURE__ */ jsx50("div", { children: headerSlot }),
4930
4930
  /* @__PURE__ */ jsx50(
4931
- "button",
4931
+ Tooltip,
4932
4932
  {
4933
- type: "button",
4934
- "aria-expanded": !collapsed,
4935
- "aria-label": collapsed ? "Expandir menu" : "Recolher menu",
4936
- onClick: toggleCollapse,
4937
- className: cn(
4938
- "inline-flex shrink-0 items-center gap-1.5 rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle",
4939
- collapsed ? "size-8 justify-center" : "h-8 px-2"
4940
- ),
4941
- children: collapsed ? /* @__PURE__ */ jsx50(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsxs31(Fragment5, { children: [
4942
- /* @__PURE__ */ jsx50(CaretDoubleLeft, { size: 16 }),
4943
- enableShortcut && /* @__PURE__ */ jsx50("span", { className: "hidden items-center gap-0.5 sm:inline-flex", children: getShortcutKeys("B").map((k) => /* @__PURE__ */ jsx50(
4944
- "kbd",
4945
- {
4946
- className: "rounded-v2-sm border border-v2-border-default px-1 font-mono text-v2-xs font-semibold",
4947
- children: k
4948
- },
4949
- k
4950
- )) })
4951
- ] })
4933
+ side: "right",
4934
+ content: /* @__PURE__ */ jsxs31("span", { children: [
4935
+ collapsed ? "Expandir menu" : "Recolher menu",
4936
+ enableShortcut && /* @__PURE__ */ jsx50("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
4937
+ ] }),
4938
+ children: /* @__PURE__ */ jsx50(
4939
+ "button",
4940
+ {
4941
+ type: "button",
4942
+ "aria-expanded": !collapsed,
4943
+ "aria-label": collapsed ? "Expandir menu" : "Recolher menu",
4944
+ onClick: toggleCollapse,
4945
+ className: cn(
4946
+ "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
4947
+ ),
4948
+ children: collapsed ? /* @__PURE__ */ jsx50(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsx50(CaretDoubleLeft, { size: 16 })
4949
+ }
4950
+ )
4952
4951
  }
4953
4952
  )
4954
4953
  ]
@@ -6910,6 +6909,8 @@ var DonutChart = forwardRef50(
6910
6909
  /* @__PURE__ */ jsx68(
6911
6910
  Tooltip2,
6912
6911
  {
6912
+ allowEscapeViewBox: { x: false, y: true },
6913
+ position: { y: -12 },
6913
6914
  content: /* @__PURE__ */ jsx68(
6914
6915
  ChartTooltip,
6915
6916
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humu-tech/ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",