@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,36 @@
|
|
|
1
|
+
import { y as o } from "./index-DoIe4nVR.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { p } from "./text-YN9kC4kc.js";
|
|
4
|
+
import { r as d } from "./color.prop-C1QiQO-6.js";
|
|
5
|
+
import { o as u } from "./high-contrast.prop-BGHYAKb9.js";
|
|
6
|
+
import { r as N } from "./text-align.prop-BXpq--l6.js";
|
|
7
|
+
import { t as L } from "./width.props-BFC_4RNX.js";
|
|
8
|
+
import { v as m } from "./extract-props-CujC3IXc.js";
|
|
9
|
+
import { r as v } from "./margin.props-ClY9lUrP.js";
|
|
10
|
+
const y = ["start", "center", "end", "baseline", "stretch"], D = ["horizontal", "vertical"], R = ["1", "2", "3"], b = { orientation: { type: "enum", className: "rt-r-orientation", values: D, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: R, default: "2", responsive: !0 }, trim: { ...N.trim, className: "rt-r-trim" } }, h = { align: { type: "enum", className: "rt-r-ai", values: y, responsive: !0 } }, z = { ...L, ...d, ...u }, l = e.forwardRef((t, a) => {
|
|
11
|
+
const { className: r, ...s } = m(t, b, v);
|
|
12
|
+
return e.createElement(p, { asChild: !0 }, e.createElement("dl", { ...s, ref: a, className: o("rt-DataListRoot", r) }));
|
|
13
|
+
});
|
|
14
|
+
l.displayName = "DataList.Root";
|
|
15
|
+
const i = e.forwardRef((t, a) => {
|
|
16
|
+
const { className: r, ...s } = m(t, h);
|
|
17
|
+
return e.createElement("div", { ...s, ref: a, className: o("rt-DataListItem", r) });
|
|
18
|
+
});
|
|
19
|
+
i.displayName = "DataList.Item";
|
|
20
|
+
const n = e.forwardRef((t, a) => {
|
|
21
|
+
const { className: r, color: s, ...f } = m(t, z);
|
|
22
|
+
return e.createElement("dt", { ...f, "data-accent-color": s, ref: a, className: o("rt-DataListLabel", r) });
|
|
23
|
+
});
|
|
24
|
+
n.displayName = "DataList.Label";
|
|
25
|
+
const c = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement("dd", { ...r, ref: s, className: o(a, "rt-DataListValue") }, t));
|
|
26
|
+
c.displayName = "DataList.Value";
|
|
27
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
Item: i,
|
|
30
|
+
Label: n,
|
|
31
|
+
Root: l,
|
|
32
|
+
Value: c
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
34
|
+
export {
|
|
35
|
+
O as d
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { y as N } from "./index-DoIe4nVR.js";
|
|
3
|
+
import { R, T as h, P as T, O as v, C as u, a as O, D as P, b as S, s as b } from "./dialog.props-DOLpgre6.js";
|
|
4
|
+
import { r as w } from "./heading-BNO0Ttlj.js";
|
|
5
|
+
import { p as B } from "./text-YN9kC4kc.js";
|
|
6
|
+
import { I as _ } from "./theme-7Cjo8_Y6.js";
|
|
7
|
+
import { v as o } from "./extract-props-CujC3IXc.js";
|
|
8
|
+
import { a as l } from "./require-react-element-D_SFiikK.js";
|
|
9
|
+
const i = (a) => e.createElement(R, { ...a, modal: !0 });
|
|
10
|
+
i.displayName = "Dialog.Root";
|
|
11
|
+
const s = e.forwardRef(({ children: a, ...r }, t) => e.createElement(h, { ...r, ref: t, asChild: !0 }, l(a)));
|
|
12
|
+
s.displayName = "Dialog.Trigger";
|
|
13
|
+
const n = e.forwardRef(({ align: a, ...r }, t) => {
|
|
14
|
+
const { align: g, ...f } = b, { className: p } = o({ align: a }, { align: g }), { className: D, forceMount: C, container: y, ...E } = o(r, f);
|
|
15
|
+
return e.createElement(T, { container: y, forceMount: C }, e.createElement(_, { asChild: !0 }, e.createElement(v, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${p}` }, e.createElement(u, { ...E, ref: t, className: N("rt-BaseDialogContent", "rt-DialogContent", D) }))))));
|
|
16
|
+
});
|
|
17
|
+
n.displayName = "Dialog.Content";
|
|
18
|
+
const m = e.forwardRef((a, r) => e.createElement(O, { asChild: !0 }, e.createElement(w, { size: "5", mb: "3", trim: "start", ...a, asChild: !1, ref: r })));
|
|
19
|
+
m.displayName = "Dialog.Title";
|
|
20
|
+
const c = e.forwardRef((a, r) => e.createElement(P, { asChild: !0 }, e.createElement(B, { as: "p", size: "3", ...a, asChild: !1, ref: r })));
|
|
21
|
+
c.displayName = "Dialog.Description";
|
|
22
|
+
const d = e.forwardRef(({ children: a, ...r }, t) => e.createElement(S, { ...r, ref: t, asChild: !0 }, l(a)));
|
|
23
|
+
d.displayName = "Dialog.Close";
|
|
24
|
+
const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
Close: d,
|
|
27
|
+
Content: n,
|
|
28
|
+
Description: c,
|
|
29
|
+
Root: i,
|
|
30
|
+
Title: m,
|
|
31
|
+
Trigger: s
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
33
|
+
export {
|
|
34
|
+
q as d
|
|
35
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { c as p } from "./index-DLeNytVF.js";
|
|
3
|
+
import { u as h } from "./index-DIx1pnae.js";
|
|
4
|
+
import { c as V, a as q } from "./index-CWqnkG-p.js";
|
|
5
|
+
import { u as C } from "./index-J-pu07YR.js";
|
|
6
|
+
import { u as K } from "./index-CMas7-m1.js";
|
|
7
|
+
import { D as U } from "./index-BUzFfodu.js";
|
|
8
|
+
import { R as Y, h as Z, u as J, F as Q } from "./index-KdR831JA.js";
|
|
9
|
+
import { a as X } from "./theme-7Cjo8_Y6.js";
|
|
10
|
+
import { P as _ } from "./index-BGHne2on.js";
|
|
11
|
+
import { P as m } from "./index-BLlMKB6v.js";
|
|
12
|
+
import { S as ee } from "./index-BGU-u5wR.js";
|
|
13
|
+
import { jsx as i, jsxs as O, Fragment as I } from "react/jsx-runtime";
|
|
14
|
+
import { o as te } from "./as-child.prop-Dmk_dqBI.js";
|
|
15
|
+
import { t as R } from "./width.props-BFC_4RNX.js";
|
|
16
|
+
import { e as oe } from "./height.props-COFNk7EY.js";
|
|
17
|
+
var E = "Dialog", [x, Ie] = V(E), [re, u] = x(E), A = (e) => {
|
|
18
|
+
const {
|
|
19
|
+
__scopeDialog: o,
|
|
20
|
+
children: n,
|
|
21
|
+
open: a,
|
|
22
|
+
defaultOpen: r,
|
|
23
|
+
onOpenChange: t,
|
|
24
|
+
modal: c = !0
|
|
25
|
+
} = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = K({
|
|
26
|
+
prop: a,
|
|
27
|
+
defaultProp: r,
|
|
28
|
+
onChange: t
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ i(
|
|
31
|
+
re,
|
|
32
|
+
{
|
|
33
|
+
scope: o,
|
|
34
|
+
triggerRef: l,
|
|
35
|
+
contentRef: d,
|
|
36
|
+
contentId: C(),
|
|
37
|
+
titleId: C(),
|
|
38
|
+
descriptionId: C(),
|
|
39
|
+
open: g,
|
|
40
|
+
onOpenChange: v,
|
|
41
|
+
onOpenToggle: s.useCallback(() => v((H) => !H), [v]),
|
|
42
|
+
modal: c,
|
|
43
|
+
children: n
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
A.displayName = E;
|
|
48
|
+
var T = "DialogTrigger", b = s.forwardRef(
|
|
49
|
+
(e, o) => {
|
|
50
|
+
const { __scopeDialog: n, ...a } = e, r = u(T, n), t = h(o, r.triggerRef);
|
|
51
|
+
return /* @__PURE__ */ i(
|
|
52
|
+
m.button,
|
|
53
|
+
{
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-haspopup": "dialog",
|
|
56
|
+
"aria-expanded": r.open,
|
|
57
|
+
"aria-controls": r.contentId,
|
|
58
|
+
"data-state": y(r.open),
|
|
59
|
+
...a,
|
|
60
|
+
ref: t,
|
|
61
|
+
onClick: p(e.onClick, r.onOpenToggle)
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
b.displayName = T;
|
|
67
|
+
var N = "DialogPortal", [ne, M] = x(N, {
|
|
68
|
+
forceMount: void 0
|
|
69
|
+
}), w = (e) => {
|
|
70
|
+
const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(N, o);
|
|
71
|
+
return /* @__PURE__ */ i(ne, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i(_, { present: n || t.open, children: /* @__PURE__ */ i(X, { asChild: !0, container: r, children: c }) })) });
|
|
72
|
+
};
|
|
73
|
+
w.displayName = N;
|
|
74
|
+
var D = "DialogOverlay", F = s.forwardRef(
|
|
75
|
+
(e, o) => {
|
|
76
|
+
const n = M(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
|
|
77
|
+
return t.modal ? /* @__PURE__ */ i(_, { present: a || t.open, children: /* @__PURE__ */ i(ae, { ...r, ref: o }) }) : null;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
F.displayName = D;
|
|
81
|
+
var ae = s.forwardRef(
|
|
82
|
+
(e, o) => {
|
|
83
|
+
const { __scopeDialog: n, ...a } = e, r = u(D, n);
|
|
84
|
+
return (
|
|
85
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
86
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
87
|
+
/* @__PURE__ */ i(Y, { as: ee, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
88
|
+
m.div,
|
|
89
|
+
{
|
|
90
|
+
"data-state": y(r.open),
|
|
91
|
+
...a,
|
|
92
|
+
ref: o,
|
|
93
|
+
style: { pointerEvents: "auto", ...a.style }
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
), f = "DialogContent", S = s.forwardRef(
|
|
99
|
+
(e, o) => {
|
|
100
|
+
const n = M(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
|
|
101
|
+
return /* @__PURE__ */ i(_, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(ie, { ...r, ref: o }) : /* @__PURE__ */ i(se, { ...r, ref: o }) });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
S.displayName = f;
|
|
105
|
+
var ie = s.forwardRef(
|
|
106
|
+
(e, o) => {
|
|
107
|
+
const n = u(f, e.__scopeDialog), a = s.useRef(null), r = h(o, n.contentRef, a);
|
|
108
|
+
return s.useEffect(() => {
|
|
109
|
+
const t = a.current;
|
|
110
|
+
if (t) return Z(t);
|
|
111
|
+
}, []), /* @__PURE__ */ i(
|
|
112
|
+
W,
|
|
113
|
+
{
|
|
114
|
+
...e,
|
|
115
|
+
ref: r,
|
|
116
|
+
trapFocus: n.open,
|
|
117
|
+
disableOutsidePointerEvents: !0,
|
|
118
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
|
|
119
|
+
var c;
|
|
120
|
+
t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
|
|
121
|
+
}),
|
|
122
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
|
|
123
|
+
const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
124
|
+
(c.button === 2 || l) && t.preventDefault();
|
|
125
|
+
}),
|
|
126
|
+
onFocusOutside: p(
|
|
127
|
+
e.onFocusOutside,
|
|
128
|
+
(t) => t.preventDefault()
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
), se = s.forwardRef(
|
|
134
|
+
(e, o) => {
|
|
135
|
+
const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
136
|
+
return /* @__PURE__ */ i(
|
|
137
|
+
W,
|
|
138
|
+
{
|
|
139
|
+
...e,
|
|
140
|
+
ref: o,
|
|
141
|
+
trapFocus: !1,
|
|
142
|
+
disableOutsidePointerEvents: !1,
|
|
143
|
+
onCloseAutoFocus: (t) => {
|
|
144
|
+
var c, l;
|
|
145
|
+
(c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
|
|
146
|
+
},
|
|
147
|
+
onInteractOutside: (t) => {
|
|
148
|
+
var d, g;
|
|
149
|
+
(d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
150
|
+
const c = t.target;
|
|
151
|
+
((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
), W = s.forwardRef(
|
|
157
|
+
(e, o) => {
|
|
158
|
+
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = h(o, d);
|
|
159
|
+
return J(), /* @__PURE__ */ O(I, { children: [
|
|
160
|
+
/* @__PURE__ */ i(
|
|
161
|
+
Q,
|
|
162
|
+
{
|
|
163
|
+
asChild: !0,
|
|
164
|
+
loop: !0,
|
|
165
|
+
trapped: a,
|
|
166
|
+
onMountAutoFocus: r,
|
|
167
|
+
onUnmountAutoFocus: t,
|
|
168
|
+
children: /* @__PURE__ */ i(
|
|
169
|
+
U,
|
|
170
|
+
{
|
|
171
|
+
role: "dialog",
|
|
172
|
+
id: l.contentId,
|
|
173
|
+
"aria-describedby": l.descriptionId,
|
|
174
|
+
"aria-labelledby": l.titleId,
|
|
175
|
+
"data-state": y(l.open),
|
|
176
|
+
...c,
|
|
177
|
+
ref: g,
|
|
178
|
+
onDismiss: () => l.onOpenChange(!1)
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ O(I, { children: [
|
|
184
|
+
/* @__PURE__ */ i(ce, { titleId: l.titleId }),
|
|
185
|
+
/* @__PURE__ */ i(ue, { contentRef: d, descriptionId: l.descriptionId })
|
|
186
|
+
] })
|
|
187
|
+
] });
|
|
188
|
+
}
|
|
189
|
+
), P = "DialogTitle", k = s.forwardRef(
|
|
190
|
+
(e, o) => {
|
|
191
|
+
const { __scopeDialog: n, ...a } = e, r = u(P, n);
|
|
192
|
+
return /* @__PURE__ */ i(m.h2, { id: r.titleId, ...a, ref: o });
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
k.displayName = P;
|
|
196
|
+
var G = "DialogDescription", L = s.forwardRef(
|
|
197
|
+
(e, o) => {
|
|
198
|
+
const { __scopeDialog: n, ...a } = e, r = u(G, n);
|
|
199
|
+
return /* @__PURE__ */ i(m.p, { id: r.descriptionId, ...a, ref: o });
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
L.displayName = G;
|
|
203
|
+
var $ = "DialogClose", B = s.forwardRef(
|
|
204
|
+
(e, o) => {
|
|
205
|
+
const { __scopeDialog: n, ...a } = e, r = u($, n);
|
|
206
|
+
return /* @__PURE__ */ i(
|
|
207
|
+
m.button,
|
|
208
|
+
{
|
|
209
|
+
type: "button",
|
|
210
|
+
...a,
|
|
211
|
+
ref: o,
|
|
212
|
+
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
B.displayName = $;
|
|
218
|
+
function y(e) {
|
|
219
|
+
return e ? "open" : "closed";
|
|
220
|
+
}
|
|
221
|
+
var j = "DialogTitleWarning", [xe, z] = q(j, {
|
|
222
|
+
contentName: f,
|
|
223
|
+
titleName: P,
|
|
224
|
+
docsSlug: "dialog"
|
|
225
|
+
}), ce = ({ titleId: e }) => {
|
|
226
|
+
const o = z(j), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
227
|
+
|
|
228
|
+
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
229
|
+
|
|
230
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
|
|
231
|
+
return s.useEffect(() => {
|
|
232
|
+
e && (document.getElementById(e) || console.error(n));
|
|
233
|
+
}, [n, e]), null;
|
|
234
|
+
}, le = "DialogDescriptionWarning", ue = ({ contentRef: e, descriptionId: o }) => {
|
|
235
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${z(le).contentName}}.`;
|
|
236
|
+
return s.useEffect(() => {
|
|
237
|
+
var t;
|
|
238
|
+
const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
239
|
+
o && r && (document.getElementById(o) || console.warn(a));
|
|
240
|
+
}, [a, e, o]), null;
|
|
241
|
+
}, Ae = A, Te = b, be = w, Me = F, we = S, Fe = k, Se = L, We = B;
|
|
242
|
+
const de = ["1", "2", "3", "4"], ke = { ...te, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: de, default: "3", responsive: !0 }, width: R.width, minWidth: R.minWidth, maxWidth: { ...R.maxWidth, default: "600px" }, ...oe };
|
|
243
|
+
export {
|
|
244
|
+
we as C,
|
|
245
|
+
Se as D,
|
|
246
|
+
Me as O,
|
|
247
|
+
be as P,
|
|
248
|
+
Ae as R,
|
|
249
|
+
Te as T,
|
|
250
|
+
xe as W,
|
|
251
|
+
Fe as a,
|
|
252
|
+
We as b,
|
|
253
|
+
Ie as c,
|
|
254
|
+
ke as s
|
|
255
|
+
};
|