@rafal.lemieszewski/tide-ui 0.10.0 → 0.10.1

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.es.js CHANGED
@@ -21366,20 +21366,20 @@ function zve({
21366
21366
  composed: $
21367
21367
  };
21368
21368
  return { ...$, ...F[z] };
21369
+ }, L = () => {
21370
+ if (g) {
21371
+ const R = I(b || "auto", e, o);
21372
+ return {
21373
+ top: g.top ?? R.top,
21374
+ right: g.right ?? R.right,
21375
+ bottom: g.bottom ?? R.bottom,
21376
+ left: g.left ?? R.left
21377
+ };
21378
+ }
21379
+ return I(b || "auto", e, o);
21369
21380
  }, j = {
21370
21381
  data: t,
21371
- margin: (() => {
21372
- if (g) {
21373
- const R = I(b || "auto", e, o);
21374
- return {
21375
- top: g.top ?? R.top,
21376
- right: g.right ?? R.right,
21377
- bottom: g.bottom ?? R.bottom,
21378
- left: g.left ?? R.left
21379
- };
21380
- }
21381
- return I(b || "auto", e, o);
21382
- })()
21382
+ margin: L()
21383
21383
  }, E = {
21384
21384
  axisLine: { stroke: "var(--color-border-primary-subtle)", strokeWidth: 2 },
21385
21385
  tickLine: !1,
@@ -21400,28 +21400,21 @@ function zve({
21400
21400
  stroke: "var(--color-border-primary-subtle)",
21401
21401
  horizontal: !0,
21402
21402
  vertical: !1
21403
- }, Z = ({ payload: R }) => !R || !R.length ? null : /* @__PURE__ */ k("div", { className: `flex justify-start items-center gap-[var(--space-md)] ${(() => {
21404
- switch (e) {
21405
- case "horizontal-bar":
21406
- return "ml-[65px]";
21407
- // 60px + 5px adjustment
21408
- case "scatter":
21409
- return "ml-[69px]";
21410
- // 64px + 5px adjustment
21411
- default:
21412
- return "ml-[59px]";
21413
- }
21414
- })()}`, children: R.map((T, ee) => /* @__PURE__ */ G("div", { className: "flex items-center justify-center gap-[var(--space-xsm)]", children: [
21415
- /* @__PURE__ */ k(
21416
- "div",
21417
- {
21418
- className: e === "bar" || e === "horizontal-bar" ? "w-[6px] h-[6px] flex-shrink-0" : "w-[6px] h-[6px] rounded-full flex-shrink-0",
21419
- style: { backgroundColor: T.color },
21420
- "aria-hidden": "true"
21421
- }
21422
- ),
21423
- /* @__PURE__ */ k("span", { className: "[&]:text-body-medium-xsm [&]:text-[var(--color-text-secondary)] leading-none", children: T.value })
21424
- ] }, ee)) }), Y = () => {
21403
+ }, Z = ({ payload: R }) => {
21404
+ if (!R || !R.length) return null;
21405
+ const T = L().left + 5;
21406
+ return /* @__PURE__ */ k("div", { className: "flex justify-start items-center gap-[var(--space-md)]", style: { marginLeft: `${T}px` }, children: R.map((ee, ae) => /* @__PURE__ */ G("div", { className: "flex items-center justify-center gap-[var(--space-xsm)]", children: [
21407
+ /* @__PURE__ */ k(
21408
+ "div",
21409
+ {
21410
+ className: e === "bar" || e === "horizontal-bar" ? "w-[6px] h-[6px] flex-shrink-0" : "w-[6px] h-[6px] rounded-full flex-shrink-0",
21411
+ style: { backgroundColor: ee.color },
21412
+ "aria-hidden": "true"
21413
+ }
21414
+ ),
21415
+ /* @__PURE__ */ k("span", { className: "[&]:text-body-medium-xsm [&]:text-[var(--color-text-secondary)] leading-none", children: ee.value })
21416
+ ] }, ae)) });
21417
+ }, Y = () => {
21425
21418
  switch (e) {
21426
21419
  case "bar":
21427
21420
  return /* @__PURE__ */ G(