@pibit.ai/cure-design-system 0.3.5 → 0.3.7
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/foundations/dot-icon/index.d.ts +7 -0
- package/dist/foundations/dot-icon/index.d.ts.map +1 -0
- package/dist/foundations/dot-icon/index.js +10 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -34
- package/dist/patterns/table/table.js +1 -1
- package/dist/patterns/tree-view/index.d.ts +2 -0
- package/dist/patterns/tree-view/index.d.ts.map +1 -0
- package/dist/patterns/tree-view/tree-view.d.ts +61 -0
- package/dist/patterns/tree-view/tree-view.d.ts.map +1 -0
- package/dist/patterns/tree-view/tree-view.js +167 -0
- package/dist/primitives/badge/badge-types.d.ts +17 -0
- package/dist/primitives/badge/badge-types.d.ts.map +1 -0
- package/dist/primitives/badge/badge-types.js +8 -0
- package/dist/primitives/badge/badge.d.ts +115 -22
- package/dist/primitives/badge/badge.d.ts.map +1 -1
- package/dist/primitives/badge/badge.js +292 -38
- package/dist/primitives/badge/index.d.ts +2 -1
- package/dist/primitives/badge/index.d.ts.map +1 -1
- package/dist/primitives/heading/heading.d.ts +1 -1
- package/dist/primitives/text/text.d.ts +1 -1
- package/dist/styles/components.css +1 -1
- package/package.json +3 -2
- package/dist/patterns/table/TableWrapper.js +0 -141
- package/dist/patterns/tree/TreeDemo.d.ts +0 -7
- package/dist/patterns/tree/TreeDemo.d.ts.map +0 -1
- package/dist/patterns/tree/TreeStructure.d.ts +0 -14
- package/dist/patterns/tree/TreeStructure.d.ts.map +0 -1
- package/dist/patterns/tree/constants.d.ts +0 -18
- package/dist/patterns/tree/constants.d.ts.map +0 -1
- package/dist/patterns/tree/helper.d.ts +0 -6
- package/dist/patterns/tree/helper.d.ts.map +0 -1
- package/dist/patterns/tree/interface.d.ts +0 -9
- package/dist/patterns/tree/interface.d.ts.map +0 -1
|
@@ -1,43 +1,297 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsx as d, jsxs as x, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { X as v } from "@untitledui/icons";
|
|
3
|
+
import { Dot as w } from "../../foundations/dot-icon/index.js";
|
|
4
|
+
import { badgeTypes as t } from "./badge-types.js";
|
|
5
|
+
import { cx as u } from "../../utils/cn.js";
|
|
6
|
+
const y = {
|
|
7
|
+
clear: {
|
|
8
|
+
root: "bg-primary text-secondary ring-secondary",
|
|
9
|
+
addon: "text-gray-500",
|
|
10
|
+
addonButton: "hover:bg-utility-gray-100 text-utility-gray-400 hover:text-utility-gray-500"
|
|
11
|
+
},
|
|
12
|
+
gray: {
|
|
13
|
+
root: "bg-utility-gray-100 text-utility-gray-700 ring-utility-gray-100",
|
|
14
|
+
addon: "text-utility-gray-500",
|
|
15
|
+
addonButton: "hover:bg-utility-gray-100 text-utility-gray-400 hover:text-utility-gray-500"
|
|
16
|
+
},
|
|
17
|
+
brand: {
|
|
18
|
+
root: "bg-utility-brand-50 text-utility-brand-600 ring-utility-brand-50",
|
|
19
|
+
addon: "text-utility-brand-500",
|
|
20
|
+
addonButton: "hover:bg-utility-brand-100 text-utility-brand-400 hover:text-utility-brand-500"
|
|
21
|
+
},
|
|
22
|
+
error: {
|
|
23
|
+
root: "bg-utility-error-100 text-utility-error-700 ring-utility-error-100",
|
|
24
|
+
addon: "text-utility-error-500",
|
|
25
|
+
addonButton: "hover:bg-utility-error-100 text-utility-error-400 hover:text-utility-error-500"
|
|
26
|
+
},
|
|
27
|
+
warning: {
|
|
28
|
+
root: "bg-utility-warning-100 text-utility-warning-700 ring-utility-warning-100",
|
|
29
|
+
addon: "text-utility-warning-500",
|
|
30
|
+
addonButton: "hover:bg-utility-warning-100 text-utility-warning-400 hover:text-utility-warning-500"
|
|
31
|
+
},
|
|
32
|
+
success: {
|
|
33
|
+
root: "bg-utility-success-100 text-utility-success-700 ring-utility-success-100",
|
|
34
|
+
addon: "text-utility-success-500",
|
|
35
|
+
addonButton: "hover:bg-utility-success-100 text-utility-success-400 hover:text-utility-success-500"
|
|
36
|
+
},
|
|
37
|
+
"gray-blue": {
|
|
38
|
+
root: "bg-utility-gray-blue-100 text-utility-gray-blue-700 ring-utility-gray-blue-100",
|
|
39
|
+
addon: "text-utility-gray-blue-500",
|
|
40
|
+
addonButton: "hover:bg-utility-gray-blue-100 text-utility-gray-blue-400 hover:text-utility-gray-blue-500"
|
|
41
|
+
},
|
|
42
|
+
"blue-light": {
|
|
43
|
+
root: "bg-utility-blue-light-100 text-utility-blue-light-700 ring-utility-blue-light-100",
|
|
44
|
+
addon: "text-utility-blue-light-500",
|
|
45
|
+
addonButton: "hover:bg-utility-blue-light-100 text-utility-blue-light-400 hover:text-utility-blue-light-500"
|
|
46
|
+
},
|
|
47
|
+
blue: {
|
|
48
|
+
root: "bg-utility-blue-100 text-utility-blue-700 ring-utility-blue-100",
|
|
49
|
+
addon: "text-utility-blue-500",
|
|
50
|
+
addonButton: "hover:bg-utility-blue-100 text-utility-blue-400 hover:text-utility-blue-500"
|
|
51
|
+
},
|
|
52
|
+
indigo: {
|
|
53
|
+
root: "bg-utility-indigo-100 text-utility-indigo-700 ring-utility-indigo-100",
|
|
54
|
+
addon: "text-utility-indigo-500",
|
|
55
|
+
addonButton: "hover:bg-utility-indigo-100 text-utility-indigo-400 hover:text-utility-indigo-500"
|
|
56
|
+
},
|
|
57
|
+
purple: {
|
|
58
|
+
root: "bg-utility-purple-100 text-utility-purple-700 ring-utility-purple-100",
|
|
59
|
+
addon: "text-utility-purple-500",
|
|
60
|
+
addonButton: "hover:bg-utility-purple-100 text-utility-purple-400 hover:text-utility-purple-500"
|
|
61
|
+
},
|
|
62
|
+
pink: {
|
|
63
|
+
root: "bg-utility-pink-100 text-utility-pink-700 ring-utility-pink-100",
|
|
64
|
+
addon: "text-utility-pink-500",
|
|
65
|
+
addonButton: "hover:bg-utility-pink-100 text-utility-pink-400 hover:text-utility-pink-500"
|
|
66
|
+
},
|
|
67
|
+
orange: {
|
|
68
|
+
root: "bg-utility-orange-100 text-utility-orange-700 ring-utility-orange-100",
|
|
69
|
+
addon: "text-utility-orange-500",
|
|
70
|
+
addonButton: "hover:bg-utility-orange-100 text-utility-orange-400 hover:text-utility-orange-500"
|
|
71
|
+
}
|
|
72
|
+
}, B = Object.fromEntries(
|
|
73
|
+
Object.entries(y).map(([i, s]) => [i, { root: "", addon: s.addon }])
|
|
74
|
+
), c = {
|
|
75
|
+
[t.pillColor]: {
|
|
76
|
+
common: "size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset",
|
|
77
|
+
styles: y
|
|
78
|
+
},
|
|
79
|
+
[t.color]: {
|
|
80
|
+
common: "size-max flex items-center whitespace-nowrap rounded-sm ring-1 ring-inset",
|
|
81
|
+
styles: y
|
|
82
|
+
},
|
|
83
|
+
[t.modern]: {
|
|
84
|
+
common: "size-max flex items-center whitespace-nowrap rounded-sm ring-1 ring-inset ring-secondary",
|
|
85
|
+
styles: y
|
|
86
|
+
}
|
|
87
|
+
}, h = {
|
|
88
|
+
[t.pillColor]: {
|
|
89
|
+
common: "size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset",
|
|
90
|
+
styles: y
|
|
91
|
+
},
|
|
92
|
+
[t.color]: {
|
|
93
|
+
common: "size-max flex items-center whitespace-nowrap rounded-sm ring-1 ring-inset",
|
|
94
|
+
styles: y
|
|
95
|
+
},
|
|
96
|
+
[t.modern]: {
|
|
97
|
+
common: "size-max flex items-center whitespace-nowrap rounded-sm ring-1 ring-inset bg-primary text-secondary ring-secondary",
|
|
98
|
+
styles: B
|
|
99
|
+
}
|
|
100
|
+
}, j = (i) => {
|
|
101
|
+
const { type: s = "pill-color", size: m = "xs", color: e = "gray", children: p } = i, o = c[s], l = {
|
|
102
|
+
xs: "py-0.5 px-2 text-xs font-medium",
|
|
103
|
+
sm: "py-0.5 px-2 text-sm font-medium",
|
|
104
|
+
md: "py-1 px-3 text-sm font-medium",
|
|
105
|
+
lg: "py-1 px-3 text-sm font-medium"
|
|
106
|
+
}, n = {
|
|
107
|
+
xs: "py-0.5 px-2 text-xs font-medium",
|
|
108
|
+
sm: "py-0.5 px-2 text-sm font-medium",
|
|
109
|
+
md: "py-1 px-3 text-sm font-medium",
|
|
110
|
+
lg: "py-1 px-3 text-sm font-medium rounded-lg"
|
|
111
|
+
}, r = {
|
|
112
|
+
[t.pillColor]: l,
|
|
113
|
+
[t.color]: n,
|
|
114
|
+
[t.modern]: n
|
|
115
|
+
};
|
|
116
|
+
return /* @__PURE__ */ d("span", { className: u(o.common, r[s][m], o.styles[e].root, i.className), children: p });
|
|
117
|
+
}, T = (i) => {
|
|
118
|
+
const { size: s = "md", color: m = "gray", type: e = "pill-color", className: p, children: o } = i, l = h[e], n = {
|
|
119
|
+
xs: "gap-0.5 py-0.5 px-1 text-xs font-medium",
|
|
120
|
+
sm: "gap-1 py-0.5 pl-1.5 pr-2 text-xs font-medium",
|
|
121
|
+
md: "gap-1.5 py-0.5 pl-2 pr-2.5 text-sm font-medium",
|
|
122
|
+
lg: "gap-1.5 py-1 pl-2.5 pr-3 text-sm font-medium"
|
|
123
|
+
}, r = {
|
|
124
|
+
xs: "gap-0.5 py-0.5 px-1 text-xs font-medium",
|
|
125
|
+
sm: "gap-1 py-0.5 px-1.5 text-xs font-medium",
|
|
126
|
+
md: "gap-1.5 py-0.5 px-2 text-sm font-medium",
|
|
127
|
+
lg: "gap-1.5 py-1 px-2.5 text-sm font-medium rounded-lg"
|
|
128
|
+
}, a = {
|
|
129
|
+
[t.pillColor]: n,
|
|
130
|
+
[t.color]: r,
|
|
131
|
+
[t.modern]: r
|
|
132
|
+
}, g = m;
|
|
133
|
+
return /* @__PURE__ */ x("span", { className: u(l.common, a[e][s], l.styles[g].root, p), children: [
|
|
134
|
+
/* @__PURE__ */ d(w, { className: l.styles[g].addon, size: "sm" }),
|
|
135
|
+
o
|
|
136
|
+
] });
|
|
137
|
+
}, W = (i) => {
|
|
138
|
+
const {
|
|
139
|
+
size: s = "md",
|
|
140
|
+
color: m = "gray",
|
|
141
|
+
type: e = "pill-color",
|
|
142
|
+
iconLeading: p,
|
|
143
|
+
iconTrailing: o,
|
|
144
|
+
children: l,
|
|
145
|
+
className: n
|
|
146
|
+
} = i, r = h[e], a = p ? "leading" : "trailing", g = {
|
|
147
|
+
xs: {
|
|
148
|
+
trailing: "gap-0.5 py-0.5 px-1 text-xs font-medium",
|
|
149
|
+
leading: "gap-0.5 py-0.5 px-1 text-xs font-medium"
|
|
21
150
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
151
|
+
sm: {
|
|
152
|
+
trailing: "gap-0.5 py-0.5 pl-2 pr-1.5 text-xs font-medium",
|
|
153
|
+
leading: "gap-0.5 py-0.5 pr-2 pl-1.5 text-xs font-medium"
|
|
154
|
+
},
|
|
155
|
+
md: {
|
|
156
|
+
trailing: "gap-1 py-0.5 pl-2.5 pr-2 text-sm font-medium",
|
|
157
|
+
leading: "gap-1 py-0.5 pr-2.5 pl-2 text-sm font-medium"
|
|
158
|
+
},
|
|
159
|
+
lg: {
|
|
160
|
+
trailing: "gap-1 py-1 pl-3 pr-2.5 text-sm font-medium",
|
|
161
|
+
leading: "gap-1 py-1 pr-3 pl-2.5 text-sm font-medium"
|
|
25
162
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
163
|
+
}, f = {
|
|
164
|
+
xs: {
|
|
165
|
+
trailing: "gap-0.5 py-0.5 px-1 text-xs font-medium",
|
|
166
|
+
leading: "gap-0.5 py-0.5 px-1 text-xs font-medium"
|
|
167
|
+
},
|
|
168
|
+
sm: {
|
|
169
|
+
trailing: "gap-0.5 py-0.5 pl-2 pr-1.5 text-xs font-medium",
|
|
170
|
+
leading: "gap-0.5 py-0.5 pr-2 pl-1.5 text-xs font-medium"
|
|
171
|
+
},
|
|
172
|
+
md: {
|
|
173
|
+
trailing: "gap-1 py-0.5 pl-2 pr-1.5 text-sm font-medium",
|
|
174
|
+
leading: "gap-1 py-0.5 pr-2 pl-1.5 text-sm font-medium"
|
|
175
|
+
},
|
|
176
|
+
lg: {
|
|
177
|
+
trailing: "gap-1 py-1 pl-2.5 pr-2 text-sm font-medium rounded-lg",
|
|
178
|
+
leading: "gap-1 py-1 pr-2.5 pl-2 text-sm font-medium rounded-lg"
|
|
179
|
+
}
|
|
180
|
+
}, z = {
|
|
181
|
+
[t.pillColor]: g,
|
|
182
|
+
[t.color]: f,
|
|
183
|
+
[t.modern]: f
|
|
184
|
+
};
|
|
185
|
+
return /* @__PURE__ */ x("span", { className: u(r.common, z[e][s][a], r.styles[m].root, n), children: [
|
|
186
|
+
p && /* @__PURE__ */ d(b, { children: p }),
|
|
187
|
+
l,
|
|
188
|
+
o && /* @__PURE__ */ d(b, { children: o })
|
|
189
|
+
] });
|
|
190
|
+
}, L = (i) => {
|
|
191
|
+
const { size: s = "md", color: m = "gray", flag: e = "AU", type: p = "pill-color", children: o } = i, l = c[p], n = {
|
|
192
|
+
xs: "gap-0.5 py-0.5 pl-0.75 pr-2 text-xs font-medium",
|
|
193
|
+
sm: "gap-1 py-0.5 pl-0.75 pr-2 text-xs font-medium",
|
|
194
|
+
md: "gap-1.5 py-0.5 pl-1 pr-2.5 text-sm font-medium",
|
|
195
|
+
lg: "gap-1.5 py-1 pl-1.5 pr-3 text-sm font-medium"
|
|
196
|
+
}, r = {
|
|
197
|
+
xs: "gap-0.5 py-0.5 pl-1 pr-1.5 text-xs font-medium",
|
|
198
|
+
sm: "gap-1 py-0.5 pl-1 pr-1.5 text-xs font-medium",
|
|
199
|
+
md: "gap-1.5 py-0.5 pl-1.5 pr-2 text-sm font-medium",
|
|
200
|
+
lg: "gap-1.5 py-1 pl-2 pr-2.5 text-sm font-medium rounded-lg"
|
|
201
|
+
}, a = {
|
|
202
|
+
[t.pillColor]: n,
|
|
203
|
+
[t.color]: r,
|
|
204
|
+
[t.modern]: r
|
|
205
|
+
};
|
|
206
|
+
return /* @__PURE__ */ x("span", { className: u(l.common, a[p][s], l.styles[m].root), children: [
|
|
207
|
+
/* @__PURE__ */ d(
|
|
208
|
+
"img",
|
|
209
|
+
{
|
|
210
|
+
src: `https://www.untitledui.com/images/flags/${e}.svg`,
|
|
211
|
+
className: "size-4 max-w-none rounded-full",
|
|
212
|
+
alt: `${e} flag`
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
o
|
|
38
216
|
] });
|
|
39
|
-
}
|
|
40
|
-
|
|
217
|
+
}, O = (i) => {
|
|
218
|
+
const { size: s = "md", color: m = "gray", type: e = "pill-color", imgSrc: p, children: o } = i, l = c[e], n = {
|
|
219
|
+
xs: "gap-0.5 py-0.5 pl-0.75 pr-2 text-xs font-medium",
|
|
220
|
+
sm: "gap-1 py-0.5 pl-0.75 pr-2 text-xs font-medium",
|
|
221
|
+
md: "gap-1.5 py-0.5 pl-1 pr-2.5 text-sm font-medium",
|
|
222
|
+
lg: "gap-1.5 py-1 pl-1.5 pr-3 text-sm font-medium"
|
|
223
|
+
}, r = {
|
|
224
|
+
xs: "gap-0.5 py-0.5 pl-1 pr-1.5 text-xs font-medium",
|
|
225
|
+
sm: "gap-1 py-0.5 pl-1 pr-1.5 text-xs font-medium",
|
|
226
|
+
md: "gap-1.5 py-0.5 pl-1.5 pr-2 text-sm font-medium",
|
|
227
|
+
lg: "gap-1.5 py-1 pl-2 pr-2.5 text-sm font-medium rounded-lg"
|
|
228
|
+
}, a = {
|
|
229
|
+
[t.pillColor]: n,
|
|
230
|
+
[t.color]: r,
|
|
231
|
+
[t.modern]: r
|
|
232
|
+
};
|
|
233
|
+
return /* @__PURE__ */ x("span", { className: u(l.common, a[e][s], l.styles[m].root), children: [
|
|
234
|
+
/* @__PURE__ */ d("img", { src: p, className: "size-4 max-w-none rounded-full", alt: "Badge image" }),
|
|
235
|
+
o
|
|
236
|
+
] });
|
|
237
|
+
}, D = (i) => {
|
|
238
|
+
const { size: s = "md", color: m = "gray", type: e = "pill-color", icon: p = v, buttonLabel: o, children: l } = i, n = c[e], r = {
|
|
239
|
+
xs: "gap-0.5 py-0.5 pl-2 pr-0.75 text-xs font-medium",
|
|
240
|
+
sm: "gap-0.5 py-0.5 pl-2 pr-0.75 text-xs font-medium",
|
|
241
|
+
md: "gap-0.5 py-0.5 pl-2.5 pr-1 text-sm font-medium",
|
|
242
|
+
lg: "gap-0.5 py-1 pl-3 pr-1.5 text-sm font-medium"
|
|
243
|
+
}, a = {
|
|
244
|
+
xs: "gap-0.5 py-0.5 pl-1.5 pr-0.75 text-xs font-medium",
|
|
245
|
+
sm: "gap-0.5 py-0.5 pl-1.5 pr-0.75 text-xs font-medium",
|
|
246
|
+
md: "gap-0.5 py-0.5 pl-2 pr-1 text-sm font-medium",
|
|
247
|
+
lg: "gap-0.5 py-1 pl-2.5 pr-1.5 text-sm font-medium rounded-lg"
|
|
248
|
+
}, g = {
|
|
249
|
+
[t.pillColor]: r,
|
|
250
|
+
[t.color]: a,
|
|
251
|
+
[t.modern]: a
|
|
252
|
+
};
|
|
253
|
+
return /* @__PURE__ */ x("span", { className: u(n.common, g[e][s], n.styles[m].root), children: [
|
|
254
|
+
l,
|
|
255
|
+
/* @__PURE__ */ d(
|
|
256
|
+
"button",
|
|
257
|
+
{
|
|
258
|
+
type: "button",
|
|
259
|
+
"aria-label": o,
|
|
260
|
+
onClick: i.onButtonClick,
|
|
261
|
+
className: u(
|
|
262
|
+
"flex cursor-pointer items-center justify-center p-0.5 outline-focus-ring transition duration-100 ease-linear focus-visible:outline-2",
|
|
263
|
+
n.styles[m].addonButton,
|
|
264
|
+
e === "pill-color" ? "rounded-full" : "rounded-[3px]"
|
|
265
|
+
),
|
|
266
|
+
children: /* @__PURE__ */ d(p, { className: "size-3 stroke-[3px] transition-inherit-all" })
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
] });
|
|
270
|
+
}, F = (i) => {
|
|
271
|
+
const { size: s = "md", color: m = "gray", type: e = "pill-color", icon: p } = i, o = c[e], l = {
|
|
272
|
+
xs: "p-1",
|
|
273
|
+
sm: "p-1.25",
|
|
274
|
+
md: "p-1.5",
|
|
275
|
+
lg: "p-2"
|
|
276
|
+
}, n = {
|
|
277
|
+
xs: "p-1",
|
|
278
|
+
sm: "p-1.25",
|
|
279
|
+
md: "p-1.5",
|
|
280
|
+
lg: "p-2 rounded-lg"
|
|
281
|
+
}, r = {
|
|
282
|
+
[t.pillColor]: l,
|
|
283
|
+
[t.color]: n,
|
|
284
|
+
[t.modern]: n
|
|
285
|
+
};
|
|
286
|
+
return /* @__PURE__ */ d("span", { className: u(o.common, r[e][s], o.styles[m].root), children: /* @__PURE__ */ d(p, { className: u("size-3 stroke-[3px]", o.styles[m].addon) }) });
|
|
287
|
+
};
|
|
41
288
|
export {
|
|
42
|
-
|
|
289
|
+
j as Badge,
|
|
290
|
+
F as BadgeIcon,
|
|
291
|
+
D as BadgeWithButton,
|
|
292
|
+
T as BadgeWithDot,
|
|
293
|
+
L as BadgeWithFlag,
|
|
294
|
+
W as BadgeWithIcon,
|
|
295
|
+
O as BadgeWithImage,
|
|
296
|
+
y as filledColors
|
|
43
297
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Badge, type BadgeProps } from './badge';
|
|
1
|
+
export { Badge, BadgeWithDot, BadgeWithIcon, BadgeWithFlag, BadgeWithImage, BadgeWithButton, BadgeIcon, filledColors, type BadgeColor, type BadgeProps, type BadgeWithDotProps, type BadgeWithIconProps, type BadgeWithFlagProps, type BadgeWithImageProps, type BadgeWithButtonProps, type BadgeIconProps, } from './badge';
|
|
2
|
+
export type { BadgeColors, BadgeTypes, Sizes, FlagTypes, IconComponentType, BadgeTypeToColorMap } from './badge-types';
|
|
2
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EACL,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,SAAS,EACT,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACtB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
declare const headingVariants: (props?: ({
|
|
4
4
|
level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
5
5
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
6
|
-
color?: "primary" | "secondary" | "error" | "
|
|
6
|
+
color?: "primary" | "secondary" | "error" | "brand" | "success" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface HeadingProps extends VariantProps<typeof headingVariants> {
|
|
9
9
|
/** Heading content */
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
declare const textVariants: (props?: ({
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
6
|
-
color?: "primary" | "secondary" | "tertiary" | "error" | "
|
|
6
|
+
color?: "primary" | "secondary" | "tertiary" | "error" | "brand" | "warning" | "success" | null | undefined;
|
|
7
7
|
align?: "left" | "right" | "center" | "justify" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export interface TextProps extends VariantProps<typeof textVariants> {
|