@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.
Files changed (266) hide show
  1. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  2. package/dist/alert-dialog-D1kwc80j.js +143 -0
  3. package/dist/as-child.prop-Dmk_dqBI.js +4 -0
  4. package/dist/assets/index.css +1 -0
  5. package/dist/assets/theme-provider.css +1 -0
  6. package/dist/atoms/alert-dialog.d.ts +2 -0
  7. package/dist/atoms/alert-dialog.d.ts.map +1 -0
  8. package/dist/atoms/alert-dialog.js +4 -0
  9. package/dist/atoms/aspect-ratio.d.ts +2 -0
  10. package/dist/atoms/aspect-ratio.d.ts.map +1 -0
  11. package/dist/atoms/aspect-ratio.js +4 -0
  12. package/dist/atoms/avatar.d.ts +2 -0
  13. package/dist/atoms/avatar.d.ts.map +1 -0
  14. package/dist/atoms/avatar.js +4 -0
  15. package/dist/atoms/badge.d.ts +2 -0
  16. package/dist/atoms/badge.d.ts.map +1 -0
  17. package/dist/atoms/badge.js +4 -0
  18. package/dist/atoms/blockquote.d.ts +2 -0
  19. package/dist/atoms/blockquote.d.ts.map +1 -0
  20. package/dist/atoms/blockquote.js +4 -0
  21. package/dist/atoms/box.d.ts +2 -0
  22. package/dist/atoms/box.d.ts.map +1 -0
  23. package/dist/atoms/box.js +4 -0
  24. package/dist/atoms/button.d.ts +2 -0
  25. package/dist/atoms/button.d.ts.map +1 -0
  26. package/dist/atoms/button.js +4 -0
  27. package/dist/atoms/call-out.d.ts +2 -0
  28. package/dist/atoms/call-out.d.ts.map +1 -0
  29. package/dist/atoms/call-out.js +4 -0
  30. package/dist/atoms/card.d.ts +2 -0
  31. package/dist/atoms/card.d.ts.map +1 -0
  32. package/dist/atoms/card.js +4 -0
  33. package/dist/atoms/check-box-card.d.ts +2 -0
  34. package/dist/atoms/check-box-card.d.ts.map +1 -0
  35. package/dist/atoms/check-box-card.js +4 -0
  36. package/dist/atoms/check-box-group.d.ts +2 -0
  37. package/dist/atoms/check-box-group.d.ts.map +1 -0
  38. package/dist/atoms/check-box-group.js +4 -0
  39. package/dist/atoms/check-box.d.ts +2 -0
  40. package/dist/atoms/check-box.d.ts.map +1 -0
  41. package/dist/atoms/check-box.js +4 -0
  42. package/dist/atoms/code.d.ts +2 -0
  43. package/dist/atoms/code.d.ts.map +1 -0
  44. package/dist/atoms/code.js +4 -0
  45. package/dist/atoms/container.d.ts +2 -0
  46. package/dist/atoms/container.d.ts.map +1 -0
  47. package/dist/atoms/container.js +4 -0
  48. package/dist/atoms/data-list.d.ts +2 -0
  49. package/dist/atoms/data-list.d.ts.map +1 -0
  50. package/dist/atoms/data-list.js +4 -0
  51. package/dist/atoms/date-picker/index.d.ts +7 -0
  52. package/dist/atoms/date-picker/index.d.ts.map +1 -0
  53. package/dist/atoms/date-picker/index.js +6252 -0
  54. package/dist/atoms/dialog.d.ts +2 -0
  55. package/dist/atoms/dialog.d.ts.map +1 -0
  56. package/dist/atoms/dialog.js +4 -0
  57. package/dist/atoms/dropdown-menu.d.ts +2 -0
  58. package/dist/atoms/dropdown-menu.d.ts.map +1 -0
  59. package/dist/atoms/dropdown-menu.js +4 -0
  60. package/dist/atoms/em.d.ts +2 -0
  61. package/dist/atoms/em.d.ts.map +1 -0
  62. package/dist/atoms/em.js +4 -0
  63. package/dist/atoms/flex.d.ts +2 -0
  64. package/dist/atoms/flex.d.ts.map +1 -0
  65. package/dist/atoms/flex.js +4 -0
  66. package/dist/atoms/grid.d.ts +2 -0
  67. package/dist/atoms/grid.d.ts.map +1 -0
  68. package/dist/atoms/grid.js +4 -0
  69. package/dist/atoms/heading.d.ts +2 -0
  70. package/dist/atoms/heading.d.ts.map +1 -0
  71. package/dist/atoms/heading.js +4 -0
  72. package/dist/atoms/hover-card.d.ts +2 -0
  73. package/dist/atoms/hover-card.d.ts.map +1 -0
  74. package/dist/atoms/hover-card.js +4 -0
  75. package/dist/atoms/icon-button.d.ts +2 -0
  76. package/dist/atoms/icon-button.d.ts.map +1 -0
  77. package/dist/atoms/icon-button.js +4 -0
  78. package/dist/atoms/inset.d.ts +2 -0
  79. package/dist/atoms/inset.d.ts.map +1 -0
  80. package/dist/atoms/inset.js +4 -0
  81. package/dist/atoms/kbd.d.ts +2 -0
  82. package/dist/atoms/kbd.d.ts.map +1 -0
  83. package/dist/atoms/kbd.js +4 -0
  84. package/dist/atoms/link.d.ts +2 -0
  85. package/dist/atoms/link.d.ts.map +1 -0
  86. package/dist/atoms/link.js +4 -0
  87. package/dist/atoms/popover.d.ts +2 -0
  88. package/dist/atoms/popover.d.ts.map +1 -0
  89. package/dist/atoms/popover.js +4 -0
  90. package/dist/atoms/progress.d.ts +2 -0
  91. package/dist/atoms/progress.d.ts.map +1 -0
  92. package/dist/atoms/progress.js +4 -0
  93. package/dist/atoms/quote.d.ts +2 -0
  94. package/dist/atoms/quote.d.ts.map +1 -0
  95. package/dist/atoms/quote.js +4 -0
  96. package/dist/atoms/radio-cards.d.ts +2 -0
  97. package/dist/atoms/radio-cards.d.ts.map +1 -0
  98. package/dist/atoms/radio-cards.js +4 -0
  99. package/dist/atoms/radio-group.d.ts +2 -0
  100. package/dist/atoms/radio-group.d.ts.map +1 -0
  101. package/dist/atoms/radio-group.js +4 -0
  102. package/dist/atoms/radio.d.ts +2 -0
  103. package/dist/atoms/radio.d.ts.map +1 -0
  104. package/dist/atoms/radio.js +4 -0
  105. package/dist/atoms/scroll-area.d.ts +2 -0
  106. package/dist/atoms/scroll-area.d.ts.map +1 -0
  107. package/dist/atoms/scroll-area.js +4 -0
  108. package/dist/atoms/section.d.ts +2 -0
  109. package/dist/atoms/section.d.ts.map +1 -0
  110. package/dist/atoms/section.js +4 -0
  111. package/dist/atoms/segmented-control.d.ts +2 -0
  112. package/dist/atoms/segmented-control.d.ts.map +1 -0
  113. package/dist/atoms/segmented-control.js +4 -0
  114. package/dist/atoms/select.d.ts +2 -0
  115. package/dist/atoms/select.d.ts.map +1 -0
  116. package/dist/atoms/select.js +4 -0
  117. package/dist/atoms/separator.d.ts +2 -0
  118. package/dist/atoms/separator.d.ts.map +1 -0
  119. package/dist/atoms/separator.js +4 -0
  120. package/dist/atoms/skeleton.d.ts +2 -0
  121. package/dist/atoms/skeleton.d.ts.map +1 -0
  122. package/dist/atoms/skeleton.js +4 -0
  123. package/dist/atoms/strong.d.ts +2 -0
  124. package/dist/atoms/strong.d.ts.map +1 -0
  125. package/dist/atoms/strong.js +4 -0
  126. package/dist/atoms/switch.d.ts +2 -0
  127. package/dist/atoms/switch.d.ts.map +1 -0
  128. package/dist/atoms/switch.js +4 -0
  129. package/dist/atoms/tab-nav.d.ts +2 -0
  130. package/dist/atoms/tab-nav.d.ts.map +1 -0
  131. package/dist/atoms/tab-nav.js +4 -0
  132. package/dist/atoms/tabs.d.ts +2 -0
  133. package/dist/atoms/tabs.d.ts.map +1 -0
  134. package/dist/atoms/tabs.js +4 -0
  135. package/dist/atoms/text-area.d.ts +2 -0
  136. package/dist/atoms/text-area.d.ts.map +1 -0
  137. package/dist/atoms/text-area.js +4 -0
  138. package/dist/atoms/text-field.d.ts +2 -0
  139. package/dist/atoms/text-field.d.ts.map +1 -0
  140. package/dist/atoms/text-field.js +4 -0
  141. package/dist/atoms/text.d.ts +2 -0
  142. package/dist/atoms/text.d.ts.map +1 -0
  143. package/dist/atoms/text.js +4 -0
  144. package/dist/atoms/tooltip.d.ts +2 -0
  145. package/dist/atoms/tooltip.d.ts.map +1 -0
  146. package/dist/atoms/tooltip.js +4 -0
  147. package/dist/avatar-CzjF7NU3.js +85 -0
  148. package/dist/badge-CyCKR1Mg.js +17 -0
  149. package/dist/base-button-i6PPsCdc.js +27 -0
  150. package/dist/base-checkbox.props-Bk4tRAY3.js +132 -0
  151. package/dist/base-tab-list.props-hSCtMjn2.js +6 -0
  152. package/dist/blockquote-7gbFi2zf.js +12 -0
  153. package/dist/box-C071drmz.js +15 -0
  154. package/dist/button-DpVTjBrm.js +8 -0
  155. package/dist/callout-K8Sm-FQT.js +31 -0
  156. package/dist/card-BX55hIZ3.js +14 -0
  157. package/dist/chart-BkQy6rli.js +14554 -0
  158. package/dist/charts/chart.d.ts +5 -0
  159. package/dist/charts/chart.d.ts.map +1 -0
  160. package/dist/charts/chart.js +5 -0
  161. package/dist/charts-DLVAfnBm.js +10821 -0
  162. package/dist/checkbox-DhyOlPGH.js +14 -0
  163. package/dist/checkbox-cards-C9ZL84Ml.js +30 -0
  164. package/dist/checkbox-group-CoGGFZk-.js +33 -0
  165. package/dist/checkbox-group.primitive-DuerVc21.js +33 -0
  166. package/dist/code-BJLnPPB0.js +18 -0
  167. package/dist/color.prop-C1QiQO-6.js +7 -0
  168. package/dist/components-MfAfNvnv.js +9496 -0
  169. package/dist/container-DBjG5yxq.js +25 -0
  170. package/dist/customGraphicKeyframeAnimation-BL_3uxsi.js +7247 -0
  171. package/dist/data-list-DXP5-QCf.js +36 -0
  172. package/dist/dialog-BYhSvWm4.js +35 -0
  173. package/dist/dialog.props-DOLpgre6.js +255 -0
  174. package/dist/dropdown-menu-B34afpui.js +870 -0
  175. package/dist/em-CxdNq9zL.js +14 -0
  176. package/dist/extract-props-CujC3IXc.js +36 -0
  177. package/dist/features-Dezrf84n.js +1221 -0
  178. package/dist/flex-BY0BY2TI.js +15 -0
  179. package/dist/flex.props-DNysJgUY.js +9 -0
  180. package/dist/floating-ui.dom-Pi62VK_7.js +1084 -0
  181. package/dist/gap.props-DSJMAfZN.js +4 -0
  182. package/dist/get-subtree-DW8zSv8E.js +10 -0
  183. package/dist/grid-BcK4nkHz.js +24 -0
  184. package/dist/heading-BNO0Ttlj.js +19 -0
  185. package/dist/height.props-COFNk7EY.js +4 -0
  186. package/dist/high-contrast.prop-BGHYAKb9.js +4 -0
  187. package/dist/hover-card-C86JJDjR.js +198 -0
  188. package/dist/icon-button-BiYGmnT9.js +8 -0
  189. package/dist/icon.d.ts +2 -0
  190. package/dist/icon.d.ts.map +1 -0
  191. package/dist/icon.js +11 -0
  192. package/dist/icons-B-Giprot.js +12 -0
  193. package/dist/index--Kmch3aI.js +19069 -0
  194. package/dist/index-BGHne2on.js +66 -0
  195. package/dist/index-BGU-u5wR.js +48 -0
  196. package/dist/index-BLlMKB6v.js +35 -0
  197. package/dist/index-BQ0fI5eo.js +14 -0
  198. package/dist/index-BUzFfodu.js +134 -0
  199. package/dist/index-BZPx6jYI.js +8 -0
  200. package/dist/index-CBWtNqYj.js +218 -0
  201. package/dist/index-CMas7-m1.js +32 -0
  202. package/dist/index-CWqnkG-p.js +67 -0
  203. package/dist/index-Chf_UJBH.js +27 -0
  204. package/dist/index-DIx1pnae.js +14 -0
  205. package/dist/index-DLeNytVF.js +9 -0
  206. package/dist/index-DQu1RzkN.js +41 -0
  207. package/dist/index-DbtrAyPY.js +48 -0
  208. package/dist/index-Dei2uCbS.js +16 -0
  209. package/dist/index-DgaYqXVD.js +178 -0
  210. package/dist/index-DoIe4nVR.js +42 -0
  211. package/dist/index-DxFjXziY.js +32 -0
  212. package/dist/index-J-pu07YR.js +13 -0
  213. package/dist/index-KdR831JA.js +669 -0
  214. package/dist/index-W3PwLn5U.js +531 -0
  215. package/dist/inset-B8urCQ4C.js +18 -0
  216. package/dist/kbd-D56CgGV_.js +14 -0
  217. package/dist/labelGuideHelper-CcngZb4a.js +224 -0
  218. package/dist/labelLayoutHelper-ZwNI-nB_.js +211 -0
  219. package/dist/layout.props-CKENeFj3.js +7 -0
  220. package/dist/link-C49WMJKQ.js +18 -0
  221. package/dist/main.d.ts +53 -0
  222. package/dist/main.d.ts.map +1 -0
  223. package/dist/main.js +113 -0
  224. package/dist/map-prop-values-pmPyYjFd.js +22 -0
  225. package/dist/margin.props-ClY9lUrP.js +4 -0
  226. package/dist/merge-styles-B1pWeU8q.js +68 -0
  227. package/dist/padding.props-DHz7-7K8.js +4 -0
  228. package/dist/popover-pOSzBkqq.js +251 -0
  229. package/dist/progress-WApo2WEO.js +93 -0
  230. package/dist/quote-BSvwdJNj.js +14 -0
  231. package/dist/radio-DAyHCNZG.js +16 -0
  232. package/dist/radio-cards-z3X1kLpc.js +24 -0
  233. package/dist/radio-group-B9V-hq03.js +33 -0
  234. package/dist/radius.prop-CH9lMann.js +5 -0
  235. package/dist/react-icons.esm-D7QiCqNB.js +147 -0
  236. package/dist/renderers-Bb3odh12.js +1250 -0
  237. package/dist/require-react-element-D_SFiikK.js +8 -0
  238. package/dist/scroll-area-eDccU6Jg.js +26 -0
  239. package/dist/section-DMnSE0_D.js +19 -0
  240. package/dist/segmented-control-kJXQrfMF.js +173 -0
  241. package/dist/select-BEBm0Xc8.js +832 -0
  242. package/dist/separator-Ba0Kgvyq.js +13 -0
  243. package/dist/skeleton-CUQFQIjD.js +17 -0
  244. package/dist/strong-ejFErGyG.js +14 -0
  245. package/dist/switch-BhvdoZJT.js +123 -0
  246. package/dist/tab-nav-B-m2dwou.js +608 -0
  247. package/dist/tabs-33tSzanC.js +186 -0
  248. package/dist/text-YN9kC4kc.js +19 -0
  249. package/dist/text-align.prop-BXpq--l6.js +5 -0
  250. package/dist/text-area-DBR9oL6S.js +14 -0
  251. package/dist/text-field-CgtdAE3v.js +43 -0
  252. package/dist/theme/theme-provider.d.ts +10 -0
  253. package/dist/theme/theme-provider.d.ts.map +1 -0
  254. package/dist/theme/theme-provider.js +8 -0
  255. package/dist/theme/use-theme.d.ts +2 -0
  256. package/dist/theme/use-theme.d.ts.map +1 -0
  257. package/dist/theme/use-theme.js +4 -0
  258. package/dist/theme-7Cjo8_Y6.js +795 -0
  259. package/dist/tooltip-jaEtV9Zg.js +14 -0
  260. package/dist/truncate.prop-BeER2hSO.js +5 -0
  261. package/dist/ui-props/index.d.ts +3 -0
  262. package/dist/ui-props/index.d.ts.map +1 -0
  263. package/dist/ui-props/index.js +686 -0
  264. package/dist/weight.prop-DBiHURhF.js +4 -0
  265. package/dist/width.props-BFC_4RNX.js +4 -0
  266. package/package.json +48 -0
