@ngrok/mantle 0.65.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/accordion.d.ts +158 -154
  2. package/dist/accordion.js +1 -1
  3. package/dist/accordion.js.map +1 -1
  4. package/dist/alert-dialog.d.ts +282 -277
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert-dialog.js.map +1 -1
  7. package/dist/alert.d.ts +145 -138
  8. package/dist/alert.js +1 -1
  9. package/dist/alert.js.map +1 -1
  10. package/dist/anchor.d.ts +25 -22
  11. package/dist/anchor.js +1 -1
  12. package/dist/anchor.js.map +1 -1
  13. package/dist/as-child-XMVTepJu.d.ts +31 -0
  14. package/dist/badge.d.ts +29 -19
  15. package/dist/badge.js +1 -1
  16. package/dist/badge.js.map +1 -1
  17. package/dist/booleanish-CBGdPL3Q.js +2 -0
  18. package/dist/booleanish-CBGdPL3Q.js.map +1 -0
  19. package/dist/browser-only-jrBUqioz.js +2 -0
  20. package/dist/browser-only-jrBUqioz.js.map +1 -0
  21. package/dist/browser-only.d.ts +20 -15
  22. package/dist/browser-only.js +1 -2
  23. package/dist/button-CKL-3sIr.d.ts +175 -0
  24. package/dist/button-CRRPesae.js +2 -0
  25. package/dist/button-CRRPesae.js.map +1 -0
  26. package/dist/button-DA2p0_5F.js +2 -0
  27. package/dist/button-DA2p0_5F.js.map +1 -0
  28. package/dist/button.d.ts +4 -9
  29. package/dist/button.js +1 -2
  30. package/dist/calendar.d.ts +14 -8
  31. package/dist/calendar.js +1 -1
  32. package/dist/calendar.js.map +1 -1
  33. package/dist/card.d.ts +99 -97
  34. package/dist/card.js +1 -1
  35. package/dist/card.js.map +1 -1
  36. package/dist/checkbox.d.ts +14 -12
  37. package/dist/checkbox.js +1 -1
  38. package/dist/checkbox.js.map +1 -1
  39. package/dist/code-block.d.ts +254 -237
  40. package/dist/code-block.js +3 -3
  41. package/dist/code-block.js.map +1 -1
  42. package/dist/code.d.ts +5 -3
  43. package/dist/code.js +1 -1
  44. package/dist/code.js.map +1 -1
  45. package/dist/color.d.ts +2 -38
  46. package/dist/color.js +1 -1
  47. package/dist/color.js.map +1 -1
  48. package/dist/combobox.d.ts +172 -167
  49. package/dist/combobox.js +1 -1
  50. package/dist/combobox.js.map +1 -1
  51. package/dist/command.d.ts +234 -227
  52. package/dist/command.js +1 -1
  53. package/dist/command.js.map +1 -1
  54. package/dist/compose-refs-DeIsFv68.js +2 -0
  55. package/dist/compose-refs-DeIsFv68.js.map +1 -0
  56. package/dist/cx-bKromGBh.js +2 -0
  57. package/dist/cx-bKromGBh.js.map +1 -0
  58. package/dist/cx.d.ts +4 -2
  59. package/dist/cx.js +1 -2
  60. package/dist/data-table.d.ts +211 -184
  61. package/dist/data-table.js +1 -1
  62. package/dist/data-table.js.map +1 -1
  63. package/dist/deep-non-nullable-BLM3Gz0I.d.ts +8 -0
  64. package/dist/description-list.d.ts +61 -59
  65. package/dist/description-list.js +1 -1
  66. package/dist/description-list.js.map +1 -1
  67. package/dist/dialog-BuD_JQf_.d.ts +422 -0
  68. package/dist/dialog-CGBjHvo_.js +2 -0
  69. package/dist/dialog-CGBjHvo_.js.map +1 -0
  70. package/dist/dialog.d.ts +3 -410
  71. package/dist/dialog.js +1 -2
  72. package/dist/direction-DfrtFTny.js +2 -0
  73. package/dist/direction-DfrtFTny.js.map +1 -0
  74. package/dist/{direction-DHheuUag.d.ts → direction-deXpJFDZ.d.ts} +9 -7
  75. package/dist/dropdown-menu-CjOaj-Ap.js +2 -0
  76. package/dist/dropdown-menu-CjOaj-Ap.js.map +1 -0
  77. package/dist/dropdown-menu-D_ZoY1AH.d.ts +330 -0
  78. package/dist/dropdown-menu.d.ts +2 -325
  79. package/dist/dropdown-menu.js +1 -2
  80. package/dist/flag.d.ts +31 -22
  81. package/dist/flag.js +1 -1
  82. package/dist/flag.js.map +1 -1
  83. package/dist/hooks.d.ts +116 -50
  84. package/dist/hooks.js +1 -1
  85. package/dist/hooks.js.map +1 -1
  86. package/dist/hover-card.d.ts +97 -91
  87. package/dist/hover-card.js +1 -1
  88. package/dist/hover-card.js.map +1 -1
  89. package/dist/{icon-DXTMiV1L.d.ts → icon-B1XLv02t.d.ts} +11 -9
  90. package/dist/icon-B5oNYYrJ.js +2 -0
  91. package/dist/icon-B5oNYYrJ.js.map +1 -0
  92. package/dist/icon-button-2r6S3HVA.d.ts +98 -0
  93. package/dist/icon-button-D4e9-dq-.js +2 -0
  94. package/dist/icon-button-D4e9-dq-.js.map +1 -0
  95. package/dist/icon.d.ts +4 -4
  96. package/dist/icon.js +1 -2
  97. package/dist/icons.d.ts +54 -41
  98. package/dist/icons.js +1 -1
  99. package/dist/icons.js.map +1 -1
  100. package/dist/{in-view-aHeQHaUj.d.ts → in-view-CTQRT44m.d.ts} +29 -22
  101. package/dist/in-view-bPnaWEL4.js +2 -0
  102. package/dist/in-view-bPnaWEL4.js.map +1 -0
  103. package/dist/index-BLCvtjLi.d.ts +40 -0
  104. package/dist/index-DWqhfw9n.d.ts +103 -0
  105. package/dist/{button-group-BFnqgdtl.d.ts → index-ViSCOUrU.d.ts} +10 -8
  106. package/dist/index-s8rMcilU.d.ts +47 -0
  107. package/dist/input.d.ts +3 -100
  108. package/dist/input.js +1 -1
  109. package/dist/input.js.map +1 -1
  110. package/dist/is-input-BFR8yMM7.js +2 -0
  111. package/dist/is-input-BFR8yMM7.js.map +1 -0
  112. package/dist/kbd-pyj32aN4.js +2 -0
  113. package/dist/kbd-pyj32aN4.js.map +1 -0
  114. package/dist/kbd.d.ts +10 -4
  115. package/dist/kbd.js +1 -2
  116. package/dist/label.d.ts +8 -6
  117. package/dist/label.js +1 -1
  118. package/dist/label.js.map +1 -1
  119. package/dist/media-object.d.ts +70 -68
  120. package/dist/media-object.js +1 -1
  121. package/dist/media-object.js.map +1 -1
  122. package/dist/multi-select.d.ts +278 -0
  123. package/dist/multi-select.js +2 -0
  124. package/dist/multi-select.js.map +1 -0
  125. package/dist/pagination.d.ts +168 -164
  126. package/dist/pagination.js +1 -1
  127. package/dist/pagination.js.map +1 -1
  128. package/dist/popover.d.ts +119 -117
  129. package/dist/popover.js +1 -1
  130. package/dist/popover.js.map +1 -1
  131. package/dist/primitive-W5Izf14l.js +2 -0
  132. package/dist/primitive-W5Izf14l.js.map +1 -0
  133. package/dist/primitive-tuHqhoRE.d.ts +16 -0
  134. package/dist/progress.d.ts +175 -150
  135. package/dist/progress.js +1 -1
  136. package/dist/progress.js.map +1 -1
  137. package/dist/radio-group.d.ts +246 -230
  138. package/dist/radio-group.js +1 -1
  139. package/dist/radio-group.js.map +1 -1
  140. package/dist/sandboxed-on-click.d.ts +36 -31
  141. package/dist/sandboxed-on-click.js +1 -1
  142. package/dist/sandboxed-on-click.js.map +1 -1
  143. package/dist/select-39Jfc1Cb.d.ts +265 -0
  144. package/dist/select-DZ2ztBkI.js +2 -0
  145. package/dist/select-DZ2ztBkI.js.map +1 -0
  146. package/dist/select.d.ts +2 -263
  147. package/dist/select.js +1 -2
  148. package/dist/separator-BcCNbHBg.js +2 -0
  149. package/dist/separator-BcCNbHBg.js.map +1 -0
  150. package/dist/separator.d.ts +28 -21
  151. package/dist/separator.js +1 -2
  152. package/dist/sheet.d.ts +319 -305
  153. package/dist/sheet.js +1 -1
  154. package/dist/sheet.js.map +1 -1
  155. package/dist/skeleton.d.ts +8 -6
  156. package/dist/skeleton.js +1 -1
  157. package/dist/skeleton.js.map +1 -1
  158. package/dist/slider.d.ts +48 -35
  159. package/dist/slider.js +1 -1
  160. package/dist/slider.js.map +1 -1
  161. package/dist/slot-DdnjeV2n.js +2 -0
  162. package/dist/slot-DdnjeV2n.js.map +1 -0
  163. package/dist/slot.d.ts +6 -4
  164. package/dist/slot.js +1 -2
  165. package/dist/sort-CfPsu1Gs.js +2 -0
  166. package/dist/sort-CfPsu1Gs.js.map +1 -0
  167. package/dist/split-button.d.ts +158 -162
  168. package/dist/split-button.js +1 -1
  169. package/dist/split-button.js.map +1 -1
  170. package/dist/svg-only-BVLlbQ4e.js +2 -0
  171. package/dist/svg-only-BVLlbQ4e.js.map +1 -0
  172. package/dist/{svg-only-Cp8Mu_sh.d.ts → svg-only-Dti1FvNV.d.ts} +11 -9
  173. package/dist/switch.d.ts +10 -8
  174. package/dist/switch.js +1 -1
  175. package/dist/switch.js.map +1 -1
  176. package/dist/table-BWMp12sl.js +2 -0
  177. package/dist/table-BWMp12sl.js.map +1 -0
  178. package/dist/table-Dpt192qt.d.ts +398 -0
  179. package/dist/table.d.ts +2 -396
  180. package/dist/table.js +1 -2
  181. package/dist/tabs.d.ts +110 -104
  182. package/dist/tabs.js +1 -1
  183. package/dist/tabs.js.map +1 -1
  184. package/dist/text-area.d.ts +10 -8
  185. package/dist/text-area.js +1 -1
  186. package/dist/text-area.js.map +1 -1
  187. package/dist/theme-provider-CbzLgte1.js +2 -0
  188. package/dist/theme-provider-CbzLgte1.js.map +1 -0
  189. package/dist/theme.d.ts +65 -38
  190. package/dist/theme.js +1 -2
  191. package/dist/{themes-Bi46K9ZW.d.ts → themes-ClppRAGt.d.ts} +4 -2
  192. package/dist/toast-B4gxB8U0.js +2 -0
  193. package/dist/toast-B4gxB8U0.js.map +1 -0
  194. package/dist/toast.d.ts +95 -87
  195. package/dist/toast.js +1 -2
  196. package/dist/tooltip.d.ts +78 -73
  197. package/dist/tooltip.js +1 -1
  198. package/dist/tooltip.js.map +1 -1
  199. package/dist/{chunk-W2YQRWR5.js → traffic-policy-file-QnF-2YkY.js} +2 -2
  200. package/dist/traffic-policy-file-QnF-2YkY.js.map +1 -0
  201. package/dist/types-884RJJqm.js +2 -0
  202. package/dist/types-884RJJqm.js.map +1 -0
  203. package/dist/{types-DehRoXC5.d.ts → types-DgXUgkpc.d.ts} +38 -36
  204. package/dist/types-Dh4BVhXC.d.ts +9 -0
  205. package/dist/types.d.ts +6 -49
  206. package/dist/types.js +1 -2
  207. package/dist/use-copy-to-clipboard-BEbQOKHc.js +2 -0
  208. package/dist/use-copy-to-clipboard-BEbQOKHc.js.map +1 -0
  209. package/dist/use-matches-media-query-BxTQ5f4i.js +2 -0
  210. package/dist/use-matches-media-query-BxTQ5f4i.js.map +1 -0
  211. package/dist/use-prefers-reduced-motion-BPlsKyCJ.js +2 -0
  212. package/dist/use-prefers-reduced-motion-BPlsKyCJ.js.map +1 -0
  213. package/dist/utils.d.ts +6 -5
  214. package/dist/utils.js +1 -1
  215. package/dist/utils.js.map +1 -1
  216. package/dist/variant-props-UE-phTwh.d.ts +13 -0
  217. package/dist/with-style-props-D1QFTzj6.d.ts +29 -0
  218. package/package.json +15 -7
  219. package/dist/as-child-DJ7x3JFV.d.ts +0 -21
  220. package/dist/browser-only.js.map +0 -1
  221. package/dist/button-DLUUf_c-.d.ts +0 -173
  222. package/dist/button.js.map +0 -1
  223. package/dist/chunk-63ZAW25Z.js +0 -2
  224. package/dist/chunk-63ZAW25Z.js.map +0 -1
  225. package/dist/chunk-6J7D73WA.js +0 -2
  226. package/dist/chunk-6J7D73WA.js.map +0 -1
  227. package/dist/chunk-72TJUKMV.js +0 -1
  228. package/dist/chunk-72TJUKMV.js.map +0 -1
  229. package/dist/chunk-7MJQGBE4.js +0 -2
  230. package/dist/chunk-7MJQGBE4.js.map +0 -1
  231. package/dist/chunk-7YLII2US.js +0 -2
  232. package/dist/chunk-7YLII2US.js.map +0 -1
  233. package/dist/chunk-ADF5DAYG.js +0 -2
  234. package/dist/chunk-ADF5DAYG.js.map +0 -1
  235. package/dist/chunk-CBRSMQ26.js +0 -2
  236. package/dist/chunk-CBRSMQ26.js.map +0 -1
  237. package/dist/chunk-COQIVAQH.js +0 -2
  238. package/dist/chunk-COQIVAQH.js.map +0 -1
  239. package/dist/chunk-EIEPGCIG.js +0 -2
  240. package/dist/chunk-EIEPGCIG.js.map +0 -1
  241. package/dist/chunk-ELZLLG6G.js +0 -2
  242. package/dist/chunk-ELZLLG6G.js.map +0 -1
  243. package/dist/chunk-EYZYDUS2.js +0 -2
  244. package/dist/chunk-EYZYDUS2.js.map +0 -1
  245. package/dist/chunk-HF3KJHO3.js +0 -2
  246. package/dist/chunk-HF3KJHO3.js.map +0 -1
  247. package/dist/chunk-HKSO72E5.js +0 -2
  248. package/dist/chunk-HKSO72E5.js.map +0 -1
  249. package/dist/chunk-HL2HWYKP.js +0 -2
  250. package/dist/chunk-HL2HWYKP.js.map +0 -1
  251. package/dist/chunk-IVQ626TU.js +0 -2
  252. package/dist/chunk-IVQ626TU.js.map +0 -1
  253. package/dist/chunk-JQ5D5YZR.js +0 -2
  254. package/dist/chunk-JQ5D5YZR.js.map +0 -1
  255. package/dist/chunk-KCF3KPUB.js +0 -2
  256. package/dist/chunk-KCF3KPUB.js.map +0 -1
  257. package/dist/chunk-KMNACVH6.js +0 -2
  258. package/dist/chunk-KMNACVH6.js.map +0 -1
  259. package/dist/chunk-MLXONRJD.js +0 -2
  260. package/dist/chunk-MLXONRJD.js.map +0 -1
  261. package/dist/chunk-NJNFZ2EG.js +0 -2
  262. package/dist/chunk-NJNFZ2EG.js.map +0 -1
  263. package/dist/chunk-OHPGAB7U.js +0 -2
  264. package/dist/chunk-OHPGAB7U.js.map +0 -1
  265. package/dist/chunk-OP6JMBKJ.js +0 -2
  266. package/dist/chunk-OP6JMBKJ.js.map +0 -1
  267. package/dist/chunk-PFXFESEN.js +0 -2
  268. package/dist/chunk-PFXFESEN.js.map +0 -1
  269. package/dist/chunk-PNL7JOXI.js +0 -2
  270. package/dist/chunk-PNL7JOXI.js.map +0 -1
  271. package/dist/chunk-RED6SFAV.js +0 -2
  272. package/dist/chunk-RED6SFAV.js.map +0 -1
  273. package/dist/chunk-SBQHQ2SJ.js +0 -2
  274. package/dist/chunk-SBQHQ2SJ.js.map +0 -1
  275. package/dist/chunk-W2YQRWR5.js.map +0 -1
  276. package/dist/chunk-W5A5HSFE.js +0 -2
  277. package/dist/chunk-W5A5HSFE.js.map +0 -1
  278. package/dist/chunk-YPAUKPCE.js +0 -2
  279. package/dist/chunk-YPAUKPCE.js.map +0 -1
  280. package/dist/cx.js.map +0 -1
  281. package/dist/deep-non-nullable-SmpSvoSd.d.ts +0 -8
  282. package/dist/dialog.js.map +0 -1
  283. package/dist/dropdown-menu.js.map +0 -1
  284. package/dist/icon-button-CT71Ti9V.d.ts +0 -96
  285. package/dist/icon.js.map +0 -1
  286. package/dist/kbd.js.map +0 -1
  287. package/dist/primitive-CBR_XmVa.d.ts +0 -14
  288. package/dist/select.js.map +0 -1
  289. package/dist/separator.js.map +0 -1
  290. package/dist/slot.js.map +0 -1
  291. package/dist/table.js.map +0 -1
  292. package/dist/theme.js.map +0 -1
  293. package/dist/toast.js.map +0 -1
  294. package/dist/types-BuKAGhC-.d.ts +0 -7
  295. package/dist/types.js.map +0 -1
  296. package/dist/variant-props-oDo2u-We.d.ts +0 -11
  297. package/dist/with-style-props-VnLWm0Yd.d.ts +0 -27
