@turingpaper/ui 0.0.18 → 0.0.19

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/switch.mjs CHANGED
@@ -4,10 +4,10 @@ import { jsx as n } from "react/jsx-runtime";
4
4
  import { Switch as r } from "radix-ui";
5
5
  //#region src/components/switch.tsx
6
6
  var i = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Root, {
7
- className: e("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", t),
7
+ className: e("peer inline-flex h-5 w-9 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", t),
8
8
  ...i,
9
9
  ref: a,
10
- children: /* @__PURE__ */ n(r.Thumb, { className: e("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
10
+ children: /* @__PURE__ */ n(r.Thumb, { className: e("pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0") })
11
11
  }));
12
12
  i.displayName = r.Root.displayName;
13
13
  //#endregion
package/dist/table.mjs CHANGED
@@ -37,13 +37,13 @@ var s = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("tr", {
37
37
  s.displayName = "TableRow";
38
38
  var c = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("th", {
39
39
  ref: i,
40
- className: e("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", t),
40
+ className: e("h-12 px-3 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", t),
41
41
  ...r
42
42
  }));
43
43
  c.displayName = "TableHead";
44
44
  var l = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("td", {
45
45
  ref: i,
46
- className: e("p-4 align-middle [&:has([role=checkbox])]:pr-0", t),
46
+ className: e("p-3 align-middle [&:has([role=checkbox])]:pr-0", t),
47
47
  ...r
48
48
  }));
49
49
  l.displayName = "TableCell";
package/dist/tabs.mjs CHANGED
@@ -5,13 +5,13 @@ import { Tabs as r } from "radix-ui";
5
5
  //#region src/components/tabs.tsx
6
6
  var i = r.Root, a = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.List, {
7
7
  ref: a,
8
- className: e("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", t),
8
+ className: e("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground", t),
9
9
  ...i
10
10
  }));
11
11
  a.displayName = r.List.displayName;
12
12
  var o = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Trigger, {
13
13
  ref: a,
14
- className: e("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", t),
14
+ className: e("inline-flex items-center justify-center whitespace-nowrap rounded-md 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", t),
15
15
  ...i
16
16
  }));
17
17
  o.displayName = r.Trigger.displayName;
package/dist/textarea.mjs CHANGED
@@ -3,7 +3,7 @@ import * as t from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/components/textarea.tsx
5
5
  var r = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("textarea", {
6
- className: e("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base 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 md:text-sm", t),
6
+ className: e("flex min-h-16 w-full rounded-lg border border-input bg-background px-3 py-2 text-base 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 md:text-sm", t),
7
7
  ref: i,
8
8
  ...r
9
9
  }));
package/dist/toggle.mjs CHANGED
@@ -4,16 +4,16 @@ import { jsx as n } from "react/jsx-runtime";
4
4
  import { Toggle as r } from "radix-ui";
5
5
  import { cva as i } from "class-variance-authority";
6
6
  //#region src/components/toggle.tsx
7
- var a = i("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", {
7
+ var a = i("inline-flex items-center justify-center rounded-lg 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-1.5", {
8
8
  variants: {
9
9
  variant: {
10
10
  default: "bg-transparent",
11
11
  outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
12
12
  },
13
13
  size: {
14
- default: "h-10 px-3 min-w-10",
15
- sm: "h-9 px-2.5 min-w-9",
16
- lg: "h-11 px-5 min-w-11"
14
+ default: "h-9 px-3 min-w-9",
15
+ sm: "h-8 px-2.5 min-w-8",
16
+ lg: "h-10 px-4 min-w-10"
17
17
  }
18
18
  },
19
19
  defaultVariants: {
package/dist/tooltip.mjs CHANGED
@@ -7,7 +7,7 @@ import { Tooltip as r } from "radix-ui";
7
7
  var i = r.Provider, a = r.Root, o = r.Trigger, s = t.forwardRef(({ className: t, sideOffset: i = 4, ...a }, o) => /* @__PURE__ */ n(r.Content, {
8
8
  ref: o,
9
9
  sideOffset: i,
10
- className: e("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]", t),
10
+ className: e("z-50 overflow-hidden rounded-lg border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]", t),
11
11
  ...a
12
12
  }));
13
13
  s.displayName = r.Content.displayName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turingpaper/ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "description": "Pre-built Shadcn/ui component library for Turingpaper TSX functions",
6
6
  "license": "MIT",