@@ -0,0 +1,4 @@
1
+ const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], s = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: e, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: e, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: e, responsive: !0 } };
2
+ export {
3
+ s as p
4
+ };
@@ -0,0 +1,10 @@
1
+ import * as r from "react";
2
+ function e(c, n) {
3
+ const { asChild: i, children: t } = c;
4
+ if (!i) return typeof n == "function" ? n(t) : n;
5
+ const o = r.Children.only(t);
6
+ return r.cloneElement(o, { children: typeof n == "function" ? n(o.props.children) : n });
7
+ }
8
+ export {
9
+ e as d
10
+ };
@@ -0,0 +1,24 @@
1
+ import * as s from "react";
2
+ import { y as l } from "./index-DoIe4nVR.js";
3
+ import { S as p } from "./index-BGU-u5wR.js";
4
+ import { o as u } from "./as-child.prop-Dmk_dqBI.js";
5
+ import { p as c } from "./gap.props-DSJMAfZN.js";
6
+ import { v as d } from "./extract-props-CujC3IXc.js";
7
+ import { u as f } from "./layout.props-CKENeFj3.js";
8
+ import { r as v } from "./margin.props-ClY9lUrP.js";
9
+ const y = ["div", "span"], g = ["none", "inline-grid", "grid"], w = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], N = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $ = ["row", "column", "dense", "row-dense", "column-dense"], b = ["start", "center", "end", "baseline", "stretch"], h = ["start", "center", "end", "between"], t = { as: { type: "enum", values: y, default: "div" }, ...u, display: { type: "enum", className: "rt-r-display", values: g, responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: w, parseValue: r, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: N, parseValue: r, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: $, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: b, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: h, parseValue: V, responsive: !0 }, ...c };
10
+ function r(e) {
11
+ return t.columns.values.includes(e) ? e : e != null && e.match(/^\d+$/) ? `repeat(${e}, minmax(0, 1fr))` : e;
12
+ }
13
+ function V(e) {
14
+ return e === "between" ? "space-between" : e;
15
+ }
16
+ const j = s.forwardRef((e, a) => {
17
+ const { className: n, asChild: o, as: m = "div", ...i } = d(e, t, f, v);
18
+ return s.createElement(o ? p : m, { ...i, ref: a, className: l("rt-Grid", n) });
19
+ });
20
+ j.displayName = "Grid";
21
+ export {
22
+ j as o,
23
+ t as s
24
+ };
@@ -0,0 +1,19 @@
1
+ import * as r from "react";
2
+ import { y as f } from "./index-DoIe4nVR.js";
3
+ import { S as n } from "./index-BGU-u5wR.js";
4
+ import { o as p } from "./as-child.prop-Dmk_dqBI.js";
5
+ import { r as c } from "./color.prop-C1QiQO-6.js";
6
+ import { o as h } from "./high-contrast.prop-BGHYAKb9.js";
7
+ import { t as d, r as u } from "./text-align.prop-BXpq--l6.js";
8
+ import { e as $, r as v } from "./truncate.prop-BeER2hSO.js";
9
+ import { t as y } from "./weight.prop-DBiHURhF.js";
10
+ import { v as N } from "./extract-props-CujC3IXc.js";
11
+ import { r as g } from "./margin.props-ClY9lUrP.js";
12
+ const z = ["h1", "h2", "h3", "h4", "h5", "h6"], E = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], H = { as: { type: "enum", values: z, default: "h1" }, ...p, size: { type: "enum", className: "rt-r-size", values: E, default: "6", responsive: !0 }, ...y, ...d, ...u, ...$, ...v, ...c, ...h }, R = r.forwardRef((e, a) => {
13
+ const { children: o, className: t, asChild: m, as: s = "h1", color: i, ...l } = N(e, H, g);
14
+ return r.createElement(n, { "data-accent-color": i, ...l, ref: a, className: f("rt-Heading", t) }, m ? o : r.createElement(s, null, o));
15
+ });
16
+ R.displayName = "Heading";
17
+ export {
18
+ R as r
19
+ };
@@ -0,0 +1,4 @@
1
+ const e = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } };
2
+ export {
3
+ e
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } };
2
+ export {
3
+ t as o
4
+ };
@@ -0,0 +1,198 @@
1
+ import * as r from "react";
2
+ import { y as H } from "./index-DoIe4nVR.js";
3
+ import { c as d } from "./index-DLeNytVF.js";
4
+ import { c as j } from "./index-CWqnkG-p.js";
5
+ import { u as z } from "./index-CMas7-m1.js";
6
+ import { u as B } from "./index-DIx1pnae.js";
7
+ import { c as N, b as $, d as G, e as K, f as V, a as q, I as J } from "./theme-7Cjo8_Y6.js";
8
+ import { P as O } from "./index-BGHne2on.js";
9
+ import { P as Q } from "./index-BLlMKB6v.js";
10
+ import { D as X } from "./index-BUzFfodu.js";
11
+ import { jsx as i } from "react/jsx-runtime";
12
+ import { o as Y } from "./as-child.prop-Dmk_dqBI.js";
13
+ import { e as Z } from "./height.props-COFNk7EY.js";
14
+ import { t as b } from "./width.props-BFC_4RNX.js";
15
+ import { v as ee } from "./extract-props-CujC3IXc.js";
16
+ import { a as re } from "./require-react-element-D_SFiikK.js";
17
+ var T, x = "HoverCard", [_, Oe] = j(x, [
18
+ N
19
+ ]), w = N(), [oe, E] = _(x), D = (e) => {
20
+ const {
21
+ __scopeHoverCard: t,
22
+ children: n,
23
+ open: a,
24
+ defaultOpen: s,
25
+ onOpenChange: c,
26
+ openDelay: f = 700,
27
+ closeDelay: m = 300
28
+ } = e, l = w(t), v = r.useRef(0), u = r.useRef(0), C = r.useRef(!1), p = r.useRef(!1), [h = !1, o] = z({
29
+ prop: a,
30
+ defaultProp: s,
31
+ onChange: c
32
+ }), P = r.useCallback(() => {
33
+ clearTimeout(u.current), v.current = window.setTimeout(() => o(!0), f);
34
+ }, [f, o]), R = r.useCallback(() => {
35
+ clearTimeout(v.current), !C.current && !p.current && (u.current = window.setTimeout(() => o(!1), m));
36
+ }, [m, o]), U = r.useCallback(() => o(!1), [o]);
37
+ return r.useEffect(() => () => {
38
+ clearTimeout(v.current), clearTimeout(u.current);
39
+ }, []), /* @__PURE__ */ i(
40
+ oe,
41
+ {
42
+ scope: t,
43
+ open: h,
44
+ onOpenChange: o,
45
+ onOpen: P,
46
+ onClose: R,
47
+ onDismiss: U,
48
+ hasSelectionRef: C,
49
+ isPointerDownOnContentRef: p,
50
+ children: /* @__PURE__ */ i(V, { ...l, children: n })
51
+ }
52
+ );
53
+ };
54
+ D.displayName = x;
55
+ var A = "HoverCardTrigger", M = r.forwardRef(
56
+ (e, t) => {
57
+ const { __scopeHoverCard: n, ...a } = e, s = E(A, n), c = w(n);
58
+ return /* @__PURE__ */ i($, { asChild: !0, ...c, children: /* @__PURE__ */ i(
59
+ Q.a,
60
+ {
61
+ "data-state": s.open ? "open" : "closed",
62
+ ...a,
63
+ ref: t,
64
+ onPointerEnter: d(e.onPointerEnter, S(s.onOpen)),
65
+ onPointerLeave: d(e.onPointerLeave, S(s.onClose)),
66
+ onFocus: d(e.onFocus, s.onOpen),
67
+ onBlur: d(e.onBlur, s.onClose),
68
+ onTouchStart: d(e.onTouchStart, (f) => f.preventDefault())
69
+ }
70
+ ) });
71
+ }
72
+ );
73
+ M.displayName = A;
74
+ var y = "HoverCardPortal", [te, ne] = _(y, {
75
+ forceMount: void 0
76
+ }), L = (e) => {
77
+ const { __scopeHoverCard: t, forceMount: n, children: a, container: s } = e, c = E(y, t);
78
+ return /* @__PURE__ */ i(te, { scope: t, forceMount: n, children: /* @__PURE__ */ i(O, { present: n || c.open, children: /* @__PURE__ */ i(q, { asChild: !0, container: s, children: a }) }) });
79
+ };
80
+ L.displayName = y;
81
+ var g = "HoverCardContent", k = r.forwardRef(
82
+ (e, t) => {
83
+ const n = ne(g, e.__scopeHoverCard), { forceMount: a = n.forceMount, ...s } = e, c = E(g, e.__scopeHoverCard);
84
+ return /* @__PURE__ */ i(O, { present: a || c.open, children: /* @__PURE__ */ i(
85
+ ae,
86
+ {
87
+ "data-state": c.open ? "open" : "closed",
88
+ ...s,
89
+ onPointerEnter: d(e.onPointerEnter, S(c.onOpen)),
90
+ onPointerLeave: d(e.onPointerLeave, S(c.onClose)),
91
+ ref: t
92
+ }
93
+ ) });
94
+ }
95
+ );
96
+ k.displayName = g;
97
+ var ae = r.forwardRef((e, t) => {
98
+ const {
99
+ __scopeHoverCard: n,
100
+ onEscapeKeyDown: a,
101
+ onPointerDownOutside: s,
102
+ onFocusOutside: c,
103
+ onInteractOutside: f,
104
+ ...m
105
+ } = e, l = E(g, n), v = w(n), u = r.useRef(null), C = B(t, u), [p, h] = r.useState(!1);
106
+ return r.useEffect(() => {
107
+ if (p) {
108
+ const o = document.body;
109
+ return T = o.style.userSelect || o.style.webkitUserSelect, o.style.userSelect = "none", o.style.webkitUserSelect = "none", () => {
110
+ o.style.userSelect = T, o.style.webkitUserSelect = T;
111
+ };
112
+ }
113
+ }, [p]), r.useEffect(() => {
114
+ if (u.current) {
115
+ const o = () => {
116
+ h(!1), l.isPointerDownOnContentRef.current = !1, setTimeout(() => {
117
+ var R;
118
+ ((R = document.getSelection()) == null ? void 0 : R.toString()) !== "" && (l.hasSelectionRef.current = !0);
119
+ });
120
+ };
121
+ return document.addEventListener("pointerup", o), () => {
122
+ document.removeEventListener("pointerup", o), l.hasSelectionRef.current = !1, l.isPointerDownOnContentRef.current = !1;
123
+ };
124
+ }
125
+ }, [l.isPointerDownOnContentRef, l.hasSelectionRef]), r.useEffect(() => {
126
+ u.current && ie(u.current).forEach((P) => P.setAttribute("tabindex", "-1"));
127
+ }), /* @__PURE__ */ i(
128
+ X,
129
+ {
130
+ asChild: !0,
131
+ disableOutsidePointerEvents: !1,
132
+ onInteractOutside: f,
133
+ onEscapeKeyDown: a,
134
+ onPointerDownOutside: s,
135
+ onFocusOutside: d(c, (o) => {
136
+ o.preventDefault();
137
+ }),
138
+ onDismiss: l.onDismiss,
139
+ children: /* @__PURE__ */ i(
140
+ G,
141
+ {
142
+ ...v,
143
+ ...m,
144
+ onPointerDown: d(m.onPointerDown, (o) => {
145
+ o.currentTarget.contains(o.target) && h(!0), l.hasSelectionRef.current = !1, l.isPointerDownOnContentRef.current = !0;
146
+ }),
147
+ ref: C,
148
+ style: {
149
+ ...m.style,
150
+ userSelect: p ? "text" : void 0,
151
+ // Safari requires prefix
152
+ WebkitUserSelect: p ? "text" : void 0,
153
+ "--radix-hover-card-content-transform-origin": "var(--radix-popper-transform-origin)",
154
+ "--radix-hover-card-content-available-width": "var(--radix-popper-available-width)",
155
+ "--radix-hover-card-content-available-height": "var(--radix-popper-available-height)",
156
+ "--radix-hover-card-trigger-width": "var(--radix-popper-anchor-width)",
157
+ "--radix-hover-card-trigger-height": "var(--radix-popper-anchor-height)"
158
+ }
159
+ }
160
+ )
161
+ }
162
+ );
163
+ }), se = "HoverCardArrow", ce = r.forwardRef(
164
+ (e, t) => {
165
+ const { __scopeHoverCard: n, ...a } = e, s = w(n);
166
+ return /* @__PURE__ */ i(K, { ...s, ...a, ref: t });
167
+ }
168
+ );
169
+ ce.displayName = se;
170
+ function S(e) {
171
+ return (t) => t.pointerType === "touch" ? void 0 : e();
172
+ }
173
+ function ie(e) {
174
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
175
+ acceptNode: (a) => a.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
176
+ });
177
+ for (; n.nextNode(); ) t.push(n.currentNode);
178
+ return t;
179
+ }
180
+ var le = D, de = M, ue = L, pe = k;
181
+ const fe = ["1", "2", "3"], me = { ...Y, size: { type: "enum", className: "rt-r-size", values: fe, default: "2", responsive: !0 }, width: b.width, minWidth: b.minWidth, maxWidth: { ...b.maxWidth, default: "480px" }, ...Z }, F = (e) => r.createElement(le, { closeDelay: 150, openDelay: 200, ...e });
182
+ F.displayName = "HoverCard.Root";
183
+ const I = r.forwardRef(({ children: e, className: t, ...n }, a) => r.createElement(de, { ref: a, className: H("rt-HoverCardTrigger", t), ...n, asChild: !0 }, re(e)));
184
+ I.displayName = "HoverCard.Trigger";
185
+ const W = r.forwardRef((e, t) => {
186
+ const { className: n, forceMount: a, container: s, ...c } = ee(e, me);
187
+ return r.createElement(ue, { container: s, forceMount: a }, r.createElement(J, { asChild: !0 }, r.createElement(pe, { align: "start", sideOffset: 8, collisionPadding: 10, ...c, ref: t, className: H("rt-PopperContent", "rt-HoverCardContent", n) })));
188
+ });
189
+ W.displayName = "HoverCard.Content";
190
+ const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
191
+ __proto__: null,
192
+ Content: W,
193
+ Root: F,
194
+ Trigger: I
195
+ }, Symbol.toStringTag, { value: "Module" }));
196
+ export {
197
+ _e as h
198
+ };
@@ -0,0 +1,8 @@
1
+ import * as o from "react";
2
+ import { y as a } from "./index-DoIe4nVR.js";
3
+ import { n as m } from "./base-button-i6PPsCdc.js";
4
+ const c = o.forwardRef(({ className: t, ...r }, e) => o.createElement(m, { ...r, ref: e, className: a("rt-IconButton", t) }));
5
+ c.displayName = "IconButton";
6
+ export {
7
+ c as o
8
+ };
package/dist/icon.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { BookmarkIcon, ExitIcon, InfoCircledIcon, ExclamationTriangleIcon, MagnifyingGlassIcon, DotsHorizontalIcon, ChatBubbleIcon, PlusIcon, } from '@radix-ui/react-icons';
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../lib/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,QAAQ,GACT,MAAM,uBAAuB,CAAC"}
package/dist/icon.js ADDED
@@ -0,0 +1,11 @@
1
+ import { B as n, C as s, D as c, a as I, E as i, I as l, M as r, P as t } from "./react-icons.esm-D7QiCqNB.js";
2
+ export {
3
+ n as BookmarkIcon,
4
+ s as ChatBubbleIcon,
5
+ c as DotsHorizontalIcon,
6
+ I as ExclamationTriangleIcon,
7
+ i as ExitIcon,
8
+ l as InfoCircledIcon,
9
+ r as MagnifyingGlassIcon,
10
+ t as PlusIcon
11
+ };
@@ -0,0 +1,12 @@
1
+ import e from "react";
2
+ const l = e.forwardRef((t, r) => e.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: r }, e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })));
3
+ l.displayName = "ThickCheckIcon";
4
+ const o = e.forwardRef((t, r) => e.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: r }, e.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })));
5
+ o.displayName = "ChevronDownIcon";
6
+ const n = e.forwardRef((t, r) => e.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: r }, e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
7
+ n.displayName = "ThickChevronRightIcon";
8
+ export {
9
+ n as p,
10
+ l as r,
11
+ o as t
12
+ };