package/dist/toast.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import * as react from 'react';
2
- import { ComponentProps, ReactNode } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as ToastPrimitive from 'sonner';
5
- import { W as WithAsChild } from './as-child-DJ7x3JFV.js';
6
- import { W as WithStyleProps } from './with-style-props-VnLWm0Yd.js';
7
- import { a as SvgOnlyProps } from './svg-only-Cp8Mu_sh.js';
8
- import './types-BuKAGhC-.js';
1
+ import { t as WithAsChild } from "./as-child-XMVTepJu.js";
2
+ import { t as WithStyleProps } from "./with-style-props-D1QFTzj6.js";
3
+ import { n as SvgOnlyProps } from "./svg-only-Dti1FvNV.js";
4
+ import * as react from "react";
5
+ import { ComponentProps, ReactNode } from "react";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+ import * as ToastPrimitive from "sonner";
9
8
 
9
+ //#region src/components/toast/toast.d.ts
10
10
  type ToasterPrimitiveProps = ComponentProps<typeof ToastPrimitive.Toaster>;
11
11
  type ToasterProps = WithStyleProps & Pick<ToasterPrimitiveProps, "containerAriaLabel" | "dir" | "position"> & {
12
- /**
13
- * Time in milliseconds that should elapse before automatically dismissing toasts.
14
- * When set here, this will be the default duration for all toasts.
15
- * @default 4000
16
- */
17
- duration_ms?: number;
12
+ /**
13
+ * Time in milliseconds that should elapse before automatically dismissing toasts.
14
+ * When set here, this will be the default duration for all toasts.
15
+ * @default 4000
16
+ */
17
+ duration_ms?: number;
18
18
  };
