@g4rcez/components 4.0.1 → 4.1.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 (415) hide show
  1. package/ai/SKILL.md +233 -0
  2. package/ai/docs/Alert.md +166 -0
  3. package/ai/docs/AnimatedList.md +206 -0
  4. package/ai/docs/Autocomplete.md +221 -0
  5. package/ai/docs/Button.md +182 -0
  6. package/ai/docs/Calendar.md +185 -0
  7. package/ai/docs/Card.md +178 -0
  8. package/ai/docs/Checkbox.md +194 -0
  9. package/ai/docs/CommandPalette.md +275 -0
  10. package/ai/docs/DatePicker.md +152 -0
  11. package/ai/docs/Dropdown.md +195 -0
  12. package/{dist/ai → ai}/docs/Empty.md +41 -44
  13. package/{dist/ai → ai}/docs/Expand.md +40 -54
  14. package/ai/docs/FileUpload.md +218 -0
  15. package/{dist/ai → ai}/docs/Form.md +35 -29
  16. package/{dist/ai → ai}/docs/FormReset.md +37 -37
  17. package/{dist/ai → ai}/docs/Heading.md +4 -6
  18. package/ai/docs/Input.md +212 -0
  19. package/ai/docs/InputField.md +170 -0
  20. package/ai/docs/List.md +208 -0
  21. package/ai/docs/Menu.md +168 -0
  22. package/ai/docs/Modal.md +273 -0
  23. package/ai/docs/MultiSelect.md +177 -0
  24. package/ai/docs/Notifications.md +231 -0
  25. package/ai/docs/PageCalendar.md +262 -0
  26. package/{dist/ai → ai}/docs/Polymorph.md +25 -41
  27. package/{dist/ai → ai}/docs/Progress.md +55 -51
  28. package/{dist/ai → ai}/docs/Radiobox.md +49 -41
  29. package/{dist/ai → ai}/docs/RenderOnView.md +26 -32
  30. package/{dist/ai → ai}/docs/Resizable.md +60 -65
  31. package/ai/docs/Select.md +284 -0
  32. package/{dist/ai → ai}/docs/Shortcut.md +14 -14
  33. package/{dist/ai → ai}/docs/Skeleton.md +56 -60
  34. package/{dist/ai → ai}/docs/Slider.md +26 -49
  35. package/{dist/ai → ai}/docs/Slot.md +15 -17
  36. package/{dist/ai → ai}/docs/Spinner.md +17 -15
  37. package/{dist/ai → ai}/docs/Stats.md +44 -42
  38. package/ai/docs/Step.md +159 -0
  39. package/{dist/ai → ai}/docs/Switch.md +44 -54
  40. package/ai/docs/Table.md +286 -0
  41. package/ai/docs/Tabs.md +191 -0
  42. package/ai/docs/Tag.md +222 -0
  43. package/{dist/ai → ai}/docs/TaskList.md +40 -50
  44. package/ai/docs/Textarea.md +144 -0
  45. package/ai/docs/Timeline.md +212 -0
  46. package/{dist/ai → ai}/docs/Toolbar.md +46 -46
  47. package/ai/docs/Tooltip.md +231 -0
  48. package/ai/docs/Typography.md +187 -0
  49. package/ai/docs/Wizard.md +208 -0
  50. package/ai/docs/index.md +183 -0
  51. package/dist/autocomplete-DcTNOwyg.js +393 -0
  52. package/dist/autocomplete-DcTNOwyg.js.map +1 -0
  53. package/dist/{calendar-B5lSd0ID.js → calendar-BJMHRoy2.js} +104 -105
  54. package/dist/calendar-BJMHRoy2.js.map +1 -0
  55. package/dist/components/core/button.js +10 -10
  56. package/dist/components/core/button.js.map +1 -1
  57. package/dist/components/core/tag.js +4 -4
  58. package/dist/components/core/tag.js.map +1 -1
  59. package/dist/components/display/alert.js +48 -46
  60. package/dist/components/display/alert.js.map +1 -1
  61. package/dist/components/display/calendar.js +6 -6
  62. package/dist/components/display/card.js +2 -2
  63. package/dist/components/display/card.js.map +1 -1
  64. package/dist/components/display/list.js +1 -1
  65. package/dist/components/display/list.js.map +1 -1
  66. package/dist/components/display/notifications.js +3 -3
  67. package/dist/components/display/stats.js +1 -1
  68. package/dist/components/display/tabs.js +2 -2
  69. package/dist/components/display/timeline.js +1 -1
  70. package/dist/components/floating/dropdown.js +25 -17
  71. package/dist/components/floating/dropdown.js.map +1 -1
  72. package/dist/components/floating/expand.js +7 -7
  73. package/dist/components/floating/expand.js.map +1 -1
  74. package/dist/components/floating/menu.js +10 -10
  75. package/dist/components/floating/menu.js.map +1 -1
  76. package/dist/components/floating/modal.js +106 -102
  77. package/dist/components/floating/modal.js.map +1 -1
  78. package/dist/components/floating/tooltip.js +14 -14
  79. package/dist/components/floating/tooltip.js.map +1 -1
  80. package/dist/components/form/autocomplete.js +6 -6
  81. package/dist/components/form/checkbox.js +1 -1
  82. package/dist/components/form/date-picker.js +5 -5
  83. package/dist/components/form/file-upload.js +2 -2
  84. package/dist/components/form/form.js.map +1 -1
  85. package/dist/components/form/input.js +1 -1
  86. package/dist/components/form/radiobox.js +1 -1
  87. package/dist/components/form/select.js +3 -3
  88. package/dist/components/form/switch.js +2 -2
  89. package/dist/components/form/switch.js.map +1 -1
  90. package/dist/components/table/table.js +3 -3
  91. package/dist/{date-picker-DwNo22lx.js → date-picker-Bnl07nd8.js} +8 -6
  92. package/dist/date-picker-Bnl07nd8.js.map +1 -0
  93. package/dist/{dom-Dl8XH0CK.js → dom-CyQHY7ID.js} +66 -61
  94. package/dist/dom-CyQHY7ID.js.map +1 -0
  95. package/dist/{file-upload-Brf2NkLr.js → file-upload-93d5DR4q.js} +139 -129
  96. package/dist/file-upload-93d5DR4q.js.map +1 -0
  97. package/dist/{floating-ui.react-QNHG9W4N.js → floating-ui.react-M2PGXLDp.js} +8 -8
  98. package/dist/floating-ui.react-M2PGXLDp.js.map +1 -0
  99. package/dist/{fns-D2eyJKd5.js → fns-C7Dt27Qd.js} +2 -2
  100. package/dist/fns-C7Dt27Qd.js.map +1 -0
  101. package/dist/index-BJ1ayTam.js +126 -0
  102. package/dist/index-BJ1ayTam.js.map +1 -0
  103. package/dist/index-C-PuFUZi.js.map +1 -1
  104. package/dist/{index-BelDtX5M.js → index-DDeQW0JW.js} +399 -404
  105. package/dist/index-DDeQW0JW.js.map +1 -0
  106. package/dist/index-DE4shK8D.js +215 -0
  107. package/dist/index-DE4shK8D.js.map +1 -0
  108. package/dist/{index-DJSMaZR4.js → index-DlJ_2RBL.js} +2 -2
  109. package/dist/index-DlJ_2RBL.js.map +1 -0
  110. package/dist/index.css +1 -1
  111. package/dist/index.esm-BaIwleSE.js.map +1 -1
  112. package/dist/index.js +2826 -2765
  113. package/dist/index.js.map +1 -1
  114. package/dist/{input-CrGrSnUt.js → input-_MVxmIpu.js} +116 -114
  115. package/dist/input-_MVxmIpu.js.map +1 -0
  116. package/dist/{input-field-5vYcz5tT.js → input-field-CDCOODOl.js} +63 -47
  117. package/dist/input-field-CDCOODOl.js.map +1 -0
  118. package/dist/notifications-Dp0ydKJS.js +2576 -0
  119. package/dist/notifications-Dp0ydKJS.js.map +1 -0
  120. package/dist/polymorph-B5n9fs_K.js.map +1 -1
  121. package/dist/preset/plugin.tailwind.d.ts.map +1 -1
  122. package/dist/preset/plugin.tailwind.js +20 -18
  123. package/dist/preset/preset.tailwind.js +24 -25
  124. package/dist/preset/src/styles/common.js +6 -3
  125. package/dist/preset/src/styles/dark.d.ts.map +1 -1
  126. package/dist/preset/src/styles/dark.js +9 -5
  127. package/dist/preset/src/styles/design-tokens.js +68 -89
  128. package/dist/preset/src/styles/light.d.ts.map +1 -1
  129. package/dist/preset/src/styles/light.js +9 -5
  130. package/dist/preset/src/styles/theme.js +7 -4
  131. package/dist/preset/src/styles/theme.types.d.ts +2 -1
  132. package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
  133. package/dist/preset/src/styles/theme.types.js +2 -1
  134. package/dist/skeleton-BjJobYYf.js +24 -0
  135. package/dist/skeleton-BjJobYYf.js.map +1 -0
  136. package/dist/slot-CRyweuj0.js.map +1 -1
  137. package/dist/styles/common.js +6 -3
  138. package/dist/styles/dark.d.ts.map +1 -1
  139. package/dist/styles/dark.js +9 -5
  140. package/dist/styles/design-tokens.js +68 -89
  141. package/dist/styles/light.d.ts.map +1 -1
  142. package/dist/styles/light.js +9 -5
  143. package/dist/styles/theme.js +7 -4
  144. package/dist/styles/theme.types.d.ts +2 -1
  145. package/dist/styles/theme.types.d.ts.map +1 -1
  146. package/dist/styles/theme.types.js +2 -1
  147. package/dist/tabs-B0g7YtQv.js +123 -0
  148. package/dist/tabs-B0g7YtQv.js.map +1 -0
  149. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  150. package/dist/{context-BFXNJVn2.js → use-translations-DSltA7H_.js} +38 -30
  151. package/dist/use-translations-DSltA7H_.js.map +1 -0
  152. package/package.json +101 -88
  153. package/dist/ai/SKILL.md +0 -266
  154. package/dist/ai/docs/Alert.md +0 -167
  155. package/dist/ai/docs/AnimatedList.md +0 -205
  156. package/dist/ai/docs/Autocomplete.md +0 -225
  157. package/dist/ai/docs/Button.md +0 -182
  158. package/dist/ai/docs/Calendar.md +0 -219
  159. package/dist/ai/docs/Card.md +0 -174
  160. package/dist/ai/docs/Checkbox.md +0 -199
  161. package/dist/ai/docs/CommandPalette.md +0 -293
  162. package/dist/ai/docs/DatePicker.md +0 -171
  163. package/dist/ai/docs/Dropdown.md +0 -223
  164. package/dist/ai/docs/FileUpload.md +0 -225
  165. package/dist/ai/docs/Input.md +0 -237
  166. package/dist/ai/docs/InputField.md +0 -170
  167. package/dist/ai/docs/List.md +0 -205
  168. package/dist/ai/docs/Menu.md +0 -166
  169. package/dist/ai/docs/Modal.md +0 -280
  170. package/dist/ai/docs/MultiSelect.md +0 -196
  171. package/dist/ai/docs/Notifications.md +0 -231
  172. package/dist/ai/docs/PageCalendar.md +0 -271
  173. package/dist/ai/docs/Select.md +0 -284
  174. package/dist/ai/docs/Step.md +0 -159
  175. package/dist/ai/docs/Table.md +0 -298
  176. package/dist/ai/docs/Tabs.md +0 -191
  177. package/dist/ai/docs/Tag.md +0 -224
  178. package/dist/ai/docs/Textarea.md +0 -167
  179. package/dist/ai/docs/Timeline.md +0 -210
  180. package/dist/ai/docs/Tooltip.md +0 -231
  181. package/dist/ai/docs/TransferList.md +0 -142
  182. package/dist/ai/docs/Typography.md +0 -187
  183. package/dist/ai/docs/Wizard.md +0 -213
  184. package/dist/ai/docs/index.md +0 -183
  185. package/dist/autocomplete-Cn9Z2hLq.js +0 -375
  186. package/dist/autocomplete-Cn9Z2hLq.js.map +0 -1
  187. package/dist/calendar-B5lSd0ID.js.map +0 -1
  188. package/dist/components/core/button.d.ts +0 -77
  189. package/dist/components/core/button.d.ts.map +0 -1
  190. package/dist/components/core/heading.d.ts +0 -3
  191. package/dist/components/core/heading.d.ts.map +0 -1
  192. package/dist/components/core/polymorph.d.ts +0 -10
  193. package/dist/components/core/polymorph.d.ts.map +0 -1
  194. package/dist/components/core/render-on-view.d.ts +0 -7
  195. package/dist/components/core/render-on-view.d.ts.map +0 -1
  196. package/dist/components/core/resizable.d.ts +0 -3
  197. package/dist/components/core/resizable.d.ts.map +0 -1
  198. package/dist/components/core/slot.d.ts +0 -16
  199. package/dist/components/core/slot.d.ts.map +0 -1
  200. package/dist/components/core/tag.d.ts +0 -35
  201. package/dist/components/core/tag.d.ts.map +0 -1
  202. package/dist/components/core/typography.d.ts +0 -24
  203. package/dist/components/core/typography.d.ts.map +0 -1
  204. package/dist/components/display/alert.d.ts +0 -28
  205. package/dist/components/display/alert.d.ts.map +0 -1
  206. package/dist/components/display/calendar.d.ts +0 -42
  207. package/dist/components/display/calendar.d.ts.map +0 -1
  208. package/dist/components/display/card.d.ts +0 -29
  209. package/dist/components/display/card.d.ts.map +0 -1
  210. package/dist/components/display/empty.d.ts +0 -8
  211. package/dist/components/display/empty.d.ts.map +0 -1
  212. package/dist/components/display/list.d.ts +0 -16
  213. package/dist/components/display/list.d.ts.map +0 -1
  214. package/dist/components/display/notifications.d.ts +0 -27
  215. package/dist/components/display/notifications.d.ts.map +0 -1
  216. package/dist/components/display/progress.d.ts +0 -13
  217. package/dist/components/display/progress.d.ts.map +0 -1
  218. package/dist/components/display/shortcut.d.ts +0 -4
  219. package/dist/components/display/shortcut.d.ts.map +0 -1
  220. package/dist/components/display/skeleton.d.ts +0 -12
  221. package/dist/components/display/skeleton.d.ts.map +0 -1
  222. package/dist/components/display/spinner.d.ts +0 -5
  223. package/dist/components/display/spinner.d.ts.map +0 -1
  224. package/dist/components/display/stats.d.ts +0 -12
  225. package/dist/components/display/stats.d.ts.map +0 -1
  226. package/dist/components/display/step.d.ts +0 -24
  227. package/dist/components/display/step.d.ts.map +0 -1
  228. package/dist/components/display/tabs.d.ts +0 -24
  229. package/dist/components/display/tabs.d.ts.map +0 -1
  230. package/dist/components/display/timeline.d.ts +0 -10
  231. package/dist/components/display/timeline.d.ts.map +0 -1
  232. package/dist/components/floating/command-palette.d.ts +0 -49
  233. package/dist/components/floating/command-palette.d.ts.map +0 -1
  234. package/dist/components/floating/dropdown.d.ts +0 -15
  235. package/dist/components/floating/dropdown.d.ts.map +0 -1
  236. package/dist/components/floating/expand.d.ts +0 -11
  237. package/dist/components/floating/expand.d.ts.map +0 -1
  238. package/dist/components/floating/menu.d.ts +0 -52
  239. package/dist/components/floating/menu.d.ts.map +0 -1
  240. package/dist/components/floating/modal.d.ts +0 -60
  241. package/dist/components/floating/modal.d.ts.map +0 -1
  242. package/dist/components/floating/toolbar.d.ts +0 -6
  243. package/dist/components/floating/toolbar.d.ts.map +0 -1
  244. package/dist/components/floating/tooltip.d.ts +0 -17
  245. package/dist/components/floating/tooltip.d.ts.map +0 -1
  246. package/dist/components/floating/wizard.d.ts +0 -26
  247. package/dist/components/floating/wizard.d.ts.map +0 -1
  248. package/dist/components/form/autocomplete.d.ts +0 -16
  249. package/dist/components/form/autocomplete.d.ts.map +0 -1
  250. package/dist/components/form/checkbox.d.ts +0 -12
  251. package/dist/components/form/checkbox.d.ts.map +0 -1
  252. package/dist/components/form/date-picker.d.ts +0 -10
  253. package/dist/components/form/date-picker.d.ts.map +0 -1
  254. package/dist/components/form/file-upload.d.ts +0 -15
  255. package/dist/components/form/file-upload.d.ts.map +0 -1
  256. package/dist/components/form/form.d.ts +0 -3
  257. package/dist/components/form/form.d.ts.map +0 -1
  258. package/dist/components/form/formReset.d.ts +0 -2
  259. package/dist/components/form/formReset.d.ts.map +0 -1
  260. package/dist/components/form/free-text.d.ts +0 -11
  261. package/dist/components/form/free-text.d.ts.map +0 -1
  262. package/dist/components/form/input-field.d.ts +0 -34
  263. package/dist/components/form/input-field.d.ts.map +0 -1
  264. package/dist/components/form/input.d.ts +0 -52
  265. package/dist/components/form/input.d.ts.map +0 -1
  266. package/dist/components/form/multi-select.d.ts +0 -19
  267. package/dist/components/form/multi-select.d.ts.map +0 -1
  268. package/dist/components/form/radiobox.d.ts +0 -7
  269. package/dist/components/form/radiobox.d.ts.map +0 -1
  270. package/dist/components/form/select.d.ts +0 -13
  271. package/dist/components/form/select.d.ts.map +0 -1
  272. package/dist/components/form/slider.d.ts +0 -7
  273. package/dist/components/form/slider.d.ts.map +0 -1
  274. package/dist/components/form/switch.d.ts +0 -9
  275. package/dist/components/form/switch.d.ts.map +0 -1
  276. package/dist/components/form/task-list.d.ts +0 -3
  277. package/dist/components/form/task-list.d.ts.map +0 -1
  278. package/dist/components/form/textarea.d.ts +0 -6
  279. package/dist/components/form/textarea.d.ts.map +0 -1
  280. package/dist/components/form/transfer-list.d.ts +0 -14
  281. package/dist/components/form/transfer-list.d.ts.map +0 -1
  282. package/dist/components/form/transfer-list.js +0 -55
  283. package/dist/components/form/transfer-list.js.map +0 -1
  284. package/dist/components/index.d.ts +0 -46
  285. package/dist/components/index.d.ts.map +0 -1
  286. package/dist/components/page-calendar/calendar-header.d.ts +0 -16
  287. package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
  288. package/dist/components/page-calendar/day-view.d.ts +0 -12
  289. package/dist/components/page-calendar/day-view.d.ts.map +0 -1
  290. package/dist/components/page-calendar/event-pill.d.ts +0 -9
  291. package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
  292. package/dist/components/page-calendar/index.d.ts +0 -4
  293. package/dist/components/page-calendar/index.d.ts.map +0 -1
  294. package/dist/components/page-calendar/month-view.d.ts +0 -11
  295. package/dist/components/page-calendar/month-view.d.ts.map +0 -1
  296. package/dist/components/page-calendar/page-calendar.d.ts +0 -18
  297. package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
  298. package/dist/components/page-calendar/page-calendar.types.d.ts +0 -18
  299. package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
  300. package/dist/components/page-calendar/page-calendar.utils.d.ts +0 -24
  301. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
  302. package/dist/components/page-calendar/week-view.d.ts +0 -11
  303. package/dist/components/page-calendar/week-view.d.ts.map +0 -1
  304. package/dist/components/table/filter.d.ts +0 -42
  305. package/dist/components/table/filter.d.ts.map +0 -1
  306. package/dist/components/table/group.d.ts +0 -17
  307. package/dist/components/table/group.d.ts.map +0 -1
  308. package/dist/components/table/index.d.ts +0 -20
  309. package/dist/components/table/index.d.ts.map +0 -1
  310. package/dist/components/table/inner-table.d.ts +0 -29
  311. package/dist/components/table/inner-table.d.ts.map +0 -1
  312. package/dist/components/table/metadata.d.ts +0 -4
  313. package/dist/components/table/metadata.d.ts.map +0 -1
  314. package/dist/components/table/pagination.d.ts +0 -3
  315. package/dist/components/table/pagination.d.ts.map +0 -1
  316. package/dist/components/table/row.d.ts +0 -12
  317. package/dist/components/table/row.d.ts.map +0 -1
  318. package/dist/components/table/sort.d.ts +0 -28
  319. package/dist/components/table/sort.d.ts.map +0 -1
  320. package/dist/components/table/table-lib.d.ts +0 -135
  321. package/dist/components/table/table-lib.d.ts.map +0 -1
  322. package/dist/components/table/table.context.d.ts +0 -10
  323. package/dist/components/table/table.context.d.ts.map +0 -1
  324. package/dist/components/table/thead.d.ts +0 -9
  325. package/dist/components/table/thead.d.ts.map +0 -1
  326. package/dist/config/context.d.ts +0 -21
  327. package/dist/config/context.d.ts.map +0 -1
  328. package/dist/config/default-translations.d.ts +0 -90
  329. package/dist/config/default-translations.d.ts.map +0 -1
  330. package/dist/config/default-tweaks.d.ts +0 -13
  331. package/dist/config/default-tweaks.d.ts.map +0 -1
  332. package/dist/constants.d.ts +0 -3
  333. package/dist/constants.d.ts.map +0 -1
  334. package/dist/context-BFXNJVn2.js.map +0 -1
  335. package/dist/date-picker-DwNo22lx.js.map +0 -1
  336. package/dist/dom-Dl8XH0CK.js.map +0 -1
  337. package/dist/file-upload-Brf2NkLr.js.map +0 -1
  338. package/dist/floating-ui.react-QNHG9W4N.js.map +0 -1
  339. package/dist/fns-D2eyJKd5.js.map +0 -1
  340. package/dist/hooks/use-click-outside.d.ts +0 -3
  341. package/dist/hooks/use-click-outside.d.ts.map +0 -1
  342. package/dist/hooks/use-color-parser.d.ts +0 -2
  343. package/dist/hooks/use-color-parser.d.ts.map +0 -1
  344. package/dist/hooks/use-components-provider.d.ts +0 -15
  345. package/dist/hooks/use-components-provider.d.ts.map +0 -1
  346. package/dist/hooks/use-debounce.d.ts +0 -5
  347. package/dist/hooks/use-debounce.d.ts.map +0 -1
  348. package/dist/hooks/use-floating-ref.d.ts +0 -2
  349. package/dist/hooks/use-floating-ref.d.ts.map +0 -1
  350. package/dist/hooks/use-form.d.ts +0 -394
  351. package/dist/hooks/use-form.d.ts.map +0 -1
  352. package/dist/hooks/use-hover.d.ts +0 -3
  353. package/dist/hooks/use-hover.d.ts.map +0 -1
  354. package/dist/hooks/use-input-id.d.ts +0 -4
  355. package/dist/hooks/use-input-id.d.ts.map +0 -1
  356. package/dist/hooks/use-is-coarse-device.d.ts +0 -2
  357. package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
  358. package/dist/hooks/use-locale.d.ts +0 -3
  359. package/dist/hooks/use-locale.d.ts.map +0 -1
  360. package/dist/hooks/use-media-query.d.ts +0 -2
  361. package/dist/hooks/use-media-query.d.ts.map +0 -1
  362. package/dist/hooks/use-on-event.d.ts +0 -4
  363. package/dist/hooks/use-on-event.d.ts.map +0 -1
  364. package/dist/hooks/use-parent.d.ts +0 -3
  365. package/dist/hooks/use-parent.d.ts.map +0 -1
  366. package/dist/hooks/use-preferences.d.ts +0 -2
  367. package/dist/hooks/use-preferences.d.ts.map +0 -1
  368. package/dist/hooks/use-previous.d.ts +0 -2
  369. package/dist/hooks/use-previous.d.ts.map +0 -1
  370. package/dist/hooks/use-reactive.d.ts +0 -2
  371. package/dist/hooks/use-reactive.d.ts.map +0 -1
  372. package/dist/hooks/use-remove-scroll.d.ts +0 -4
  373. package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
  374. package/dist/hooks/use-resize-observer.d.ts +0 -2
  375. package/dist/hooks/use-resize-observer.d.ts.map +0 -1
  376. package/dist/hooks/use-stable-ref.d.ts +0 -2
  377. package/dist/hooks/use-stable-ref.d.ts.map +0 -1
  378. package/dist/hooks/use-swipe.d.ts +0 -8
  379. package/dist/hooks/use-swipe.d.ts.map +0 -1
  380. package/dist/hooks/use-translations.d.ts +0 -88
  381. package/dist/hooks/use-translations.d.ts.map +0 -1
  382. package/dist/hooks/use-tweaks.d.ts +0 -3
  383. package/dist/hooks/use-tweaks.d.ts.map +0 -1
  384. package/dist/hooks/use-window-size.d.ts +0 -5
  385. package/dist/hooks/use-window-size.d.ts.map +0 -1
  386. package/dist/index-BelDtX5M.js.map +0 -1
  387. package/dist/index-DJSMaZR4.js.map +0 -1
  388. package/dist/index-Z-fZHxfJ.js +0 -335
  389. package/dist/index-Z-fZHxfJ.js.map +0 -1
  390. package/dist/index.d.ts +0 -22
  391. package/dist/index.d.ts.map +0 -1
  392. package/dist/input-CrGrSnUt.js.map +0 -1
  393. package/dist/input-field-5vYcz5tT.js.map +0 -1
  394. package/dist/lib/combi-keys.d.ts +0 -15
  395. package/dist/lib/combi-keys.d.ts.map +0 -1
  396. package/dist/lib/dict.d.ts +0 -12
  397. package/dist/lib/dict.d.ts.map +0 -1
  398. package/dist/lib/dom.d.ts +0 -19
  399. package/dist/lib/dom.d.ts.map +0 -1
  400. package/dist/lib/fns.d.ts +0 -11
  401. package/dist/lib/fns.d.ts.map +0 -1
  402. package/dist/lib/fzf.d.ts +0 -16
  403. package/dist/lib/fzf.d.ts.map +0 -1
  404. package/dist/lib/keyboard-area.d.ts +0 -16
  405. package/dist/lib/keyboard-area.d.ts.map +0 -1
  406. package/dist/notifications-cUdVPs-B.js +0 -2786
  407. package/dist/notifications-cUdVPs-B.js.map +0 -1
  408. package/dist/skeleton-D75GFBV6.js +0 -10
  409. package/dist/skeleton-D75GFBV6.js.map +0 -1
  410. package/dist/tabs-S00a8qq8.js +0 -106
  411. package/dist/tabs-S00a8qq8.js.map +0 -1
  412. package/dist/types.d.ts +0 -26
  413. package/dist/types.d.ts.map +0 -1
  414. package/dist/use-translations-BwLKTrZv.js +0 -10
  415. package/dist/use-translations-BwLKTrZv.js.map +0 -1
