@turingpaper/ui 0.0.1 → 0.0.2

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,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import { RadioGroup as r } from "radix-ui";
4
- import { Circle as c } from "lucide-react";
4
+ import { Circle as l } from "lucide-react";
5
5
  import { cn as t } from "./utils.mjs";
6
6
  const d = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
7
7
  r.Root,
@@ -12,20 +12,20 @@ const d = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
12
12
  }
13
13
  ));
14
14
  d.displayName = r.Root.displayName;
15
- const l = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
15
+ const m = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
16
16
  r.Item,
17
17
  {
18
18
  ref: a,
19
19
  className: t(
20
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
20
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
21
21
  o
22
22
  ),
23
23
  ...i,
24
- children: /* @__PURE__ */ e(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(c, { className: "h-2.5 w-2.5 fill-current text-current" }) })
24
+ children: /* @__PURE__ */ e(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-2.5 w-2.5 fill-current text-current" }) })
25
25
  }
26
26
  ));
27
- l.displayName = r.Item.displayName;
27
+ m.displayName = r.Item.displayName;
28
28
  export {
29
29
  d as RadioGroup,
30
- l as RadioGroupItem
30
+ m as RadioGroupItem
31
31
  };
package/dist/select.mjs CHANGED
@@ -1,20 +1,20 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import { Select as e } from "radix-ui";
4
- import { ChevronDown as i, ChevronUp as f, Check as u } from "lucide-react";
4
+ import { ChevronDown as n, ChevronUp as f, Check as u } from "lucide-react";
5
5
  import { cn as l } from "./utils.mjs";
6
- const R = e.Root, C = e.Group, I = e.Value, h = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
6
+ const R = e.Root, C = e.Group, I = e.Value, h = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ i(
7
7
  e.Trigger,
8
8
  {
9
9
  ref: d,
10
10
  className: l(
11
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
11
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
12
12
  o
13
13
  ),
14
14
  ...a,
15
15
  children: [
16
16
  r,
17
- /* @__PURE__ */ t(e.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "h-4 w-4 opacity-50" }) })
17
+ /* @__PURE__ */ t(e.Icon, { asChild: !0, children: /* @__PURE__ */ t(n, { className: "h-4 w-4 opacity-50" }) })
18
18
  ]
19
19
  }
20
20
  ));
@@ -41,11 +41,11 @@ const m = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
41
41
  o
42
42
  ),
43
43
  ...r,
44
- children: /* @__PURE__ */ t(i, { className: "h-4 w-4" })
44
+ children: /* @__PURE__ */ t(n, { className: "h-4 w-4" })
45
45
  }
46
46
  ));
47
47
  m.displayName = e.ScrollDownButton.displayName;
48
- const g = s.forwardRef(({ className: o, children: r, position: a = "popper", ...d }, p) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ n(
48
+ const y = s.forwardRef(({ className: o, children: r, position: a = "popper", ...d }, p) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ i(
49
49
  e.Content,
50
50
  {
51
51
  ref: p,
@@ -72,8 +72,8 @@ const g = s.forwardRef(({ className: o, children: r, position: a = "popper", ...
72
72
  ]
73
73
  }
74
74
  ) }));
75
- g.displayName = e.Content.displayName;
76
- const y = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
75
+ y.displayName = e.Content.displayName;
76
+ const g = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
77
77
  e.Label,
78
78
  {
79
79
  ref: a,
@@ -81,8 +81,8 @@ const y = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
81
81
  ...r
82
82
  }
83
83
  ));
84
- y.displayName = e.Label.displayName;
85
- const w = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
84
+ g.displayName = e.Label.displayName;
85
+ const w = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ i(
86
86
  e.Item,
87
87
  {
88
88
  ref: d,
@@ -98,7 +98,7 @@ const w = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__
98
98
  }
99
99
  ));
100
100
  w.displayName = e.Item.displayName;
101
- const N = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
101
+ const b = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
102
102
  e.Separator,
103
103
  {
104
104
  ref: a,
@@ -106,16 +106,16 @@ const N = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
106
106
  ...r
107
107
  }
108
108
  ));
