@rafal.lemieszewski/tide-ui 0.87.8 → 0.88.0

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.
@@ -1,48 +1,49 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import * as l from "@radix-ui/react-separator";
4
- import { cn as m } from "../../lib/utils.js";
5
- import { Icon as f } from "./icon.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import * as m from "@radix-ui/react-separator";
4
+ import { cn as l } from "../../lib/utils.js";
5
+ import { Icon as p } from "./icon.js";
6
6
  import { Dot as c } from "./custom-icons.js";
7
- const h = /* @__PURE__ */ p.forwardRef(
7
+ const f = /* @__PURE__ */ s.forwardRef(
8
8
  ({
9
- className: t,
10
- layout: i = "vertical",
11
- decorative: a = !0,
12
- type: s = "line",
13
- ...e
14
- }, n) => {
15
- const r = i === "horizontal" ? "vertical" : "horizontal";
16
- return s === "dot" && i === "horizontal" ? /* @__PURE__ */ o(
17
- "div",
9
+ className: o,
10
+ decorative: t = !0,
11
+ type: i = "horizontal-line",
12
+ ...a
13
+ }, e) => {
14
+ if (i === "dot")
15
+ return /* @__PURE__ */ r(
16
+ "div",
17
+ {
18
+ ref: e,
19
+ role: t ? "presentation" : "separator",
20
+ "aria-orientation": "vertical",
21
+ className: l(
22
+ "flex h-[1em] shrink-0 items-center justify-center",
23
+ o
24
+ ),
25
+ ...a,
26
+ children: /* @__PURE__ */ r(p, { name: c, size: "l", color: "tertiary" })
27
+ }
28
+ );
29
+ const n = i === "vertical-line" ? "vertical" : "horizontal";
30
+ return /* @__PURE__ */ r(
31
+ m.Root,
18
32
  {
19
- ref: n,
20
- role: a ? "presentation" : "separator",
21
- "aria-orientation": r,
22
- className: m(
23
- "flex h-[1em] shrink-0 items-center justify-center",
24
- t
25
- ),
26
- ...e,
27
- children: /* @__PURE__ */ o(f, { name: c, size: "l", color: "tertiary" })
28
- }
29
- ) : /* @__PURE__ */ o(
30
- l.Root,
31
- {
32
- ref: n,
33
- decorative: a,
34
- orientation: r,
35
- className: m(
33
+ ref: e,
34
+ decorative: t,
35
+ orientation: n,
36
+ className: l(
36
37
  "shrink-0 bg-[var(--grey-alpha-100)]",
37
- r === "horizontal" ? "h-px w-full" : "h-7 w-px",
38
- t
38
+ n === "horizontal" ? "h-px w-full" : "h-7 w-px",
39
+ o
39
40
  ),
40
- ...e
41
+ ...a
41
42
  }
42
43
  );
43
44
  }
44
45
  );
45
- h.displayName = l.Root.displayName;
46
+ f.displayName = m.Root.displayName;
46
47
  export {
47
- h as Separator
48
+ f as Separator
48
49
  };