@twintag/twintag-form 1.0.0-beta.1 → 1.0.1
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +16 -0
- package/dev/index.css +2 -1
- package/dist/twintag-form.react.js +2 -2
- package/dist/twintag-form.webcomponent.js +160 -159
- package/lib/common/label.tsx +1 -1
- package/lib/components/category.tsx +1 -1
- package/package.json +3 -3
- package/tailwind.config.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @twintag/twintag-form@1.0.
|
|
2
|
+
> @twintag/twintag-form@1.0.1 build C:\Users\daryl\Desktop\twintag-projects\twintag-admin\packages\twintag-form
|
|
3
3
|
> tsc && vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v4.4.9 [32mbuilding for production...[36m[39m
|
|
@@ -14,8 +14,8 @@ computing gzip size...
|
|
|
14
14
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/prettier.config.d.mts
|
|
15
15
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/dev/main.d.ts
|
|
16
16
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/vite.config.d.ts
|
|
17
|
-
[2mdist/[22m[36mtwintag-form.webcomponent.js [39m[1m[2m119.
|
|
18
|
-
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[2m247.
|
|
19
|
-
[vite:dts] Declaration files built in
|
|
17
|
+
[2mdist/[22m[36mtwintag-form.webcomponent.js [39m[1m[2m119.25 kB[22m[1m[22m[2m │ gzip: 33.34 kB[22m
|
|
18
|
+
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[2m247.12 kB[22m[1m[22m[2m │ gzip: 56.86 kB[22m
|
|
19
|
+
[vite:dts] Declaration files built in 3571ms.
|
|
20
20
|
|
|
21
|
-
[32m✓ built in 6.
|
|
21
|
+
[32m✓ built in 6.37s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @twintag/twintag-form
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 842d936: fix: ui refinements
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- d84b6f7: refactor: design system update
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- fix: remove dependency that breaks `npm install`
|
|
18
|
+
|
|
3
19
|
## 1.0.0-beta.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dev/index.css
CHANGED
|
@@ -7492,7 +7492,7 @@ const kc = /* @__PURE__ */ Ce((e, t) => /* @__PURE__ */ G(Xe.label, fe({}, e, {
|
|
|
7492
7492
|
}
|
|
7493
7493
|
}))), ta = kc, Cc = Me({
|
|
7494
7494
|
base: [
|
|
7495
|
-
"text-sm
|
|
7495
|
+
"text-sm leading-none text-label",
|
|
7496
7496
|
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
7497
7497
|
]
|
|
7498
7498
|
}), ra = be.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ p.jsx(
|
|
@@ -8477,7 +8477,7 @@ const Nl = ({ label: e, bind: t, options: r }) => {
|
|
|
8477
8477
|
}, Pl = Me({
|
|
8478
8478
|
slots: {
|
|
8479
8479
|
container: "w-full space-y-4",
|
|
8480
|
-
heading: "font-tf-font text-sm
|
|
8480
|
+
heading: "font-tf-font text-sm text-category",
|
|
8481
8481
|
items: "grid gap-4"
|
|
8482
8482
|
}
|
|
8483
8483
|
}), $a = ({ label: e, children: t }) => {
|
|
@@ -47,20 +47,20 @@ const ut = {
|
|
|
47
47
|
json: ht
|
|
48
48
|
}, fe = Symbol.for("r2wc.render"), ne = Symbol.for("r2wc.connected"), B = Symbol.for("r2wc.context"), V = Symbol.for("r2wc.props");
|
|
49
49
|
function xt(e, t, r) {
|
|
50
|
-
var n, o,
|
|
50
|
+
var n, o, l;
|
|
51
51
|
t.props || (t.props = e.propTypes ? Object.keys(e.propTypes) : []);
|
|
52
|
-
const
|
|
53
|
-
for (const f of
|
|
52
|
+
const s = (Array.isArray(t.props) ? t.props.slice() : Object.keys(t.props)).filter((f) => f !== "container"), a = {}, i = {}, d = {};
|
|
53
|
+
for (const f of s) {
|
|
54
54
|
a[f] = Array.isArray(t.props) ? "string" : t.props[f];
|
|
55
55
|
const m = yt(f);
|
|
56
56
|
i[f] = m, d[m] = f;
|
|
57
57
|
}
|
|
58
58
|
class u extends HTMLElement {
|
|
59
59
|
constructor() {
|
|
60
|
-
super(), re(this, n, !0), re(this, o), re(this,
|
|
60
|
+
super(), re(this, n, !0), re(this, o), re(this, l, {}), re(this, "container"), t.shadow ? this.container = this.attachShadow({
|
|
61
61
|
mode: t.shadow
|
|
62
62
|
}) : this.container = this, this[V].container = this.container;
|
|
63
|
-
for (const m of
|
|
63
|
+
for (const m of s) {
|
|
64
64
|
const b = i[m], h = this.getAttribute(b), x = a[m], v = de[x];
|
|
65
65
|
h && v != null && v.parse && (this[V][m] = v.parse(h, this));
|
|
66
66
|
}
|
|
@@ -78,7 +78,7 @@ function xt(e, t, r) {
|
|
|
78
78
|
const x = d[m], v = a[x], D = de[v];
|
|
79
79
|
x in a && D != null && D.parse && (this[V][x] = D.parse(h, this), this[fe]());
|
|
80
80
|
}
|
|
81
|
-
[(n = ne, o = B,
|
|
81
|
+
[(n = ne, o = B, l = V, fe)]() {
|
|
82
82
|
this[ne] && (this[B] ? r.update(this[B], this[V]) : this[B] = r.mount(
|
|
83
83
|
this.container,
|
|
84
84
|
e,
|
|
@@ -86,7 +86,7 @@ function xt(e, t, r) {
|
|
|
86
86
|
));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
for (const f of
|
|
89
|
+
for (const f of s) {
|
|
90
90
|
const m = i[f], b = a[f];
|
|
91
91
|
Object.defineProperty(u.prototype, f, {
|
|
92
92
|
enumerable: !0,
|
|
@@ -271,30 +271,30 @@ let zt = [
|
|
|
271
271
|
/* re */
|
|
272
272
|
"quire"
|
|
273
273
|
];
|
|
274
|
-
function $e({ n: e, i: t, v: r = [] }, n, o,
|
|
274
|
+
function $e({ n: e, i: t, v: r = [] }, n, o, l) {
|
|
275
275
|
e && (e = Fe({
|
|
276
276
|
n: e,
|
|
277
277
|
i: t,
|
|
278
278
|
v: r
|
|
279
|
-
})),
|
|
280
|
-
...k(
|
|
279
|
+
})), l = [
|
|
280
|
+
...k(l)
|
|
281
281
|
];
|
|
282
282
|
for (let a of r) {
|
|
283
283
|
let i = n.theme("screens", a);
|
|
284
284
|
for (let d of k(i && Re(i) || n.v(a))) {
|
|
285
|
-
var
|
|
286
|
-
|
|
285
|
+
var s;
|
|
286
|
+
l.push(d), o |= i ? 67108864 | /* Shifts.screens */
|
|
287
287
|
ke(d) : a == "dark" ? 1073741824 : (
|
|
288
288
|
/* Shifts.darkMode */
|
|
289
|
-
d[0] == "@" ? ke(d) : (
|
|
290
|
-
1 << ~(/:([a-z-]+)/.test(
|
|
289
|
+
d[0] == "@" ? ke(d) : (s = d, // use first found pseudo-class
|
|
290
|
+
1 << ~(/:([a-z-]+)/.test(s) && ~zt.indexOf(RegExp.$1.slice(2, 7)) || -18))
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
return {
|
|
295
295
|
n: e,
|
|
296
296
|
p: o,
|
|
297
|
-
r:
|
|
297
|
+
r: l,
|
|
298
298
|
i: t
|
|
299
299
|
};
|
|
300
300
|
}
|
|
@@ -305,23 +305,23 @@ function Se(e) {
|
|
|
305
305
|
// merge all conditions into a selector string
|
|
306
306
|
e.r.reduce((n, o) => o[0] == "@" ? (t.push(o), n) : (
|
|
307
307
|
// Go over the selector and replace the matching multiple selectors if any
|
|
308
|
-
o ? ue(n, (
|
|
308
|
+
o ? ue(n, (l) => ue(
|
|
309
309
|
o,
|
|
310
310
|
// If the current condition has a nested selector replace it
|
|
311
|
-
(
|
|
312
|
-
let a = /(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(
|
|
311
|
+
(s) => {
|
|
312
|
+
let a = /(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(s);
|
|
313
313
|
if (a) {
|
|
314
|
-
let i =
|
|
314
|
+
let i = l.indexOf(a[1]);
|
|
315
315
|
return ~i ? (
|
|
316
316
|
// [':merge(.group):hover .rule', ':merge(.group):focus &'] -> ':merge(.group):focus:hover .rule'
|
|
317
317
|
// ':merge(.group)' + ':focus' + ':hover .rule'
|
|
318
|
-
|
|
318
|
+
l.slice(0, i) + a[0] + l.slice(i + a[1].length)
|
|
319
319
|
) : (
|
|
320
320
|
// [':merge(.peer):focus~&', ':merge(.group):hover &'] -> ':merge(.peer):focus~:merge(.group):hover &'
|
|
321
|
-
me(
|
|
321
|
+
me(l, s)
|
|
322
322
|
);
|
|
323
323
|
}
|
|
324
|
-
return me(
|
|
324
|
+
return me(s, l);
|
|
325
325
|
}
|
|
326
326
|
)) : n
|
|
327
327
|
), "&"),
|
|
@@ -367,15 +367,15 @@ function H(e, t = {}) {
|
|
|
367
367
|
if (e.includes("<alpha-value>"))
|
|
368
368
|
return e.replace("<alpha-value>", o);
|
|
369
369
|
if (e[0] == "#" && (e.length == 4 || e.length == 7)) {
|
|
370
|
-
let
|
|
370
|
+
let l = (e.length - 1) / 3, s = [
|
|
371
371
|
17,
|
|
372
372
|
1,
|
|
373
373
|
0.062272
|
|
374
|
-
][
|
|
374
|
+
][l - 1];
|
|
375
375
|
return `rgba(${[
|
|
376
|
-
ge(e.substr(1,
|
|
377
|
-
ge(e.substr(1 +
|
|
378
|
-
ge(e.substr(1 + 2 *
|
|
376
|
+
ge(e.substr(1, l), s),
|
|
377
|
+
ge(e.substr(1 + l, l), s),
|
|
378
|
+
ge(e.substr(1 + 2 * l, l), s),
|
|
379
379
|
o
|
|
380
380
|
]})`;
|
|
381
381
|
}
|
|
@@ -385,21 +385,21 @@ function H(e, t = {}) {
|
|
|
385
385
|
);
|
|
386
386
|
}
|
|
387
387
|
function et(e, t, r, n, o = []) {
|
|
388
|
-
return function s
|
|
388
|
+
return function l(s, { n: a, p: i, r: d = [], i: u }, f) {
|
|
389
389
|
let m = [], b = "", h = 0, x = 0;
|
|
390
|
-
for (let y in
|
|
390
|
+
for (let y in s || {}) {
|
|
391
391
|
var v, D;
|
|
392
|
-
let S =
|
|
392
|
+
let S = s[y];
|
|
393
393
|
if (y[0] == "@") {
|
|
394
394
|
if (!S)
|
|
395
395
|
continue;
|
|
396
396
|
if (y[1] == "a") {
|
|
397
|
-
m.push(...je(a, i,
|
|
397
|
+
m.push(...je(a, i, se("" + S), f, i, d, u, !0));
|
|
398
398
|
continue;
|
|
399
399
|
}
|
|
400
400
|
if (y[1] == "l") {
|
|
401
401
|
for (let E of k(S))
|
|
402
|
-
m.push(...
|
|
402
|
+
m.push(...l(E, {
|
|
403
403
|
n: a,
|
|
404
404
|
p: (v = C[y[7]], // Set layer (first reset, than set)
|
|
405
405
|
i & ~C.o | v),
|
|
@@ -425,7 +425,7 @@ function et(e, t, r, n, o = []) {
|
|
|
425
425
|
r: [
|
|
426
426
|
y
|
|
427
427
|
],
|
|
428
|
-
d:
|
|
428
|
+
d: l(S, {
|
|
429
429
|
p: C.d
|
|
430
430
|
}, f).map(Se).join("")
|
|
431
431
|
});
|
|
@@ -438,7 +438,7 @@ function et(e, t, r, n, o = []) {
|
|
|
438
438
|
r: [
|
|
439
439
|
y
|
|
440
440
|
],
|
|
441
|
-
d:
|
|
441
|
+
d: l(E, {
|
|
442
442
|
p: C.d
|
|
443
443
|
}, f).map(Se).join("")
|
|
444
444
|
})));
|
|
@@ -449,7 +449,7 @@ function et(e, t, r, n, o = []) {
|
|
|
449
449
|
y == "label" && S ? a = S + ae(JSON.stringify([
|
|
450
450
|
i,
|
|
451
451
|
u,
|
|
452
|
-
|
|
452
|
+
s
|
|
453
453
|
])) : (S || S === 0) && (y = y.replace(/[A-Z]/g, (E) => "-" + E.toLowerCase()), x += 1, h = Math.max(h, (D = y)[0] == "-" ? 0 : Xe(D) + (/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(D) ? +!!RegExp.$1 || /* +1 */
|
|
454
454
|
-!!RegExp.$2 : (
|
|
455
455
|
/* -1 */
|
|
@@ -466,7 +466,7 @@ function et(e, t, r, n, o = []) {
|
|
|
466
466
|
let U = f.theme("screens", G);
|
|
467
467
|
return U ? (E |= 67108864, /* Shifts.screens */
|
|
468
468
|
Re(U, "")) : ce;
|
|
469
|
-
}), E |= ke(y)), m.push(...
|
|
469
|
+
}), E |= ke(y)), m.push(...l(S, {
|
|
470
470
|
n: a,
|
|
471
471
|
p: E,
|
|
472
472
|
r: [
|
|
@@ -476,7 +476,7 @@ function et(e, t, r, n, o = []) {
|
|
|
476
476
|
i: u
|
|
477
477
|
}, f));
|
|
478
478
|
} else
|
|
479
|
-
m.push(...
|
|
479
|
+
m.push(...l(S, {
|
|
480
480
|
p: i,
|
|
481
481
|
r: [
|
|
482
482
|
...d,
|
|
@@ -504,8 +504,8 @@ function et(e, t, r, n, o = []) {
|
|
|
504
504
|
}(e, $e(t, r, n, o), r);
|
|
505
505
|
}
|
|
506
506
|
function De(e, t) {
|
|
507
|
-
return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g, (r, n, o,
|
|
508
|
-
let a = t(o,
|
|
507
|
+
return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g, (r, n, o, l, s = "") => {
|
|
508
|
+
let a = t(o, s);
|
|
509
509
|
return typeof a == "function" && /color|fill|stroke/i.test(o) ? H(a) : "" + k(a).filter((i) => Object(i) !== i);
|
|
510
510
|
});
|
|
511
511
|
}
|
|
@@ -524,9 +524,9 @@ function tt(e, t) {
|
|
|
524
524
|
});
|
|
525
525
|
return n;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
let
|
|
529
|
-
for (let
|
|
527
|
+
function le(e, t, r = C.u, n, o) {
|
|
528
|
+
let l = [];
|
|
529
|
+
for (let s of e)
|
|
530
530
|
for (let a of function(i, d, u, f, m) {
|
|
531
531
|
i = {
|
|
532
532
|
...i,
|
|
@@ -538,7 +538,7 @@ function se(e, t, r = C.u, n, o) {
|
|
|
538
538
|
}(i, d);
|
|
539
539
|
return b ? (
|
|
540
540
|
// a list of class names
|
|
541
|
-
typeof b == "string" ? ({ r: f, p: u } = $e(i, d, u, f), tt(se(
|
|
541
|
+
typeof b == "string" ? ({ r: f, p: u } = $e(i, d, u, f), tt(le(se(b), d, u, f, i.i), i.n)) : Array.isArray(b) ? b.map((h) => {
|
|
542
542
|
var x, v;
|
|
543
543
|
return {
|
|
544
544
|
o: 0,
|
|
@@ -561,14 +561,14 @@ function se(e, t, r = C.u, n, o) {
|
|
|
561
561
|
}
|
|
562
562
|
]
|
|
563
563
|
);
|
|
564
|
-
}(
|
|
565
|
-
|
|
566
|
-
return
|
|
564
|
+
}(s, t, r, n, o))
|
|
565
|
+
l.splice(Qe(l, a), 0, a);
|
|
566
|
+
return l;
|
|
567
567
|
}
|
|
568
|
-
function je(e, t, r, n, o,
|
|
569
|
-
return tt((a ? r.flatMap((i) =>
|
|
568
|
+
function je(e, t, r, n, o, l, s, a) {
|
|
569
|
+
return tt((a ? r.flatMap((i) => le([
|
|
570
570
|
i
|
|
571
|
-
], n, o,
|
|
571
|
+
], n, o, l, s)) : le(r, n, o, l, s)).map((i) => (
|
|
572
572
|
// do not move defaults
|
|
573
573
|
// move only rules with a name unless they are in the base layer
|
|
574
574
|
i.p & C.o && (i.n || t == C.b) ? {
|
|
@@ -580,24 +580,24 @@ function je(e, t, r, n, o, s, l, a) {
|
|
|
580
580
|
}
|
|
581
581
|
function Tt(e, t, r, n) {
|
|
582
582
|
var o;
|
|
583
|
-
return o = (
|
|
584
|
-
let { n: a, p: i, r: d, i: u } = $e(
|
|
585
|
-
return r && je(a, t, r,
|
|
583
|
+
return o = (l, s) => {
|
|
584
|
+
let { n: a, p: i, r: d, i: u } = $e(l, s, t);
|
|
585
|
+
return r && je(a, t, r, s, i, d, u, n);
|
|
586
586
|
}, Ze.set(e, o), e;
|
|
587
587
|
}
|
|
588
588
|
function be(e, t, r) {
|
|
589
589
|
if (e[e.length - 1] != "(") {
|
|
590
|
-
let n = [], o = !1,
|
|
590
|
+
let n = [], o = !1, l = !1, s = "";
|
|
591
591
|
for (let a of e)
|
|
592
592
|
if (!(a == "(" || /[~@]$/.test(a))) {
|
|
593
593
|
if (a[0] == "!" && (a = a.slice(1), o = !o), a.endsWith(":")) {
|
|
594
594
|
n[a == "dark:" ? "unshift" : "push"](a.slice(0, -1));
|
|
595
595
|
continue;
|
|
596
596
|
}
|
|
597
|
-
a[0] == "-" && (a = a.slice(1),
|
|
597
|
+
a[0] == "-" && (a = a.slice(1), l = !l), a.endsWith("-") && (a = a.slice(0, -1)), a && a != "&" && (s += (s && "-") + a);
|
|
598
598
|
}
|
|
599
|
-
|
|
600
|
-
n:
|
|
599
|
+
s && (l && (s = "-" + s), t[0].push({
|
|
600
|
+
n: s,
|
|
601
601
|
v: n.filter(At),
|
|
602
602
|
i: o
|
|
603
603
|
}));
|
|
@@ -607,24 +607,24 @@ function At(e, t, r) {
|
|
|
607
607
|
return r.indexOf(e) == t;
|
|
608
608
|
}
|
|
609
609
|
let He = /* @__PURE__ */ new Map();
|
|
610
|
-
function
|
|
610
|
+
function se(e) {
|
|
611
611
|
let t = He.get(e);
|
|
612
612
|
if (!t) {
|
|
613
613
|
let r = [], n = [
|
|
614
614
|
[]
|
|
615
|
-
], o = 0,
|
|
615
|
+
], o = 0, l = 0, s = null, a = 0, i = (d, u = 0) => {
|
|
616
616
|
o != a && (r.push(e.slice(o, a + u)), d && be(r, n)), o = a + 1;
|
|
617
617
|
};
|
|
618
618
|
for (; a < e.length; a++) {
|
|
619
619
|
let d = e[a];
|
|
620
|
-
if (
|
|
621
|
-
e[a - 1] != "\\" && (
|
|
620
|
+
if (l)
|
|
621
|
+
e[a - 1] != "\\" && (l += +(d == "[") || -(d == "]"));
|
|
622
622
|
else if (d == "[")
|
|
623
|
-
|
|
624
|
-
else if (
|
|
625
|
-
e[a - 1] != "\\" &&
|
|
623
|
+
l += 1;
|
|
624
|
+
else if (s)
|
|
625
|
+
e[a - 1] != "\\" && s.test(e.slice(a)) && (s = null, o = a + RegExp.lastMatch.length);
|
|
626
626
|
else if (d == "/" && e[a - 1] != "\\" && (e[a + 1] == "*" || e[a + 1] == "/"))
|
|
627
|
-
|
|
627
|
+
s = e[a + 1] == "*" ? /^\*\// : /^[\r\n]/;
|
|
628
628
|
else if (d == "(")
|
|
629
629
|
i(), r.push(d);
|
|
630
630
|
else if (d == ":")
|
|
@@ -699,15 +699,15 @@ function p(e, t, r, n) {
|
|
|
699
699
|
];
|
|
700
700
|
}
|
|
701
701
|
function Et(e, t, r) {
|
|
702
|
-
let n = typeof t == "string" ? (o,
|
|
703
|
-
[t]: r ? r(o,
|
|
704
|
-
}) : t || (({ 1: o, _:
|
|
705
|
-
[o || a]:
|
|
702
|
+
let n = typeof t == "string" ? (o, l) => ({
|
|
703
|
+
[t]: r ? r(o, l) : o._
|
|
704
|
+
}) : t || (({ 1: o, _: l }, s, a) => ({
|
|
705
|
+
[o || a]: l
|
|
706
706
|
}));
|
|
707
|
-
return (o,
|
|
708
|
-
let
|
|
707
|
+
return (o, l) => {
|
|
708
|
+
let s = rt(e || o[1]), a = l.theme(s, o.$$) ?? I(o.$$, s, l);
|
|
709
709
|
if (a != null)
|
|
710
|
-
return o._ = ze(o, 0, a), n(o,
|
|
710
|
+
return o._ = ze(o, 0, a), n(o, l, s);
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
713
|
function z(e, t = {}, r) {
|
|
@@ -718,10 +718,10 @@ function z(e, t = {}, r) {
|
|
|
718
718
|
}
|
|
719
719
|
function Ft(e = {}, t) {
|
|
720
720
|
return (r, n) => {
|
|
721
|
-
let { section: o = rt(r[0]).replace("-", "") + "Color" } = e, [
|
|
722
|
-
if (!
|
|
721
|
+
let { section: o = rt(r[0]).replace("-", "") + "Color" } = e, [l, s] = Rt(r.$$);
|
|
722
|
+
if (!l)
|
|
723
723
|
return;
|
|
724
|
-
let a = n.theme(o,
|
|
724
|
+
let a = n.theme(o, l) || I(l, o, n);
|
|
725
725
|
if (!a || typeof a == "object")
|
|
726
726
|
return;
|
|
727
727
|
let {
|
|
@@ -732,7 +732,7 @@ function Ft(e = {}, t) {
|
|
|
732
732
|
opacitySection: d = o.replace("Color", "Opacity"),
|
|
733
733
|
property: u = o,
|
|
734
734
|
selector: f
|
|
735
|
-
} = e, m = n.theme(d,
|
|
735
|
+
} = e, m = n.theme(d, s || "DEFAULT") || s && I(s, d, n), b = t || (({ _: x }) => {
|
|
736
736
|
let v = ie(u, x);
|
|
737
737
|
return f ? {
|
|
738
738
|
[f]: v
|
|
@@ -749,7 +749,7 @@ function Ft(e = {}, t) {
|
|
|
749
749
|
};
|
|
750
750
|
let h = b(r, n);
|
|
751
751
|
if (!r.dark) {
|
|
752
|
-
let x = n.d(o,
|
|
752
|
+
let x = n.d(o, l, a);
|
|
753
753
|
x && x !== a && (r._ = {
|
|
754
754
|
value: H(x, {
|
|
755
755
|
opacityVariable: i || void 0,
|
|
@@ -826,15 +826,15 @@ function nt({ presets: e = [], ...t }) {
|
|
|
826
826
|
finalize: t.finalize
|
|
827
827
|
}
|
|
828
828
|
])) {
|
|
829
|
-
let { preflight: o, darkMode:
|
|
829
|
+
let { preflight: o, darkMode: l = r.darkMode, darkColor: s = r.darkColor, theme: a, variants: i, rules: d, ignorelist: u, hash: f = r.hash, stringify: m = r.stringify, finalize: b } = typeof n == "function" ? n(r) : n;
|
|
830
830
|
r = {
|
|
831
831
|
// values defined by user or previous presets take precedence
|
|
832
832
|
preflight: r.preflight !== !1 && o !== !1 && [
|
|
833
833
|
...r.preflight,
|
|
834
834
|
...k(o)
|
|
835
835
|
],
|
|
836
|
-
darkMode:
|
|
837
|
-
darkColor:
|
|
836
|
+
darkMode: l,
|
|
837
|
+
darkColor: s,
|
|
838
838
|
theme: {
|
|
839
839
|
...r.theme,
|
|
840
840
|
...a,
|
|
@@ -865,11 +865,11 @@ function nt({ presets: e = [], ...t }) {
|
|
|
865
865
|
}
|
|
866
866
|
return r;
|
|
867
867
|
}
|
|
868
|
-
function Ie(e, t, r, n, o,
|
|
869
|
-
for (let
|
|
870
|
-
let a = r.get(
|
|
871
|
-
a || r.set(
|
|
872
|
-
let i = a(e, o,
|
|
868
|
+
function Ie(e, t, r, n, o, l) {
|
|
869
|
+
for (let s of t) {
|
|
870
|
+
let a = r.get(s);
|
|
871
|
+
a || r.set(s, a = n(s));
|
|
872
|
+
let i = a(e, o, l);
|
|
873
873
|
if (i)
|
|
874
874
|
return i;
|
|
875
875
|
}
|
|
@@ -883,20 +883,20 @@ function $t(e) {
|
|
|
883
883
|
return Array.isArray(e) ? Te(e[0], Ce(e[1], e[2])) : Te(e, Ce(t, r));
|
|
884
884
|
}
|
|
885
885
|
function Te(e, t) {
|
|
886
|
-
return ot(e, (r, n, o,
|
|
887
|
-
let
|
|
888
|
-
if (
|
|
886
|
+
return ot(e, (r, n, o, l) => {
|
|
887
|
+
let s = n.exec(r);
|
|
888
|
+
if (s)
|
|
889
889
|
return (
|
|
890
890
|
// MATCH.$_ = value
|
|
891
|
-
|
|
891
|
+
s.$$ = r.slice(s[0].length), s.dark = l, t(s, o)
|
|
892
892
|
);
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
895
|
function ot(e, t) {
|
|
896
896
|
let r = k(e).map(Dt);
|
|
897
|
-
return (n, o,
|
|
898
|
-
for (let
|
|
899
|
-
let a = t(n,
|
|
897
|
+
return (n, o, l) => {
|
|
898
|
+
for (let s of r) {
|
|
899
|
+
let a = t(n, s, o, l);
|
|
900
900
|
if (a)
|
|
901
901
|
return a;
|
|
902
902
|
}
|
|
@@ -951,7 +951,7 @@ function jt(e, t) {
|
|
|
951
951
|
T
|
|
952
952
|
], /[.[]/.test(T)) {
|
|
953
953
|
let L = [];
|
|
954
|
-
T.replace(/\[([^\]]+)\]|([^.[]+)/g, (P, Q,
|
|
954
|
+
T.replace(/\[([^\]]+)\]|([^.[]+)/g, (P, Q, st = Q) => L.push(st)), T = L.shift(), R = F, F = L.join("-");
|
|
955
955
|
}
|
|
956
956
|
let M = j[T] || // two-step deref to allow extend section to reference base section
|
|
957
957
|
Object.assign(Object.assign(
|
|
@@ -1013,28 +1013,28 @@ function jt(e, t) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
return U;
|
|
1016
|
-
}(r), o = /* @__PURE__ */ new Map(),
|
|
1016
|
+
}(r), o = /* @__PURE__ */ new Map(), l = [], s = /* @__PURE__ */ new Set();
|
|
1017
1017
|
t.resume((i) => o.set(i, i), (i, d) => {
|
|
1018
|
-
t.insert(i,
|
|
1018
|
+
t.insert(i, l.length, d), l.push(d), s.add(i);
|
|
1019
1019
|
});
|
|
1020
1020
|
function a(i) {
|
|
1021
1021
|
let d = n.f(i), u = Se(d);
|
|
1022
|
-
if (u && !
|
|
1023
|
-
|
|
1024
|
-
let f = Qe(
|
|
1025
|
-
t.insert(u, f, i),
|
|
1022
|
+
if (u && !s.has(u)) {
|
|
1023
|
+
s.add(u);
|
|
1024
|
+
let f = Qe(l, i);
|
|
1025
|
+
t.insert(u, f, i), l.splice(f, 0, i);
|
|
1026
1026
|
}
|
|
1027
1027
|
return d.n;
|
|
1028
1028
|
}
|
|
1029
1029
|
return Object.defineProperties(function(d) {
|
|
1030
1030
|
if (!o.size)
|
|
1031
1031
|
for (let f of k(r.preflight))
|
|
1032
|
-
typeof f == "function" && (f = f(n)), f && (typeof f == "string" ? je("", C.b,
|
|
1032
|
+
typeof f == "function" && (f = f(n)), f && (typeof f == "string" ? je("", C.b, se(f), n, C.b, [], !1, !0) : et(f, {}, n, C.b)).forEach(a);
|
|
1033
1033
|
d = "" + d;
|
|
1034
1034
|
let u = o.get(d);
|
|
1035
1035
|
if (!u) {
|
|
1036
1036
|
let f = /* @__PURE__ */ new Set();
|
|
1037
|
-
for (let m of se(
|
|
1037
|
+
for (let m of le(se(d), n))
|
|
1038
1038
|
f.add(m.c).add(a(m));
|
|
1039
1039
|
u = [
|
|
1040
1040
|
...f
|
|
@@ -1048,15 +1048,15 @@ function jt(e, t) {
|
|
|
1048
1048
|
theme: n.theme,
|
|
1049
1049
|
config: r,
|
|
1050
1050
|
snapshot() {
|
|
1051
|
-
let i = t.snapshot(), d = new Set(
|
|
1052
|
-
...
|
|
1051
|
+
let i = t.snapshot(), d = new Set(s), u = new Map(o), f = [
|
|
1052
|
+
...l
|
|
1053
1053
|
];
|
|
1054
1054
|
return () => {
|
|
1055
|
-
i(),
|
|
1055
|
+
i(), s = d, o = u, l = f;
|
|
1056
1056
|
};
|
|
1057
1057
|
},
|
|
1058
1058
|
clear() {
|
|
1059
|
-
t.clear(),
|
|
1059
|
+
t.clear(), s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map(), l = [];
|
|
1060
1060
|
},
|
|
1061
1061
|
destroy() {
|
|
1062
1062
|
this.clear(), t.destroy();
|
|
@@ -1088,19 +1088,19 @@ function Wt(e) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
1090
|
function r(o) {
|
|
1091
|
-
for (let { type:
|
|
1092
|
-
if (
|
|
1093
|
-
n(
|
|
1091
|
+
for (let { type: l, target: s } of o)
|
|
1092
|
+
if (l[0] == "a")
|
|
1093
|
+
n(s);
|
|
1094
1094
|
else
|
|
1095
|
-
for (let a of
|
|
1095
|
+
for (let a of s.querySelectorAll("[class]"))
|
|
1096
1096
|
n(a);
|
|
1097
1097
|
t.takeRecords();
|
|
1098
1098
|
}
|
|
1099
1099
|
function n(o) {
|
|
1100
1100
|
var a;
|
|
1101
|
-
let
|
|
1102
|
-
|
|
1103
|
-
o.setAttribute("class",
|
|
1101
|
+
let l, s = (a = o.getAttribute) == null ? void 0 : a.call(o, "class");
|
|
1102
|
+
s && Lt(s, l = e(s)) && // Not using `target.className = ...` as that is read-only for SVGElements
|
|
1103
|
+
o.setAttribute("class", l);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
function Ut(e) {
|
|
@@ -1149,32 +1149,32 @@ function Mt(e, t = !0) {
|
|
|
1149
1149
|
}, i.disconnect = Oe, i;
|
|
1150
1150
|
} catch {
|
|
1151
1151
|
}
|
|
1152
|
-
let
|
|
1153
|
-
|
|
1154
|
-
let
|
|
1155
|
-
he(
|
|
1152
|
+
let l = document.createElement("style");
|
|
1153
|
+
l.media = "not all", document.head.prepend(l);
|
|
1154
|
+
let s = [
|
|
1155
|
+
he(l)
|
|
1156
1156
|
], a = /* @__PURE__ */ new WeakMap();
|
|
1157
1157
|
return {
|
|
1158
1158
|
get target() {
|
|
1159
|
-
return
|
|
1159
|
+
return s[0].target;
|
|
1160
1160
|
},
|
|
1161
1161
|
snapshot() {
|
|
1162
|
-
let i =
|
|
1162
|
+
let i = s.map((d) => d.snapshot());
|
|
1163
1163
|
return () => i.forEach((d) => d());
|
|
1164
1164
|
},
|
|
1165
1165
|
clear() {
|
|
1166
|
-
|
|
1166
|
+
s.forEach((i) => i.clear());
|
|
1167
1167
|
},
|
|
1168
1168
|
destroy() {
|
|
1169
|
-
|
|
1169
|
+
s.forEach((i) => i.destroy());
|
|
1170
1170
|
},
|
|
1171
1171
|
insert(i, d, u) {
|
|
1172
|
-
|
|
1172
|
+
s[0].insert(i, d, u);
|
|
1173
1173
|
let f = this.target.cssRules[d];
|
|
1174
|
-
|
|
1174
|
+
s.forEach((m, b) => b && m.target.insertRule(f.cssText, d));
|
|
1175
1175
|
},
|
|
1176
1176
|
resume(i, d) {
|
|
1177
|
-
return
|
|
1177
|
+
return s[0].resume(i, d);
|
|
1178
1178
|
},
|
|
1179
1179
|
connect(i) {
|
|
1180
1180
|
let d = document.createElement("style");
|
|
@@ -1182,11 +1182,11 @@ function Mt(e, t = !0) {
|
|
|
1182
1182
|
let u = he(d), { cssRules: f } = this.target;
|
|
1183
1183
|
for (let m = 0; m < f.length; m++)
|
|
1184
1184
|
u.target.insertRule(f[m].cssText, m);
|
|
1185
|
-
|
|
1185
|
+
s.push(u), a.set(i, u);
|
|
1186
1186
|
},
|
|
1187
1187
|
disconnect(i) {
|
|
1188
|
-
let d =
|
|
1189
|
-
d >= 0 &&
|
|
1188
|
+
let d = s.indexOf(a.get(i));
|
|
1189
|
+
d >= 0 && s.splice(d, 1);
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
1192
|
}(), n = jt({
|
|
@@ -1194,8 +1194,8 @@ function Mt(e, t = !0) {
|
|
|
1194
1194
|
// in production use short hashed class names
|
|
1195
1195
|
hash: e.hash ?? t
|
|
1196
1196
|
}, r), o = Wt(n);
|
|
1197
|
-
return function(
|
|
1198
|
-
return class extends
|
|
1197
|
+
return function(s) {
|
|
1198
|
+
return class extends s {
|
|
1199
1199
|
connectedCallback() {
|
|
1200
1200
|
var i;
|
|
1201
1201
|
(i = super.connectedCallback) == null || i.call(this), r.connect(this), o.observe(xe(this));
|
|
@@ -1247,11 +1247,11 @@ let Pt = [
|
|
|
1247
1247
|
function Bt() {
|
|
1248
1248
|
return ({ stringify: e }) => ({
|
|
1249
1249
|
stringify(t, r, n) {
|
|
1250
|
-
let o = "",
|
|
1251
|
-
|
|
1252
|
-
let
|
|
1250
|
+
let o = "", l = Ht(t);
|
|
1251
|
+
l && (o += e(l, r, n) + ";");
|
|
1252
|
+
let s = It(t), a = Nt(t, r);
|
|
1253
1253
|
for (let i of Pt)
|
|
1254
|
-
|
|
1254
|
+
s & i[1] && (o += e(i[0] + t, r, n) + ";"), a & i[1] && (o += e(t, i[0] + r, n) + ";");
|
|
1255
1255
|
return o + e(t, r, n);
|
|
1256
1256
|
}
|
|
1257
1257
|
});
|
|
@@ -2064,10 +2064,10 @@ function $(e, t, r = 0) {
|
|
|
2064
2064
|
n[r] = r + t;
|
|
2065
2065
|
return n;
|
|
2066
2066
|
}
|
|
2067
|
-
function O(e, t = "", r = 1, n = 0, o = 1,
|
|
2067
|
+
function O(e, t = "", r = 1, n = 0, o = 1, l = {}) {
|
|
2068
2068
|
for (; n <= e; n += o)
|
|
2069
|
-
|
|
2070
|
-
return
|
|
2069
|
+
l[n] = n / r + t;
|
|
2070
|
+
return l;
|
|
2071
2071
|
}
|
|
2072
2072
|
function g(e) {
|
|
2073
2073
|
return ({ theme: t }) => t(e);
|
|
@@ -2383,23 +2383,23 @@ let qt = {
|
|
|
2383
2383
|
/* LAYOUT */
|
|
2384
2384
|
p("aspect-", "aspectRatio"),
|
|
2385
2385
|
c("container", (e, { theme: t }) => {
|
|
2386
|
-
let { screens: r = t("screens"), center: n, padding: o } = t("container"),
|
|
2386
|
+
let { screens: r = t("screens"), center: n, padding: o } = t("container"), l = {
|
|
2387
2387
|
width: "100%",
|
|
2388
2388
|
marginRight: n && "auto",
|
|
2389
2389
|
marginLeft: n && "auto",
|
|
2390
|
-
...
|
|
2390
|
+
...s("xs")
|
|
2391
2391
|
};
|
|
2392
2392
|
for (let a in r) {
|
|
2393
2393
|
let i = r[a];
|
|
2394
|
-
typeof i == "string" && (
|
|
2394
|
+
typeof i == "string" && (l[Re(i)] = {
|
|
2395
2395
|
"&": {
|
|
2396
2396
|
maxWidth: i,
|
|
2397
|
-
...
|
|
2397
|
+
...s(a)
|
|
2398
2398
|
}
|
|
2399
2399
|
});
|
|
2400
2400
|
}
|
|
2401
|
-
return
|
|
2402
|
-
function
|
|
2401
|
+
return l;
|
|
2402
|
+
function s(a) {
|
|
2403
2403
|
let i = o && (typeof o == "string" ? o : o[a] || o.DEFAULT);
|
|
2404
2404
|
if (i)
|
|
2405
2405
|
return {
|
|
@@ -2957,10 +2957,10 @@ let qt = {
|
|
|
2957
2957
|
// Transition Delay
|
|
2958
2958
|
p("delay(?:$|-)", "transitionDelay", "transitionDelay", W),
|
|
2959
2959
|
p("animate(?:$|-)", "animation", (e, { theme: t, h: r, e: n }) => {
|
|
2960
|
-
let o = W(e),
|
|
2961
|
-
return
|
|
2962
|
-
["@keyframes " + (
|
|
2963
|
-
animation:
|
|
2960
|
+
let o = W(e), l = o.split(" "), s = t("keyframes", l[0]);
|
|
2961
|
+
return s ? {
|
|
2962
|
+
["@keyframes " + (l[0] = n(r(l[0])))]: s,
|
|
2963
|
+
animation: l.join(" ")
|
|
2964
2964
|
} : {
|
|
2965
2965
|
animation: o
|
|
2966
2966
|
};
|
|
@@ -3194,8 +3194,8 @@ function Be(e = "") {
|
|
|
3194
3194
|
// hue-rotate can be negated
|
|
3195
3195
|
`${n[0] == "h" ? "-?" : ""}(${e}${n})(?:$|-)`,
|
|
3196
3196
|
n,
|
|
3197
|
-
({ 1: o, _:
|
|
3198
|
-
[`--tw-${o}`]: k(
|
|
3197
|
+
({ 1: o, _: l }) => ({
|
|
3198
|
+
[`--tw-${o}`]: k(l).map((s) => `${n}(${s})`).join(" "),
|
|
3199
3199
|
...r
|
|
3200
3200
|
})
|
|
3201
3201
|
))
|
|
@@ -3320,9 +3320,9 @@ let Yt = [
|
|
|
3320
3320
|
// => '.group:focus .group-focus:selector'
|
|
3321
3321
|
[
|
|
3322
3322
|
"((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",
|
|
3323
|
-
({ 2: e, 3: t = "", 4: r, 5: n = "", 6: o = t }, { e:
|
|
3323
|
+
({ 2: e, 3: t = "", 4: r, 5: n = "", 6: o = t }, { e: l, h: s, v: a }) => {
|
|
3324
3324
|
let i = ee(n) || (r[0] == "[" ? r : a(r.slice(1)));
|
|
3325
|
-
return `${(i.includes("&") ? i : "&" + i).replace(/&/g, `:merge(.${s(
|
|
3325
|
+
return `${(i.includes("&") ? i : "&" + i).replace(/&/g, `:merge(.${l(s(e + o))})`)}${e[0] == "p" ? "~" : " "}&`;
|
|
3326
3326
|
}
|
|
3327
3327
|
],
|
|
3328
3328
|
// direction variants
|
|
@@ -3509,7 +3509,7 @@ let Xt = {
|
|
|
3509
3509
|
700: "#15803d",
|
|
3510
3510
|
800: "#166534",
|
|
3511
3511
|
900: "#14532d"
|
|
3512
|
-
},
|
|
3512
|
+
}, lr = {
|
|
3513
3513
|
50: "#ecfdf5",
|
|
3514
3514
|
100: "#d1fae5",
|
|
3515
3515
|
200: "#a7f3d0",
|
|
@@ -3520,7 +3520,7 @@ let Xt = {
|
|
|
3520
3520
|
700: "#047857",
|
|
3521
3521
|
800: "#065f46",
|
|
3522
3522
|
900: "#064e3b"
|
|
3523
|
-
},
|
|
3523
|
+
}, sr = {
|
|
3524
3524
|
50: "#f0fdfa",
|
|
3525
3525
|
100: "#ccfbf1",
|
|
3526
3526
|
200: "#99f6e4",
|
|
@@ -3643,8 +3643,8 @@ let Xt = {
|
|
|
3643
3643
|
yellow: or,
|
|
3644
3644
|
lime: ir,
|
|
3645
3645
|
green: ar,
|
|
3646
|
-
emerald:
|
|
3647
|
-
teal:
|
|
3646
|
+
emerald: lr,
|
|
3647
|
+
teal: sr,
|
|
3648
3648
|
cyan: cr,
|
|
3649
3649
|
sky: pr,
|
|
3650
3650
|
blue: dr,
|
|
@@ -3661,7 +3661,7 @@ function yr({ disablePreflight: e } = {}) {
|
|
|
3661
3661
|
disablePreflight: e
|
|
3662
3662
|
});
|
|
3663
3663
|
}
|
|
3664
|
-
var at = {},
|
|
3664
|
+
var at = {}, lt = {};
|
|
3665
3665
|
(function(e) {
|
|
3666
3666
|
Object.defineProperty(e, "__esModule", {
|
|
3667
3667
|
value: !0
|
|
@@ -3677,7 +3677,7 @@ var at = {}, st = {};
|
|
|
3677
3677
|
t(o)
|
|
3678
3678
|
])) : r;
|
|
3679
3679
|
}
|
|
3680
|
-
})(
|
|
3680
|
+
})(lt);
|
|
3681
3681
|
var wr = {
|
|
3682
3682
|
content: [],
|
|
3683
3683
|
presets: [],
|
|
@@ -4678,10 +4678,10 @@ var wr = {
|
|
|
4678
4678
|
return o;
|
|
4679
4679
|
}
|
|
4680
4680
|
});
|
|
4681
|
-
const t =
|
|
4682
|
-
function n(
|
|
4683
|
-
return
|
|
4684
|
-
default:
|
|
4681
|
+
const t = lt, r = /* @__PURE__ */ n(wr);
|
|
4682
|
+
function n(l) {
|
|
4683
|
+
return l && l.__esModule ? l : {
|
|
4684
|
+
default: l
|
|
4685
4685
|
};
|
|
4686
4686
|
}
|
|
4687
4687
|
const o = (0, t.cloneDeep)(r.default.theme);
|
|
@@ -4693,8 +4693,9 @@ const kr = {
|
|
|
4693
4693
|
theme: {
|
|
4694
4694
|
extend: {
|
|
4695
4695
|
colors: {
|
|
4696
|
+
category: "hsl(var(--tf-category) / <alpha-value>)",
|
|
4697
|
+
label: "hsl(var(--tf-label) / <alpha-value>)",
|
|
4696
4698
|
background: "hsl(var(--tf-background) / <alpha-value>)",
|
|
4697
|
-
foreground: "hsl(var(--tf-foreground) / <alpha-value>)",
|
|
4698
4699
|
primary: {
|
|
4699
4700
|
DEFAULT: "hsl(var(--tf-primary) / <alpha-value>)",
|
|
4700
4701
|
foreground: "hsl(var(--tf-primary-foreground) / <alpha-value>)"
|
package/lib/common/label.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twintag/twintag-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"author": "Twintag",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tailwindcss": "^3.3.6",
|
|
44
44
|
"vite": "^4.4.9",
|
|
45
45
|
"vite-plugin-dts": "^3.0.3",
|
|
46
|
-
"eslint-config-custom": "1.0.0",
|
|
47
46
|
"tsconfig": "0.0.0",
|
|
48
|
-
"twintag-types": "0.2.0"
|
|
47
|
+
"twintag-types": "0.2.0",
|
|
48
|
+
"eslint-config-custom": "1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/tailwind.config.ts
CHANGED
|
@@ -7,8 +7,9 @@ const config = {
|
|
|
7
7
|
theme: {
|
|
8
8
|
extend: {
|
|
9
9
|
colors: {
|
|
10
|
+
category: 'hsl(var(--tf-category) / <alpha-value>)',
|
|
11
|
+
label: 'hsl(var(--tf-label) / <alpha-value>)',
|
|
10
12
|
background: 'hsl(var(--tf-background) / <alpha-value>)',
|
|
11
|
-
foreground: 'hsl(var(--tf-foreground) / <alpha-value>)',
|
|
12
13
|
primary: {
|
|
13
14
|
DEFAULT: 'hsl(var(--tf-primary) / <alpha-value>)',
|
|
14
15
|
foreground: 'hsl(var(--tf-primary-foreground) / <alpha-value>)',
|