@dimasbaguspm/versaur 0.0.24 → 0.0.26

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,127 +0,0 @@
1
- import { c as u, j as b, a as y } from "./index-DOdDlCoL.js";
2
- import { forwardRef as w } from "react";
3
- const j = u("", {
4
- variants: {
5
- color: {
6
- primary: "text-primary",
7
- secondary: "text-secondary",
8
- tertiary: "text-tertiary",
9
- ghost: "text-ghost",
10
- neutral: "text-ghost",
11
- success: "text-success",
12
- info: "text-info",
13
- warning: "text-warning",
14
- danger: "text-danger",
15
- inherit: "",
16
- gray: "text-gray-500",
17
- black: "text-black",
18
- white: "text-white"
19
- },
20
- hasUnderline: {
21
- true: "underline",
22
- false: ""
23
- },
24
- isCapitalize: {
25
- true: "capitalize",
26
- false: ""
27
- },
28
- align: {
29
- left: "text-left",
30
- center: "text-center",
31
- right: "text-right",
32
- justify: "text-justify"
33
- },
34
- italic: {
35
- true: "italic",
36
- false: ""
37
- },
38
- clamp: {
39
- 1: "line-clamp-1",
40
- 2: "line-clamp-2",
41
- 3: "line-clamp-3",
42
- 4: "line-clamp-4",
43
- 5: "line-clamp-5",
44
- none: ""
45
- },
46
- ellipsis: {
47
- true: "truncate",
48
- false: ""
49
- },
50
- as: {
51
- h1: "font-bold text-4xl leading-loose",
52
- h2: "font-semibold text-3xl leading-relaxed",
53
- h3: "font-medium text-2xl leading-relaxed",
54
- h4: "font-bold text-xl leading-normal",
55
- h5: "font-semibold text-lg leading-normal",
56
- h6: "font-medium text-base leading-normal",
57
- p: "font-normal text-base leading-normal",
58
- span: "font-normal text-base leading-normal",
59
- label: "font-normal text-xs leading-normal"
60
- }
61
- },
62
- defaultVariants: {
63
- color: "neutral",
64
- hasUnderline: !1,
65
- isCapitalize: !1,
66
- align: "left",
67
- italic: !1,
68
- clamp: "none",
69
- ellipsis: !1,
70
- as: "span"
71
- }
72
- }), v = w(
73
- ({
74
- as: e = "span",
75
- color: l = "ghost",
76
- hasUnderline: n = !1,
77
- isCapitalize: s = !1,
78
- align: i = "left",
79
- italic: r = !1,
80
- clamp: o = "none",
81
- ellipsis: x = !1,
82
- fontSize: t,
83
- fontWeight: a,
84
- className: c,
85
- children: f,
86
- ...d
87
- }, m) => {
88
- const g = [
89
- "h1",
90
- "h2",
91
- "h3",
92
- "h4",
93
- "h5",
94
- "h6",
95
- "p",
96
- "span",
97
- "label"
98
- ].includes(e) ? e : "span", h = t ? `text-${t}` : "", p = a ? `font-${a}` : "";
99
- return /* @__PURE__ */ b.jsx(
100
- e,
101
- {
102
- ref: m,
103
- className: y(
104
- j({
105
- color: l,
106
- hasUnderline: n,
107
- isCapitalize: s,
108
- align: i,
109
- italic: r,
110
- clamp: o,
111
- ellipsis: x,
112
- // @ts-expect-error - `as` is not a valid variant
113
- as: g
114
- }),
115
- h,
116
- p,
117
- c
118
- ),
119
- ...d,
120
- children: f
121
- }
122
- );
123
- }
124
- );
125
- export {
126
- v as T
127
- };