19
19
  /**
20
20
  * A container for displaying all toasts.
@@ -33,21 +33,28 @@ type ToasterProps = WithStyleProps & Pick<ToasterPrimitiveProps, "containerAriaL
33
33
  * ```
34
34
  */
35
35
  declare const Toaster: {
36
- ({ className, containerAriaLabel, dir, duration_ms, position, style, }: ToasterProps): react_jsx_runtime.JSX.Element;
37
- displayName: string;
36
+ ({
37
+ className,
38
+ containerAriaLabel,
39
+ dir,
40
+ duration_ms,
41
+ position,
42
+ style
43
+ }: ToasterProps): react_jsx_runtime0.JSX.Element;
44
+ displayName: string;
38
45
  };
39
46
  type MakeToastOptions = {
40
- /**
41
- * Time in milliseconds that should elapse before automatically closing the toast.
42
- * Will default to the `<Toaster />`'s `duration_ms` if not provided.
43
- *
44
- * You can keep the toast open until manually dismissed by passing a value <= 0 or Number.POSITIVE_INFINITY
45
- */
46
- duration_ms?: number;
47
- /**
48
- * An optional custom ID for this toast. If not given, a unique ID is provided for you.
49
- */
50
- id?: string;
47
+ /**
48
+ * Time in milliseconds that should elapse before automatically closing the toast.
49
+ * Will default to the `<Toaster />`'s `duration_ms` if not provided.
50
+ *
51
+ * You can keep the toast open until manually dismissed by passing a value <= 0 or Number.POSITIVE_INFINITY
52
+ */
53
+ duration_ms?: number;
54
+ /**
55
+ * An optional custom ID for this toast. If not given, a unique ID is provided for you.
56
+ */
57
+ id?: string;
51
58
  };