109
- N.displayName = e.Separator.displayName;
109
+ b.displayName = e.Separator.displayName;
110
110
  export {
111
111
  R as Select,
112
- g as SelectContent,
112
+ y as SelectContent,
113
113
  C as SelectGroup,
114
114
  w as SelectItem,
115
- y as SelectLabel,
115
+ g as SelectLabel,
116
116
  m as SelectScrollDownButton,
117
117
  c as SelectScrollUpButton,
118
- N as SelectSeparator,
118
+ b as SelectSeparator,
119
119
  h as SelectTrigger,
120
120
  I as SelectValue
121
121
  };
package/dist/sheet.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import { Dialog as e } from "radix-ui";
4
4
  import { cva as c } from "class-variance-authority";
@@ -31,17 +31,17 @@ const h = c(
31
31
  side: "right"
32
32
  }
33
33
  }
34
- ), g = r.forwardRef(({ side: t = "right", className: a, children: s, ...l }, m) => /* @__PURE__ */ n(p, { children: [
34
+ ), g = r.forwardRef(({ side: t = "right", className: a, children: s, ...n }, m) => /* @__PURE__ */ l(p, { children: [
35
35
  /* @__PURE__ */ o(d, {}),
36
- /* @__PURE__ */ n(
36
+ /* @__PURE__ */ l(
37
37
  e.Content,
38
38
  {
39
39
  ref: m,
40
40
  className: i(h({ side: t }), a),
41
- ...l,
41
+ ...n,
42
42
  children: [
43
43
  s,
44
- /* @__PURE__ */ n(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
44
+ /* @__PURE__ */ l(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
45
45
  /* @__PURE__ */ o(f, { className: "h-4 w-4" }),
46
46
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
47
47
  ] })
@@ -64,7 +64,7 @@ const u = ({
64
64
  }
65
65
  );
66
66
  u.displayName = "SheetHeader";
67
- const y = ({
67
+ const b = ({
68
68
  className: t,
69
69
  ...a
70
70
  }) => /* @__PURE__ */ o(
@@ -77,8 +77,8 @@ const y = ({
77
77
  ...a
78
78
  }
79
79
  );
80
- y.displayName = "SheetFooter";
81
- const x = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
80
+ b.displayName = "SheetFooter";
81
+ const y = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
82
82
  e.Title,
83
83
  {
84
84
  ref: s,
@@ -86,8 +86,8 @@ const x = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
86
86
  ...a
87
87
  }
88
88
  ));
89
- x.displayName = e.Title.displayName;
90
- const N = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
89
+ y.displayName = e.Title.displayName;
90
+ const x = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
91
91
  e.Description,
92
92
  {
93
93
  ref: s,
@@ -95,16 +95,16 @@ const N = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
95
95
  ...a
96
96
  }
97
97
  ));
98
- N.displayName = e.Description.displayName;
98
+ x.displayName = e.Description.displayName;
99
99
  export {
100
100
  R as Sheet,
101
101
  D as SheetClose,
102
102
  g as SheetContent,
103
- N as SheetDescription,
104
- y as SheetFooter,
103
+ x as SheetDescription,
104
+ b as SheetFooter,
105
105
  u as SheetHeader,
106
106
  d as SheetOverlay,
107
107
  p as SheetPortal,
108
- x as SheetTitle,
108
+ y as SheetTitle,
109
109
  T as SheetTrigger
110
110
  };
package/dist/slider.mjs CHANGED
@@ -1,23 +1,23 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { Slider as e } from "radix-ui";
4
4
  import { cn as n } from "./utils.mjs";
5
- const t = a.forwardRef(({ className: r, ...i }, l) => /* @__PURE__ */ s(
5
+ const d = a.forwardRef(({ className: o, ...i }, l) => /* @__PURE__ */ s(
6
6
  e.Root,
7
7
  {
8
8
  ref: l,
9
9
  className: n(
10
10
  "relative flex w-full touch-none select-none items-center",
11
- r
11
+ o
12
12
  ),
13
13
  ...i,
14
14
  children: [
15
- /* @__PURE__ */ o(e.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ o(e.Range, { className: "absolute h-full bg-primary" }) }),
16
- /* @__PURE__ */ o(e.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
15
+ /* @__PURE__ */ r(e.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ r(e.Range, { className: "absolute h-full bg-primary" }) }),
16
+ /* @__PURE__ */ r(e.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50" })
17
17
  ]
18
18
  }
19
19
  ));
20
- t.displayName = e.Root.displayName;
20
+ d.displayName = e.Root.displayName;
21
21
  export {
22
- t as Slider
22
+ d as Slider
23
23
  };
package/dist/switch.mjs CHANGED
@@ -2,15 +2,15 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import { Switch as e } from "radix-ui";
4
4
  import { cn as t } from "./utils.mjs";
5
- const n = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ r(
5
+ const n = s.forwardRef(({ className: o, ...a }, i) => /* @__PURE__ */ r(
6
6
  e.Root,
7
7
  {
8
8
  className: t(
9
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
9
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
10
10
  o
11
11
  ),
12
- ...i,
13
- ref: a,
12
+ ...a,
13
+ ref: i,
14
14
  children: /* @__PURE__ */ r(
15
15
  e.Thumb,
16
16
  {
package/dist/tabs.mjs CHANGED
@@ -1,46 +1,46 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as o from "react";
3
3
  import { Tabs as e } from "radix-ui";
4
- import { cn as n } from "./utils.mjs";
5
- const g = e.Root, r = o.forwardRef(({ className: s, ...i }, t) => /* @__PURE__ */ a(
4
+ import { cn as r } from "./utils.mjs";
5
+ const b = e.Root, n = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
6
6
  e.List,
7
7
  {
8
8
  ref: t,
9
- className: n(
9
+ className: r(
10
10
  "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
11
- s
11
+ i
12
12
  ),
13
- ...i
13
+ ...s
14
14
  }
15
15
  ));
16
- r.displayName = e.List.displayName;
17
- const f = o.forwardRef(({ className: s, ...i }, t) => /* @__PURE__ */ a(
16
+ n.displayName = e.List.displayName;
17
+ const d = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
18
18
  e.Trigger,
19
19
  {
20
20
  ref: t,
21
- className: n(
22
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
23
- s
21
+ className: r(
22
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
23
+ i
24
24
  ),
25
- ...i
25
+ ...s
26
26
  }
27
27
  ));
28
- f.displayName = e.Trigger.displayName;
29
- const d = o.forwardRef(({ className: s, ...i }, t) => /* @__PURE__ */ a(
28
+ d.displayName = e.Trigger.displayName;
29
+ const m = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
30
30
  e.Content,
31
31
  {
32
32
  ref: t,
33
- className: n(
34
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
- s
33
+ className: r(
34
+ "mt-2 focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",
35
+ i
36
36
  ),
37
- ...i
37
+ ...s
38
38
  }
39
39
  ));
40
- d.displayName = e.Content.displayName;
40
+ m.displayName = e.Content.displayName;
41
41
  export {
42
- g as Tabs,
43
- d as TabsContent,
44
- r as TabsList,
45
- f as TabsTrigger
42
+ b as Tabs,
43
+ m as TabsContent,
44
+ n as TabsList,
45
+ d as TabsTrigger
46
46
  };
package/dist/toggle.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import { Toggle as e } from "radix-ui";
4
- import { cva as g } from "class-variance-authority";
5
- import { cn as d } from "./utils.mjs";
6
- const f = g(
7
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
4
+ import { cva as d } from "class-variance-authority";
5
+ import { cn as g } from "./utils.mjs";
6
+ const l = d(
7
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
8
8
  {
9
9
  variants: {
10
10
  variant: {
@@ -22,16 +22,16 @@ const f = g(
22
22
  size: "default"
23
23
  }
24
24
  }
25
- ), l = s.forwardRef(({ className: t, variant: o, size: n, ...r }, i) => /* @__PURE__ */ a(
25
+ ), m = s.forwardRef(({ className: t, variant: o, size: n, ...r }, i) => /* @__PURE__ */ a(
26
26
  e.Root,
27
27
  {
28
28
  ref: i,
29
- className: d(f({ variant: o, size: n, className: t })),
29
+ className: g(l({ variant: o, size: n, className: t })),
30
30
  ...r
31
31
  }
32
32
  ));
33
- l.displayName = e.Root.displayName;
33
+ m.displayName = e.Root.displayName;
34
34
  export {
35
- l as Toggle,
36
- f as toggleVariants
35
+ m as Toggle,
36
+ l as toggleVariants
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turingpaper/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "description": "Pre-built Shadcn/ui component library for Turingpaper TSX functions",
6
6
  "license": "MIT",