@turingpaper/ui 0.0.7 → 0.0.9
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/badge.mjs +9 -9
- package/dist/button.mjs +1 -1
- package/dist/provider.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/badge.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cva as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cva as o } from "class-variance-authority";
|
|
3
3
|
import { cn as i } from "./utils.mjs";
|
|
4
|
-
const a =
|
|
4
|
+
const a = o(
|
|
5
5
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
|
-
default: "border-transparent bg-primary text-primary-foreground
|
|
10
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground
|
|
11
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground
|
|
9
|
+
default: "border-transparent bg-primary text-primary-foreground",
|
|
10
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
11
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground",
|
|
12
12
|
outline: "text-foreground"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
@@ -17,10 +17,10 @@ const a = n(
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
function f({ className: r, variant: e, ...t }) {
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: i(a({ variant: e }), r), ...t });
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
f as Badge,
|
|
25
25
|
a as badgeVariants
|
|
26
26
|
};
|
package/dist/button.mjs
CHANGED
|
@@ -9,7 +9,7 @@ const m = c(
|
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
12
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive-foreground/
|
|
12
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive-foreground/30",
|
|
13
13
|
outline: "border border-input bg-background hover:bg-muted hover:text-foreground",
|
|
14
14
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|