52
59
  /**
53
60
  * Create a toast. Provide a `<Toast.Root>` component as the `children` to be rendered
@@ -81,7 +88,7 @@ declare function makeToast(children: ReactNode, options?: MakeToastOptions): str
81
88
  declare const priorities: readonly ["danger", "info", "success", "warning"];
82
89
  type Priority = (typeof priorities)[number];
83
90
  type ToastProps = ComponentProps<"div"> & WithAsChild & {
84
- priority: Priority;
91
+ priority: Priority;
85
92
  };
86
93
  type ToastActionProps = ComponentProps<"button"> & WithAsChild;
87
94
  type ToastMessageProps = ComponentProps<"p"> & WithAsChild;
@@ -103,64 +110,65 @@ type ToastMessageProps = ComponentProps<"p"> & WithAsChild;
103
110
  * ```
104
111
  */
105
112
  declare const Toast: {
106
- /**
107
- * A succinct message with a priority that is displayed temporarily.
108
- *
109
- * @see https://mantle.ngrok.com/components/toast#toastroot
110
- *
111
- * @example
112
- * ```tsx
113
- * <Toast.Root priority="success">
114
- * <Toast.Icon />
115
- * <Toast.Message>Changes saved successfully!</Toast.Message>
116
- * <Toast.Action>Undo</Toast.Action>
117
- * </Toast.Root>
118
- * ```
119
- */
120
- readonly Root: react.ForwardRefExoticComponent<Omit<ToastProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
121
- /**
122
- * A button that dismisses the toast when clicked.
123
- *
124
- * @see https://mantle.ngrok.com/components/toast#toastaction
125
- *
126
- * @example
127
- * ```tsx
128
- * <Toast.Root priority="info">
129
- * <Toast.Icon />
130
- * <Toast.Message>File uploaded successfully</Toast.Message>
131
- * <Toast.Action>View File</Toast.Action>
132
- * </Toast.Root>
133
- * ```
134
- */
135
- readonly Action: react.ForwardRefExoticComponent<Omit<ToastActionProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
136
- /**
137
- * An icon that visually represents the priority of the toast.
138
- *
139
- * @see https://mantle.ngrok.com/components/toast#toasticon
140
- *
141
- * @example
142
- * ```tsx
143
- * <Toast.Root priority="warning">
144
- * <Toast.Icon />
145
- * <Toast.Message>Warning message</Toast.Message>
146
- * </Toast.Root>
147
- * ```
148
- */
149
- readonly Icon: react.ForwardRefExoticComponent<Omit<Partial<SvgOnlyProps>, "ref"> & react.RefAttributes<SVGSVGElement>>;
150
- /**
151
- * The message content of the toast.
152
- *
153
- * @see https://mantle.ngrok.com/components/toast#toastmessage
154
- *
155
- * @example
156
- * ```tsx
157
- * <Toast.Root priority="success">
158
- * <Toast.Icon />
159
- * <Toast.Message>Your changes have been saved</Toast.Message>
160
- * </Toast.Root>
161
- * ```
162
- */
163
- readonly Message: react.ForwardRefExoticComponent<Omit<ToastMessageProps, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
113
+ /**
114
+ * A succinct message with a priority that is displayed temporarily.
115
+ *
116
+ * @see https://mantle.ngrok.com/components/toast#toastroot
117
+ *
118
+ * @example
119
+ * ```tsx
120
+ * <Toast.Root priority="success">
121
+ * <Toast.Icon />
122
+ * <Toast.Message>Changes saved successfully!</Toast.Message>
123
+ * <Toast.Action>Undo</Toast.Action>
124
+ * </Toast.Root>
125
+ * ```
126
+ */
127
+ readonly Root: react.ForwardRefExoticComponent<Omit<ToastProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
128
+ /**
129
+ * A button that dismisses the toast when clicked.
130
+ *
131
+ * @see https://mantle.ngrok.com/components/toast#toastaction
132
+ *
133
+ * @example
134
+ * ```tsx
135
+ * <Toast.Root priority="info">
136
+ * <Toast.Icon />
137
+ * <Toast.Message>File uploaded successfully</Toast.Message>
138
+ * <Toast.Action>View File</Toast.Action>
139
+ * </Toast.Root>
140
+ * ```
141
+ */
142
+ readonly Action: react.ForwardRefExoticComponent<Omit<ToastActionProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
143
+ /**
144
+ * An icon that visually represents the priority of the toast.
145
+ *
146
+ * @see https://mantle.ngrok.com/components/toast#toasticon
147
+ *
148
+ * @example
149
+ * ```tsx
150
+ * <Toast.Root priority="warning">
151
+ * <Toast.Icon />
152
+ * <Toast.Message>Warning message</Toast.Message>
153
+ * </Toast.Root>
154
+ * ```
155
+ */
156
+ readonly Icon: react.ForwardRefExoticComponent<Omit<Partial<SvgOnlyProps>, "ref"> & react.RefAttributes<SVGSVGElement>>;
157
+ /**
158
+ * The message content of the toast.
159
+ *
160
+ * @see https://mantle.ngrok.com/components/toast#toastmessage
161
+ *
162
+ * @example
163
+ * ```tsx
164
+ * <Toast.Root priority="success">
165
+ * <Toast.Icon />
166
+ * <Toast.Message>Your changes have been saved</Toast.Message>
167
+ * </Toast.Root>
168
+ * ```
169
+ */
170
+ readonly Message: react.ForwardRefExoticComponent<Omit<ToastMessageProps, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
164
171
  };
165
-
172
+ //#endregion
166
173
  export { type Priority, Toast, Toaster, makeToast };
174
+ //# sourceMappingURL=toast.d.ts.map
package/dist/toast.js CHANGED
@@ -1,2 +1 @@
1
- import{a as o,b as t,c as r}from"./chunk-EIEPGCIG.js";import"./chunk-HF3KJHO3.js";import"./chunk-6J7D73WA.js";import"./chunk-NJNFZ2EG.js";import"./chunk-KMNACVH6.js";import"./chunk-IVQ626TU.js";import"./chunk-ADF5DAYG.js";import"./chunk-SBQHQ2SJ.js";import"./chunk-PFXFESEN.js";export{r as Toast,o as Toaster,t as makeToast};
2
- //# sourceMappingURL=toast.js.map
1
+ import{n as e,r as t,t as n}from"./toast-B4gxB8U0.js";export{n as Toast,e as Toaster,t as makeToast};
package/dist/tooltip.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import * as react from 'react';
2
- import { ComponentProps, ComponentPropsWithoutRef } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
1
+ import * as react from "react";
2
+ import { ComponentProps, ComponentPropsWithoutRef } from "react";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
5
5
 
6
+ //#region src/components/tooltip/tooltip.d.ts
6
7
  /**
7
8
  * Wraps your app to provide global functionality to your tooltips.
8
9
  * Only one instance of this component should be rendered in your app, preferably at the root.
@@ -17,8 +18,11 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
17
18
  * ```
18
19
  */