@@ -0,0 +1,183 @@
1
+ ---
2
+ title: "@g4rcez/components — Component Index"
3
+ description: Full component catalog for @g4rcez/components React design system
4
+ package: "@g4rcez/components"
5
+ ---
6
+
7
+ # @g4rcez/components — Component Index
8
+
9
+ A design system library built on React, Tailwind CSS, and design tokens.
10
+
11
+ **Installation:**
12
+
13
+ ```bash
14
+ npm install @g4rcez/components
15
+ ```
16
+
17
+ **Setup:**
18
+
19
+ ```tsx
20
+ import "@g4rcez/components/index.css";
21
+ ```
22
+
23
+ ## All Components
24
+
25
+ | Component | Category | Import | Description |
26
+ | -------------- | -------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------- |
27
+ | Button | Core | `import { Button } from "@g4rcez/components/button"` | Versatile button with multiple variants, sizes, and polymorphic rendering |
28
+ | Tag | Core | `import { Tag } from "@g4rcez/components/tag"` | Label/badge for metadata, status, and categorization |
29
+ | Heading | Core | `import { Heading } from "@g4rcez/components"` | Semantic heading with consistent typography tokens |
30
+ | Polymorph | Core | `import { Polymorph } from "@g4rcez/components"` | Polymorphic base component for rendering as any HTML element |
31
+ | RenderOnView | Core | `import { RenderOnView } from "@g4rcez/components"` | Lazy-renders children when they scroll into the viewport |
32
+ | Resizable | Core | `import { Resizable } from "@g4rcez/components"` | Drag-to-resize panel container |
33
+ | Slot | Core | `import { Slot } from "@g4rcez/components"` | Render-prop slot for component composition |
34
+ | Typography | Core | `import { Typography } from "@g4rcez/components"` | Body text component with semantic token styling |
35
+ | Alert | Display | `import { Alert } from "@g4rcez/components/alert"` | Dismissible alert for messages, warnings, and status updates |
36
+ | AnimatedList | Display | `import { AnimatedList } from "@g4rcez/components"` | List with enter/exit animation for dynamic items |
37
+ | Calendar | Display | `import { Calendar } from "@g4rcez/components/calendar"` | Inline date picker calendar |
38
+ | Card | Display | `import { Card } from "@g4rcez/components/card"` | Surface container with card tokens and elevation |
39
+ | Empty | Display | `import { Empty } from "@g4rcez/components"` | Empty state placeholder with optional icon and action |
40
+ | List | Display | `import { List } from "@g4rcez/components/list"` | Virtualized scrollable list for large data sets |
41
+ | Notifications | Display | `import { Notifications } from "@g4rcez/components/notifications"` | Toast notification system with queue management |
42
+ | Progress | Display | `import { Progress } from "@g4rcez/components"` | Progress bar with themed fill |
43
+ | Shortcut | Display | `import { Shortcut } from "@g4rcez/components"` | Keyboard shortcut badge display |
44
+ | Skeleton | Display | `import { Skeleton } from "@g4rcez/components"` | Loading placeholder with pulse animation |
45
+ | Spinner | Display | `import { Spinner } from "@g4rcez/components"` | Animated loading spinner |
46
+ | Stats | Display | `import { Stats } from "@g4rcez/components/stats"` | Metric/statistics display with label and value |
47
+ | Step | Display | `import { Step } from "@g4rcez/components"` | Multi-step wizard progress indicator |
48
+ | Tabs | Display | `import { Tabs } from "@g4rcez/components/tabs"` | Tabbed navigation with panel switching |
49
+ | Timeline | Display | `import { Timeline } from "@g4rcez/components/timeline"` | Vertical event timeline with themed markers |
50
+ | Autocomplete | Form | `import { Autocomplete } from "@g4rcez/components/autocomplete"` | Text input with dropdown suggestions |
51
+ | Checkbox | Form | `import { Checkbox } from "@g4rcez/components/checkbox"` | Checkbox with indeterminate support |
52
+ | DatePicker | Form | `import { DatePicker } from "@g4rcez/components/date-picker"` | Date input with calendar popover |
53
+ | FileUpload | Form | `import { FileUpload } from "@g4rcez/components/file-upload"` | Drag-and-drop file upload with preview |
54
+ | Form | Form | `import { Form } from "@g4rcez/components/form"` | Form wrapper with Zod validation and field management |
55
+ | FormReset | Form | `import { FormReset } from "@g4rcez/components"` | Reset button wired to the nearest Form context |
56
+ | Input | Form | `import { Input } from "@g4rcez/components/input"` | Text input with mask, prefix/suffix, and error states |
57
+ | InputField | Form | `import { InputField } from "@g4rcez/components"` | Input with label, helper text, and error message |
58
+ | MultiSelect | Form | `import { MultiSelect } from "@g4rcez/components"` | Multi-value select with search and tag display |
59
+ | Radiobox | Form | `import { Radiobox } from "@g4rcez/components/radiobox"` | Styled radio button group |
60
+ | Select | Form | `import { Select } from "@g4rcez/components/select"` | Dropdown select with search and virtual scroll |
61
+ | Slider | Form | `import { Slider } from "@g4rcez/components"` | Range slider input |
62
+ | Switch | Form | `import { Switch } from "@g4rcez/components/switch"` | Toggle switch for boolean values |
63
+ | TaskList | Form | `import { TaskList } from "@g4rcez/components/task-list"` | Checklist with completion tracking |
64
+ | Textarea | Form | `import { Textarea } from "@g4rcez/components"` | Multi-line text input with auto-resize |
65
+ | CommandPalette | Floating | `import { CommandPalette } from "@g4rcez/components"` | Spotlight-style command palette with keyboard navigation |
66
+ | Dropdown | Floating | `import { Dropdown } from "@g4rcez/components/dropdown"` | Floating dropdown menu anchored to a trigger |
67
+ | Expand | Floating | `import { Expand } from "@g4rcez/components/expand"` | Collapsible accordion/expand panel |
68
+ | Menu | Floating | `import { Menu } from "@g4rcez/components/menu"` | Context menu or navigation menu |
69
+ | Modal | Floating | `import { Modal } from "@g4rcez/components/modal"` | Dialog overlay with focus trap and scroll lock |
70
+ | Toolbar | Floating | `import { Toolbar } from "@g4rcez/components"` | Grouped action bar with button slots |
71
+ | Tooltip | Floating | `import { Tooltip } from "@g4rcez/components/tooltip"` | Hover tooltip with floating positioning |
72
+ | Wizard | Floating | `import { Wizard } from "@g4rcez/components"` | Multi-step guided flow overlay |
73
+ | Table | Table | `import { Table } from "@g4rcez/components/table"` | Feature-rich data table with sorting, filtering, and virtualization |
74
+ | PageCalendar | Calendar | `import { PageCalendar } from "@g4rcez/components"` | Full-page calendar with month, week, and day views |
75
+
76
+ ---
77
+
78
+ ## Core
79
+
80
+ | Component | Import | Description |
81
+ | ------------ | ---------------------------------------------------- | ------------------------------------------------------------------------- |
82
+ | Button | `import { Button } from "@g4rcez/components/button"` | Versatile button with multiple variants, sizes, and polymorphic rendering |
83
+ | Tag | `import { Tag } from "@g4rcez/components/tag"` | Label/badge for metadata, status, and categorization |
84
+ | Heading | `import { Heading } from "@g4rcez/components"` | Semantic heading with consistent typography tokens |
85
+ | Polymorph | `import { Polymorph } from "@g4rcez/components"` | Polymorphic base component for rendering as any HTML element |
86
+ | RenderOnView | `import { RenderOnView } from "@g4rcez/components"` | Lazy-renders children when they scroll into the viewport |
87
+ | Resizable | `import { Resizable } from "@g4rcez/components"` | Drag-to-resize panel container |
88
+ | Slot | `import { Slot } from "@g4rcez/components"` | Render-prop slot for component composition |
89
+ | Typography | `import { Typography } from "@g4rcez/components"` | Body text component with semantic token styling |
90
+
91
+ ## Display
92
+
93
+ | Component | Import | Description |
94
+ | ------------- | ------------------------------------------------------------------ | ------------------------------------------------------------ |
95
+ | Alert | `import { Alert } from "@g4rcez/components/alert"` | Dismissible alert for messages, warnings, and status updates |
96
+ | AnimatedList | `import { AnimatedList } from "@g4rcez/components"` | List with enter/exit animation for dynamic items |
97
+ | Calendar | `import { Calendar } from "@g4rcez/components/calendar"` | Inline date picker calendar |
98
+ | Card | `import { Card } from "@g4rcez/components/card"` | Surface container with card tokens and elevation |
99
+ | Empty | `import { Empty } from "@g4rcez/components"` | Empty state placeholder with optional icon and action |
100
+ | List | `import { List } from "@g4rcez/components/list"` | Virtualized scrollable list for large data sets |
101
+ | Notifications | `import { Notifications } from "@g4rcez/components/notifications"` | Toast notification system with queue management |
102
+ | Progress | `import { Progress } from "@g4rcez/components"` | Progress bar with themed fill |
103
+ | Shortcut | `import { Shortcut } from "@g4rcez/components"` | Keyboard shortcut badge display |
104
+ | Skeleton | `import { Skeleton } from "@g4rcez/components"` | Loading placeholder with pulse animation |
105
+ | Spinner | `import { Spinner } from "@g4rcez/components"` | Animated loading spinner |
106
+ | Stats | `import { Stats } from "@g4rcez/components/stats"` | Metric/statistics display with label and value |
107
+ | Step | `import { Step } from "@g4rcez/components"` | Multi-step wizard progress indicator |
108
+ | Tabs | `import { Tabs } from "@g4rcez/components/tabs"` | Tabbed navigation with panel switching |
109
+ | Timeline | `import { Timeline } from "@g4rcez/components/timeline"` | Vertical event timeline with themed markers |
110
+
111
+ ## Form
112
+
113
+ | Component | Import | Description |
114
+ | ------------ | ----------------------------------------------------------------- | ----------------------------------------------------- |
115
+ | Autocomplete | `import { Autocomplete } from "@g4rcez/components/autocomplete"` | Text input with dropdown suggestions |
116
+ | Checkbox | `import { Checkbox } from "@g4rcez/components/checkbox"` | Checkbox with indeterminate support |
117
+ | DatePicker | `import { DatePicker } from "@g4rcez/components/date-picker"` | Date input with calendar popover |
118
+ | FileUpload | `import { FileUpload } from "@g4rcez/components/file-upload"` | Drag-and-drop file upload with preview |
119
+ | Form | `import { Form } from "@g4rcez/components/form"` | Form wrapper with Zod validation and field management |
120
+ | FormReset | `import { FormReset } from "@g4rcez/components"` | Reset button wired to the nearest Form context |
121
+ | Input | `import { Input } from "@g4rcez/components/input"` | Text input with mask, prefix/suffix, and error states |
122
+ | InputField | `import { InputField } from "@g4rcez/components"` | Input with label, helper text, and error message |
123
+ | MultiSelect | `import { MultiSelect } from "@g4rcez/components"` | Multi-value select with search and tag display |
124
+ | Radiobox | `import { Radiobox } from "@g4rcez/components/radiobox"` | Styled radio button group |
125
+ | Select | `import { Select } from "@g4rcez/components/select"` | Dropdown select with search and virtual scroll |
126
+ | Slider | `import { Slider } from "@g4rcez/components"` | Range slider input |
127
+ | Switch | `import { Switch } from "@g4rcez/components/switch"` | Toggle switch for boolean values |
128
+ | TaskList | `import { TaskList } from "@g4rcez/components/task-list"` | Checklist with completion tracking |
129
+ | Textarea | `import { Textarea } from "@g4rcez/components"` | Multi-line text input with auto-resize |
130
+
131
+ ## Floating
132
+
133
+ | Component | Import | Description |
134
+ | -------------- | -------------------------------------------------------- | -------------------------------------------------------- |
135
+ | CommandPalette | `import { CommandPalette } from "@g4rcez/components"` | Spotlight-style command palette with keyboard navigation |
136
+ | Dropdown | `import { Dropdown } from "@g4rcez/components/dropdown"` | Floating dropdown menu anchored to a trigger |
137
+ | Expand | `import { Expand } from "@g4rcez/components/expand"` | Collapsible accordion/expand panel |
138
+ | Menu | `import { Menu } from "@g4rcez/components/menu"` | Context menu or navigation menu |
139
+ | Modal | `import { Modal } from "@g4rcez/components/modal"` | Dialog overlay with focus trap and scroll lock |
140
+ | Toolbar | `import { Toolbar } from "@g4rcez/components"` | Grouped action bar with button slots |
141
+ | Tooltip | `import { Tooltip } from "@g4rcez/components/tooltip"` | Hover tooltip with floating positioning |
142
+ | Wizard | `import { Wizard } from "@g4rcez/components"` | Multi-step guided flow overlay |
143
+
144
+ ## Table
145
+
146
+ | Component | Import | Description |
147
+ | --------- | -------------------------------------------------- | ------------------------------------------------------------------- |
148
+ | Table | `import { Table } from "@g4rcez/components/table"` | Feature-rich data table with sorting, filtering, and virtualization |
149
+
150
+ ## Calendar
151
+
152
+ | Component | Import | Description |
153
+ | ------------ | --------------------------------------------------- | -------------------------------------------------- |
154
+ | PageCalendar | `import { PageCalendar } from "@g4rcez/components"` | Full-page calendar with month, week, and day views |
155
+
156
+ ---
157
+
158
+ ## Design Token Quick Reference
159
+
160
+ All components use CSS custom properties for theming. Override in your `@theme` block:
161
+
162
+ ```css
163
+ @theme {
164
+ --primary: oklch(0.6 0.2 250); /* primary color */
165
+ --danger: oklch(0.6 0.2 30); /* danger/error color */
166
+ --button-primary-bg: var(--primary);
167
+ --button-primary-text: var(--primary-foreground);
168
+ }
169
+ ```
170
+
171
+ See individual component docs for the full token list per component.
172
+
173
+ ---
174
+
175
+ ## Setup
176
+
177
+ ```tsx
178
+ // 1. Import the stylesheet in your app root
179
+ import "@g4rcez/components/index.css";
180
+
181
+ // 2. Apply theme class on your root element
182
+ <div className="light"> ... </div>; // or "dark"
183
+ ```
@@ -0,0 +1,393 @@
1
+ import { jsx as d, jsxs as Y } from "react/jsx-runtime";
2
+ import { u as Ve, o as $e, g as ze, h as Oe, b as Pe, i as _e, c as Ze, d as He, j as Ue, k as Be, F as We, m as je } from "./floating-ui.react-M2PGXLDp.js";
3
+ import { e as Ke } from "./CaretDown.es-Cj7klWI3.js";
4
+ import { useRef as I, useState as C, useEffect as L, forwardRef as G, useMemo as V, Fragment as Qe } from "react";
5
+ import { flushSync as se } from "react-dom";
6
+ import { Y as qe } from "./index-C-PuFUZi.js";
7
+ import { h as Ge, o as Je, I as D, g as Xe, i as et, c as ie, s as tt, f as nt } from "./dom-CyQHY7ID.js";
8
+ import { i as q, c as rt, s as ce } from "./fns-C7Dt27Qd.js";
9
+ import { u as lt } from "./use-translations-DSltA7H_.js";
10
+ import { I as ot } from "./input-field-CDCOODOl.js";
11
+ import { m as J, A as at } from "./proxy-BZcQiBrp.js";
12
+ const ue = () => window.matchMedia("@media (pointer: coarse)"), st = () => {
13
+ const t = I(q() ? null : ue()), [n, a] = C(q() ? !1 : t.current?.matches ?? !1);
14
+ return L(() => {
15
+ (t.current === null ? ue() : t.current).addEventListener("change", (l) => a(l.matches));
16
+ }, []), n;
17
+ }, it = (t, n = "overflow-hidden") => {
18
+ const a = I(null), o = st(), l = I(q() ? "" : document.documentElement.style.overflowY);
19
+ return L(() => {
20
+ if (!(a.current === null && !t) && n !== "block-only" && n === "overflow-hidden")
21
+ if (t) {
22
+ if (l.current = document.documentElement.style.overflowY, document.documentElement.style.overflowY = "hidden", o || rt()) return;
23
+ document.documentElement.style.padding = Ge(document.documentElement) ? "0 15px 0 0" : "";
24
+ } else
25
+ document.documentElement.style.padding = "", document.documentElement.style.overflowY = l.current;
26
+ }, [t, o, n]), L(() => {
27
+ if (!t) return;
28
+ const s = a.current;
29
+ if (!s) return;
30
+ const u = new AbortController(), i = (b) => {
31
+ const p = s.getBoundingClientRect(), v = s.style.height ? Number(Je(s.style.height)) : null, x = D.number(v) ? v : p.height;
32
+ s.scrollHeight <= x && b.preventDefault();
33
+ };
34
+ return s.addEventListener("wheel", i, { signal: u.signal, passive: !1 }), () => u.abort();
35
+ }, [t]), a;
36
+ }, ct = (t, n) => {
37
+ if (t = String(t).toLocaleLowerCase(), n = String(n).toLocaleLowerCase(), t === n) return 1;
38
+ const a = n[0];
39
+ if (!a) return null;
40
+ const o = [];
41
+ let l = 0;
42
+ for (; l < t.length; ) {
43
+ const u = t.indexOf(a, l);
44
+ if (u === -1) break;
45
+ let i = u + 1;
46
+ const b = [u];
47
+ let p = !0;
48
+ for (let v = 1; v < n.length; v++) {
49
+ const x = t.indexOf(n[v], i);
50
+ if (x === -1) {
51
+ p = !1;
52
+ break;
53
+ }
54
+ b.push(x), i = x + 1;
55
+ }
56
+ p && o.push(b), l = u + 1;
57
+ }
58
+ if (o.length === 0) return null;
59
+ const s = o.sort((u, i) => u.length === 1 ? u[0] - i[0] : u[u.length - 1] - u[0] - (i[i.length - 1] - i[0]))[0];
60
+ return s.length > 1 ? 2 + (s[s.length - 1] - s[0]) : 2 + s[0];
61
+ }, de = (t, n, a) => {
62
+ const o = t.split(n).filter(Boolean);
63
+ let l = a;
64
+ for (const s of o) {
65
+ if (l == null)
66
+ return l;
67
+ l = l[s];
68
+ }
69
+ return l;
70
+ }, fe = { basic: /[,[\]]+?/, extend: /[,[\].]+?/ }, me = (t, n) => {
71
+ const a = de(n, fe.basic, t);
72
+ return a !== void 0 && a !== t ? a : de(n, fe.extend, t);
73
+ }, ge = (t) => t.replace(/[^0-9]/g, ""), Q = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), he = (t, n, a, o = "FUZZY") => o === "CONTAINS" ? t.includes(n) : o === "EQUAL" ? t === n : o === "CONTAINS_NUMBERS" ? ge(t).includes(ge(n)) : o === "STARTS_WITH" ? t.startsWith(n) : o === "ENDS_WITH" ? t.endsWith(n) : o === "FUZZY" ? ct(t, n) !== null : !1, ut = (t, n, a, o = "FUZZY") => Array.isArray(n) ? n.some((l) => he(t, l, a, o)) : he(t, n, a, o), dt = (t, n, a) => {
74
+ if (a.length === 0)
75
+ return t;
76
+ const o = /* @__PURE__ */ new Map(), l = a.map((s) => {
77
+ const u = D.array(s.value) ? s.value.map((i) => Q(`${i}`.toLocaleLowerCase()).trim()) : Q(`${s.value}`.toLocaleLowerCase()).trim();
78
+ return { ...s, target: u };
79
+ });
80
+ return t.forEach((s) => {
81
+ const u = me(s, n);
82
+ l.forEach((i) => {
83
+ const b = me(s, i.key);
84
+ if (!b) return;
85
+ const p = Q(`${b}`.toLocaleLowerCase()).trim();
86
+ if (ut(p, i.target, i.score, i.match))
87
+ return void o.set(u, s);
88
+ D.function(i.ifNotMatch) && i.ifNotMatch(i.target, p) && o.set(u, s);
89
+ });
90
+ }), Array.from(o.values());
91
+ }, ft = (t) => /* @__PURE__ */ d(Qe, { children: t.children }), mt = {
92
+ duration: 200,
93
+ open: { transform: "scaleY(1)", opacity: 1 },
94
+ close: { transform: "scaleY(0)", opacity: 0 },
95
+ initial: { transform: "scaleY(0)", opacity: 0.2 }
96
+ }, gt = G(function({ context: n, ...a }, o) {
97
+ return /* @__PURE__ */ d(J.ul, { ...a, ref: o, className: "max-h-96 w-full overscroll-contain rounded-lg", children: /* @__PURE__ */ d(at, { children: a.children }) });
98
+ }), ht = G(function({ item: n, context: a, ...o }, l) {
99
+ return /* @__PURE__ */ d(J.li, { ...o, ref: l, className: "first:rounded-t-lg last:rounded-t-lg" });
100
+ }), bt = { List: gt, Item: ht }, pt = [], $ = 40, Ft = G(
101
+ ({
102
+ left: t,
103
+ error: n,
104
+ right: a,
105
+ loading: o,
106
+ options: l,
107
+ container: s,
108
+ rightLabel: u,
109
+ interactive: i,
110
+ emptyMessage: b,
111
+ optionalText: p,
112
+ labelClassName: v,
113
+ feedback: x = null,
114
+ hideLeft: X = !1,
115
+ required: z = !1,
116
+ dynamicOption: M = !1,
117
+ ...c
118
+ }, be) => {
119
+ const pe = I(null), ee = I(null), O = I(null), P = c.value ?? c.defaultValue ?? "", _ = lt(), [f, A] = C(!1), [w, F] = C(""), [E, Z] = C(P), [ve, H] = C(() => l.find((e) => e.value === P)?.label ?? P), [g, T] = C(null), te = I(pt), [, we] = C(0), ye = it(f, "block-only"), U = V(
120
+ () => M && w !== "" ? [{ value: w, label: w, "data-dynamic": "true" }, ...l] : l,
121
+ [M, w, l]
122
+ ), ne = () => se(() => A(!0)), re = V(
123
+ () => w ? dt(U, "value", [
124
+ { key: "value", value: w },
125
+ { key: "label", value: w }
126
+ ]) : U,
127
+ [U, w]
128
+ ), [le, S] = C(() => Math.min(320, $ * l.length)), B = () => {
129
+ A(!1), S(0);
130
+ }, m = V(() => re.filter((e) => e.hidden !== !0), [re]), Ce = V(
131
+ () => M ? void 0 : `^(${l.map((e) => `${ce(e.value)}${e.label ? "|" + ce(e.label) : ""}`).join("|")})$`,
132
+ [M, l]
133
+ ), { x: xe, y: Ie, strategy: Le, refs: y, context: R, placement: oe } = Ve({
134
+ open: f,
135
+ transform: !0,
136
+ onOpenChange: A,
137
+ placement: "bottom-start",
138
+ whileElementsMounted: Pe,
139
+ middleware: [
140
+ $e(4),
141
+ ze({ allowedPlacements: ["top-start", "bottom-start"], alignment: "start" }),
142
+ Oe({
143
+ padding: 10,
144
+ elementContext: "reference",
145
+ apply(e) {
146
+ const r = Xe(y.reference.current, window.innerHeight), h = `${ee.current?.getBoundingClientRect().width || r}px`;
147
+ Object.assign(e.elements.floating.style, { width: h, maxWidth: h });
148
+ }
149
+ })
150
+ ]
151
+ }), Ee = _e(R, mt), { getReferenceProps: Ne, getFloatingProps: ke, getItemProps: Ae } = Ze([
152
+ He(R, { role: "listbox" }),
153
+ Ue(R),
154
+ Be(R, {
155
+ cols: 0,
156
+ listRef: te,
157
+ loop: !0,
158
+ virtual: !0,
159
+ allowEscape: !0,
160
+ activeIndex: g,
161
+ selectedIndex: g,
162
+ focusItemOnOpen: "auto",
163
+ openOnArrowKeyDown: !0,
164
+ scrollItemIntoView: !0
165
+ })
166
+ ]);
167
+ L(() => {
168
+ if (c.value) {
169
+ const e = l.find((r) => r.value === c.value);
170
+ e && (H(e.label ?? e.value), Z(c.value));
171
+ }
172
+ }, [c.value, l.length]), L(() => {
173
+ const e = y.reference.current;
174
+ if (e)
175
+ return et(e);
176
+ }, []), L(() => {
177
+ if (!f) return;
178
+ const e = requestAnimationFrame(() => we((r) => r + 1));
179
+ return () => cancelAnimationFrame(e);
180
+ }, [f]), L(() => {
181
+ if (!f) {
182
+ S(0);
183
+ return;
184
+ }
185
+ const e = setTimeout(() => S(Math.min(320, m.length * $)), 100);
186
+ return () => clearTimeout(e);
187
+ }, [f, m.length]);
188
+ const W = (e, r) => {
189
+ Z(e.value);
190
+ const h = y.reference.current;
191
+ if (!h) return;
192
+ h?.setAttribute("data-value", e.value), h.value = e.value;
193
+ const k = new Event("change", { bubbles: !1, cancelable: !0 });
194
+ h.dispatchEvent(k), c.onChange && c.onChange(tt(h)), H(e.label ?? ""), B(), F(""), T(r);
195
+ }, Fe = (e) => {
196
+ const r = e.target.value;
197
+ return F(r), !f && r === "" ? A(!0) : (e.target.name = c.name || "", r ? A(!0) : c.onChange?.(e));
198
+ }, Se = () => {
199
+ ne(), F(""), y.reference.current?.focus();
200
+ }, Re = () => {
201
+ T((e) => e === null ? 0 : e), ne(), F("");
202
+ }, De = () => {
203
+ y.reference.current?.setAttribute("data-value", ""), F(""), Z(""), H(""), nt(y.reference.current), B();
204
+ }, N = c.id || c.name, j = `${N}-shadow`, K = m.length === 0, ae = oe === "top" || oe === "top-start";
205
+ return /* @__PURE__ */ Y(
206
+ ot,
207
+ {
208
+ ...c,
209
+ left: t,
210
+ error: n,
211
+ id: j,
212
+ form: c.form,
213
+ loading: o,
214
+ name: c.name,
215
+ hideLeft: X,
216
+ required: z,
217
+ title: c.title,
218
+ container: s,
219
+ rightLabel: u,
220
+ interactive: i,
221
+ optionalText: p,
222
+ componentName: "autocomplete",
223
+ labelClassName: v,
224
+ placeholder: c.placeholder,
225
+ ref: ee,
226
+ feedback: f && ae ? c.title : x,
227
+ right: /* @__PURE__ */ Y("span", { className: "flex items-center gap-0.5", children: [
228
+ a,
229
+ /* @__PURE__ */ Y("button", { type: "button", className: "p-2 transition-colors link:text-primary md:p-1", onClick: Se, children: [
230
+ /* @__PURE__ */ d(Ke, { size: 20 }),
231
+ /* @__PURE__ */ d("span", { className: "sr-only", children: _.inputCaretDown })
232
+ ] }),
233
+ E ? /* @__PURE__ */ d(
234
+ "button",
235
+ {
236
+ type: "button",
237
+ onClick: De,
238
+ "aria-label": _.inputCloseValue,
239
+ className: "p-2 transition-colors link:text-danger md:p-1",
240
+ children: /* @__PURE__ */ d("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
241
+ "path",
242
+ {
243
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
244
+ fill: "currentColor",
245
+ fillRule: "evenodd",
246
+ clipRule: "evenodd"
247
+ }
248
+ ) })
249
+ }
250
+ ) : null
251
+ ] }),
252
+ children: [
253
+ /* @__PURE__ */ d(
254
+ "input",
255
+ {
256
+ "data-shadow": "true",
257
+ ...Ne({
258
+ ...c,
259
+ onFocus: Re,
260
+ pattern: Ce,
261
+ onChange: Fe,
262
+ id: j,
263
+ name: j,
264
+ ref: y.setReference,
265
+ onClick: (e) => e.currentTarget.focus(),
266
+ onKeyDown(e) {
267
+ if (e.key === "Escape")
268
+ return e.currentTarget.blur(), B();
269
+ if (f) {
270
+ if (e.key === "ArrowDown") {
271
+ let r = D.number(g) ? g + 1 : 0;
272
+ return r > m.length - 1 && (r = 0), O.current?.scrollIntoView({ index: r }), T(r);
273
+ }
274
+ if (e.key === "ArrowUp") {
275
+ let r = D.number(g) ? g - 1 : m.length - 1;
276
+ return r < 0 && (r = m.length - 1), O.current?.scrollIntoView({ index: r }), T(r);
277
+ }
278
+ if (e.key === "Enter") {
279
+ if (g !== null && m[g])
280
+ return e.preventDefault(), W(m[g], g);
281
+ if (m.length === 1)
282
+ return e.preventDefault(), W(m[0], 0);
283
+ }
284
+ }
285
+ }
286
+ }),
287
+ "data-value": E,
288
+ "data-error": !!n,
289
+ "data-name": N,
290
+ "data-target": N,
291
+ required: z,
292
+ value: f ? w : l.length === 0 ? "" : ve || E,
293
+ "aria-autocomplete": "list",
294
+ autoComplete: "off",
295
+ className: ie(
296
+ "input placeholder-input-mask group h-input-height w-full flex-1",
297
+ "rounded-md bg-transparent px-input-x py-input-y text-foreground",
298
+ "outline-none transition-colors focus:ring-2 focus:ring-inset focus:ring-primary",
299
+ "group-error:text-danger group-error:placeholder-input-mask-error",
300
+ "text-base group-focus-within:border-primary group-hover:border-primary",
301
+ c.className
302
+ )
303
+ }
304
+ ),
305
+ /* @__PURE__ */ d(
306
+ "input",
307
+ {
308
+ id: N,
309
+ name: N,
310
+ type: "hidden",
311
+ "data-origin": N,
312
+ ref: be,
313
+ required: z,
314
+ defaultValue: c.value || E || void 0
315
+ }
316
+ ),
317
+ /* @__PURE__ */ d(We, { preserveTabOrder: !0, children: f ? /* @__PURE__ */ d(je, { modal: !0, guards: !0, returnFocus: !1, context: R, initialFocus: -1, visuallyHiddenDismiss: !0, children: /* @__PURE__ */ Y(
318
+ J.div,
319
+ {
320
+ ...ke({
321
+ ref: y.setFloating,
322
+ style: { ...Ee.styles, left: xe, top: Ie ?? 0, position: Le, height: "auto" }
323
+ }),
324
+ initial: !1,
325
+ "data-floating": "true",
326
+ animate: { height: K ? "auto" : le },
327
+ onAnimationComplete: () => {
328
+ if (!f) {
329
+ S(0);
330
+ return;
331
+ }
332
+ const r = (y.floating.current?.querySelector("li")?.getBoundingClientRect().height ?? $) * m.length;
333
+ se(() => S(Math.min(320, r + 2)));
334
+ },
335
+ className: ie(
336
+ "shadow-floating isolate z-floating m-0 max-h-80 origin-[top_center] list-none overscroll-contain rounded-b-lg rounded-t-lg border border-floating-border bg-floating-background p-0 text-foreground ease-in-out",
337
+ ae ? "origin-[bottom_center]" : "origin-[top_center]"
338
+ ),
339
+ children: [
340
+ K ? /* @__PURE__ */ d("div", { className: "w-full border-b border-tooltip-border", children: /* @__PURE__ */ d("span", { className: "flex w-full justify-between p-2 text-left text-disabled", children: b || _.autocompleteEmpty }) }) : null,
341
+ /* @__PURE__ */ d(
342
+ qe,
343
+ {
344
+ overscan: 40,
345
+ ref: O,
346
+ hidden: K,
347
+ data: m,
348
+ style: { height: le },
349
+ defaultItemHeight: $,
350
+ components: bt,
351
+ scrollerRef: (e) => {
352
+ pe.current = e, ye.current = e;
353
+ },
354
+ className: "border-floating max-h-full overscroll-contain rounded-lg bg-floating-background p-0 text-foreground",
355
+ itemContent: (e, r) => {
356
+ const h = r.Render ?? ft, k = E === r.value || E === r.label, Me = g === e, Te = r.label ?? r.value;
357
+ return /* @__PURE__ */ d(
358
+ "button",
359
+ {
360
+ "data-value": r.value,
361
+ ...Ae({
362
+ ref: (Ye) => {
363
+ te.current[e] = Ye;
364
+ },
365
+ role: "option",
366
+ type: "button",
367
+ "aria-checked": k,
368
+ "aria-current": k,
369
+ "aria-selected": k,
370
+ "aria-disabled": r.disabled,
371
+ onClick: () => W(r, e),
372
+ className: `cursor-pointer min-h-10 hover:bg-floating-hover w-full p-2 text-left ${k ? "bg-primary-hover text-primary-foreground" : ""} ${Me ? "bg-floating-hover text-floating-foreground" : ""}`
373
+ }),
374
+ children: /* @__PURE__ */ d(h, { ...r, ref: void 0, label: r.label, value: r.value, children: Te })
375
+ }
376
+ );
377
+ }
378
+ }
379
+ )
380
+ ]
381
+ }
382
+ ) }) : null })
383
+ ]
384
+ }
385
+ );
386
+ }
387
+ );
388
+ export {
389
+ Ft as A,
390
+ dt as f,
391
+ it as u
392
+ };
393
+ //# sourceMappingURL=autocomplete-DcTNOwyg.js.map