@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,186 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { y as T } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { c as g } from "./index-DLeNytVF.js";
|
|
4
|
+
import { c as $ } from "./index-CWqnkG-p.js";
|
|
5
|
+
import { c as R, R as B, I as G } from "./index-DgaYqXVD.js";
|
|
6
|
+
import { P as j } from "./index-BGHne2on.js";
|
|
7
|
+
import { P as p } from "./index-BLlMKB6v.js";
|
|
8
|
+
import { u as k } from "./index-BQ0fI5eo.js";
|
|
9
|
+
import { u as H } from "./index-CMas7-m1.js";
|
|
10
|
+
import { u as K } from "./index-J-pu07YR.js";
|
|
11
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
12
|
+
import { p as O } from "./base-tab-list.props-hSCtMjn2.js";
|
|
13
|
+
import { v } from "./extract-props-CujC3IXc.js";
|
|
14
|
+
import { r as N } from "./margin.props-ClY9lUrP.js";
|
|
15
|
+
var C = "Tabs", [z, de] = $(C, [
|
|
16
|
+
R
|
|
17
|
+
]), h = R(), [q, I] = z(C), y = o.forwardRef(
|
|
18
|
+
(e, a) => {
|
|
19
|
+
const {
|
|
20
|
+
__scopeTabs: r,
|
|
21
|
+
value: t,
|
|
22
|
+
onValueChange: n,
|
|
23
|
+
defaultValue: l,
|
|
24
|
+
orientation: s = "horizontal",
|
|
25
|
+
dir: d,
|
|
26
|
+
activationMode: f = "automatic",
|
|
27
|
+
...b
|
|
28
|
+
} = e, c = k(d), [i, m] = H({
|
|
29
|
+
prop: t,
|
|
30
|
+
onChange: n,
|
|
31
|
+
defaultProp: l
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ u(
|
|
34
|
+
q,
|
|
35
|
+
{
|
|
36
|
+
scope: r,
|
|
37
|
+
baseId: K(),
|
|
38
|
+
value: i,
|
|
39
|
+
onValueChange: m,
|
|
40
|
+
orientation: s,
|
|
41
|
+
dir: c,
|
|
42
|
+
activationMode: f,
|
|
43
|
+
children: /* @__PURE__ */ u(
|
|
44
|
+
p.div,
|
|
45
|
+
{
|
|
46
|
+
dir: c,
|
|
47
|
+
"data-orientation": s,
|
|
48
|
+
...b,
|
|
49
|
+
ref: a
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
y.displayName = C;
|
|
57
|
+
var _ = "TabsList", E = o.forwardRef(
|
|
58
|
+
(e, a) => {
|
|
59
|
+
const { __scopeTabs: r, loop: t = !0, ...n } = e, l = I(_, r), s = h(r);
|
|
60
|
+
return /* @__PURE__ */ u(
|
|
61
|
+
B,
|
|
62
|
+
{
|
|
63
|
+
asChild: !0,
|
|
64
|
+
...s,
|
|
65
|
+
orientation: l.orientation,
|
|
66
|
+
dir: l.dir,
|
|
67
|
+
loop: t,
|
|
68
|
+
children: /* @__PURE__ */ u(
|
|
69
|
+
p.div,
|
|
70
|
+
{
|
|
71
|
+
role: "tablist",
|
|
72
|
+
"aria-orientation": l.orientation,
|
|
73
|
+
...n,
|
|
74
|
+
ref: a
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
E.displayName = _;
|
|
82
|
+
var P = "TabsTrigger", S = o.forwardRef(
|
|
83
|
+
(e, a) => {
|
|
84
|
+
const { __scopeTabs: r, value: t, disabled: n = !1, ...l } = e, s = I(P, r), d = h(r), f = L(s.baseId, t), b = M(s.baseId, t), c = t === s.value;
|
|
85
|
+
return /* @__PURE__ */ u(
|
|
86
|
+
G,
|
|
87
|
+
{
|
|
88
|
+
asChild: !0,
|
|
89
|
+
...d,
|
|
90
|
+
focusable: !n,
|
|
91
|
+
active: c,
|
|
92
|
+
children: /* @__PURE__ */ u(
|
|
93
|
+
p.button,
|
|
94
|
+
{
|
|
95
|
+
type: "button",
|
|
96
|
+
role: "tab",
|
|
97
|
+
"aria-selected": c,
|
|
98
|
+
"aria-controls": b,
|
|
99
|
+
"data-state": c ? "active" : "inactive",
|
|
100
|
+
"data-disabled": n ? "" : void 0,
|
|
101
|
+
disabled: n,
|
|
102
|
+
id: f,
|
|
103
|
+
...l,
|
|
104
|
+
ref: a,
|
|
105
|
+
onMouseDown: g(e.onMouseDown, (i) => {
|
|
106
|
+
!n && i.button === 0 && i.ctrlKey === !1 ? s.onValueChange(t) : i.preventDefault();
|
|
107
|
+
}),
|
|
108
|
+
onKeyDown: g(e.onKeyDown, (i) => {
|
|
109
|
+
[" ", "Enter"].includes(i.key) && s.onValueChange(t);
|
|
110
|
+
}),
|
|
111
|
+
onFocus: g(e.onFocus, () => {
|
|
112
|
+
const i = s.activationMode !== "manual";
|
|
113
|
+
!c && !n && i && s.onValueChange(t);
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
S.displayName = P;
|
|
122
|
+
var w = "TabsContent", A = o.forwardRef(
|
|
123
|
+
(e, a) => {
|
|
124
|
+
const { __scopeTabs: r, value: t, forceMount: n, children: l, ...s } = e, d = I(w, r), f = L(d.baseId, t), b = M(d.baseId, t), c = t === d.value, i = o.useRef(c);
|
|
125
|
+
return o.useEffect(() => {
|
|
126
|
+
const m = requestAnimationFrame(() => i.current = !1);
|
|
127
|
+
return () => cancelAnimationFrame(m);
|
|
128
|
+
}, []), /* @__PURE__ */ u(j, { present: n || c, children: ({ present: m }) => /* @__PURE__ */ u(
|
|
129
|
+
p.div,
|
|
130
|
+
{
|
|
131
|
+
"data-state": c ? "active" : "inactive",
|
|
132
|
+
"data-orientation": d.orientation,
|
|
133
|
+
role: "tabpanel",
|
|
134
|
+
"aria-labelledby": f,
|
|
135
|
+
hidden: !m,
|
|
136
|
+
id: b,
|
|
137
|
+
tabIndex: 0,
|
|
138
|
+
...s,
|
|
139
|
+
ref: a,
|
|
140
|
+
style: {
|
|
141
|
+
...e.style,
|
|
142
|
+
animationDuration: i.current ? "0s" : void 0
|
|
143
|
+
},
|
|
144
|
+
children: m && l
|
|
145
|
+
}
|
|
146
|
+
) });
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
A.displayName = w;
|
|
150
|
+
function L(e, a) {
|
|
151
|
+
return `${e}-trigger-${a}`;
|
|
152
|
+
}
|
|
153
|
+
function M(e, a) {
|
|
154
|
+
return `${e}-content-${a}`;
|
|
155
|
+
}
|
|
156
|
+
var J = y, Q = E, U = S, W = A;
|
|
157
|
+
const x = o.forwardRef((e, a) => {
|
|
158
|
+
const { className: r, ...t } = v(e, N);
|
|
159
|
+
return o.createElement(J, { ...t, ref: a, className: T("rt-TabsRoot", r) });
|
|
160
|
+
});
|
|
161
|
+
x.displayName = "Tabs.Root";
|
|
162
|
+
const F = o.forwardRef((e, a) => {
|
|
163
|
+
const { className: r, color: t, ...n } = v(e, O, N);
|
|
164
|
+
return o.createElement(Q, { "data-accent-color": t, ...n, asChild: !1, ref: a, className: T("rt-BaseTabList", "rt-TabsList", r) });
|
|
165
|
+
});
|
|
166
|
+
F.displayName = "Tabs.List";
|
|
167
|
+
const D = o.forwardRef((e, a) => {
|
|
168
|
+
const { className: r, children: t, ...n } = e;
|
|
169
|
+
return o.createElement(U, { ...n, asChild: !1, ref: a, className: T("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, o.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, t), o.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, t));
|
|
170
|
+
});
|
|
171
|
+
D.displayName = "Tabs.Trigger";
|
|
172
|
+
const V = o.forwardRef((e, a) => {
|
|
173
|
+
const { className: r, ...t } = v(e, N);
|
|
174
|
+
return o.createElement(W, { ...t, ref: a, className: T("rt-TabsContent", r) });
|
|
175
|
+
});
|
|
176
|
+
V.displayName = "Tabs.Content";
|
|
177
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
178
|
+
__proto__: null,
|
|
179
|
+
Content: V,
|
|
180
|
+
List: F,
|
|
181
|
+
Root: x,
|
|
182
|
+
Trigger: D
|
|
183
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
184
|
+
export {
|
|
185
|
+
ue as t
|
|
186
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { y as l } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { S as n } from "./index-BGU-u5wR.js";
|
|
4
|
+
import { v as f } from "./extract-props-CujC3IXc.js";
|
|
5
|
+
import { r as c } from "./margin.props-ClY9lUrP.js";
|
|
6
|
+
import { o as d } from "./as-child.prop-Dmk_dqBI.js";
|
|
7
|
+
import { r as u } from "./color.prop-C1QiQO-6.js";
|
|
8
|
+
import { o as $ } from "./high-contrast.prop-BGHYAKb9.js";
|
|
9
|
+
import { t as v, r as y } from "./text-align.prop-BXpq--l6.js";
|
|
10
|
+
import { e as N, r as x } from "./truncate.prop-BeER2hSO.js";
|
|
11
|
+
import { t as h } from "./weight.prop-DBiHURhF.js";
|
|
12
|
+
const z = ["span", "div", "label", "p"], E = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], R = { as: { type: "enum", values: z, default: "span" }, ...d, size: { type: "enum", className: "rt-r-size", values: E, responsive: !0 }, ...h, ...v, ...y, ...N, ...x, ...u, ...$ }, S = r.forwardRef((e, a) => {
|
|
13
|
+
const { children: o, className: t, asChild: m, as: s = "span", color: p, ...i } = f(e, R, c);
|
|
14
|
+
return r.createElement(n, { "data-accent-color": p, ...i, ref: a, className: l("rt-Text", t) }, m ? o : r.createElement(s, null, o));
|
|
15
|
+
});
|
|
16
|
+
S.displayName = "Text";
|
|
17
|
+
export {
|
|
18
|
+
S as p
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { y as i } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { r as l } from "./color.prop-C1QiQO-6.js";
|
|
4
|
+
import { r as n } from "./radius.prop-CH9lMann.js";
|
|
5
|
+
import { v as p } from "./extract-props-CujC3IXc.js";
|
|
6
|
+
import { r as f } from "./margin.props-ClY9lUrP.js";
|
|
7
|
+
const u = ["1", "2", "3"], v = ["classic", "surface", "soft"], d = ["none", "vertical", "horizontal", "both"], y = { size: { type: "enum", className: "rt-r-size", values: u, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: v, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: d, responsive: !0 }, ...l, ...n }, N = e.forwardRef((r, a) => {
|
|
8
|
+
const { className: t, color: s, radius: o, style: m, ...c } = p(r, y, f);
|
|
9
|
+
return e.createElement("div", { "data-accent-color": s, "data-radius": o, className: i("rt-TextAreaRoot", t), style: m }, e.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...c }));
|
|
10
|
+
});
|
|
11
|
+
N.displayName = "TextArea";
|
|
12
|
+
export {
|
|
13
|
+
N as r
|
|
14
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { y as d } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { c as N } from "./index-DIx1pnae.js";
|
|
4
|
+
import { r as p } from "./color.prop-C1QiQO-6.js";
|
|
5
|
+
import { p as c } from "./padding.props-DHz7-7K8.js";
|
|
6
|
+
import { r as R } from "./radius.prop-CH9lMann.js";
|
|
7
|
+
import { u as S } from "./flex.props-DNysJgUY.js";
|
|
8
|
+
import { v as f } from "./extract-props-CujC3IXc.js";
|
|
9
|
+
import { r as T } from "./margin.props-ClY9lUrP.js";
|
|
10
|
+
const h = ["1", "2", "3"], $ = ["classic", "surface", "soft"], b = { size: { type: "enum", className: "rt-r-size", values: h, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $, default: "surface" }, ...p, ...R }, _ = ["left", "right"], w = { side: { type: "enum", values: _ }, ...p, gap: S.gap, px: c.px, pl: c.pl, pr: c.pr }, u = e.forwardRef((a, o) => {
|
|
11
|
+
const t = e.useRef(null), { children: s, className: l, color: i, radius: v, style: y, ...g } = f(a, b, T);
|
|
12
|
+
return e.createElement("div", { "data-accent-color": i, "data-radius": v, style: y, className: d("rt-TextFieldRoot", l), onPointerDown: (F) => {
|
|
13
|
+
const n = F.target;
|
|
14
|
+
if (n.closest("input, button, a")) return;
|
|
15
|
+
const r = t.current;
|
|
16
|
+
if (!r) return;
|
|
17
|
+
const m = n.closest(`
|
|
18
|
+
.rt-TextFieldSlot[data-side='right'],
|
|
19
|
+
.rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
|
|
20
|
+
`) ? r.value.length : 0;
|
|
21
|
+
requestAnimationFrame(() => {
|
|
22
|
+
try {
|
|
23
|
+
r.setSelectionRange(m, m);
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
r.focus();
|
|
27
|
+
});
|
|
28
|
+
} }, e.createElement("input", { spellCheck: "false", ...g, ref: N(t, o), className: "rt-reset rt-TextFieldInput" }), s);
|
|
29
|
+
});
|
|
30
|
+
u.displayName = "TextField.Root";
|
|
31
|
+
const x = e.forwardRef((a, o) => {
|
|
32
|
+
const { className: t, color: s, side: l, ...i } = f(a, w);
|
|
33
|
+
return e.createElement("div", { "data-accent-color": s, "data-side": l, ...i, ref: o, className: d("rt-TextFieldSlot", t) });
|
|
34
|
+
});
|
|
35
|
+
x.displayName = "TextField.Slot";
|
|
36
|
+
const C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
|
+
__proto__: null,
|
|
38
|
+
Root: u,
|
|
39
|
+
Slot: x
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
41
|
+
export {
|
|
42
|
+
C as t
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type ThemeProps = React.ComponentProps<typeof Theme>;
|
|
5
|
+
interface ThemeProviderProps extends ThemeProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function ThemeProvider(props: ThemeProviderProps): React.ReactNode;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,6BAA6B,CAAC;AAErC,KAAK,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD,UAAU,kBAAmB,SAAQ,UAAU;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,CAAC,SAAS,CAExE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["../../lib/theme/use-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|