19
20
  declare const TooltipProvider: {
20
- ({ delayDuration, ...props }: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
21
- displayName: string;
21
+ ({
22
+ delayDuration,
23
+ ...props
24
+ }: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>): react_jsx_runtime0.JSX.Element;
25
+ displayName: string;
22
26
  };
23
27
  /**
24
28
  * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
@@ -41,9 +45,9 @@ declare const TooltipProvider: {
41
45
  * </Tooltip.Root>
42
46
  * ```
43
47
  */
44
- declare function Root(props: ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
48
+ declare function Root(props: ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime0.JSX.Element;
45
49
  declare namespace Root {
46
- var displayName: string;
50
+ var displayName: string;
47
51
  }
48
52
  /**
49
53
  * The trigger button that opens the tooltip.
@@ -64,9 +68,9 @@ declare namespace Root {
64
68
  * </Tooltip.Root>
65
69
  * ```
66
70
  */
67
- declare function Trigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
71
+ declare function Trigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
68
72
  declare namespace Trigger {
69
- var displayName: string;
73
+ var displayName: string;
70
74
  }
71
75
  /**
72
76
  * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
@@ -90,68 +94,69 @@ declare namespace Trigger {
90
94
  * ```
91
95
  */
92
96
  declare const Tooltip: {
93
- /**
94
- * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
95
- * This is the root, stateful component that manages the open/closed state of the tooltip.
96
- * Will throw if you have not wrapped your app in a `TooltipProvider`.
97
- *
98
- * @see https://mantle.ngrok.com/components/tooltip#tooltiproot
99
- *
100
- * @example
101
- * ```tsx
102
- * <Tooltip.Root>
103
- * <Tooltip.Trigger asChild>
104
- * <Button type="button" appearance="outlined">
105
- * Hover me
106
- * </Button>
107
- * </Tooltip.Trigger>
108
- * <Tooltip.Content>
109
- * This is a tooltip
110
- * </Tooltip.Content>
111
- * </Tooltip.Root>
112
- * ```
113
- */
114
- readonly Root: typeof Root;
115
- /**
116
- * The content to render inside the tooltip.
117
- *
118
- * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent
119
- *
120
- * @example
121
- * ```tsx
122
- * <Tooltip.Root>
123
- * <Tooltip.Trigger asChild>
124
- * <Button type="button" appearance="outlined">
125
- * Hover me
126
- * </Button>
127
- * </Tooltip.Trigger>
128
- * <Tooltip.Content>
129
- * This is a tooltip
130
- * </Tooltip.Content>
131
- * </Tooltip.Root>
132
- * ```
133
- */
134
- readonly Content: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
135
- /**
136
- * The trigger button that opens the tooltip.
137
- *
138
- * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger
139
- *
140
- * @example
141
- * ```tsx
142
- * <Tooltip.Root>
143
- * <Tooltip.Trigger asChild>
144
- * <Button type="button" appearance="outlined">
145
- * Hover me
146
- * </Button>
147
- * </Tooltip.Trigger>
148
- * <Tooltip.Content>
149
- * This is a tooltip
150
- * </Tooltip.Content>
151
- * </Tooltip.Root>
152
- * ```
153
- */
154
- readonly Trigger: typeof Trigger;
97
+ /**
98
+ * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
99
+ * This is the root, stateful component that manages the open/closed state of the tooltip.
100
+ * Will throw if you have not wrapped your app in a `TooltipProvider`.
101
+ *
102
+ * @see https://mantle.ngrok.com/components/tooltip#tooltiproot
103
+ *
104
+ * @example
105
+ * ```tsx
106
+ * <Tooltip.Root>
107
+ * <Tooltip.Trigger asChild>
108
+ * <Button type="button" appearance="outlined">
109
+ * Hover me
110
+ * </Button>
111
+ * </Tooltip.Trigger>
112
+ * <Tooltip.Content>
113
+ * This is a tooltip
114
+ * </Tooltip.Content>
115
+ * </Tooltip.Root>
116
+ * ```
117
+ */
118
+ readonly Root: typeof Root;
119
+ /**
120
+ * The content to render inside the tooltip.
121
+ *
122
+ * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent
123
+ *
124
+ * @example
125
+ * ```tsx
126
+ * <Tooltip.Root>
127
+ * <Tooltip.Trigger asChild>
128
+ * <Button type="button" appearance="outlined">
129
+ * Hover me
130
+ * </Button>
131
+ * </Tooltip.Trigger>
132
+ * <Tooltip.Content>
133
+ * This is a tooltip
134
+ * </Tooltip.Content>
135
+ * </Tooltip.Root>
136
+ * ```
137
+ */
138
+ readonly Content: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
139
+ /**
140
+ * The trigger button that opens the tooltip.
141
+ *
142
+ * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger
143
+ *
144
+ * @example
145
+ * ```tsx
146
+ * <Tooltip.Root>
147
+ * <Tooltip.Trigger asChild>
148
+ * <Button type="button" appearance="outlined">
149
+ * Hover me
150
+ * </Button>
151
+ * </Tooltip.Trigger>
152
+ * <Tooltip.Content>
153
+ * This is a tooltip
154
+ * </Tooltip.Content>
155
+ * </Tooltip.Root>
156
+ * ```
157
+ */
158
+ readonly Trigger: typeof Trigger;
155
159
  };
156
-
160
+ //#endregion
157
161
  export { Tooltip, TooltipProvider };
162
+ //# sourceMappingURL=tooltip.d.ts.map
package/dist/tooltip.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-PFXFESEN.js";import*as o from"@radix-ui/react-tooltip";import{forwardRef as f}from"react";import{jsx as i,jsxs as T}from"react/jsx-runtime";var p=({delayDuration:t=0,...e})=>i(o.Provider,{"data-slot":"tooltip-provider",delayDuration:t??0,...e});p.displayName="Tooltip.Provider";function a(t){return i(o.Root,{"data-slot":"tooltip",...t})}a.displayName="Tooltip.Root";function l(t){return i(o.Trigger,{"data-slot":"tooltip-trigger",...t})}l.displayName="Tooltip.Trigger";var n=f(({children:t,className:e,sideOffset:m=4,...s},d)=>i(o.Portal,{children:T(o.Content,{className:r("bg-tooltip text-tooltip animate-in fade-in-0 zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 z-50 max-w-72 overflow-visible wrap-break-word rounded-md px-3 py-1.5 text-sm font-sans shadow",e),"data-slot":"tooltip-content",ref:d,sideOffset:m,...s,children:[t,i(o.Arrow,{asChild:!0,children:i("div",{className:"bg-tooltip z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs"})})]})}));n.displayName="Tooltip.Content";var P={Root:a,Content:n,Trigger:l};export{P as Tooltip,p as TooltipProvider};
1
+ import{t as e}from"./cx-bKromGBh.js";import{forwardRef as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@radix-ui/react-tooltip";const a=({delayDuration:e=0,...t})=>n(i.Provider,{"data-slot":`tooltip-provider`,delayDuration:e??0,...t});a.displayName=`Tooltip.Provider`;function o(e){return n(i.Root,{"data-slot":`tooltip`,...e})}o.displayName=`Tooltip.Root`;function s(e){return n(i.Trigger,{"data-slot":`tooltip-trigger`,...e})}s.displayName=`Tooltip.Trigger`;const c=t(({children:t,className:a,sideOffset:o=4,...s},c)=>n(i.Portal,{children:r(i.Content,{className:e(`bg-tooltip text-tooltip animate-in fade-in-0 zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 z-50 max-w-72 overflow-visible wrap-break-word rounded-md px-3 py-1.5 text-sm font-sans shadow`,a),"data-slot":`tooltip-content`,ref:c,sideOffset:o,...s,children:[t,n(i.Arrow,{asChild:!0,children:n(`div`,{className:`bg-tooltip z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs`})})]})}));c.displayName=`Tooltip.Content`;const l={Root:o,Content:c,Trigger:s};export{l as Tooltip,a as TooltipProvider};
2
2
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { forwardRef } from \"react\";\nimport type { ComponentProps, ComponentPropsWithoutRef, ComponentRef } from \"react\";\nimport { cx } from \"../../utils/cx/cx.js\";\n\n/**\n * Wraps your app to provide global functionality to your tooltips.\n * Only one instance of this component should be rendered in your app, preferably at the root.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltipprovider\n *\n * @example\n * ```tsx\n * <TooltipProvider>\n * <App />\n * </TooltipProvider>\n * ```\n */\nconst TooltipProvider = ({\n\tdelayDuration = 0,\n\t...props\n}: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>) => (\n\t<TooltipPrimitive.Provider\n\t\tdata-slot=\"tooltip-provider\"\n\t\tdelayDuration={delayDuration ?? 0}\n\t\t{...props}\n\t/>\n);\nTooltipProvider.displayName = \"Tooltip.Provider\";\n\n/**\n * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n * This is the root, stateful component that manages the open/closed state of the tooltip.\n * Will throw if you have not wrapped your app in a `TooltipProvider`.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltiproot\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nfunction Root(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n\treturn <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\nRoot.displayName = \"Tooltip.Root\";\n\n/**\n * The trigger button that opens the tooltip.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nfunction Trigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n\treturn <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\nTrigger.displayName = \"Tooltip.Trigger\";\n\n/**\n * The content to render inside the tooltip.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nconst Content = forwardRef<\n\tComponentRef<typeof TooltipPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ children, className, sideOffset = 4, ...props }, ref) => (\n\t<TooltipPrimitive.Portal>\n\t\t<TooltipPrimitive.Content\n\t\t\tclassName={cx(\n\t\t\t\t\"bg-tooltip text-tooltip animate-in fade-in-0 zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 z-50 max-w-72 overflow-visible wrap-break-word rounded-md px-3 py-1.5 text-sm font-sans shadow\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"tooltip-content\"\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<TooltipPrimitive.Arrow asChild>\n\t\t\t\t<div className=\"bg-tooltip z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs\" />\n\t\t\t</TooltipPrimitive.Arrow>\n\t\t</TooltipPrimitive.Content>\n\t</TooltipPrimitive.Portal>\n));\nContent.displayName = \"Tooltip.Content\";\n\n/**\n * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n * This is the root, stateful component that manages the open/closed state of the tooltip.\n * Will throw if you have not wrapped your app in a `TooltipProvider`.\n *\n * @see https://mantle.ngrok.com/components/tooltip\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nconst Tooltip = {\n\t/**\n\t * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n\t * This is the root, stateful component that manages the open/closed state of the tooltip.\n\t * Will throw if you have not wrapped your app in a `TooltipProvider`.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltiproot\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tRoot,\n\t/**\n\t * The content to render inside the tooltip.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tContent,\n\t/**\n\t * The trigger button that opens the tooltip.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tTrigger,\n} as const;\n\nexport {\n\t//,\n\tTooltip,\n\tTooltipProvider,\n};\n"],"mappings":"wCAAA,UAAYA,MAAsB,0BAClC,OAAS,cAAAC,MAAkB,QAqB1B,cAAAC,EAkFC,QAAAC,MAlFD,oBAJD,IAAMC,EAAkB,CAAC,CACxB,cAAAC,EAAgB,EAChB,GAAGC,CACJ,IACCJ,EAAkB,WAAjB,CACA,YAAU,mBACV,cAAeG,GAAiB,EAC/B,GAAGC,EACL,EAEDF,EAAgB,YAAc,mBAuB9B,SAASG,EAAKD,EAAqD,CAClE,OAAOJ,EAAkB,OAAjB,CAAsB,YAAU,UAAW,GAAGI,EAAO,CAC9D,CACAC,EAAK,YAAc,eAqBnB,SAASC,EAAQF,EAAwD,CACxE,OAAOJ,EAAkB,UAAjB,CAAyB,YAAU,kBAAmB,GAAGI,EAAO,CACzE,CACAE,EAAQ,YAAc,kBAqBtB,IAAMC,EAAUC,EAGd,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGP,CAAM,EAAGQ,IACrDZ,EAAkB,SAAjB,CACA,SAAAC,EAAkB,UAAjB,CACA,UAAWY,EACV,sYACAH,CACD,EACA,YAAU,kBACV,IAAKE,EACL,WAAYD,EACX,GAAGP,EAEH,UAAAK,EACDT,EAAkB,QAAjB,CAAuB,QAAO,GAC9B,SAAAA,EAAC,OAAI,UAAU,6EAA6E,EAC7F,GACD,EACD,CACA,EACDO,EAAQ,YAAc,kBAuBtB,IAAMO,EAAU,CAsBf,KAAAT,EAoBA,QAAAE,EAoBA,QAAAD,CACD","names":["TooltipPrimitive","forwardRef","jsx","jsxs","TooltipProvider","delayDuration","props","Root","Trigger","Content","forwardRef","children","className","sideOffset","ref","cx","Tooltip"]}
1
+ {"version":3,"file":"tooltip.js","names":[],"sources":["../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { forwardRef } from \"react\";\nimport type { ComponentProps, ComponentPropsWithoutRef, ComponentRef } from \"react\";\nimport { cx } from \"../../utils/cx/cx.js\";\n\n/**\n * Wraps your app to provide global functionality to your tooltips.\n * Only one instance of this component should be rendered in your app, preferably at the root.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltipprovider\n *\n * @example\n * ```tsx\n * <TooltipProvider>\n * <App />\n * </TooltipProvider>\n * ```\n */\nconst TooltipProvider = ({\n\tdelayDuration = 0,\n\t...props\n}: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>) => (\n\t<TooltipPrimitive.Provider\n\t\tdata-slot=\"tooltip-provider\"\n\t\tdelayDuration={delayDuration ?? 0}\n\t\t{...props}\n\t/>\n);\nTooltipProvider.displayName = \"Tooltip.Provider\";\n\n/**\n * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n * This is the root, stateful component that manages the open/closed state of the tooltip.\n * Will throw if you have not wrapped your app in a `TooltipProvider`.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltiproot\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nfunction Root(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n\treturn <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\nRoot.displayName = \"Tooltip.Root\";\n\n/**\n * The trigger button that opens the tooltip.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nfunction Trigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n\treturn <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\nTrigger.displayName = \"Tooltip.Trigger\";\n\n/**\n * The content to render inside the tooltip.\n *\n * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nconst Content = forwardRef<\n\tComponentRef<typeof TooltipPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ children, className, sideOffset = 4, ...props }, ref) => (\n\t<TooltipPrimitive.Portal>\n\t\t<TooltipPrimitive.Content\n\t\t\tclassName={cx(\n\t\t\t\t\"bg-tooltip text-tooltip animate-in fade-in-0 zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 z-50 max-w-72 overflow-visible wrap-break-word rounded-md px-3 py-1.5 text-sm font-sans shadow\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"tooltip-content\"\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<TooltipPrimitive.Arrow asChild>\n\t\t\t\t<div className=\"bg-tooltip z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs\" />\n\t\t\t</TooltipPrimitive.Arrow>\n\t\t</TooltipPrimitive.Content>\n\t</TooltipPrimitive.Portal>\n));\nContent.displayName = \"Tooltip.Content\";\n\n/**\n * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n * This is the root, stateful component that manages the open/closed state of the tooltip.\n * Will throw if you have not wrapped your app in a `TooltipProvider`.\n *\n * @see https://mantle.ngrok.com/components/tooltip\n *\n * @example\n * ```tsx\n * <Tooltip.Root>\n * <Tooltip.Trigger asChild>\n * <Button type=\"button\" appearance=\"outlined\">\n * Hover me\n * </Button>\n * </Tooltip.Trigger>\n * <Tooltip.Content>\n * This is a tooltip\n * </Tooltip.Content>\n * </Tooltip.Root>\n * ```\n */\nconst Tooltip = {\n\t/**\n\t * A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\n\t * This is the root, stateful component that manages the open/closed state of the tooltip.\n\t * Will throw if you have not wrapped your app in a `TooltipProvider`.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltiproot\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tRoot,\n\t/**\n\t * The content to render inside the tooltip.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltipcontent\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tContent,\n\t/**\n\t * The trigger button that opens the tooltip.\n\t *\n\t * @see https://mantle.ngrok.com/components/tooltip#tooltiptrigger\n\t *\n\t * @example\n\t * ```tsx\n\t * <Tooltip.Root>\n\t * <Tooltip.Trigger asChild>\n\t * <Button type=\"button\" appearance=\"outlined\">\n\t * Hover me\n\t * </Button>\n\t * </Tooltip.Trigger>\n\t * <Tooltip.Content>\n\t * This is a tooltip\n\t * </Tooltip.Content>\n\t * </Tooltip.Root>\n\t * ```\n\t */\n\tTrigger,\n} as const;\n\nexport {\n\t//,\n\tTooltip,\n\tTooltipProvider,\n};\n"],"mappings":"oKAkBA,MAAM,GAAmB,CACxB,gBAAgB,EAChB,GAAG,KAEH,EAAC,EAAiB,SAAlB,CACC,YAAU,mBACV,cAAe,GAAiB,EAChC,GAAI,EACH,CAAA,CAEH,EAAgB,YAAc,mBAuB9B,SAAS,EAAK,EAAqD,CAClE,OAAO,EAAC,EAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAI,EAAS,CAAA,CAEhE,EAAK,YAAc,eAqBnB,SAAS,EAAQ,EAAwD,CACxE,OAAO,EAAC,EAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAI,EAAS,CAAA,CAE3E,EAAQ,YAAc,kBAqBtB,MAAM,EAAU,GAGb,CAAE,WAAU,YAAW,aAAa,EAAG,GAAG,GAAS,IACrD,EAAC,EAAiB,OAAlB,CAAA,SACC,EAAC,EAAiB,QAAlB,CACC,UAAW,EACV,sYACA,EACA,CACD,YAAU,kBACL,MACO,aACZ,GAAI,WARL,CAUE,EACD,EAAC,EAAiB,MAAlB,CAAwB,QAAA,YACvB,EAAC,MAAD,CAAK,UAAU,6EAA+E,CAAA,CACtE,CAAA,CACC,GACF,CAAA,CACzB,CACF,EAAQ,YAAc,kBAuBtB,MAAM,EAAU,CAsBf,OAoBA,UAoBA,UACA"}
@@ -1,2 +1,2 @@
1
- import{jsx as c,jsxs as s}from"react/jsx-runtime";function t(h){return s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...h,children:[c("path",{fill:"none",d:"M0 0h256v256H0z"}),c("path",{d:"m213.7 82.3-56-56c-1.5-1.5-3.5-2.3-5.7-2.3H56c-8.8 0-16 7.2-16 16v88c0 4.4 3.6 8 8 8s8-3.6 8-8V40h88v48c0 4.4 3.6 8 8 8h48v120h-40c-4.4 0-8 3.6-8 8s3.6 8 8 8h40c8.8 0 16-7.2 16-16V88c0-2.1-.8-4.2-2.3-5.7zm-53.7-31L188.7 80H160V51.3z"}),c("path",{d:"M124.6 194.5h-6.8v-27.3h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4h-6.8v-10.2c0-3.8-3.1-6.8-6.8-6.8H63.3c-3.8 0-6.8 3.1-6.8 6.8v10.2h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v27.3h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v23.9c0 3.8 3.1 6.8 6.8 6.8H111c3.8 0 6.8-3.1 6.8-6.8v-23.9h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4zm-37.5-11.9c-6.6 0-11.9-5.3-11.9-11.9s5.3-11.9 11.9-11.9S99 164.1 99 170.7s-5.3 11.9-11.9 11.9zm0 10.2c6.6 0 11.9 5.3 11.9 11.9s-5.3 11.9-11.9 11.9-11.9-5.3-11.9-11.9 5.3-11.9 11.9-11.9z"})]})}t.displayName="TrafficPolicyFileIcon";export{t as a};
2
- //# sourceMappingURL=chunk-W2YQRWR5.js.map
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";function n(n){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...n,children:[e(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),e(`path`,{d:`m213.7 82.3-56-56c-1.5-1.5-3.5-2.3-5.7-2.3H56c-8.8 0-16 7.2-16 16v88c0 4.4 3.6 8 8 8s8-3.6 8-8V40h88v48c0 4.4 3.6 8 8 8h48v120h-40c-4.4 0-8 3.6-8 8s3.6 8 8 8h40c8.8 0 16-7.2 16-16V88c0-2.1-.8-4.2-2.3-5.7zm-53.7-31L188.7 80H160V51.3z`}),e(`path`,{d:`M124.6 194.5h-6.8v-27.3h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4h-6.8v-10.2c0-3.8-3.1-6.8-6.8-6.8H63.3c-3.8 0-6.8 3.1-6.8 6.8v10.2h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v27.3h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v23.9c0 3.8 3.1 6.8 6.8 6.8H111c3.8 0 6.8-3.1 6.8-6.8v-23.9h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4zm-37.5-11.9c-6.6 0-11.9-5.3-11.9-11.9s5.3-11.9 11.9-11.9S99 164.1 99 170.7s-5.3 11.9-11.9 11.9zm0 10.2c6.6 0 11.9 5.3 11.9 11.9s-5.3 11.9-11.9 11.9-11.9-5.3-11.9-11.9 5.3-11.9 11.9-11.9z`})]})}n.displayName=`TrafficPolicyFileIcon`;export{n as t};
2
+ //# sourceMappingURL=traffic-policy-file-QnF-2YkY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traffic-policy-file-QnF-2YkY.js","names":[],"sources":["../src/components/icons/traffic-policy-file.tsx"],"sourcesContent":["import type { SvgAttributes } from \"../icon/types.js\";\n\n/**\n * An icon representing a traffic policy file.\n */\nfunction TrafficPolicyFileIcon(props: SvgAttributes) {\n\treturn (\n\t\t<svg\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\twidth=\"1em\"\n\t\t\theight=\"1em\"\n\t\t\tfill=\"currentColor\"\n\t\t\tviewBox=\"0 0 256 256\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path fill=\"none\" d=\"M0 0h256v256H0z\" />\n\t\t\t<path d=\"m213.7 82.3-56-56c-1.5-1.5-3.5-2.3-5.7-2.3H56c-8.8 0-16 7.2-16 16v88c0 4.4 3.6 8 8 8s8-3.6 8-8V40h88v48c0 4.4 3.6 8 8 8h48v120h-40c-4.4 0-8 3.6-8 8s3.6 8 8 8h40c8.8 0 16-7.2 16-16V88c0-2.1-.8-4.2-2.3-5.7zm-53.7-31L188.7 80H160V51.3z\" />\n\t\t\t<path d=\"M124.6 194.5h-6.8v-27.3h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4h-6.8v-10.2c0-3.8-3.1-6.8-6.8-6.8H63.3c-3.8 0-6.8 3.1-6.8 6.8v10.2h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v27.3h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v23.9c0 3.8 3.1 6.8 6.8 6.8H111c3.8 0 6.8-3.1 6.8-6.8v-23.9h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4zm-37.5-11.9c-6.6 0-11.9-5.3-11.9-11.9s5.3-11.9 11.9-11.9S99 164.1 99 170.7s-5.3 11.9-11.9 11.9zm0 10.2c6.6 0 11.9 5.3 11.9 11.9s-5.3 11.9-11.9 11.9-11.9-5.3-11.9-11.9 5.3-11.9 11.9-11.9z\" />\n\t\t</svg>\n\t);\n}\nTrafficPolicyFileIcon.displayName = \"TrafficPolicyFileIcon\";\n\nexport {\n\t//,\n\tTrafficPolicyFileIcon,\n};\n"],"mappings":"kDAKA,SAAS,EAAsB,EAAsB,CACpD,OACC,EAAC,MAAD,CACC,MAAM,6BACN,MAAM,MACN,OAAO,MACP,KAAK,eACL,QAAQ,cACR,GAAI,WANL,CAQC,EAAC,OAAD,CAAM,KAAK,OAAO,EAAE,kBAAoB,CAAA,CACxC,EAAC,OAAD,CAAM,EAAE,2OAA6O,CAAA,CACrP,EAAC,OAAD,CAAM,EAAE,6gBAA+gB,CAAA,CAClhB,GAGR,EAAsB,YAAc"}
@@ -0,0 +1,2 @@
1
+ const e=e=>e;export{e as t};
2
+ //# sourceMappingURL=types-884RJJqm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-884RJJqm.js","names":[],"sources":["../src/types/css-properties.ts"],"sourcesContent":["import type { CSSProperties as ReactCSSProperties } from \"react\";\n\n/**\n * A CSS custom property (CSS variable) name.\n *\n * CSS variables must start with `--`, e.g. `--brand-color` or `--spacing-2`.\n * This template-literal type lets TypeScript recognize those keys as valid\n * style keys when building objects for `style={...}`.\n */\ntype CssVariableName = `--${string}`;\n\n/**\n * React-compatible CSS properties plus support for CSS custom properties.\n *\n * React's `CSSProperties` type does not allow arbitrary property names by\n * default, so keys like `--foo` would normally be rejected by TypeScript.\n *\n * This type extends React's `CSSProperties` and additionally permits any\n * CSS variable name (keys starting with `--`) with values that match what\n * CSS variables accept in React style objects: `string | number`.\n */\ntype CssProperties = ReactCSSProperties & Record<CssVariableName, string | number>;\n\n/**\n * Helper to type-check a style object while preserving its exact inferred type.\n *\n * Why not just annotate with `CssProperties`?\n * - Annotating forces the value to be treated as the *wider* `CssProperties` type,\n * which can lose useful inference (literal values, narrow unions, etc.).\n *\n * This function validates that `input` conforms to `CssProperties` (including\n * CSS variables like `--foo`) and returns it unchanged, keeping inference intact.\n *\n * @example\n * style={$cssProperties({ display: \"block\", \"--gap\": 8 })}\n */\nconst $cssProperties = <T extends CssProperties = CssProperties>(input: T): ReactCSSProperties =>\n\tinput;\n\nexport { type CssProperties, $cssProperties };\n"],"mappings":"AAoCA,MAAM,EAA2D,GAChE"}
@@ -1,3 +1,4 @@
1
+ //#region src/components/input/types.d.ts
1
2
  /**
2
3
  * (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
3
4
  * if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
@@ -12,19 +13,19 @@
12
13
  */
