@turingpaper/ui 0.0.1-test.4 → 0.0.1-test.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.
- package/dist/accordion.mjs +18 -18
- package/dist/alert-dialog.mjs +4 -4
- package/dist/avatar.mjs +13 -13
- package/dist/checkbox.mjs +1 -1
- package/dist/collapsible.mjs +4 -4
- package/dist/components/accordion.d.ts +5 -4
- package/dist/components/alert-dialog.d.ts +10 -10
- package/dist/components/avatar.d.ts +4 -3
- package/dist/components/checkbox.d.ts +2 -1
- package/dist/components/collapsible.d.ts +4 -3
- package/dist/components/command.d.ts +2 -1
- package/dist/components/dialog.d.ts +9 -9
- package/dist/components/dropdown-menu.d.ts +20 -16
- package/dist/components/hover-card.d.ts +4 -3
- package/dist/components/label.d.ts +3 -1
- package/dist/components/popover.d.ts +4 -3
- package/dist/components/progress.d.ts +2 -1
- package/dist/components/radio-group.d.ts +3 -2
- package/dist/components/scroll-area.d.ts +3 -2
- package/dist/components/select.d.ts +11 -10
- package/dist/components/separator.d.ts +2 -1
- package/dist/components/sheet.d.ts +10 -10
- package/dist/components/slider.d.ts +2 -1
- package/dist/components/switch.d.ts +2 -1
- package/dist/components/tabs.d.ts +5 -4
- package/dist/components/toggle-group.d.ts +10 -2
- package/dist/components/toggle.d.ts +6 -1
- package/dist/components/tooltip.d.ts +5 -4
- package/dist/dialog.mjs +31 -31
- package/dist/dropdown-menu.mjs +8 -8
- package/dist/hover-card.mjs +4 -4
- package/dist/label.mjs +9 -9
- package/dist/popover.mjs +6 -6
- package/dist/progress.mjs +10 -10
- package/dist/radio-group.mjs +13 -13
- package/dist/scroll-area.mjs +11 -11
- package/dist/select.mjs +5 -5
- package/dist/separator.mjs +14 -14
- package/dist/sheet.mjs +11 -11
- package/dist/slider.mjs +7 -7
- package/dist/switch.mjs +6 -6
- package/dist/tabs.mjs +20 -20
- package/dist/toggle-group.mjs +18 -18
- package/dist/toggle.mjs +9 -9
- package/dist/tooltip.mjs +5 -5
- package/package.json +1 -1
package/dist/toggle-group.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import
|
|
3
|
+
import { ToggleGroup as o } from "radix-ui";
|
|
4
4
|
import { cn as p } from "./utils.mjs";
|
|
5
5
|
import { toggleVariants as f } from "./toggle.mjs";
|
|
6
6
|
const c = e.createContext({
|
|
7
7
|
size: "default",
|
|
8
8
|
variant: "default"
|
|
9
|
-
}),
|
|
10
|
-
|
|
9
|
+
}), g = e.forwardRef(({ className: t, variant: r, size: a, children: s, ...i }, m) => /* @__PURE__ */ l(
|
|
10
|
+
o.Root,
|
|
11
11
|
{
|
|
12
12
|
ref: m,
|
|
13
|
-
className: p("flex items-center justify-center gap-1",
|
|
14
|
-
...
|
|
15
|
-
children: /* @__PURE__ */
|
|
13
|
+
className: p("flex items-center justify-center gap-1", t),
|
|
14
|
+
...i,
|
|
15
|
+
children: /* @__PURE__ */ l(c.Provider, { value: { variant: r, size: a }, children: s })
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
|
-
|
|
19
|
-
const u = e.forwardRef(({ className:
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
18
|
+
g.displayName = o.Root.displayName;
|
|
19
|
+
const u = e.forwardRef(({ className: t, children: r, variant: a, size: s, ...i }, m) => {
|
|
20
|
+
const n = e.useContext(c);
|
|
21
|
+
return /* @__PURE__ */ l(
|
|
22
|
+
o.Item,
|
|
23
23
|
{
|
|
24
24
|
ref: m,
|
|
25
25
|
className: p(
|
|
26
26
|
f({
|
|
27
|
-
variant:
|
|
28
|
-
size:
|
|
27
|
+
variant: n.variant || a,
|
|
28
|
+
size: n.size || s
|
|
29
29
|
}),
|
|
30
|
-
|
|
30
|
+
t
|
|
31
31
|
),
|
|
32
|
-
...
|
|
32
|
+
...i,
|
|
33
33
|
children: r
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
u.displayName =
|
|
37
|
+
u.displayName = o.Item.displayName;
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
g as ToggleGroup,
|
|
40
40
|
u as ToggleGroupItem
|
|
41
41
|
};
|
package/dist/toggle.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
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
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",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -22,16 +22,16 @@ const m = d(
|
|
|
22
22
|
size: "default"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), l = s.forwardRef(({ className: t, variant: o, size: n, ...r }, i) => /* @__PURE__ */ a(
|
|
26
26
|
e.Root,
|
|
27
27
|
{
|
|
28
28
|
ref: i,
|
|
29
|
-
className: f(
|
|
29
|
+
className: d(f({ variant: o, size: n, className: t })),
|
|
30
30
|
...r
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
33
|
+
l.displayName = e.Root.displayName;
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
l as Toggle,
|
|
36
|
+
f as toggleVariants
|
|
37
37
|
};
|
package/dist/tooltip.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import
|
|
3
|
+
import { Tooltip as o } from "radix-ui";
|
|
4
4
|
import { cn as n } from "./utils.mjs";
|
|
5
|
-
const
|
|
5
|
+
const f = o.Provider, c = o.Root, g = o.Trigger, s = d.forwardRef(({ className: t, sideOffset: e = 4, ...i }, r) => /* @__PURE__ */ a(
|
|
6
6
|
o.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: r,
|
|
@@ -16,8 +16,8 @@ const l = o.Provider, f = o.Root, c = o.Trigger, s = d.forwardRef(({ className:
|
|
|
16
16
|
));
|
|
17
17
|
s.displayName = o.Content.displayName;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as Tooltip,
|
|
20
20
|
s as TooltipContent,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
f as TooltipProvider,
|
|
22
|
+
g as TooltipTrigger
|
|
23
23
|
};
|