@gv-tech/ui-core 2.19.0 → 2.21.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.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +53 -39
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`class-variance-authority`);var t=[`default`,`destructive`,`outline`,`secondary`,`ghost`,`link`],n=[`default`,`sm`,`lg`,`icon`],r=[`h1`,`h2`,`h3`,`h4`,`body`,`bodySmall`,`caption`,`label`,`overline`],i=(0,e.cva)(`inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring 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`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 px-2 min-w-9`,sm:`h-8 px-1.5 min-w-8`,lg:`h-10 px-2.5 min-w-10`}},defaultVariants:{variant:`default`,size:`default`}}),a={variant:{default:`default`,outline:`outline`},size:{default:`default`,sm:`sm`,lg:`lg`}},o=[`default`,`destructive`];exports.buttonSizeValues=n,exports.buttonVariantValues=t,exports.textVariantValues=r,exports.toastVariantValues=o,exports.toggleVariantValues=a,exports.toggleVariants=i;
|
package/dist/index.mjs
CHANGED
|
@@ -1,39 +1,53 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
//#region src/contracts/button.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"default",
|
|
5
|
+
"destructive",
|
|
6
|
+
"outline",
|
|
7
|
+
"secondary",
|
|
8
|
+
"ghost",
|
|
9
|
+
"link"
|
|
10
|
+
], n = [
|
|
11
|
+
"default",
|
|
12
|
+
"sm",
|
|
13
|
+
"lg",
|
|
14
|
+
"icon"
|
|
15
|
+
], r = [
|
|
16
|
+
"h1",
|
|
17
|
+
"h2",
|
|
18
|
+
"h3",
|
|
19
|
+
"h4",
|
|
20
|
+
"body",
|
|
21
|
+
"bodySmall",
|
|
22
|
+
"caption",
|
|
23
|
+
"label",
|
|
24
|
+
"overline"
|
|
25
|
+
], i = e("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring 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", {
|
|
26
|
+
variants: {
|
|
27
|
+
variant: {
|
|
28
|
+
default: "bg-transparent",
|
|
29
|
+
outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
default: "h-9 px-2 min-w-9",
|
|
33
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
34
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
variant: "default",
|
|
39
|
+
size: "default"
|
|
40
|
+
}
|
|
41
|
+
}), a = {
|
|
42
|
+
variant: {
|
|
43
|
+
default: "default",
|
|
44
|
+
outline: "outline"
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
default: "default",
|
|
48
|
+
sm: "sm",
|
|
49
|
+
lg: "lg"
|
|
50
|
+
}
|
|
51
|
+
}, o = ["default", "destructive"];
|
|
52
|
+
//#endregion
|
|
53
|
+
export { n as buttonSizeValues, t as buttonVariantValues, r as textVariantValues, o as toastVariantValues, a as toggleVariantValues, i as toggleVariants };
|