13
14
  type AutoComplete = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
14
15
  type WithAutoComplete = {
15
- /**
16
- * (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
17
- * if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
18
- * previous values entered in the same input field, but more complex forms of autocomplete can exist. For instance, a
19
- * browser could integrate with a device's contacts list to autocomplete email addresses in an email input field.
20
- *
21
- * The autocomplete attribute is valid on hidden, text, search, url, tel, email, date, month, week, time, datetime-local,
22
- * number, range, color, and password. This attribute has no effect on input types that do not return numeric or text
23
- * data, being valid for all input types except checkbox, radio, file, or any of the button types.
24
- *
25
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values
26
- */
27
- autoComplete?: AutoComplete;
16
+ /**
17
+ * (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
18
+ * if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
19
+ * previous values entered in the same input field, but more complex forms of autocomplete can exist. For instance, a
20
+ * browser could integrate with a device's contacts list to autocomplete email addresses in an email input field.
21
+ *
22
+ * The autocomplete attribute is valid on hidden, text, search, url, tel, email, date, month, week, time, datetime-local,
23
+ * number, range, color, and password. This attribute has no effect on input types that do not return numeric or text
24
+ * data, being valid for all input types except checkbox, radio, file, or any of the button types.
25
+ *
26
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values
27
+ */
28
+ autoComplete?: AutoComplete;
28
29
  };
