@tipp/ui 0.0.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/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/alert-dialog-D1kwc80j.js +143 -0
- package/dist/as-child.prop-Dmk_dqBI.js +4 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/theme-provider.css +1 -0
- package/dist/atoms/alert-dialog.d.ts +2 -0
- package/dist/atoms/alert-dialog.d.ts.map +1 -0
- package/dist/atoms/alert-dialog.js +4 -0
- package/dist/atoms/aspect-ratio.d.ts +2 -0
- package/dist/atoms/aspect-ratio.d.ts.map +1 -0
- package/dist/atoms/aspect-ratio.js +4 -0
- package/dist/atoms/avatar.d.ts +2 -0
- package/dist/atoms/avatar.d.ts.map +1 -0
- package/dist/atoms/avatar.js +4 -0
- package/dist/atoms/badge.d.ts +2 -0
- package/dist/atoms/badge.d.ts.map +1 -0
- package/dist/atoms/badge.js +4 -0
- package/dist/atoms/blockquote.d.ts +2 -0
- package/dist/atoms/blockquote.d.ts.map +1 -0
- package/dist/atoms/blockquote.js +4 -0
- package/dist/atoms/box.d.ts +2 -0
- package/dist/atoms/box.d.ts.map +1 -0
- package/dist/atoms/box.js +4 -0
- package/dist/atoms/button.d.ts +2 -0
- package/dist/atoms/button.d.ts.map +1 -0
- package/dist/atoms/button.js +4 -0
- package/dist/atoms/call-out.d.ts +2 -0
- package/dist/atoms/call-out.d.ts.map +1 -0
- package/dist/atoms/call-out.js +4 -0
- package/dist/atoms/card.d.ts +2 -0
- package/dist/atoms/card.d.ts.map +1 -0
- package/dist/atoms/card.js +4 -0
- package/dist/atoms/check-box-card.d.ts +2 -0
- package/dist/atoms/check-box-card.d.ts.map +1 -0
- package/dist/atoms/check-box-card.js +4 -0
- package/dist/atoms/check-box-group.d.ts +2 -0
- package/dist/atoms/check-box-group.d.ts.map +1 -0
- package/dist/atoms/check-box-group.js +4 -0
- package/dist/atoms/check-box.d.ts +2 -0
- package/dist/atoms/check-box.d.ts.map +1 -0
- package/dist/atoms/check-box.js +4 -0
- package/dist/atoms/code.d.ts +2 -0
- package/dist/atoms/code.d.ts.map +1 -0
- package/dist/atoms/code.js +4 -0
- package/dist/atoms/container.d.ts +2 -0
- package/dist/atoms/container.d.ts.map +1 -0
- package/dist/atoms/container.js +4 -0
- package/dist/atoms/data-list.d.ts +2 -0
- package/dist/atoms/data-list.d.ts.map +1 -0
- package/dist/atoms/data-list.js +4 -0
- package/dist/atoms/date-picker/index.d.ts +7 -0
- package/dist/atoms/date-picker/index.d.ts.map +1 -0
- package/dist/atoms/date-picker/index.js +6252 -0
- package/dist/atoms/dialog.d.ts +2 -0
- package/dist/atoms/dialog.d.ts.map +1 -0
- package/dist/atoms/dialog.js +4 -0
- package/dist/atoms/dropdown-menu.d.ts +2 -0
- package/dist/atoms/dropdown-menu.d.ts.map +1 -0
- package/dist/atoms/dropdown-menu.js +4 -0
- package/dist/atoms/em.d.ts +2 -0
- package/dist/atoms/em.d.ts.map +1 -0
- package/dist/atoms/em.js +4 -0
- package/dist/atoms/flex.d.ts +2 -0
- package/dist/atoms/flex.d.ts.map +1 -0
- package/dist/atoms/flex.js +4 -0
- package/dist/atoms/grid.d.ts +2 -0
- package/dist/atoms/grid.d.ts.map +1 -0
- package/dist/atoms/grid.js +4 -0
- package/dist/atoms/heading.d.ts +2 -0
- package/dist/atoms/heading.d.ts.map +1 -0
- package/dist/atoms/heading.js +4 -0
- package/dist/atoms/hover-card.d.ts +2 -0
- package/dist/atoms/hover-card.d.ts.map +1 -0
- package/dist/atoms/hover-card.js +4 -0
- package/dist/atoms/icon-button.d.ts +2 -0
- package/dist/atoms/icon-button.d.ts.map +1 -0
- package/dist/atoms/icon-button.js +4 -0
- package/dist/atoms/inset.d.ts +2 -0
- package/dist/atoms/inset.d.ts.map +1 -0
- package/dist/atoms/inset.js +4 -0
- package/dist/atoms/kbd.d.ts +2 -0
- package/dist/atoms/kbd.d.ts.map +1 -0
- package/dist/atoms/kbd.js +4 -0
- package/dist/atoms/link.d.ts +2 -0
- package/dist/atoms/link.d.ts.map +1 -0
- package/dist/atoms/link.js +4 -0
- package/dist/atoms/popover.d.ts +2 -0
- package/dist/atoms/popover.d.ts.map +1 -0
- package/dist/atoms/popover.js +4 -0
- package/dist/atoms/progress.d.ts +2 -0
- package/dist/atoms/progress.d.ts.map +1 -0
- package/dist/atoms/progress.js +4 -0
- package/dist/atoms/quote.d.ts +2 -0
- package/dist/atoms/quote.d.ts.map +1 -0
- package/dist/atoms/quote.js +4 -0
- package/dist/atoms/radio-cards.d.ts +2 -0
- package/dist/atoms/radio-cards.d.ts.map +1 -0
- package/dist/atoms/radio-cards.js +4 -0
- package/dist/atoms/radio-group.d.ts +2 -0
- package/dist/atoms/radio-group.d.ts.map +1 -0
- package/dist/atoms/radio-group.js +4 -0
- package/dist/atoms/radio.d.ts +2 -0
- package/dist/atoms/radio.d.ts.map +1 -0
- package/dist/atoms/radio.js +4 -0
- package/dist/atoms/scroll-area.d.ts +2 -0
- package/dist/atoms/scroll-area.d.ts.map +1 -0
- package/dist/atoms/scroll-area.js +4 -0
- package/dist/atoms/section.d.ts +2 -0
- package/dist/atoms/section.d.ts.map +1 -0
- package/dist/atoms/section.js +4 -0
- package/dist/atoms/segmented-control.d.ts +2 -0
- package/dist/atoms/segmented-control.d.ts.map +1 -0
- package/dist/atoms/segmented-control.js +4 -0
- package/dist/atoms/select.d.ts +2 -0
- package/dist/atoms/select.d.ts.map +1 -0
- package/dist/atoms/select.js +4 -0
- package/dist/atoms/separator.d.ts +2 -0
- package/dist/atoms/separator.d.ts.map +1 -0
- package/dist/atoms/separator.js +4 -0
- package/dist/atoms/skeleton.d.ts +2 -0
- package/dist/atoms/skeleton.d.ts.map +1 -0
- package/dist/atoms/skeleton.js +4 -0
- package/dist/atoms/strong.d.ts +2 -0
- package/dist/atoms/strong.d.ts.map +1 -0
- package/dist/atoms/strong.js +4 -0
- package/dist/atoms/switch.d.ts +2 -0
- package/dist/atoms/switch.d.ts.map +1 -0
- package/dist/atoms/switch.js +4 -0
- package/dist/atoms/tab-nav.d.ts +2 -0
- package/dist/atoms/tab-nav.d.ts.map +1 -0
- package/dist/atoms/tab-nav.js +4 -0
- package/dist/atoms/tabs.d.ts +2 -0
- package/dist/atoms/tabs.d.ts.map +1 -0
- package/dist/atoms/tabs.js +4 -0
- package/dist/atoms/text-area.d.ts +2 -0
- package/dist/atoms/text-area.d.ts.map +1 -0
- package/dist/atoms/text-area.js +4 -0
- package/dist/atoms/text-field.d.ts +2 -0
- package/dist/atoms/text-field.d.ts.map +1 -0
- package/dist/atoms/text-field.js +4 -0
- package/dist/atoms/text.d.ts +2 -0
- package/dist/atoms/text.d.ts.map +1 -0
- package/dist/atoms/text.js +4 -0
- package/dist/atoms/tooltip.d.ts +2 -0
- package/dist/atoms/tooltip.d.ts.map +1 -0
- package/dist/atoms/tooltip.js +4 -0
- package/dist/avatar-CzjF7NU3.js +85 -0
- package/dist/badge-CyCKR1Mg.js +17 -0
- package/dist/base-button-i6PPsCdc.js +27 -0
- package/dist/base-checkbox.props-Bk4tRAY3.js +132 -0
- package/dist/base-tab-list.props-hSCtMjn2.js +6 -0
- package/dist/blockquote-7gbFi2zf.js +12 -0
- package/dist/box-C071drmz.js +15 -0
- package/dist/button-DpVTjBrm.js +8 -0
- package/dist/callout-K8Sm-FQT.js +31 -0
- package/dist/card-BX55hIZ3.js +14 -0
- package/dist/chart-BkQy6rli.js +14554 -0
- package/dist/charts/chart.d.ts +5 -0
- package/dist/charts/chart.d.ts.map +1 -0
- package/dist/charts/chart.js +5 -0
- package/dist/charts-DLVAfnBm.js +10821 -0
- package/dist/checkbox-DhyOlPGH.js +14 -0
- package/dist/checkbox-cards-C9ZL84Ml.js +30 -0
- package/dist/checkbox-group-CoGGFZk-.js +33 -0
- package/dist/checkbox-group.primitive-DuerVc21.js +33 -0
- package/dist/code-BJLnPPB0.js +18 -0
- package/dist/color.prop-C1QiQO-6.js +7 -0
- package/dist/components-MfAfNvnv.js +9496 -0
- package/dist/container-DBjG5yxq.js +25 -0
- package/dist/customGraphicKeyframeAnimation-BL_3uxsi.js +7247 -0
- package/dist/data-list-DXP5-QCf.js +36 -0
- package/dist/dialog-BYhSvWm4.js +35 -0
- package/dist/dialog.props-DOLpgre6.js +255 -0
- package/dist/dropdown-menu-B34afpui.js +870 -0
- package/dist/em-CxdNq9zL.js +14 -0
- package/dist/extract-props-CujC3IXc.js +36 -0
- package/dist/features-Dezrf84n.js +1221 -0
- package/dist/flex-BY0BY2TI.js +15 -0
- package/dist/flex.props-DNysJgUY.js +9 -0
- package/dist/floating-ui.dom-Pi62VK_7.js +1084 -0
- package/dist/gap.props-DSJMAfZN.js +4 -0
- package/dist/get-subtree-DW8zSv8E.js +10 -0
- package/dist/grid-BcK4nkHz.js +24 -0
- package/dist/heading-BNO0Ttlj.js +19 -0
- package/dist/height.props-COFNk7EY.js +4 -0
- package/dist/high-contrast.prop-BGHYAKb9.js +4 -0
- package/dist/hover-card-C86JJDjR.js +198 -0
- package/dist/icon-button-BiYGmnT9.js +8 -0
- package/dist/icon.d.ts +2 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +11 -0
- package/dist/icons-B-Giprot.js +12 -0
- package/dist/index--Kmch3aI.js +19069 -0
- package/dist/index-BGHne2on.js +66 -0
- package/dist/index-BGU-u5wR.js +48 -0
- package/dist/index-BLlMKB6v.js +35 -0
- package/dist/index-BQ0fI5eo.js +14 -0
- package/dist/index-BUzFfodu.js +134 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-CBWtNqYj.js +218 -0
- package/dist/index-CMas7-m1.js +32 -0
- package/dist/index-CWqnkG-p.js +67 -0
- package/dist/index-Chf_UJBH.js +27 -0
- package/dist/index-DIx1pnae.js +14 -0
- package/dist/index-DLeNytVF.js +9 -0
- package/dist/index-DQu1RzkN.js +41 -0
- package/dist/index-DbtrAyPY.js +48 -0
- package/dist/index-Dei2uCbS.js +16 -0
- package/dist/index-DgaYqXVD.js +178 -0
- package/dist/index-DoIe4nVR.js +42 -0
- package/dist/index-DxFjXziY.js +32 -0
- package/dist/index-J-pu07YR.js +13 -0
- package/dist/index-KdR831JA.js +669 -0
- package/dist/index-W3PwLn5U.js +531 -0
- package/dist/inset-B8urCQ4C.js +18 -0
- package/dist/kbd-D56CgGV_.js +14 -0
- package/dist/labelGuideHelper-CcngZb4a.js +224 -0
- package/dist/labelLayoutHelper-ZwNI-nB_.js +211 -0
- package/dist/layout.props-CKENeFj3.js +7 -0
- package/dist/link-C49WMJKQ.js +18 -0
- package/dist/main.d.ts +53 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +113 -0
- package/dist/map-prop-values-pmPyYjFd.js +22 -0
- package/dist/margin.props-ClY9lUrP.js +4 -0
- package/dist/merge-styles-B1pWeU8q.js +68 -0
- package/dist/padding.props-DHz7-7K8.js +4 -0
- package/dist/popover-pOSzBkqq.js +251 -0
- package/dist/progress-WApo2WEO.js +93 -0
- package/dist/quote-BSvwdJNj.js +14 -0
- package/dist/radio-DAyHCNZG.js +16 -0
- package/dist/radio-cards-z3X1kLpc.js +24 -0
- package/dist/radio-group-B9V-hq03.js +33 -0
- package/dist/radius.prop-CH9lMann.js +5 -0
- package/dist/react-icons.esm-D7QiCqNB.js +147 -0
- package/dist/renderers-Bb3odh12.js +1250 -0
- package/dist/require-react-element-D_SFiikK.js +8 -0
- package/dist/scroll-area-eDccU6Jg.js +26 -0
- package/dist/section-DMnSE0_D.js +19 -0
- package/dist/segmented-control-kJXQrfMF.js +173 -0
- package/dist/select-BEBm0Xc8.js +832 -0
- package/dist/separator-Ba0Kgvyq.js +13 -0
- package/dist/skeleton-CUQFQIjD.js +17 -0
- package/dist/strong-ejFErGyG.js +14 -0
- package/dist/switch-BhvdoZJT.js +123 -0
- package/dist/tab-nav-B-m2dwou.js +608 -0
- package/dist/tabs-33tSzanC.js +186 -0
- package/dist/text-YN9kC4kc.js +19 -0
- package/dist/text-align.prop-BXpq--l6.js +5 -0
- package/dist/text-area-DBR9oL6S.js +14 -0
- package/dist/text-field-CgtdAE3v.js +43 -0
- package/dist/theme/theme-provider.d.ts +10 -0
- package/dist/theme/theme-provider.d.ts.map +1 -0
- package/dist/theme/theme-provider.js +8 -0
- package/dist/theme/use-theme.d.ts +2 -0
- package/dist/theme/use-theme.d.ts.map +1 -0
- package/dist/theme/use-theme.js +4 -0
- package/dist/theme-7Cjo8_Y6.js +795 -0
- package/dist/tooltip-jaEtV9Zg.js +14 -0
- package/dist/truncate.prop-BeER2hSO.js +5 -0
- package/dist/ui-props/index.d.ts +3 -0
- package/dist/ui-props/index.d.ts.map +1 -0
- package/dist/ui-props/index.js +686 -0
- package/dist/weight.prop-DBiHURhF.js +4 -0
- package/dist/width.props-BFC_4RNX.js +4 -0
- package/package.json +48 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { P as m, D as O, r as _, a as J, d as K, S as B, b as Q, l as D, i as V, c as W, q as X, e as $, f as E, n as G } from "./chart-BkQy6rli.js";
|
|
2
|
+
var q = Math.PI * 2, I = E.CMD, N = ["top", "right", "bottom", "left"];
|
|
3
|
+
function rr(e, n, o, r, v) {
|
|
4
|
+
var f = o.width, s = o.height;
|
|
5
|
+
switch (e) {
|
|
6
|
+
case "top":
|
|
7
|
+
r.set(o.x + f / 2, o.y - n), v.set(0, -1);
|
|
8
|
+
break;
|
|
9
|
+
case "bottom":
|
|
10
|
+
r.set(o.x + f / 2, o.y + s + n), v.set(0, 1);
|
|
11
|
+
break;
|
|
12
|
+
case "left":
|
|
13
|
+
r.set(o.x - n, o.y + s / 2), v.set(-1, 0);
|
|
14
|
+
break;
|
|
15
|
+
case "right":
|
|
16
|
+
r.set(o.x + f + n, o.y + s / 2), v.set(1, 0);
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function ar(e, n, o, r, v, f, s, i, u) {
|
|
21
|
+
s -= e, i -= n;
|
|
22
|
+
var h = Math.sqrt(s * s + i * i);
|
|
23
|
+
s /= h, i /= h;
|
|
24
|
+
var a = s * o + e, c = i * o + n;
|
|
25
|
+
if (Math.abs(r - v) % q < 1e-4)
|
|
26
|
+
return u[0] = a, u[1] = c, h - o;
|
|
27
|
+
if (f) {
|
|
28
|
+
var b = r;
|
|
29
|
+
r = G(v), v = G(b);
|
|
30
|
+
} else
|
|
31
|
+
r = G(r), v = G(v);
|
|
32
|
+
r > v && (v += q);
|
|
33
|
+
var t = Math.atan2(i, s);
|
|
34
|
+
if (t < 0 && (t += q), t >= r && t <= v || t + q >= r && t + q <= v)
|
|
35
|
+
return u[0] = a, u[1] = c, h - o;
|
|
36
|
+
var x = o * Math.cos(r) + e, M = o * Math.sin(r) + n, p = o * Math.cos(v) + e, S = o * Math.sin(v) + n, k = (x - s) * (x - s) + (M - i) * (M - i), w = (p - s) * (p - s) + (S - i) * (S - i);
|
|
37
|
+
return k < w ? (u[0] = x, u[1] = M, Math.sqrt(k)) : (u[0] = p, u[1] = S, Math.sqrt(w));
|
|
38
|
+
}
|
|
39
|
+
function R(e, n, o, r, v, f, s, i) {
|
|
40
|
+
var u = v - e, h = f - n, a = o - e, c = r - n, b = Math.sqrt(a * a + c * c);
|
|
41
|
+
a /= b, c /= b;
|
|
42
|
+
var t = u * a + h * c, x = t / b;
|
|
43
|
+
i && (x = Math.min(Math.max(x, 0), 1)), x *= b;
|
|
44
|
+
var M = s[0] = e + x * a, p = s[1] = n + x * c;
|
|
45
|
+
return Math.sqrt((M - v) * (M - v) + (p - f) * (p - f));
|
|
46
|
+
}
|
|
47
|
+
function U(e, n, o, r, v, f, s) {
|
|
48
|
+
o < 0 && (e = e + o, o = -o), r < 0 && (n = n + r, r = -r);
|
|
49
|
+
var i = e + o, u = n + r, h = s[0] = Math.min(Math.max(v, e), i), a = s[1] = Math.min(Math.max(f, n), u);
|
|
50
|
+
return Math.sqrt((h - v) * (h - v) + (a - f) * (a - f));
|
|
51
|
+
}
|
|
52
|
+
var T = [];
|
|
53
|
+
function er(e, n, o) {
|
|
54
|
+
var r = U(n.x, n.y, n.width, n.height, e.x, e.y, T);
|
|
55
|
+
return o.set(T[0], T[1]), r;
|
|
56
|
+
}
|
|
57
|
+
function vr(e, n, o) {
|
|
58
|
+
for (var r = 0, v = 0, f = 0, s = 0, i, u, h = 1 / 0, a = n.data, c = e.x, b = e.y, t = 0; t < a.length; ) {
|
|
59
|
+
var x = a[t++];
|
|
60
|
+
t === 1 && (r = a[t], v = a[t + 1], f = r, s = v);
|
|
61
|
+
var M = h;
|
|
62
|
+
switch (x) {
|
|
63
|
+
case I.M:
|
|
64
|
+
f = a[t++], s = a[t++], r = f, v = s;
|
|
65
|
+
break;
|
|
66
|
+
case I.L:
|
|
67
|
+
M = R(r, v, a[t], a[t + 1], c, b, T, !0), r = a[t++], v = a[t++];
|
|
68
|
+
break;
|
|
69
|
+
case I.C:
|
|
70
|
+
M = $(r, v, a[t++], a[t++], a[t++], a[t++], a[t], a[t + 1], c, b, T), r = a[t++], v = a[t++];
|
|
71
|
+
break;
|
|
72
|
+
case I.Q:
|
|
73
|
+
M = X(r, v, a[t++], a[t++], a[t], a[t + 1], c, b, T), r = a[t++], v = a[t++];
|
|
74
|
+
break;
|
|
75
|
+
case I.A:
|
|
76
|
+
var p = a[t++], S = a[t++], k = a[t++], w = a[t++], j = a[t++], A = a[t++];
|
|
77
|
+
t += 1;
|
|
78
|
+
var Y = !!(1 - a[t++]);
|
|
79
|
+
i = Math.cos(j) * k + p, u = Math.sin(j) * w + S, t <= 1 && (f = i, s = u);
|
|
80
|
+
var Z = (c - p) * w / k + p;
|
|
81
|
+
M = ar(p, S, w, j, j + A, Y, Z, b, T), r = Math.cos(j + A) * k + p, v = Math.sin(j + A) * w + S;
|
|
82
|
+
break;
|
|
83
|
+
case I.R:
|
|
84
|
+
f = r = a[t++], s = v = a[t++];
|
|
85
|
+
var F = a[t++], H = a[t++];
|
|
86
|
+
M = U(f, s, F, H, c, b, T);
|
|
87
|
+
break;
|
|
88
|
+
case I.Z:
|
|
89
|
+
M = R(r, v, f, s, c, b, T, !0), r = f, v = s;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
M < h && (h = M, o.set(T[0], T[1]));
|
|
93
|
+
}
|
|
94
|
+
return h;
|
|
95
|
+
}
|
|
96
|
+
var L = new m(), y = new m(), l = new m(), d = new m(), P = new m();
|
|
97
|
+
function sr(e, n) {
|
|
98
|
+
if (e) {
|
|
99
|
+
var o = e.getTextGuideLine(), r = e.getTextContent();
|
|
100
|
+
if (r && o) {
|
|
101
|
+
var v = e.textGuideLineConfig || {}, f = [[0, 0], [0, 0], [0, 0]], s = v.candidates || N, i = r.getBoundingRect().clone();
|
|
102
|
+
i.applyTransform(r.getComputedTransform());
|
|
103
|
+
var u = 1 / 0, h = v.anchor, a = e.getComputedTransform(), c = a && V([], a), b = n.get("length2") || 0;
|
|
104
|
+
h && l.copy(h);
|
|
105
|
+
for (var t = 0; t < s.length; t++) {
|
|
106
|
+
var x = s[t];
|
|
107
|
+
rr(x, 0, i, L, d), m.scaleAndAdd(y, L, d, b), y.transform(c);
|
|
108
|
+
var M = e.getBoundingRect(), p = h ? h.distance(y) : e instanceof W ? vr(y, e.path, l) : er(y, M, l);
|
|
109
|
+
p < u && (u = p, y.transform(a), l.transform(a), l.toArray(f[0]), y.toArray(f[1]), L.toArray(f[2]));
|
|
110
|
+
}
|
|
111
|
+
or(f, n.get("minTurnAngle")), o.setShape({
|
|
112
|
+
points: f
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
var g = [], C = new m();
|
|
118
|
+
function or(e, n) {
|
|
119
|
+
if (n <= 180 && n > 0) {
|
|
120
|
+
n = n / 180 * Math.PI, L.fromArray(e[0]), y.fromArray(e[1]), l.fromArray(e[2]), m.sub(d, L, y), m.sub(P, l, y);
|
|
121
|
+
var o = d.len(), r = P.len();
|
|
122
|
+
if (!(o < 1e-3 || r < 1e-3)) {
|
|
123
|
+
d.scale(1 / o), P.scale(1 / r);
|
|
124
|
+
var v = d.dot(P), f = Math.cos(n);
|
|
125
|
+
if (f < v) {
|
|
126
|
+
var s = R(y.x, y.y, l.x, l.y, L.x, L.y, g, !1);
|
|
127
|
+
C.fromArray(g), C.scaleAndAdd(P, s / Math.tan(Math.PI - n));
|
|
128
|
+
var i = l.x !== y.x ? (C.x - y.x) / (l.x - y.x) : (C.y - y.y) / (l.y - y.y);
|
|
129
|
+
if (isNaN(i))
|
|
130
|
+
return;
|
|
131
|
+
i < 0 ? m.copy(C, y) : i > 1 && m.copy(C, l), C.toArray(e[1]);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function fr(e, n, o) {
|
|
137
|
+
if (o <= 180 && o > 0) {
|
|
138
|
+
o = o / 180 * Math.PI, L.fromArray(e[0]), y.fromArray(e[1]), l.fromArray(e[2]), m.sub(d, y, L), m.sub(P, l, y);
|
|
139
|
+
var r = d.len(), v = P.len();
|
|
140
|
+
if (!(r < 1e-3 || v < 1e-3)) {
|
|
141
|
+
d.scale(1 / r), P.scale(1 / v);
|
|
142
|
+
var f = d.dot(n), s = Math.cos(o);
|
|
143
|
+
if (f < s) {
|
|
144
|
+
var i = R(y.x, y.y, l.x, l.y, L.x, L.y, g, !1);
|
|
145
|
+
C.fromArray(g);
|
|
146
|
+
var u = Math.PI / 2, h = Math.acos(P.dot(n)), a = u + h - o;
|
|
147
|
+
if (a >= u)
|
|
148
|
+
m.copy(C, l);
|
|
149
|
+
else {
|
|
150
|
+
C.scaleAndAdd(P, i / Math.tan(Math.PI / 2 - a));
|
|
151
|
+
var c = l.x !== y.x ? (C.x - y.x) / (l.x - y.x) : (C.y - y.y) / (l.y - y.y);
|
|
152
|
+
if (isNaN(c))
|
|
153
|
+
return;
|
|
154
|
+
c < 0 ? m.copy(C, y) : c > 1 && m.copy(C, l);
|
|
155
|
+
}
|
|
156
|
+
C.toArray(e[1]);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function z(e, n, o, r) {
|
|
162
|
+
var v = o === "normal", f = v ? e : e.ensureState(o);
|
|
163
|
+
f.ignore = n;
|
|
164
|
+
var s = r.get("smooth");
|
|
165
|
+
s && s === !0 && (s = 0.3), f.shape = f.shape || {}, s > 0 && (f.shape.smooth = s);
|
|
166
|
+
var i = r.getModel("lineStyle").getLineStyle();
|
|
167
|
+
v ? e.useStyle(i) : f.style = i;
|
|
168
|
+
}
|
|
169
|
+
function tr(e, n) {
|
|
170
|
+
var o = n.smooth, r = n.points;
|
|
171
|
+
if (r)
|
|
172
|
+
if (e.moveTo(r[0][0], r[0][1]), o > 0 && r.length >= 3) {
|
|
173
|
+
var v = Q(r[0], r[1]), f = Q(r[1], r[2]);
|
|
174
|
+
if (!v || !f) {
|
|
175
|
+
e.lineTo(r[1][0], r[1][1]), e.lineTo(r[2][0], r[2][1]);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
var s = Math.min(v, f) * o, i = D([], r[1], r[0], s / v), u = D([], r[1], r[2], s / f), h = D([], i, u, 0.5);
|
|
179
|
+
e.bezierCurveTo(i[0], i[1], i[0], i[1], h[0], h[1]), e.bezierCurveTo(u[0], u[1], u[0], u[1], r[2][0], r[2][1]);
|
|
180
|
+
} else
|
|
181
|
+
for (var a = 1; a < r.length; a++)
|
|
182
|
+
e.lineTo(r[a][0], r[a][1]);
|
|
183
|
+
}
|
|
184
|
+
function ir(e, n, o) {
|
|
185
|
+
var r = e.getTextGuideLine(), v = e.getTextContent();
|
|
186
|
+
if (!v) {
|
|
187
|
+
r && e.removeTextGuideLine();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
for (var f = n.normal, s = f.get("show"), i = v.ignore, u = 0; u < O.length; u++) {
|
|
191
|
+
var h = O[u], a = n[h], c = h === "normal";
|
|
192
|
+
if (a) {
|
|
193
|
+
var b = a.get("show"), t = c ? i : _(v.states[h] && v.states[h].ignore, i);
|
|
194
|
+
if (t || !_(b, s)) {
|
|
195
|
+
var x = c ? r : r && r.states[h];
|
|
196
|
+
x && (x.ignore = !0), r && z(r, !0, h, a);
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
r || (r = new J(), e.setTextGuideLine(r), !c && (i || !s) && z(r, !0, "normal", n.normal), e.stateProxy && (r.stateProxy = e.stateProxy)), z(r, !1, h, a);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (r) {
|
|
203
|
+
K(r.style, o), r.style.fill = null;
|
|
204
|
+
var M = f.get("showAbove"), p = e.textGuideLineConfig = e.textGuideLineConfig || {};
|
|
205
|
+
p.showAbove = M || !1, r.buildPath = tr;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function hr(e, n) {
|
|
209
|
+
n = n || "labelLine";
|
|
210
|
+
for (var o = {
|
|
211
|
+
normal: e.getModel(n)
|
|
212
|
+
}, r = 0; r < B.length; r++) {
|
|
213
|
+
var v = B[r];
|
|
214
|
+
o[v] = e.getModel([v, n]);
|
|
215
|
+
}
|
|
216
|
+
return o;
|
|
217
|
+
}
|
|
218
|
+
export {
|
|
219
|
+
fr as a,
|
|
220
|
+
hr as g,
|
|
221
|
+
or as l,
|
|
222
|
+
ir as s,
|
|
223
|
+
sr as u
|
|
224
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { O as z, B as J } from "./chart-BkQy6rli.js";
|
|
2
|
+
function B(e) {
|
|
3
|
+
return e == null ? 0 : e.length || 1;
|
|
4
|
+
}
|
|
5
|
+
function b(e) {
|
|
6
|
+
return e;
|
|
7
|
+
}
|
|
8
|
+
var U = (
|
|
9
|
+
/** @class */
|
|
10
|
+
function() {
|
|
11
|
+
function e(t, u, a, o, n, r) {
|
|
12
|
+
this._old = t, this._new = u, this._oldKeyGetter = a || b, this._newKeyGetter = o || b, this.context = n, this._diffModeMultiple = r === "multiple";
|
|
13
|
+
}
|
|
14
|
+
return e.prototype.add = function(t) {
|
|
15
|
+
return this._add = t, this;
|
|
16
|
+
}, e.prototype.update = function(t) {
|
|
17
|
+
return this._update = t, this;
|
|
18
|
+
}, e.prototype.updateManyToOne = function(t) {
|
|
19
|
+
return this._updateManyToOne = t, this;
|
|
20
|
+
}, e.prototype.updateOneToMany = function(t) {
|
|
21
|
+
return this._updateOneToMany = t, this;
|
|
22
|
+
}, e.prototype.updateManyToMany = function(t) {
|
|
23
|
+
return this._updateManyToMany = t, this;
|
|
24
|
+
}, e.prototype.remove = function(t) {
|
|
25
|
+
return this._remove = t, this;
|
|
26
|
+
}, e.prototype.execute = function() {
|
|
27
|
+
this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]();
|
|
28
|
+
}, e.prototype._executeOneToOne = function() {
|
|
29
|
+
var t = this._old, u = this._new, a = {}, o = new Array(t.length), n = new Array(u.length);
|
|
30
|
+
this._initIndexMap(t, null, o, "_oldKeyGetter"), this._initIndexMap(u, a, n, "_newKeyGetter");
|
|
31
|
+
for (var r = 0; r < t.length; r++) {
|
|
32
|
+
var h = o[r], i = a[h], f = B(i);
|
|
33
|
+
if (f > 1) {
|
|
34
|
+
var c = i.shift();
|
|
35
|
+
i.length === 1 && (a[h] = i[0]), this._update && this._update(c, r);
|
|
36
|
+
} else f === 1 ? (a[h] = null, this._update && this._update(i, r)) : this._remove && this._remove(r);
|
|
37
|
+
}
|
|
38
|
+
this._performRestAdd(n, a);
|
|
39
|
+
}, e.prototype._executeMultiple = function() {
|
|
40
|
+
var t = this._old, u = this._new, a = {}, o = {}, n = [], r = [];
|
|
41
|
+
this._initIndexMap(t, a, n, "_oldKeyGetter"), this._initIndexMap(u, o, r, "_newKeyGetter");
|
|
42
|
+
for (var h = 0; h < n.length; h++) {
|
|
43
|
+
var i = n[h], f = a[i], c = o[i], p = B(f), O = B(c);
|
|
44
|
+
if (p > 1 && O === 1)
|
|
45
|
+
this._updateManyToOne && this._updateManyToOne(c, f), o[i] = null;
|
|
46
|
+
else if (p === 1 && O > 1)
|
|
47
|
+
this._updateOneToMany && this._updateOneToMany(c, f), o[i] = null;
|
|
48
|
+
else if (p === 1 && O === 1)
|
|
49
|
+
this._update && this._update(c, f), o[i] = null;
|
|
50
|
+
else if (p > 1 && O > 1)
|
|
51
|
+
this._updateManyToMany && this._updateManyToMany(c, f), o[i] = null;
|
|
52
|
+
else if (p > 1)
|
|
53
|
+
for (var d = 0; d < p; d++)
|
|
54
|
+
this._remove && this._remove(f[d]);
|
|
55
|
+
else
|
|
56
|
+
this._remove && this._remove(f);
|
|
57
|
+
}
|
|
58
|
+
this._performRestAdd(r, o);
|
|
59
|
+
}, e.prototype._performRestAdd = function(t, u) {
|
|
60
|
+
for (var a = 0; a < t.length; a++) {
|
|
61
|
+
var o = t[a], n = u[o], r = B(n);
|
|
62
|
+
if (r > 1)
|
|
63
|
+
for (var h = 0; h < r; h++)
|
|
64
|
+
this._add && this._add(n[h]);
|
|
65
|
+
else r === 1 && this._add && this._add(n);
|
|
66
|
+
u[o] = null;
|
|
67
|
+
}
|
|
68
|
+
}, e.prototype._initIndexMap = function(t, u, a, o) {
|
|
69
|
+
for (var n = this._diffModeMultiple, r = 0; r < t.length; r++) {
|
|
70
|
+
var h = "_ec_" + this[o](t[r], r);
|
|
71
|
+
if (n || (a[r] = h), !!u) {
|
|
72
|
+
var i = u[h], f = B(i);
|
|
73
|
+
f === 0 ? (u[h] = r, n && a.push(h)) : f === 1 ? u[h] = [i, r] : i.push(r);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, e;
|
|
77
|
+
}()
|
|
78
|
+
);
|
|
79
|
+
function Z(e) {
|
|
80
|
+
for (var t = [], u = 0; u < e.length; u++) {
|
|
81
|
+
var a = e[u];
|
|
82
|
+
if (!a.defaultAttr.ignore) {
|
|
83
|
+
var o = a.label, n = o.getComputedTransform(), r = o.getBoundingRect(), h = !n || n[1] < 1e-5 && n[2] < 1e-5, i = o.style.margin || 0, f = r.clone();
|
|
84
|
+
f.applyTransform(n), f.x -= i / 2, f.y -= i / 2, f.width += i, f.height += i;
|
|
85
|
+
var c = h ? new z(r, n) : null;
|
|
86
|
+
t.push({
|
|
87
|
+
label: o,
|
|
88
|
+
labelLine: a.labelLine,
|
|
89
|
+
rect: f,
|
|
90
|
+
localRect: r,
|
|
91
|
+
obb: c,
|
|
92
|
+
priority: a.priority,
|
|
93
|
+
defaultAttr: a.defaultAttr,
|
|
94
|
+
layoutOption: a.computedLayoutOption,
|
|
95
|
+
axisAligned: h,
|
|
96
|
+
transform: n
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return t;
|
|
101
|
+
}
|
|
102
|
+
function H(e, t, u, a, o, n) {
|
|
103
|
+
var r = e.length;
|
|
104
|
+
if (r < 2)
|
|
105
|
+
return;
|
|
106
|
+
e.sort(function(s, A) {
|
|
107
|
+
return s.rect[t] - A.rect[t];
|
|
108
|
+
});
|
|
109
|
+
for (var h = 0, i, f = !1, c = 0, p = 0; p < r; p++) {
|
|
110
|
+
var O = e[p], d = O.rect;
|
|
111
|
+
i = d[t] - h, i < 0 && (d[t] -= i, O.label[t] -= i, f = !0);
|
|
112
|
+
var g = Math.max(-i, 0);
|
|
113
|
+
c += g, h = d[t] + d[u];
|
|
114
|
+
}
|
|
115
|
+
c > 0 && n && q(-c / r, 0, r);
|
|
116
|
+
var G = e[0], l = e[r - 1], M, T;
|
|
117
|
+
P(), M < 0 && E(-M, 0.8), T < 0 && E(T, 0.8), P(), S(M, T, 1), S(T, M, -1), P(), M < 0 && W(-M), T < 0 && W(T);
|
|
118
|
+
function P() {
|
|
119
|
+
M = G.rect[t] - a, T = o - l.rect[t] - l.rect[u];
|
|
120
|
+
}
|
|
121
|
+
function S(s, A, y) {
|
|
122
|
+
if (s < 0) {
|
|
123
|
+
var _ = Math.min(A, -s);
|
|
124
|
+
if (_ > 0) {
|
|
125
|
+
q(_ * y, 0, r);
|
|
126
|
+
var v = _ + s;
|
|
127
|
+
v < 0 && E(-v * y, 1);
|
|
128
|
+
} else
|
|
129
|
+
E(-s * y, 1);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function q(s, A, y) {
|
|
133
|
+
s !== 0 && (f = !0);
|
|
134
|
+
for (var _ = A; _ < y; _++) {
|
|
135
|
+
var v = e[_], K = v.rect;
|
|
136
|
+
K[t] += s, v.label[t] += s;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function E(s, A) {
|
|
140
|
+
for (var y = [], _ = 0, v = 1; v < r; v++) {
|
|
141
|
+
var K = e[v - 1].rect, X = Math.max(e[v].rect[t] - K[t] - K[u], 0);
|
|
142
|
+
y.push(X), _ += X;
|
|
143
|
+
}
|
|
144
|
+
if (_) {
|
|
145
|
+
var Y = Math.min(Math.abs(s) / _, A);
|
|
146
|
+
if (s > 0)
|
|
147
|
+
for (var v = 0; v < r - 1; v++) {
|
|
148
|
+
var R = y[v] * Y;
|
|
149
|
+
q(R, 0, v + 1);
|
|
150
|
+
}
|
|
151
|
+
else
|
|
152
|
+
for (var v = r - 1; v > 0; v--) {
|
|
153
|
+
var R = y[v - 1] * Y;
|
|
154
|
+
q(-R, v, r);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function W(s) {
|
|
159
|
+
var A = s < 0 ? -1 : 1;
|
|
160
|
+
s = Math.abs(s);
|
|
161
|
+
for (var y = Math.ceil(s / (r - 1)), _ = 0; _ < r - 1; _++)
|
|
162
|
+
if (A > 0 ? q(y, 0, _ + 1) : q(-y, r - _ - 1, r), s -= y, s <= 0)
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
return f;
|
|
166
|
+
}
|
|
167
|
+
function $(e, t, u, a) {
|
|
168
|
+
return H(e, "x", "width", t, u, a);
|
|
169
|
+
}
|
|
170
|
+
function w(e, t, u, a) {
|
|
171
|
+
return H(e, "y", "height", t, u, a);
|
|
172
|
+
}
|
|
173
|
+
function F(e) {
|
|
174
|
+
var t = [];
|
|
175
|
+
e.sort(function(G, l) {
|
|
176
|
+
return l.priority - G.priority;
|
|
177
|
+
});
|
|
178
|
+
var u = new J(0, 0, 0, 0);
|
|
179
|
+
function a(G) {
|
|
180
|
+
if (!G.ignore) {
|
|
181
|
+
var l = G.ensureState("emphasis");
|
|
182
|
+
l.ignore == null && (l.ignore = !1);
|
|
183
|
+
}
|
|
184
|
+
G.ignore = !0;
|
|
185
|
+
}
|
|
186
|
+
for (var o = 0; o < e.length; o++) {
|
|
187
|
+
var n = e[o], r = n.axisAligned, h = n.localRect, i = n.transform, f = n.label, c = n.labelLine;
|
|
188
|
+
u.copy(n.rect), u.width -= 0.1, u.height -= 0.1, u.x += 0.05, u.y += 0.05;
|
|
189
|
+
for (var p = n.obb, O = !1, d = 0; d < t.length; d++) {
|
|
190
|
+
var g = t[d];
|
|
191
|
+
if (u.intersect(g.rect)) {
|
|
192
|
+
if (r && g.axisAligned) {
|
|
193
|
+
O = !0;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
if (g.obb || (g.obb = new z(g.localRect, g.transform)), p || (p = new z(h, i)), p.intersect(g.obb)) {
|
|
197
|
+
O = !0;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
O ? (a(f), c && a(c)) : (f.attr("ignore", n.defaultAttr.ignore), c && c.attr("ignore", n.defaultAttr.labelGuideIgnore), t.push(n));
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export {
|
|
206
|
+
U as D,
|
|
207
|
+
w as a,
|
|
208
|
+
F as h,
|
|
209
|
+
Z as p,
|
|
210
|
+
$ as s
|
|
211
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { p as r } from "./padding.props-DHz7-7K8.js";
|
|
2
|
+
import { e as t } from "./height.props-COFNk7EY.js";
|
|
3
|
+
import { t as o } from "./width.props-BFC_4RNX.js";
|
|
4
|
+
const s = ["visible", "hidden", "clip", "scroll", "auto"], i = ["static", "relative", "absolute", "fixed", "sticky"], e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], n = ["0", "1"], p = ["0", "1"], u = { ...r, ...o, ...t, position: { type: "enum", className: "rt-r-position", values: i, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: e, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: e, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: e, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: e, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: e, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: s, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: s, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: s, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: n, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: p, responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } };
|
|
5
|
+
export {
|
|
6
|
+
u
|
|
7
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { y as n } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { p as l } from "./text-YN9kC4kc.js";
|
|
4
|
+
import { v as p } from "./extract-props-CujC3IXc.js";
|
|
5
|
+
import { o as c } from "./as-child.prop-Dmk_dqBI.js";
|
|
6
|
+
import { s as f } from "./color.prop-C1QiQO-6.js";
|
|
7
|
+
import { o as u } from "./high-contrast.prop-BGHYAKb9.js";
|
|
8
|
+
import { r as d } from "./text-align.prop-BXpq--l6.js";
|
|
9
|
+
import { e as v, r as y } from "./truncate.prop-BeER2hSO.js";
|
|
10
|
+
import { t as N } from "./weight.prop-DBiHURhF.js";
|
|
11
|
+
const h = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $ = ["auto", "always", "hover", "none"], k = { ...c, size: { type: "enum", className: "rt-r-size", values: h, responsive: !0 }, ...N, ...d, ...v, ...y, underline: { type: "enum", className: "rt-underline", values: $, default: "auto" }, ...f, ...u }, w = r.forwardRef((o, t) => {
|
|
12
|
+
const { children: e, className: a, color: m, asChild: s, ...i } = p(o, k);
|
|
13
|
+
return r.createElement(l, { ...i, "data-accent-color": m, ref: t, asChild: !0, className: n("rt-reset", "rt-Link", a) }, s ? e : r.createElement("a", null, e));
|
|
14
|
+
});
|
|
15
|
+
w.displayName = "Link";
|
|
16
|
+
export {
|
|
17
|
+
w as e
|
|
18
|
+
};
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './atoms/alert-dialog';
|
|
2
|
+
export * from './atoms/aspect-ratio';
|
|
3
|
+
export * from './atoms/avatar';
|
|
4
|
+
export * from './atoms/badge';
|
|
5
|
+
export * from './atoms/blockquote';
|
|
6
|
+
export * from './atoms/box';
|
|
7
|
+
export * from './atoms/button';
|
|
8
|
+
export * from './atoms/call-out';
|
|
9
|
+
export * from './atoms/card';
|
|
10
|
+
export * from './atoms/check-box';
|
|
11
|
+
export * from './atoms/check-box-card';
|
|
12
|
+
export * from './atoms/check-box-group';
|
|
13
|
+
export * from './atoms/code';
|
|
14
|
+
export * from './atoms/container';
|
|
15
|
+
export * from './atoms/data-list';
|
|
16
|
+
export * from './atoms/date-picker';
|
|
17
|
+
export * from './atoms/dialog';
|
|
18
|
+
export * from './atoms/dropdown-menu';
|
|
19
|
+
export * from './atoms/em';
|
|
20
|
+
export * from './atoms/flex';
|
|
21
|
+
export * from './atoms/grid';
|
|
22
|
+
export * from './atoms/heading';
|
|
23
|
+
export * from './atoms/hover-card';
|
|
24
|
+
export * from './atoms/icon-button';
|
|
25
|
+
export * from './atoms/inset';
|
|
26
|
+
export * from './atoms/kbd';
|
|
27
|
+
export * from './atoms/link';
|
|
28
|
+
export * from './atoms/popover';
|
|
29
|
+
export * from './atoms/progress';
|
|
30
|
+
export * from './atoms/quote';
|
|
31
|
+
export * from './atoms/radio';
|
|
32
|
+
export * from './atoms/radio-cards';
|
|
33
|
+
export * from './atoms/radio-group';
|
|
34
|
+
export * from './atoms/scroll-area';
|
|
35
|
+
export * from './atoms/section';
|
|
36
|
+
export * from './atoms/segmented-control';
|
|
37
|
+
export * from './atoms/select';
|
|
38
|
+
export * from './atoms/separator';
|
|
39
|
+
export * from './atoms/skeleton';
|
|
40
|
+
export * from './atoms/strong';
|
|
41
|
+
export * from './atoms/switch';
|
|
42
|
+
export * from './atoms/tab-nav';
|
|
43
|
+
export * from './atoms/tabs';
|
|
44
|
+
export * from './atoms/text-area';
|
|
45
|
+
export * from './atoms/text';
|
|
46
|
+
export * from './atoms/text-field';
|
|
47
|
+
export * from './atoms/tooltip';
|
|
48
|
+
export * from './theme/theme-provider';
|
|
49
|
+
export * from './theme/use-theme';
|
|
50
|
+
export * from './ui-props/index';
|
|
51
|
+
export * from './icon';
|
|
52
|
+
export * from './charts/chart';
|
|
53
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../lib/main.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { DatePicker as e } from "./atoms/date-picker/index.js";
|
|
2
|
+
import { ThemeProvider as t } from "./theme/theme-provider.js";
|
|
3
|
+
import { uiProps as p } from "./ui-props/index.js";
|
|
4
|
+
import { B as m, C as f, D as n, a as i, E as c, I as l, M as d, P as C } from "./react-icons.esm-D7QiCqNB.js";
|
|
5
|
+
import { C as I } from "./chart-BkQy6rli.js";
|
|
6
|
+
import { a as h } from "./alert-dialog-D1kwc80j.js";
|
|
7
|
+
import { A as T } from "./index-DQu1RzkN.js";
|
|
8
|
+
import { i as B } from "./avatar-CzjF7NU3.js";
|
|
9
|
+
import { e as D } from "./badge-CyCKR1Mg.js";
|
|
10
|
+
import { e as A } from "./blockquote-7gbFi2zf.js";
|
|
11
|
+
import { p as E } from "./box-C071drmz.js";
|
|
12
|
+
import { o as H } from "./button-DpVTjBrm.js";
|
|
13
|
+
import { c as M } from "./callout-K8Sm-FQT.js";
|
|
14
|
+
import { o as F } from "./card-BX55hIZ3.js";
|
|
15
|
+
import { r as q } from "./checkbox-DhyOlPGH.js";
|
|
16
|
+
import { c as z } from "./checkbox-cards-C9ZL84Ml.js";
|
|
17
|
+
import { c as N } from "./checkbox-group-CoGGFZk-.js";
|
|
18
|
+
import { p as j } from "./code-BJLnPPB0.js";
|
|
19
|
+
import { p as O } from "./container-DBjG5yxq.js";
|
|
20
|
+
import { d as V } from "./data-list-DXP5-QCf.js";
|
|
21
|
+
import { d as X } from "./dialog-BYhSvWm4.js";
|
|
22
|
+
import { d as Z } from "./dropdown-menu-B34afpui.js";
|
|
23
|
+
import { o as $ } from "./em-CxdNq9zL.js";
|
|
24
|
+
import { p as ro } from "./flex-BY0BY2TI.js";
|
|
25
|
+
import { o as ao } from "./grid-BcK4nkHz.js";
|
|
26
|
+
import { r as so } from "./heading-BNO0Ttlj.js";
|
|
27
|
+
import { h as xo } from "./hover-card-C86JJDjR.js";
|
|
28
|
+
import { o as fo } from "./icon-button-BiYGmnT9.js";
|
|
29
|
+
import { o as io } from "./inset-B8urCQ4C.js";
|
|
30
|
+
import { r as lo } from "./kbd-D56CgGV_.js";
|
|
31
|
+
import { e as uo } from "./link-C49WMJKQ.js";
|
|
32
|
+
import { p as go } from "./popover-pOSzBkqq.js";
|
|
33
|
+
import { s as ko } from "./progress-WApo2WEO.js";
|
|
34
|
+
import { e as bo } from "./quote-BSvwdJNj.js";
|
|
35
|
+
import { e as So } from "./radio-DAyHCNZG.js";
|
|
36
|
+
import { r as Po } from "./radio-cards-z3X1kLpc.js";
|
|
37
|
+
import { r as vo } from "./radio-group-B9V-hq03.js";
|
|
38
|
+
import { c as Go } from "./scroll-area-eDccU6Jg.js";
|
|
39
|
+
import { r as Ro } from "./section-DMnSE0_D.js";
|
|
40
|
+
import { s as wo } from "./segmented-control-kJXQrfMF.js";
|
|
41
|
+
import { s as Lo } from "./select-BEBm0Xc8.js";
|
|
42
|
+
import { o as yo } from "./separator-Ba0Kgvyq.js";
|
|
43
|
+
import { r as Ko } from "./skeleton-CUQFQIjD.js";
|
|
44
|
+
import { r as Qo } from "./strong-ejFErGyG.js";
|
|
45
|
+
import { i as Jo } from "./switch-BhvdoZJT.js";
|
|
46
|
+
import { t as Uo } from "./tab-nav-B-m2dwou.js";
|
|
47
|
+
import { t as Wo } from "./tabs-33tSzanC.js";
|
|
48
|
+
import { r as Yo } from "./text-area-DBR9oL6S.js";
|
|
49
|
+
import { p as _o } from "./text-YN9kC4kc.js";
|
|
50
|
+
import { t as or } from "./text-field-CgtdAE3v.js";
|
|
51
|
+
import { e as er } from "./tooltip-jaEtV9Zg.js";
|
|
52
|
+
import { H as tr } from "./theme-7Cjo8_Y6.js";
|
|
53
|
+
export {
|
|
54
|
+
h as AlertDialog,
|
|
55
|
+
T as AspectRatio,
|
|
56
|
+
B as Avatar,
|
|
57
|
+
D as Badge,
|
|
58
|
+
A as Blockquote,
|
|
59
|
+
m as BookmarkIcon,
|
|
60
|
+
E as Box,
|
|
61
|
+
H as Button,
|
|
62
|
+
M as Callout,
|
|
63
|
+
F as Card,
|
|
64
|
+
I as Chart,
|
|
65
|
+
f as ChatBubbleIcon,
|
|
66
|
+
q as Checkbox,
|
|
67
|
+
z as CheckboxCards,
|
|
68
|
+
N as CheckboxGroup,
|
|
69
|
+
j as Code,
|
|
70
|
+
O as Container,
|
|
71
|
+
V as DataList,
|
|
72
|
+
e as DatePicker,
|
|
73
|
+
X as Dialog,
|
|
74
|
+
n as DotsHorizontalIcon,
|
|
75
|
+
Z as DropdownMenu,
|
|
76
|
+
$ as Em,
|
|
77
|
+
i as ExclamationTriangleIcon,
|
|
78
|
+
c as ExitIcon,
|
|
79
|
+
ro as Flex,
|
|
80
|
+
ao as Grid,
|
|
81
|
+
so as Heading,
|
|
82
|
+
xo as HoverCard,
|
|
83
|
+
fo as IconButton,
|
|
84
|
+
l as InfoCircledIcon,
|
|
85
|
+
io as Inset,
|
|
86
|
+
lo as Kbd,
|
|
87
|
+
uo as Link,
|
|
88
|
+
d as MagnifyingGlassIcon,
|
|
89
|
+
C as PlusIcon,
|
|
90
|
+
go as Popover,
|
|
91
|
+
ko as Progress,
|
|
92
|
+
bo as Quote,
|
|
93
|
+
So as Radio,
|
|
94
|
+
Po as RadioCards,
|
|
95
|
+
vo as RadioGroup,
|
|
96
|
+
Go as ScrollArea,
|
|
97
|
+
Ro as Section,
|
|
98
|
+
wo as SegmentedControl,
|
|
99
|
+
Lo as Select,
|
|
100
|
+
yo as Separator,
|
|
101
|
+
Ko as Skeleton,
|
|
102
|
+
Qo as Strong,
|
|
103
|
+
Jo as Switch,
|
|
104
|
+
Uo as TabNav,
|
|
105
|
+
Wo as Tabs,
|
|
106
|
+
_o as Text,
|
|
107
|
+
Yo as TextArea,
|
|
108
|
+
or as TextField,
|
|
109
|
+
t as ThemeProvider,
|
|
110
|
+
er as Tooltip,
|
|
111
|
+
p as uiProps,
|
|
112
|
+
tr as useThemeContext
|
|
113
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function c(r, t) {
|
|
2
|
+
if (r !== void 0) return typeof r == "string" ? t(r) : Object.fromEntries(Object.entries(r).map(([n, e]) => [n, t(e)]));
|
|
3
|
+
}
|
|
4
|
+
function i(r) {
|
|
5
|
+
return r === "3" ? "3" : "2";
|
|
6
|
+
}
|
|
7
|
+
function s(r) {
|
|
8
|
+
switch (r) {
|
|
9
|
+
case "1":
|
|
10
|
+
return "1";
|
|
11
|
+
case "2":
|
|
12
|
+
case "3":
|
|
13
|
+
return "2";
|
|
14
|
+
case "4":
|
|
15
|
+
return "3";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as o,
|
|
20
|
+
s as p,
|
|
21
|
+
i as s
|
|
22
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], s = { m: { type: "enum | string", values: e, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: e, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: e, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } };
|
|
2
|
+
export {
|
|
3
|
+
s as r
|
|
4
|
+
};
|