@spark-ui/components 10.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 (296) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +19 -0
  4. package/dist/DialogTrigger-5SI4dvpK.d.mts +142 -0
  5. package/dist/DialogTrigger-5SI4dvpK.d.ts +142 -0
  6. package/dist/Input-g0LpWuv0.d.mts +17 -0
  7. package/dist/Input-g0LpWuv0.d.ts +17 -0
  8. package/dist/InputGroup-aoaZxCLk.d.mts +28 -0
  9. package/dist/InputGroup-aoaZxCLk.d.ts +28 -0
  10. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +20 -0
  11. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +20 -0
  12. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +19 -0
  13. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +19 -0
  14. package/dist/accordion/index.d.mts +85 -0
  15. package/dist/accordion/index.d.ts +85 -0
  16. package/dist/accordion/index.js +461 -0
  17. package/dist/accordion/index.js.map +1 -0
  18. package/dist/accordion/index.mjs +249 -0
  19. package/dist/accordion/index.mjs.map +1 -0
  20. package/dist/alert-dialog/index.d.mts +119 -0
  21. package/dist/alert-dialog/index.d.ts +119 -0
  22. package/dist/alert-dialog/index.js +1451 -0
  23. package/dist/alert-dialog/index.js.map +1 -0
  24. package/dist/alert-dialog/index.mjs +177 -0
  25. package/dist/alert-dialog/index.mjs.map +1 -0
  26. package/dist/badge/index.d.mts +47 -0
  27. package/dist/badge/index.d.ts +47 -0
  28. package/dist/badge/index.js +122 -0
  29. package/dist/badge/index.js.map +1 -0
  30. package/dist/badge/index.mjs +95 -0
  31. package/dist/badge/index.mjs.map +1 -0
  32. package/dist/breadcrumb/index.d.mts +64 -0
  33. package/dist/breadcrumb/index.d.ts +64 -0
  34. package/dist/breadcrumb/index.js +326 -0
  35. package/dist/breadcrumb/index.js.map +1 -0
  36. package/dist/breadcrumb/index.mjs +149 -0
  37. package/dist/breadcrumb/index.mjs.map +1 -0
  38. package/dist/button/index.d.mts +40 -0
  39. package/dist/button/index.d.ts +40 -0
  40. package/dist/button/index.js +877 -0
  41. package/dist/button/index.js.map +1 -0
  42. package/dist/button/index.mjs +10 -0
  43. package/dist/button/index.mjs.map +1 -0
  44. package/dist/carousel/index.d.mts +253 -0
  45. package/dist/carousel/index.d.ts +253 -0
  46. package/dist/carousel/index.js +1678 -0
  47. package/dist/carousel/index.js.map +1 -0
  48. package/dist/carousel/index.mjs +716 -0
  49. package/dist/carousel/index.mjs.map +1 -0
  50. package/dist/checkbox/index.d.mts +120 -0
  51. package/dist/checkbox/index.d.ts +120 -0
  52. package/dist/checkbox/index.js +873 -0
  53. package/dist/checkbox/index.js.map +1 -0
  54. package/dist/checkbox/index.mjs +349 -0
  55. package/dist/checkbox/index.mjs.map +1 -0
  56. package/dist/chip/index.d.mts +97 -0
  57. package/dist/chip/index.d.ts +97 -0
  58. package/dist/chip/index.js +905 -0
  59. package/dist/chip/index.js.map +1 -0
  60. package/dist/chip/index.mjs +793 -0
  61. package/dist/chip/index.mjs.map +1 -0
  62. package/dist/chunk-2KPFQEAA.mjs +52 -0
  63. package/dist/chunk-2KPFQEAA.mjs.map +1 -0
  64. package/dist/chunk-4F5DOL57.mjs +26 -0
  65. package/dist/chunk-4F5DOL57.mjs.map +1 -0
  66. package/dist/chunk-6JOA37TZ.mjs +742 -0
  67. package/dist/chunk-6JOA37TZ.mjs.map +1 -0
  68. package/dist/chunk-7PMPYEHJ.mjs +379 -0
  69. package/dist/chunk-7PMPYEHJ.mjs.map +1 -0
  70. package/dist/chunk-AESXFMCC.mjs +68 -0
  71. package/dist/chunk-AESXFMCC.mjs.map +1 -0
  72. package/dist/chunk-B42LOFIZ.mjs +308 -0
  73. package/dist/chunk-B42LOFIZ.mjs.map +1 -0
  74. package/dist/chunk-FGOZHKBT.mjs +97 -0
  75. package/dist/chunk-FGOZHKBT.mjs.map +1 -0
  76. package/dist/chunk-HLXYG643.mjs +52 -0
  77. package/dist/chunk-HLXYG643.mjs.map +1 -0
  78. package/dist/chunk-JKNBJHD5.mjs +601 -0
  79. package/dist/chunk-JKNBJHD5.mjs.map +1 -0
  80. package/dist/chunk-K7VP7DH3.mjs +66 -0
  81. package/dist/chunk-K7VP7DH3.mjs.map +1 -0
  82. package/dist/chunk-MUNDKRAE.mjs +80 -0
  83. package/dist/chunk-MUNDKRAE.mjs.map +1 -0
  84. package/dist/chunk-NBZKMCHF.mjs +36 -0
  85. package/dist/chunk-NBZKMCHF.mjs.map +1 -0
  86. package/dist/chunk-PZWESKAR.mjs +314 -0
  87. package/dist/chunk-PZWESKAR.mjs.map +1 -0
  88. package/dist/collapsible/index.d.mts +60 -0
  89. package/dist/collapsible/index.d.ts +60 -0
  90. package/dist/collapsible/index.js +140 -0
  91. package/dist/collapsible/index.js.map +1 -0
  92. package/dist/collapsible/index.mjs +8 -0
  93. package/dist/collapsible/index.mjs.map +1 -0
  94. package/dist/combobox/index.d.mts +285 -0
  95. package/dist/combobox/index.d.ts +285 -0
  96. package/dist/combobox/index.js +2920 -0
  97. package/dist/combobox/index.js.map +1 -0
  98. package/dist/combobox/index.mjs +1267 -0
  99. package/dist/combobox/index.mjs.map +1 -0
  100. package/dist/dialog/index.d.mts +33 -0
  101. package/dist/dialog/index.d.ts +33 -0
  102. package/dist/dialog/index.js +1286 -0
  103. package/dist/dialog/index.js.map +1 -0
  104. package/dist/dialog/index.mjs +13 -0
  105. package/dist/dialog/index.mjs.map +1 -0
  106. package/dist/divider/index.d.mts +61 -0
  107. package/dist/divider/index.d.ts +61 -0
  108. package/dist/divider/index.js +223 -0
  109. package/dist/divider/index.js.map +1 -0
  110. package/dist/divider/index.mjs +196 -0
  111. package/dist/divider/index.mjs.map +1 -0
  112. package/dist/drawer/index.d.mts +148 -0
  113. package/dist/drawer/index.d.ts +148 -0
  114. package/dist/drawer/index.js +1266 -0
  115. package/dist/drawer/index.js.map +1 -0
  116. package/dist/drawer/index.mjs +299 -0
  117. package/dist/drawer/index.mjs.map +1 -0
  118. package/dist/dropdown/index.d.mts +233 -0
  119. package/dist/dropdown/index.d.ts +233 -0
  120. package/dist/dropdown/index.js +2402 -0
  121. package/dist/dropdown/index.js.map +1 -0
  122. package/dist/dropdown/index.mjs +741 -0
  123. package/dist/dropdown/index.mjs.map +1 -0
  124. package/dist/form-field/index.d.mts +176 -0
  125. package/dist/form-field/index.d.ts +176 -0
  126. package/dist/form-field/index.js +540 -0
  127. package/dist/form-field/index.js.map +1 -0
  128. package/dist/form-field/index.mjs +13 -0
  129. package/dist/form-field/index.mjs.map +1 -0
  130. package/dist/icon/index.d.mts +28 -0
  131. package/dist/icon/index.d.ts +28 -0
  132. package/dist/icon/index.js +127 -0
  133. package/dist/icon/index.js.map +1 -0
  134. package/dist/icon/index.mjs +9 -0
  135. package/dist/icon/index.mjs.map +1 -0
  136. package/dist/icon-button/index.d.mts +16 -0
  137. package/dist/icon-button/index.d.ts +16 -0
  138. package/dist/icon-button/index.js +921 -0
  139. package/dist/icon-button/index.js.map +1 -0
  140. package/dist/icon-button/index.mjs +11 -0
  141. package/dist/icon-button/index.mjs.map +1 -0
  142. package/dist/input/index.d.mts +78 -0
  143. package/dist/input/index.d.ts +78 -0
  144. package/dist/input/index.js +1119 -0
  145. package/dist/input/index.js.map +1 -0
  146. package/dist/input/index.mjs +16 -0
  147. package/dist/input/index.mjs.map +1 -0
  148. package/dist/kbd/index.d.mts +9 -0
  149. package/dist/kbd/index.d.ts +9 -0
  150. package/dist/kbd/index.js +46 -0
  151. package/dist/kbd/index.js.map +1 -0
  152. package/dist/kbd/index.mjs +19 -0
  153. package/dist/kbd/index.mjs.map +1 -0
  154. package/dist/label/index.d.mts +11 -0
  155. package/dist/label/index.d.ts +11 -0
  156. package/dist/label/index.js +78 -0
  157. package/dist/label/index.js.map +1 -0
  158. package/dist/label/index.mjs +7 -0
  159. package/dist/label/index.mjs.map +1 -0
  160. package/dist/link-box/index.d.mts +34 -0
  161. package/dist/link-box/index.d.ts +34 -0
  162. package/dist/link-box/index.js +92 -0
  163. package/dist/link-box/index.js.map +1 -0
  164. package/dist/link-box/index.mjs +58 -0
  165. package/dist/link-box/index.mjs.map +1 -0
  166. package/dist/pagination/index.d.mts +143 -0
  167. package/dist/pagination/index.d.ts +143 -0
  168. package/dist/pagination/index.js +1303 -0
  169. package/dist/pagination/index.js.map +1 -0
  170. package/dist/pagination/index.mjs +326 -0
  171. package/dist/pagination/index.mjs.map +1 -0
  172. package/dist/popover/index.d.mts +93 -0
  173. package/dist/popover/index.d.ts +93 -0
  174. package/dist/popover/index.js +1280 -0
  175. package/dist/popover/index.js.map +1 -0
  176. package/dist/popover/index.mjs +13 -0
  177. package/dist/popover/index.mjs.map +1 -0
  178. package/dist/portal/index.d.mts +13 -0
  179. package/dist/portal/index.d.ts +13 -0
  180. package/dist/portal/index.js +37 -0
  181. package/dist/portal/index.js.map +1 -0
  182. package/dist/portal/index.mjs +10 -0
  183. package/dist/portal/index.mjs.map +1 -0
  184. package/dist/progress/index.d.mts +48 -0
  185. package/dist/progress/index.d.ts +48 -0
  186. package/dist/progress/index.js +201 -0
  187. package/dist/progress/index.js.map +1 -0
  188. package/dist/progress/index.mjs +174 -0
  189. package/dist/progress/index.mjs.map +1 -0
  190. package/dist/progress-tracker/index.d.mts +81 -0
  191. package/dist/progress-tracker/index.d.ts +81 -0
  192. package/dist/progress-tracker/index.js +834 -0
  193. package/dist/progress-tracker/index.js.map +1 -0
  194. package/dist/progress-tracker/index.mjs +716 -0
  195. package/dist/progress-tracker/index.mjs.map +1 -0
  196. package/dist/radio-group/index.d.mts +100 -0
  197. package/dist/radio-group/index.d.ts +100 -0
  198. package/dist/radio-group/index.js +824 -0
  199. package/dist/radio-group/index.js.map +1 -0
  200. package/dist/radio-group/index.mjs +297 -0
  201. package/dist/radio-group/index.mjs.map +1 -0
  202. package/dist/rating/index.d.mts +78 -0
  203. package/dist/rating/index.d.ts +78 -0
  204. package/dist/rating/index.js +362 -0
  205. package/dist/rating/index.js.map +1 -0
  206. package/dist/rating/index.mjs +247 -0
  207. package/dist/rating/index.mjs.map +1 -0
  208. package/dist/scrolling-list/index.d.mts +105 -0
  209. package/dist/scrolling-list/index.d.ts +105 -0
  210. package/dist/scrolling-list/index.js +1367 -0
  211. package/dist/scrolling-list/index.js.map +1 -0
  212. package/dist/scrolling-list/index.mjs +407 -0
  213. package/dist/scrolling-list/index.mjs.map +1 -0
  214. package/dist/select/index.d.mts +167 -0
  215. package/dist/select/index.d.ts +167 -0
  216. package/dist/select/index.js +991 -0
  217. package/dist/select/index.js.map +1 -0
  218. package/dist/select/index.mjs +470 -0
  219. package/dist/select/index.mjs.map +1 -0
  220. package/dist/skeleton/index.d.mts +67 -0
  221. package/dist/skeleton/index.d.ts +67 -0
  222. package/dist/skeleton/index.js +206 -0
  223. package/dist/skeleton/index.js.map +1 -0
  224. package/dist/skeleton/index.mjs +147 -0
  225. package/dist/skeleton/index.mjs.map +1 -0
  226. package/dist/slider/index.d.mts +97 -0
  227. package/dist/slider/index.d.ts +97 -0
  228. package/dist/slider/index.js +209 -0
  229. package/dist/slider/index.js.map +1 -0
  230. package/dist/slider/index.mjs +182 -0
  231. package/dist/slider/index.mjs.map +1 -0
  232. package/dist/slot/index.d.mts +17 -0
  233. package/dist/slot/index.d.ts +17 -0
  234. package/dist/slot/index.js +51 -0
  235. package/dist/slot/index.js.map +1 -0
  236. package/dist/slot/index.mjs +11 -0
  237. package/dist/slot/index.mjs.map +1 -0
  238. package/dist/snackbar/index.d.mts +158 -0
  239. package/dist/snackbar/index.d.ts +158 -0
  240. package/dist/snackbar/index.js +1693 -0
  241. package/dist/snackbar/index.js.map +1 -0
  242. package/dist/snackbar/index.mjs +733 -0
  243. package/dist/snackbar/index.mjs.map +1 -0
  244. package/dist/spinner/index.d.mts +21 -0
  245. package/dist/spinner/index.d.ts +21 -0
  246. package/dist/spinner/index.js +139 -0
  247. package/dist/spinner/index.js.map +1 -0
  248. package/dist/spinner/index.mjs +9 -0
  249. package/dist/spinner/index.mjs.map +1 -0
  250. package/dist/stepper/index.d.mts +82 -0
  251. package/dist/stepper/index.d.ts +82 -0
  252. package/dist/stepper/index.js +2178 -0
  253. package/dist/stepper/index.js.map +1 -0
  254. package/dist/stepper/index.mjs +229 -0
  255. package/dist/stepper/index.mjs.map +1 -0
  256. package/dist/switch/index.d.mts +64 -0
  257. package/dist/switch/index.d.ts +64 -0
  258. package/dist/switch/index.js +768 -0
  259. package/dist/switch/index.js.map +1 -0
  260. package/dist/switch/index.mjs +245 -0
  261. package/dist/switch/index.mjs.map +1 -0
  262. package/dist/tabs/index.d.mts +103 -0
  263. package/dist/tabs/index.d.ts +103 -0
  264. package/dist/tabs/index.js +1315 -0
  265. package/dist/tabs/index.js.map +1 -0
  266. package/dist/tabs/index.mjs +391 -0
  267. package/dist/tabs/index.mjs.map +1 -0
  268. package/dist/tag/index.d.mts +27 -0
  269. package/dist/tag/index.d.ts +27 -0
  270. package/dist/tag/index.js +269 -0
  271. package/dist/tag/index.js.map +1 -0
  272. package/dist/tag/index.mjs +237 -0
  273. package/dist/tag/index.mjs.map +1 -0
  274. package/dist/text-link/index.d.mts +20 -0
  275. package/dist/text-link/index.d.ts +20 -0
  276. package/dist/text-link/index.js +99 -0
  277. package/dist/text-link/index.js.map +1 -0
  278. package/dist/text-link/index.mjs +8 -0
  279. package/dist/text-link/index.mjs.map +1 -0
  280. package/dist/textarea/index.d.mts +47 -0
  281. package/dist/textarea/index.d.ts +47 -0
  282. package/dist/textarea/index.js +1180 -0
  283. package/dist/textarea/index.js.map +1 -0
  284. package/dist/textarea/index.mjs +77 -0
  285. package/dist/textarea/index.mjs.map +1 -0
  286. package/dist/visually-hidden/index.d.mts +16 -0
  287. package/dist/visually-hidden/index.d.ts +16 -0
  288. package/dist/visually-hidden/index.js +67 -0
  289. package/dist/visually-hidden/index.js.map +1 -0
  290. package/dist/visually-hidden/index.mjs +8 -0
  291. package/dist/visually-hidden/index.mjs.map +1 -0
  292. package/global.d.ts +12 -0
  293. package/package.json +75 -0
  294. package/tsconfig.build.json +9 -0
  295. package/tsconfig.json +9 -0
  296. package/tsup.config.ts +11 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [10.0.0](https://github.com/leboncoin/spark-web/compare/v9.4.8...v10.0.0) (2025-03-24)
7
+
8
+ ### Code Refactoring
9
+
10
+ - grouped all components into a single package ([d521202](https://github.com/leboncoin/spark-web/commit/d5212023e4db8b88bc565deb3b6b92d23d894793))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ - new package is @spark-ui/ui and enables individual imports by doing
15
+ @spark-ui/ui/button
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Leboncoin.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Components
2
+
3
+ ## Install
4
+
5
+ > npm install @spark-ui/components
6
+
7
+ ## Usage
8
+
9
+ > import { Button } from '@spark-ui/components/button'
10
+
11
+ ![accessibility](https://img.shields.io/badge/WCAG_2.1_AA-passed-green)
12
+ [![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app)
13
+ [![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=Component)
14
+ [![npm](https://img.shields.io/npm/dt/%40spark-ui/components?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/components)
15
+
16
+ This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.
17
+
18
+ [![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3A%22Component%3A%20button%22&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Abutton)
19
+ [![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fbutton)](https://github.com/leboncoin/spark-web/blob/main/packages/components/LICENSE.md)
@@ -0,0 +1,142 @@
1
+ import { Dialog as Dialog$1 } from 'radix-ui';
2
+ import { ReactElement, ReactNode, Ref } from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+
7
+ interface DialogProps {
8
+ /**
9
+ * Children of the component.
10
+ */
11
+ children?: Dialog$1.DialogProps['children'];
12
+ /**
13
+ * Specifies if the dialog is open or not.
14
+ */
15
+ open?: Dialog$1.DialogProps['open'];
16
+ /**
17
+ * Default open state.
18
+ */
19
+ defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
+ /**
21
+ * Handler executen on every dialog open state change.
22
+ */
23
+ onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
+ /**
25
+ * Specifies if the dialog is a modal.
26
+ */
27
+ modal?: Dialog$1.DialogProps['modal'];
28
+ }
29
+ declare const Dialog: {
30
+ ({ children, ...rest }: DialogProps): ReactElement;
31
+ displayName: string;
32
+ };
33
+
34
+ declare const dialogBodyStyles: (props?: ({
35
+ inset?: boolean | null | undefined;
36
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
37
+ type DialogBodyStylesProps = VariantProps<typeof dialogBodyStyles>;
38
+
39
+ interface BodyProps extends DialogBodyStylesProps {
40
+ children: ReactNode;
41
+ className?: string;
42
+ tabIndex?: number;
43
+ ref?: Ref<HTMLDivElement>;
44
+ }
45
+ declare const Body: {
46
+ ({ children, className, inset, ref, ...rest }: BodyProps): ReactElement;
47
+ displayName: string;
48
+ };
49
+
50
+ type CloseProps = Dialog$1.DialogCloseProps & {
51
+ ref?: Ref<HTMLButtonElement>;
52
+ };
53
+ declare const Close: {
54
+ (props: CloseProps): react_jsx_runtime.JSX.Element;
55
+ displayName: string;
56
+ };
57
+
58
+ declare const dialogContentStyles: (props?: ({
59
+ size?: "fullscreen" | "sm" | "md" | "lg" | null | undefined;
60
+ isNarrow?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+ type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
+
64
+ interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
+ /**
66
+ * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
+ */
68
+ isNarrow?: boolean;
69
+ ref?: Ref<HTMLDivElement>;
70
+ }
71
+ declare const Content: {
72
+ ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
+ displayName: string;
74
+ };
75
+
76
+ type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
+ ref?: Ref<HTMLParagraphElement>;
78
+ };
79
+ declare const Description: {
80
+ (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
+ displayName: string;
82
+ };
83
+
84
+ interface FooterProps {
85
+ children: ReactNode;
86
+ className?: string;
87
+ ref?: Ref<HTMLDivElement>;
88
+ }
89
+ declare const Footer: {
90
+ ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
+ displayName: string;
92
+ };
93
+
94
+ interface HeaderProps {
95
+ children: ReactNode;
96
+ className?: string;
97
+ ref?: Ref<HTMLDivElement>;
98
+ }
99
+ declare const Header: {
100
+ ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
+ displayName: string;
102
+ };
103
+
104
+ type OverlayProps = Dialog$1.DialogOverlayProps & {
105
+ ref?: Ref<HTMLDivElement>;
106
+ };
107
+ declare const Overlay: {
108
+ ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
+ displayName: string;
110
+ };
111
+
112
+ type PortalProps = Dialog$1.DialogPortalProps;
113
+ declare const Portal: {
114
+ ({ children, ...rest }: PortalProps): ReactElement;
115
+ displayName: string;
116
+ };
117
+
118
+ type TitleProps = Dialog$1.DialogTitleProps & {
119
+ ref?: Ref<HTMLHeadingElement>;
120
+ };
121
+ declare const Title: {
122
+ ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
+ displayName: string;
124
+ };
125
+
126
+ interface TriggerProps {
127
+ /**
128
+ * Children of the component.
129
+ */
130
+ children?: ReactNode;
131
+ /**
132
+ * Change the component to the HTML tag or custom component of the only child.
133
+ */
134
+ asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
+ ref?: Ref<HTMLButtonElement>;
136
+ }
137
+ declare const Trigger: {
138
+ (props: TriggerProps): ReactElement;
139
+ displayName: string;
140
+ };
141
+
142
+ export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };
@@ -0,0 +1,142 @@
1
+ import { Dialog as Dialog$1 } from 'radix-ui';
2
+ import { ReactElement, ReactNode, Ref } from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+
7
+ interface DialogProps {
8
+ /**
9
+ * Children of the component.
10
+ */
11
+ children?: Dialog$1.DialogProps['children'];
12
+ /**
13
+ * Specifies if the dialog is open or not.
14
+ */
15
+ open?: Dialog$1.DialogProps['open'];
16
+ /**
17
+ * Default open state.
18
+ */
19
+ defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
+ /**
21
+ * Handler executen on every dialog open state change.
22
+ */
23
+ onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
+ /**
25
+ * Specifies if the dialog is a modal.
26
+ */
27
+ modal?: Dialog$1.DialogProps['modal'];
28
+ }
29
+ declare const Dialog: {
30
+ ({ children, ...rest }: DialogProps): ReactElement;
31
+ displayName: string;
32
+ };
33
+
34
+ declare const dialogBodyStyles: (props?: ({
35
+ inset?: boolean | null | undefined;
36
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
37
+ type DialogBodyStylesProps = VariantProps<typeof dialogBodyStyles>;
38
+
39
+ interface BodyProps extends DialogBodyStylesProps {
40
+ children: ReactNode;
41
+ className?: string;
42
+ tabIndex?: number;
43
+ ref?: Ref<HTMLDivElement>;
44
+ }
45
+ declare const Body: {
46
+ ({ children, className, inset, ref, ...rest }: BodyProps): ReactElement;
47
+ displayName: string;
48
+ };
49
+
50
+ type CloseProps = Dialog$1.DialogCloseProps & {
51
+ ref?: Ref<HTMLButtonElement>;
52
+ };
53
+ declare const Close: {
54
+ (props: CloseProps): react_jsx_runtime.JSX.Element;
55
+ displayName: string;
56
+ };
57
+
58
+ declare const dialogContentStyles: (props?: ({
59
+ size?: "fullscreen" | "sm" | "md" | "lg" | null | undefined;
60
+ isNarrow?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+ type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
+
64
+ interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
+ /**
66
+ * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
+ */
68
+ isNarrow?: boolean;
69
+ ref?: Ref<HTMLDivElement>;
70
+ }
71
+ declare const Content: {
72
+ ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
+ displayName: string;
74
+ };
75
+
76
+ type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
+ ref?: Ref<HTMLParagraphElement>;
78
+ };
79
+ declare const Description: {
80
+ (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
+ displayName: string;
82
+ };
83
+
84
+ interface FooterProps {
85
+ children: ReactNode;
86
+ className?: string;
87
+ ref?: Ref<HTMLDivElement>;
88
+ }
89
+ declare const Footer: {
90
+ ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
+ displayName: string;
92
+ };
93
+
94
+ interface HeaderProps {
95
+ children: ReactNode;
96
+ className?: string;
97
+ ref?: Ref<HTMLDivElement>;
98
+ }
99
+ declare const Header: {
100
+ ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
+ displayName: string;
102
+ };
103
+
104
+ type OverlayProps = Dialog$1.DialogOverlayProps & {
105
+ ref?: Ref<HTMLDivElement>;
106
+ };
107
+ declare const Overlay: {
108
+ ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
+ displayName: string;
110
+ };
111
+
112
+ type PortalProps = Dialog$1.DialogPortalProps;
113
+ declare const Portal: {
114
+ ({ children, ...rest }: PortalProps): ReactElement;
115
+ displayName: string;
116
+ };
117
+
118
+ type TitleProps = Dialog$1.DialogTitleProps & {
119
+ ref?: Ref<HTMLHeadingElement>;
120
+ };
121
+ declare const Title: {
122
+ ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
+ displayName: string;
124
+ };
125
+
126
+ interface TriggerProps {
127
+ /**
128
+ * Children of the component.
129
+ */
130
+ children?: ReactNode;
131
+ /**
132
+ * Change the component to the HTML tag or custom component of the only child.
133
+ */
134
+ asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
+ ref?: Ref<HTMLButtonElement>;
136
+ }
137
+ declare const Trigger: {
138
+ (props: TriggerProps): ReactElement;
139
+ displayName: string;
140
+ };
141
+
142
+ export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithoutRef, Ref } from 'react';
3
+
4
+ type InputPrimitiveProps = ComponentPropsWithoutRef<'input'>;
5
+ interface InputProps extends InputPrimitiveProps {
6
+ asChild?: boolean;
7
+ onValueChange?: (value: string) => void;
8
+ ref?: Ref<HTMLInputElement>;
9
+ }
10
+ declare const Input: {
11
+ ({ className, asChild, onValueChange, onChange, onKeyDown, disabled: disabledProp, readOnly: readOnlyProp, ref, ...others }: InputProps): react_jsx_runtime.JSX.Element;
12
+ displayName: string;
13
+ } & {
14
+ id: string;
15
+ };
16
+
17
+ export { type InputProps as I, Input as a };
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithoutRef, Ref } from 'react';
3
+
4
+ type InputPrimitiveProps = ComponentPropsWithoutRef<'input'>;
5
+ interface InputProps extends InputPrimitiveProps {
6
+ asChild?: boolean;
7
+ onValueChange?: (value: string) => void;
8
+ ref?: Ref<HTMLInputElement>;
9
+ }
10
+ declare const Input: {
11
+ ({ className, asChild, onValueChange, onChange, onKeyDown, disabled: disabledProp, readOnly: readOnlyProp, ref, ...others }: InputProps): react_jsx_runtime.JSX.Element;
12
+ displayName: string;
13
+ } & {
14
+ id: string;
15
+ };
16
+
17
+ export { type InputProps as I, Input as a };
@@ -0,0 +1,28 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PropsWithChildren, ComponentPropsWithoutRef, Ref } from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const inputGroupStyles: (props?: ({
7
+ disabled?: boolean | null | undefined;
8
+ readOnly?: boolean | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ type InputGroupStylesProps = VariantProps<typeof inputGroupStyles>;
11
+
12
+ interface InputGroupProps extends ComponentPropsWithoutRef<'div'>, InputGroupStylesProps {
13
+ /**
14
+ * Use `state` prop to assign a specific state to the group, choosing from: `error`, `alert` and `success`. By doing so, the outline styles will be updated.
15
+ */
16
+ state?: 'error' | 'alert' | 'success';
17
+ /**
18
+ * Function handler to be executed after the input has been cleared.
19
+ */
20
+ onClear?: () => void;
21
+ ref?: Ref<HTMLDivElement>;
22
+ }
23
+ declare const InputGroup: {
24
+ ({ className, children: childrenProp, state: stateProp, disabled: disabledProp, readOnly: readOnlyProp, onClear, ref: forwardedRef, ...others }: PropsWithChildren<InputGroupProps>): react_jsx_runtime.JSX.Element;
25
+ displayName: string;
26
+ };
27
+
28
+ export { type InputGroupProps as I, InputGroup as a };
@@ -0,0 +1,28 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PropsWithChildren, ComponentPropsWithoutRef, Ref } from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const inputGroupStyles: (props?: ({
7
+ disabled?: boolean | null | undefined;
8
+ readOnly?: boolean | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ type InputGroupStylesProps = VariantProps<typeof inputGroupStyles>;
11
+
12
+ interface InputGroupProps extends ComponentPropsWithoutRef<'div'>, InputGroupStylesProps {
13
+ /**
14
+ * Use `state` prop to assign a specific state to the group, choosing from: `error`, `alert` and `success`. By doing so, the outline styles will be updated.
15
+ */
16
+ state?: 'error' | 'alert' | 'success';
17
+ /**
18
+ * Function handler to be executed after the input has been cleared.
19
+ */
20
+ onClear?: () => void;
21
+ ref?: Ref<HTMLDivElement>;
22
+ }
23
+ declare const InputGroup: {
24
+ ({ className, children: childrenProp, state: stateProp, disabled: disabledProp, readOnly: readOnlyProp, onClear, ref: forwardedRef, ...others }: PropsWithChildren<InputGroupProps>): react_jsx_runtime.JSX.Element;
25
+ displayName: string;
26
+ };
27
+
28
+ export { type InputGroupProps as I, InputGroup as a };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { IconProps } from './icon/index.mjs';
3
+
4
+ type InputIconProps = IconProps;
5
+
6
+ type InputLeadingIconProps = InputIconProps;
7
+ declare const InputLeadingIcon: {
8
+ ({ className, ...others }: InputLeadingIconProps): react_jsx_runtime.JSX.Element;
9
+ id: string;
10
+ displayName: string;
11
+ };
12
+
13
+ type InputTrailingIconProps = InputIconProps;
14
+ declare const InputTrailingIcon: {
15
+ ({ className, ...others }: InputTrailingIconProps): react_jsx_runtime.JSX.Element;
16
+ id: string;
17
+ displayName: string;
18
+ };
19
+
20
+ export { type InputLeadingIconProps as I, type InputTrailingIconProps as a, InputLeadingIcon as b, InputTrailingIcon as c };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { IconProps } from './icon/index.js';
3
+
4
+ type InputIconProps = IconProps;
5
+
6
+ type InputLeadingIconProps = InputIconProps;
7
+ declare const InputLeadingIcon: {
8
+ ({ className, ...others }: InputLeadingIconProps): react_jsx_runtime.JSX.Element;
9
+ id: string;
10
+ displayName: string;
11
+ };
12
+
13
+ type InputTrailingIconProps = InputIconProps;
14
+ declare const InputTrailingIcon: {
15
+ ({ className, ...others }: InputTrailingIconProps): react_jsx_runtime.JSX.Element;
16
+ id: string;
17
+ displayName: string;
18
+ };
19
+
20
+ export { type InputLeadingIconProps as I, type InputTrailingIconProps as a, InputLeadingIcon as b, InputTrailingIcon as c };
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Label as Label$1 } from 'radix-ui';
3
+ import { Ref, ComponentPropsWithRef } from 'react';
4
+
5
+ type LabelProps = Label$1.LabelProps & {
6
+ ref?: Ref<HTMLLabelElement>;
7
+ };
8
+ declare const Label: {
9
+ ({ className, ref, ...others }: LabelProps): react_jsx_runtime.JSX.Element;
10
+ displayName: string;
11
+ };
12
+
13
+ type LabelRequiredIndicatorProps = ComponentPropsWithRef<'span'>;
14
+ declare const LabelRequiredIndicator: {
15
+ ({ className, children, ref, ...others }: LabelRequiredIndicatorProps): react_jsx_runtime.JSX.Element;
16
+ displayName: string;
17
+ };
18
+
19
+ export { Label as L, LabelRequiredIndicator as a, type LabelProps as b, type LabelRequiredIndicatorProps as c };
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Label as Label$1 } from 'radix-ui';
3
+ import { Ref, ComponentPropsWithRef } from 'react';
4
+
5
+ type LabelProps = Label$1.LabelProps & {
6
+ ref?: Ref<HTMLLabelElement>;
7
+ };
8
+ declare const Label: {
9
+ ({ className, ref, ...others }: LabelProps): react_jsx_runtime.JSX.Element;
10
+ displayName: string;
11
+ };
12
+
13
+ type LabelRequiredIndicatorProps = ComponentPropsWithRef<'span'>;
14
+ declare const LabelRequiredIndicator: {
15
+ ({ className, children, ref, ...others }: LabelRequiredIndicatorProps): react_jsx_runtime.JSX.Element;
16
+ displayName: string;
17
+ };
18
+
19
+ export { Label as L, LabelRequiredIndicator as a, type LabelProps as b, type LabelRequiredIndicatorProps as c };
@@ -0,0 +1,85 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as accordion from '@zag-js/accordion';
3
+ import { ComponentPropsWithoutRef, Ref, ComponentProps } from 'react';
4
+
5
+ type ExtentedZagInterface = Omit<accordion.Props, 'id' | 'ids' | 'orientation' | 'getRootNode' | 'onValueChange'> & Omit<ComponentPropsWithoutRef<'div'>, 'defaultChecked'>;
6
+ interface AccordionProps extends ExtentedZagInterface {
7
+ /**
8
+ * Change the default rendered element for the one passed as a child, merging their props and behavior.
9
+ */
10
+ asChild?: boolean;
11
+ /**
12
+ * Whether an accordion item can be closed after it has been expanded.
13
+ */
14
+ collapsible?: boolean;
15
+ defaultValue?: accordion.Props['value'];
16
+ /**
17
+ * Whether the accordion items are disabled
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Whether multiple accordion items can be expanded at the same time.
22
+ */
23
+ multiple?: boolean;
24
+ /**
25
+ * The `value` of the accordion items that are currently being expanded.
26
+ */
27
+ value?: string[];
28
+ /**
29
+ * The callback fired when the state of expanded/collapsed accordion items changes.
30
+ */
31
+ onValueChange?: (value: string[]) => void;
32
+ design?: 'filled' | 'outlined';
33
+ ref?: Ref<HTMLDivElement>;
34
+ }
35
+ declare const Accordion$1: {
36
+ ({ asChild, children, collapsible, className, defaultValue, design, disabled, multiple, value, onValueChange, ref, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
37
+ displayName: string;
38
+ };
39
+
40
+ interface AccordionItemProps extends ComponentPropsWithoutRef<'div'> {
41
+ value: string;
42
+ asChild?: boolean;
43
+ disabled?: boolean;
44
+ ref?: Ref<HTMLDivElement>;
45
+ }
46
+ declare const Item: {
47
+ ({ asChild, className, children, disabled, value, ref, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
48
+ displayName: string;
49
+ };
50
+
51
+ interface AccordionItemContentProps extends ComponentPropsWithoutRef<'div'> {
52
+ asChild?: boolean;
53
+ ref?: Ref<HTMLDivElement>;
54
+ }
55
+ declare const ItemContent: {
56
+ ({ asChild, className, children, ref, ...props }: AccordionItemContentProps): react_jsx_runtime.JSX.Element;
57
+ displayName: string;
58
+ };
59
+
60
+ interface AccordionItemHeaderProps extends ComponentProps<'h3'> {
61
+ asChild?: boolean;
62
+ ref?: Ref<HTMLHeadingElement>;
63
+ }
64
+ declare const ItemHeader: {
65
+ ({ asChild, children, className, ref, }: AccordionItemHeaderProps): react_jsx_runtime.JSX.Element;
66
+ displayName: string;
67
+ };
68
+
69
+ interface AccordionItemTriggerProps extends ComponentPropsWithoutRef<'button'> {
70
+ asChild?: boolean;
71
+ ref?: Ref<HTMLButtonElement>;
72
+ }
73
+ declare const ItemTrigger: {
74
+ ({ asChild, children, className, ref, ...props }: AccordionItemTriggerProps): react_jsx_runtime.JSX.Element;
75
+ displayName: string;
76
+ };
77
+
78
+ declare const Accordion: typeof Accordion$1 & {
79
+ Item: typeof Item;
80
+ ItemHeader: typeof ItemHeader;
81
+ ItemTrigger: typeof ItemTrigger;
82
+ ItemContent: typeof ItemContent;
83
+ };
84
+
85
+ export { Accordion, type AccordionItemContentProps, type AccordionItemHeaderProps, type AccordionItemTriggerProps, type AccordionProps };