29
30
  /**
30
31
  * A string specifying the type of control to render. For example, to create a checkbox, a value of `"checkbox"` is used.
@@ -34,13 +35,13 @@ type WithAutoComplete = {
34
35
  */
35
36
  type InputType = "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week";
36
37
  type WithInputType = {
37
- /**
38
- * A string specifying the type of control to render. For example, to create a checkbox, a value of `"checkbox"` is used.
39
- * If omitted (or an unknown value is specified), the input type `"text"` is used, creating a plaintext input field.
40
- *
41
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
42
- */
43
- type?: InputType;
38
+ /**
39
+ * A string specifying the type of control to render. For example, to create a checkbox, a value of `"checkbox"` is used.
40
+ * If omitted (or an unknown value is specified), the input type `"text"` is used, creating a plaintext input field.
41
+ *
42
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
43
+ */
44
+ type?: InputType;
44
45
  };
45
46
  /**
46
47
  * The validation state of the input.
@@ -57,20 +58,21 @@ type Validation = "error" | "success" | "warning" | false;
57
58
  * An input component with a prop for validation state.
58
59
  */
59
60
  type WithValidation = {
60
- /**
61
- * The validation state of the input.
62
- * Can be a literal `Validation` value or a function that returns
63
- * a `Validation` value.
64
- *
65
- *
66
- * @example
67
- * the false type is useful when using short-circuiting logic, e.g.
68
- *
69
- * ```tsx
70
- * validation={field.state.meta.errors.length > 0 && "error"}
71
- * ```
72
- */
73
- validation?: Validation | (() => Validation);
61
+ /**
62
+ * The validation state of the input.
63
+ * Can be a literal `Validation` value or a function that returns
64
+ * a `Validation` value.
65
+ *
66
+ *
67
+ * @example
68
+ * the false type is useful when using short-circuiting logic, e.g.
69
+ *
70
+ * ```tsx
71
+ * validation={field.state.meta.errors.length > 0 && "error"}
72
+ * ```
73
+ */
74
+ validation?: Validation | (() => Validation);
74
75
  };
75
-
76
- export type { AutoComplete as A, InputType as I, Validation as V, WithValidation as W, WithAutoComplete as a, WithInputType as b };
76
+ //#endregion
77
+ export { WithInputType as a, WithAutoComplete as i, InputType as n, WithValidation as o, Validation as r, AutoComplete as t };
78
+ //# sourceMappingURL=types-DgXUgkpc.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { ComponentProps } from "react";
2
+
3
+ //#region src/components/icon/types.d.ts
4
+ type SvgAttributes = ComponentProps<"svg"> & {
5
+ focusable?: "true" | "false";
6
+ };
7
+ //#endregion
8
+ export { SvgAttributes as t };
9
+ //# sourceMappingURL=types-Dh4BVhXC.d.ts.map