strata-ui-react 0.1.4 → 0.1.5

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.
@@ -11726,8 +11726,8 @@ const TooltipContent = (t) => {
11726
11726
  children: [u, i]
11727
11727
  })
11728
11728
  }) }), n[7] = i, n[8] = c, n[9] = l, n[10] = d) : d = n[10], d;
11729
- }, SliderHandle = ({ sliderInstance: t, isActive: i, onKeyDownHandler: s, onMouseDownHandler: c, onTouchStart: l, value: u, className: d, children: f, ref: m, ...h }) => {
11730
- let [g, _] = React.useState(!1);
11729
+ }, SliderHandle = ({ sliderInstance: n, isActive: i, onKeyDownHandler: s, onMouseDownHandler: c, onTouchStart: l, value: u, className: d, children: f, ref: m, ...h }) => {
11730
+ let [g, _] = React$1.useState(!1);
11731
11731
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Tooltip, {
11732
11732
  open: i || g,
11733
11733
  trackCursorAxis: "x",
@@ -11738,11 +11738,11 @@ const TooltipContent = (t) => {
11738
11738
  onMouseEnter: () => _(!0),
11739
11739
  onMouseLeave: () => _(!1),
11740
11740
  role: "slider",
11741
- "aria-valuemin": t.options.min,
11742
- "aria-valuemax": t.options.max,
11741
+ "aria-valuemin": n.options.min,
11742
+ "aria-valuemax": n.options.max,
11743
11743
  "aria-valuenow": u,
11744
11744
  style: {
11745
- left: `${t.getPercentageForValue(u)}%`,
11745
+ left: `${n.getPercentageForValue(u)}%`,
11746
11746
  zIndex: i ? "1" : "0"
11747
11747
  },
11748
11748
  className: cn("absolute top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full outline-none border-2 border-primary bg-surface-container hover:cursor-pointer active:border-secondary hover:border-secondary transition-[width,height,border] aspect-square", i ? "size-md shadow-4-shadow" : "size-sm shadow-1-shadow", d),
@@ -12871,9 +12871,9 @@ function useActivationDirectionDetector(n, i, s, c) {
12871
12871
  ]);
12872
12872
  }
12873
12873
  var import_compiler_runtime$5 = require_compiler_runtime();
12874
- const TabsIndicator = (t) => {
12874
+ const TabsIndicator = (n) => {
12875
12875
  let i = (0, import_compiler_runtime$5.c)(13), s, c;
12876
- if (i[0] === t ? (s = i[1], c = i[2]) : ({className: s, ...c} = t, i[0] = t, i[1] = s, i[2] = c), React.useContext(TabsOrientationContext) === "horizontal") {
12876
+ if (i[0] === n ? (s = i[1], c = i[2]) : ({className: s, ...c} = n, i[0] = n, i[1] = s, i[2] = c), React$1.useContext(TabsOrientationContext) === "horizontal") {
12877
12877
  let t;
12878
12878
  i[3] === s ? t = i[4] : (t = cn("absolute left-1/2 h-11 md:h-12 top-0 z-[-1] w-(--active-tab-width) translate-y-(--active-tab-top) -translate-x-1/2 rounded-2xl md:rounded-full bg-surface-brand-primary-default transition-all duration-300 ease-[cubic-bezier(0.68,-0.55,0.27,1.55)]", s), i[3] = s, i[4] = t);
12879
12879
  let n;
@@ -12891,9 +12891,9 @@ const TabsIndicator = (t) => {
12891
12891
  }), i[10] = c, i[11] = l, i[12] = u) : u = i[12], u;
12892
12892
  };
12893
12893
  var import_compiler_runtime$4 = require_compiler_runtime();
12894
- const TabsList = (t) => {
12894
+ const TabsList = (n) => {
12895
12895
  let i = (0, import_compiler_runtime$4.c)(13), s, c;
12896
- if (i[0] === t ? (s = i[1], c = i[2]) : ({className: s, ...c} = t, i[0] = t, i[1] = s, i[2] = c), React.useContext(TabsOrientationContext) === "horizontal") {
12896
+ if (i[0] === n ? (s = i[1], c = i[2]) : ({className: s, ...c} = n, i[0] = n, i[1] = s, i[2] = c), React$1.useContext(TabsOrientationContext) === "horizontal") {
12897
12897
  let t;
12898
12898
  i[3] === s ? t = i[4] : (t = cn("relative z-0 flex flex-col h-fit grow gap-2 p-2 bg-surface-neutral-primary-default rounded-3xl", s), i[3] = s, i[4] = t);
12899
12899
  let n;
@@ -12911,10 +12911,10 @@ const TabsList = (t) => {
12911
12911
  }), i[10] = c, i[11] = l, i[12] = u) : u = i[12], u;
12912
12912
  };
12913
12913
  var import_compiler_runtime$3 = require_compiler_runtime();
12914
- const TabsPanel = (t) => {
12914
+ const TabsPanel = (n) => {
12915
12915
  let i = (0, import_compiler_runtime$3.c)(9), s, c;
12916
- i[0] === t ? (s = i[1], c = i[2]) : ({className: s, ...c} = t, i[0] = t, i[1] = s, i[2] = c);
12917
- let l = React.useContext(TabsOrientationContext) === "horizontal" ? "flex-1 min-h-0 h-full" : "grow", u;
12916
+ i[0] === n ? (s = i[1], c = i[2]) : ({className: s, ...c} = n, i[0] = n, i[1] = s, i[2] = c);
12917
+ let l = React$1.useContext(TabsOrientationContext) === "horizontal" ? "flex-1 min-h-0 h-full" : "grow", u;
12918
12918
  i[3] !== s || i[4] !== l ? (u = cn("relative rounded-xl bg-surface-neutral-primary-default", l, "flex items-center justify-center p-4 overflow-auto", s), i[3] = s, i[4] = l, i[5] = u) : u = i[5];
12919
12919
  let d;
12920
12920
  return i[6] !== c || i[7] !== u ? (d = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsPanel$1, {
@@ -12935,9 +12935,9 @@ const TabsTab = (t) => {
12935
12935
  }), n[5] = s, n[6] = c, n[7] = l) : l = n[7], l;
12936
12936
  };
12937
12937
  var import_compiler_runtime$1 = require_compiler_runtime();
12938
- const Tabs = (t) => {
12939
- let i = (0, import_compiler_runtime$1.c)(15), { className: s, ref: c, ...l } = t, [u, d] = React.useState(l.orientation ?? "vertical");
12940
- if (React.useEffect(() => {
12938
+ const Tabs = (n) => {
12939
+ let i = (0, import_compiler_runtime$1.c)(15), { className: s, ref: c, ...l } = n, [u, d] = React$1.useState(l.orientation ?? "vertical");
12940
+ if (React$1.useEffect(() => {
12941
12941
  let t = () => {
12942
12942
  window.innerWidth < 768 ? d("horizontal") : d(l.orientation ?? "vertical");
12943
12943
  };