@bloomneo/uikit 1.5.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 (678) hide show
  1. package/CHANGELOG.md +222 -0
  2. package/LICENSE +21 -0
  3. package/README.md +513 -0
  4. package/bin/commands/build.js +232 -0
  5. package/bin/commands/bundle.js +587 -0
  6. package/bin/commands/create.js +768 -0
  7. package/bin/commands/deploy.js +533 -0
  8. package/bin/commands/generate.js +673 -0
  9. package/bin/commands/optimize.js +198 -0
  10. package/bin/commands/prerender.js +306 -0
  11. package/bin/commands/serve.js +216 -0
  12. package/bin/templates/fbca/README.md.template +130 -0
  13. package/bin/templates/fbca/docs/QUICKSTART_FBCA.md +368 -0
  14. package/bin/templates/fbca/docs/UIKIT_CLI_GUIDE.md +574 -0
  15. package/bin/templates/fbca/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
  16. package/bin/templates/fbca/docs/UIKIT_LLM_GUIDE.md +2055 -0
  17. package/bin/templates/fbca/docs/UIKIT_THEME_GUIDE.md +359 -0
  18. package/bin/templates/fbca/package.json.template +41 -0
  19. package/bin/templates/fbca/public/favicon.svg +10 -0
  20. package/bin/templates/fbca/public/hero_fbca.svg +1 -0
  21. package/bin/templates/fbca/src/utils/asset.ts +6 -0
  22. package/bin/templates/fbca/src/web/App.tsx.template +20 -0
  23. package/bin/templates/fbca/src/web/features/auth/pages/index.tsx.template +157 -0
  24. package/bin/templates/fbca/src/web/features/docs/pages/[...slug].tsx.template +83 -0
  25. package/bin/templates/fbca/src/web/features/gallery/hooks/useGallery.ts.template +74 -0
  26. package/bin/templates/fbca/src/web/features/gallery/pages/index.tsx.template +136 -0
  27. package/bin/templates/fbca/src/web/features/main/components/CTASection.tsx.template +43 -0
  28. package/bin/templates/fbca/src/web/features/main/pages/About.tsx.template +374 -0
  29. package/bin/templates/fbca/src/web/features/main/pages/index.tsx.template +214 -0
  30. package/bin/templates/fbca/src/web/index.html.template +15 -0
  31. package/bin/templates/fbca/src/web/lib/page-router.tsx.template +134 -0
  32. package/bin/templates/fbca/src/web/main.tsx.template +14 -0
  33. package/bin/templates/fbca/src/web/shared/components/Footer.tsx.template +57 -0
  34. package/bin/templates/fbca/src/web/shared/components/Header.tsx.template +91 -0
  35. package/bin/templates/fbca/src/web/shared/components/SEO.tsx.template +24 -0
  36. package/bin/templates/fbca/src/web/shared/components/index.ts.template +3 -0
  37. package/bin/templates/fbca/src/web/shared/hooks/useSEO.ts.template +85 -0
  38. package/bin/templates/fbca/src/web/shared/utils/asset.ts +6 -0
  39. package/bin/templates/fbca/src/web/styles/index.css.template +8 -0
  40. package/bin/templates/fbca/src/web/utils/asset.ts +6 -0
  41. package/bin/templates/fbca/tsconfig.json.template +32 -0
  42. package/bin/templates/fbca/tsconfig.node.json.template +10 -0
  43. package/bin/templates/fbca/vite.config.ts.template +38 -0
  44. package/bin/templates/generate/component/component.tsx.template +79 -0
  45. package/bin/templates/generate/component/index.ts.template +2 -0
  46. package/bin/templates/generate/component/types.ts.template +58 -0
  47. package/bin/templates/generate/feature/index.ts.template +14 -0
  48. package/bin/templates/generate/feature/list-page.tsx.template +34 -0
  49. package/bin/templates/generate/feature/main-component.tsx.template +37 -0
  50. package/bin/templates/generate/feature/main-page.tsx.template +30 -0
  51. package/bin/templates/generate/feature/types.ts.template +34 -0
  52. package/bin/templates/generate/hook/hook.ts.template +35 -0
  53. package/bin/templates/generate/index.css.template +10 -0
  54. package/bin/templates/generate/main.tsx.template +10 -0
  55. package/bin/templates/generate/page/index.ts.template +2 -0
  56. package/bin/templates/generate/page/page.tsx.template +86 -0
  57. package/bin/templates/generate/theme/README.md +31 -0
  58. package/bin/templates/generate/theme/theme.js.template +155 -0
  59. package/bin/templates/multi/README.md.template +120 -0
  60. package/bin/templates/multi/docs/QUICKSTART_MULTI.md +334 -0
  61. package/bin/templates/multi/docs/UIKIT_CLI_GUIDE.md +574 -0
  62. package/bin/templates/multi/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
  63. package/bin/templates/multi/docs/UIKIT_LLM_GUIDE.md +2055 -0
  64. package/bin/templates/multi/docs/UIKIT_THEME_GUIDE.md +359 -0
  65. package/bin/templates/multi/index.html.template +58 -0
  66. package/bin/templates/multi/package.json.template +35 -0
  67. package/bin/templates/multi/public/favicon.svg +10 -0
  68. package/bin/templates/multi/public/hero_multi.svg +1 -0
  69. package/bin/templates/multi/src/App.tsx.template +92 -0
  70. package/bin/templates/multi/src/components/Footer.tsx.template +58 -0
  71. package/bin/templates/multi/src/components/Header.tsx.template +103 -0
  72. package/bin/templates/multi/src/components/SEO.tsx.template +19 -0
  73. package/bin/templates/multi/src/components/index.ts.template +3 -0
  74. package/bin/templates/multi/src/hooks/useSEO.ts.template +38 -0
  75. package/bin/templates/multi/src/index.css.template +7 -0
  76. package/bin/templates/multi/src/main.tsx.template +14 -0
  77. package/bin/templates/multi/src/pages/About.tsx.template +276 -0
  78. package/bin/templates/multi/src/pages/Components.tsx.template +288 -0
  79. package/bin/templates/multi/src/pages/Contact.tsx.template +348 -0
  80. package/bin/templates/multi/src/pages/Dashboard.tsx.template +306 -0
  81. package/bin/templates/multi/src/pages/ErrorPage.tsx.template +37 -0
  82. package/bin/templates/multi/src/pages/Home.tsx.template +201 -0
  83. package/bin/templates/multi/src/pages/Login.tsx.template +148 -0
  84. package/bin/templates/multi/src/pages/Themes.tsx.template +207 -0
  85. package/bin/templates/multi/src/router.tsx.template +34 -0
  86. package/bin/templates/multi/src/utils/asset.ts +6 -0
  87. package/bin/templates/multi/tsconfig.json.template +30 -0
  88. package/bin/templates/multi/tsconfig.node.json +22 -0
  89. package/bin/templates/multi/vite.config.ts.template +36 -0
  90. package/bin/templates/single/README.md.template +131 -0
  91. package/bin/templates/single/docs/QUICKSTART_SINGLE.md +259 -0
  92. package/bin/templates/single/docs/UIKIT_CLI_GUIDE.md +574 -0
  93. package/bin/templates/single/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
  94. package/bin/templates/single/docs/UIKIT_LLM_GUIDE.md +2055 -0
  95. package/bin/templates/single/docs/UIKIT_THEME_GUIDE.md +359 -0
  96. package/bin/templates/single/index.html.template +37 -0
  97. package/bin/templates/single/package.json.template +34 -0
  98. package/bin/templates/single/public/favicon.svg +10 -0
  99. package/bin/templates/single/public/hero.svg +1 -0
  100. package/bin/templates/single/src/App.tsx.template +233 -0
  101. package/bin/templates/single/src/index.css.template +7 -0
  102. package/bin/templates/single/src/main.tsx.template +14 -0
  103. package/bin/templates/single/src/styles/fonts.css +99 -0
  104. package/bin/templates/single/src/utils/asset.ts +6 -0
  105. package/bin/templates/single/tsconfig.json +31 -0
  106. package/bin/templates/single/tsconfig.node.json +22 -0
  107. package/bin/templates/single/vite.config.ts.template +36 -0
  108. package/bin/templates/spa/README.md.template +105 -0
  109. package/bin/templates/spa/components/SEO.tsx.template +19 -0
  110. package/bin/templates/spa/docs/QUICKSTART_SPA.md +300 -0
  111. package/bin/templates/spa/docs/UIKIT_CLI_GUIDE.md +574 -0
  112. package/bin/templates/spa/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
  113. package/bin/templates/spa/docs/UIKIT_LLM_GUIDE.md +2055 -0
  114. package/bin/templates/spa/docs/UIKIT_THEME_GUIDE.md +359 -0
  115. package/bin/templates/spa/hooks/useSEO.ts.template +38 -0
  116. package/bin/templates/spa/index.html.template +58 -0
  117. package/bin/templates/spa/package.json.template +35 -0
  118. package/bin/templates/spa/public/favicon.svg +15 -0
  119. package/bin/templates/spa/public/hero_spa.svg +1 -0
  120. package/bin/templates/spa/src/App.tsx.template +659 -0
  121. package/bin/templates/spa/src/index.css.template +7 -0
  122. package/bin/templates/spa/src/main.tsx.template +14 -0
  123. package/bin/templates/spa/src/utils/asset.ts +6 -0
  124. package/bin/templates/spa/tsconfig.json.template +30 -0
  125. package/bin/templates/spa/tsconfig.node.json +22 -0
  126. package/bin/templates/spa/vite.config.ts.template +36 -0
  127. package/bin/uikit.js +133 -0
  128. package/cookbook/README.md +20 -0
  129. package/cookbook/crud-page.tsx +99 -0
  130. package/cookbook/dashboard.tsx +89 -0
  131. package/cookbook/delete-flow.tsx +59 -0
  132. package/cookbook/login.tsx +85 -0
  133. package/cookbook/settings.tsx +113 -0
  134. package/dist/Combination-C0DFrmJW.js +674 -0
  135. package/dist/Combination-C0DFrmJW.js.map +1 -0
  136. package/dist/accordion.js +284 -0
  137. package/dist/accordion.js.map +1 -0
  138. package/dist/admin.js +429 -0
  139. package/dist/admin.js.map +1 -0
  140. package/dist/alert.js +67 -0
  141. package/dist/alert.js.map +1 -0
  142. package/dist/auth.js +178 -0
  143. package/dist/auth.js.map +1 -0
  144. package/dist/avatar.js +249 -0
  145. package/dist/avatar.js.map +1 -0
  146. package/dist/badge.js +40 -0
  147. package/dist/badge.js.map +1 -0
  148. package/dist/blank.js +80 -0
  149. package/dist/blank.js.map +1 -0
  150. package/dist/breadcrumb.js +104 -0
  151. package/dist/breadcrumb.js.map +1 -0
  152. package/dist/button.js +50 -0
  153. package/dist/button.js.map +1 -0
  154. package/dist/calendar.js +2785 -0
  155. package/dist/calendar.js.map +1 -0
  156. package/dist/card.js +91 -0
  157. package/dist/card.js.map +1 -0
  158. package/dist/check-DXouwtzp.js +12 -0
  159. package/dist/check-DXouwtzp.js.map +1 -0
  160. package/dist/checkbox.js +268 -0
  161. package/dist/checkbox.js.map +1 -0
  162. package/dist/chevron-down-BORJtX8F.js +14 -0
  163. package/dist/chevron-down-BORJtX8F.js.map +1 -0
  164. package/dist/chevron-left-C1pkx4AF.js +14 -0
  165. package/dist/chevron-left-C1pkx4AF.js.map +1 -0
  166. package/dist/chevron-right-pz9eCjj-.js +14 -0
  167. package/dist/chevron-right-pz9eCjj-.js.map +1 -0
  168. package/dist/circle-DHOdTDQh.js +14 -0
  169. package/dist/circle-DHOdTDQh.js.map +1 -0
  170. package/dist/collapsible.js +35 -0
  171. package/dist/collapsible.js.map +1 -0
  172. package/dist/command.js +481 -0
  173. package/dist/command.js.map +1 -0
  174. package/dist/confirm-dialog.js +129 -0
  175. package/dist/confirm-dialog.js.map +1 -0
  176. package/dist/container.js +334 -0
  177. package/dist/container.js.map +1 -0
  178. package/dist/createLucideIcon-B45kRl5r.js +80 -0
  179. package/dist/createLucideIcon-B45kRl5r.js.map +1 -0
  180. package/dist/data-table.js +574 -0
  181. package/dist/data-table.js.map +1 -0
  182. package/dist/detail-page.js +454 -0
  183. package/dist/detail-page.js.map +1 -0
  184. package/dist/dialog.js +137 -0
  185. package/dist/dialog.js.map +1 -0
  186. package/dist/dropdown-menu.js +424 -0
  187. package/dist/dropdown-menu.js.map +1 -0
  188. package/dist/ellipsis-BhAoKPVk.js +16 -0
  189. package/dist/ellipsis-BhAoKPVk.js.map +1 -0
  190. package/dist/empty-state.js +54 -0
  191. package/dist/empty-state.js.map +1 -0
  192. package/dist/errors.js +36 -0
  193. package/dist/errors.js.map +1 -0
  194. package/dist/eye-DDKoW0KS.js +46 -0
  195. package/dist/eye-DDKoW0KS.js.map +1 -0
  196. package/dist/fonts/caveat-cyrillic-400-normal.woff +0 -0
  197. package/dist/fonts/caveat-cyrillic-400-normal.woff2 +0 -0
  198. package/dist/fonts/caveat-cyrillic-700-normal.woff +0 -0
  199. package/dist/fonts/caveat-cyrillic-700-normal.woff2 +0 -0
  200. package/dist/fonts/caveat-cyrillic-ext-400-normal.woff +0 -0
  201. package/dist/fonts/caveat-cyrillic-ext-400-normal.woff2 +0 -0
  202. package/dist/fonts/caveat-cyrillic-ext-700-normal.woff +0 -0
  203. package/dist/fonts/caveat-cyrillic-ext-700-normal.woff2 +0 -0
  204. package/dist/fonts/caveat-latin-400-normal.woff +0 -0
  205. package/dist/fonts/caveat-latin-400-normal.woff2 +0 -0
  206. package/dist/fonts/caveat-latin-700-normal.woff +0 -0
  207. package/dist/fonts/caveat-latin-700-normal.woff2 +0 -0
  208. package/dist/fonts/caveat-latin-ext-400-normal.woff +0 -0
  209. package/dist/fonts/caveat-latin-ext-400-normal.woff2 +0 -0
  210. package/dist/fonts/caveat-latin-ext-700-normal.woff +0 -0
  211. package/dist/fonts/caveat-latin-ext-700-normal.woff2 +0 -0
  212. package/dist/fonts/crimson-text-latin-400-normal.woff +0 -0
  213. package/dist/fonts/crimson-text-latin-400-normal.woff2 +0 -0
  214. package/dist/fonts/crimson-text-latin-600-normal.woff +0 -0
  215. package/dist/fonts/crimson-text-latin-600-normal.woff2 +0 -0
  216. package/dist/fonts/crimson-text-latin-700-normal.woff +0 -0
  217. package/dist/fonts/crimson-text-latin-700-normal.woff2 +0 -0
  218. package/dist/fonts/crimson-text-latin-ext-400-normal.woff +0 -0
  219. package/dist/fonts/crimson-text-latin-ext-400-normal.woff2 +0 -0
  220. package/dist/fonts/crimson-text-latin-ext-600-normal.woff +0 -0
  221. package/dist/fonts/crimson-text-latin-ext-600-normal.woff2 +0 -0
  222. package/dist/fonts/crimson-text-latin-ext-700-normal.woff +0 -0
  223. package/dist/fonts/crimson-text-latin-ext-700-normal.woff2 +0 -0
  224. package/dist/fonts/crimson-text-vietnamese-400-normal.woff +0 -0
  225. package/dist/fonts/crimson-text-vietnamese-400-normal.woff2 +0 -0
  226. package/dist/fonts/crimson-text-vietnamese-600-normal.woff +0 -0
  227. package/dist/fonts/crimson-text-vietnamese-600-normal.woff2 +0 -0
  228. package/dist/fonts/crimson-text-vietnamese-700-normal.woff +0 -0
  229. package/dist/fonts/crimson-text-vietnamese-700-normal.woff2 +0 -0
  230. package/dist/fonts/dm-serif-display-latin-400-normal.woff +0 -0
  231. package/dist/fonts/dm-serif-display-latin-400-normal.woff2 +0 -0
  232. package/dist/fonts/dm-serif-display-latin-ext-400-normal.woff +0 -0
  233. package/dist/fonts/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
  234. package/dist/fonts/libre-baskerville-latin-400-normal.woff +0 -0
  235. package/dist/fonts/libre-baskerville-latin-400-normal.woff2 +0 -0
  236. package/dist/fonts/libre-baskerville-latin-700-normal.woff +0 -0
  237. package/dist/fonts/libre-baskerville-latin-700-normal.woff2 +0 -0
  238. package/dist/fonts/libre-baskerville-latin-ext-400-normal.woff +0 -0
  239. package/dist/fonts/libre-baskerville-latin-ext-400-normal.woff2 +0 -0
  240. package/dist/fonts/libre-baskerville-latin-ext-700-normal.woff +0 -0
  241. package/dist/fonts/libre-baskerville-latin-ext-700-normal.woff2 +0 -0
  242. package/dist/fonts/montserrat-cyrillic-400-normal.woff +0 -0
  243. package/dist/fonts/montserrat-cyrillic-400-normal.woff2 +0 -0
  244. package/dist/fonts/montserrat-cyrillic-500-normal.woff +0 -0
  245. package/dist/fonts/montserrat-cyrillic-500-normal.woff2 +0 -0
  246. package/dist/fonts/montserrat-cyrillic-600-normal.woff +0 -0
  247. package/dist/fonts/montserrat-cyrillic-600-normal.woff2 +0 -0
  248. package/dist/fonts/montserrat-cyrillic-ext-400-normal.woff +0 -0
  249. package/dist/fonts/montserrat-cyrillic-ext-400-normal.woff2 +0 -0
  250. package/dist/fonts/montserrat-cyrillic-ext-500-normal.woff +0 -0
  251. package/dist/fonts/montserrat-cyrillic-ext-500-normal.woff2 +0 -0
  252. package/dist/fonts/montserrat-cyrillic-ext-600-normal.woff +0 -0
  253. package/dist/fonts/montserrat-cyrillic-ext-600-normal.woff2 +0 -0
  254. package/dist/fonts/montserrat-latin-400-normal.woff +0 -0
  255. package/dist/fonts/montserrat-latin-400-normal.woff2 +0 -0
  256. package/dist/fonts/montserrat-latin-500-normal.woff +0 -0
  257. package/dist/fonts/montserrat-latin-500-normal.woff2 +0 -0
  258. package/dist/fonts/montserrat-latin-600-normal.woff +0 -0
  259. package/dist/fonts/montserrat-latin-600-normal.woff2 +0 -0
  260. package/dist/fonts/montserrat-latin-ext-400-normal.woff +0 -0
  261. package/dist/fonts/montserrat-latin-ext-400-normal.woff2 +0 -0
  262. package/dist/fonts/montserrat-latin-ext-500-normal.woff +0 -0
  263. package/dist/fonts/montserrat-latin-ext-500-normal.woff2 +0 -0
  264. package/dist/fonts/montserrat-latin-ext-600-normal.woff +0 -0
  265. package/dist/fonts/montserrat-latin-ext-600-normal.woff2 +0 -0
  266. package/dist/fonts/montserrat-vietnamese-400-normal.woff +0 -0
  267. package/dist/fonts/montserrat-vietnamese-400-normal.woff2 +0 -0
  268. package/dist/fonts/montserrat-vietnamese-500-normal.woff +0 -0
  269. package/dist/fonts/montserrat-vietnamese-500-normal.woff2 +0 -0
  270. package/dist/fonts/montserrat-vietnamese-600-normal.woff +0 -0
  271. package/dist/fonts/montserrat-vietnamese-600-normal.woff2 +0 -0
  272. package/dist/fonts/playfair-display-cyrillic-400-normal.woff +0 -0
  273. package/dist/fonts/playfair-display-cyrillic-400-normal.woff2 +0 -0
  274. package/dist/fonts/playfair-display-cyrillic-500-normal.woff +0 -0
  275. package/dist/fonts/playfair-display-cyrillic-500-normal.woff2 +0 -0
  276. package/dist/fonts/playfair-display-latin-400-normal.woff +0 -0
  277. package/dist/fonts/playfair-display-latin-400-normal.woff2 +0 -0
  278. package/dist/fonts/playfair-display-latin-500-normal.woff +0 -0
  279. package/dist/fonts/playfair-display-latin-500-normal.woff2 +0 -0
  280. package/dist/fonts/playfair-display-latin-ext-400-normal.woff +0 -0
  281. package/dist/fonts/playfair-display-latin-ext-400-normal.woff2 +0 -0
  282. package/dist/fonts/playfair-display-latin-ext-500-normal.woff +0 -0
  283. package/dist/fonts/playfair-display-latin-ext-500-normal.woff2 +0 -0
  284. package/dist/fonts/playfair-display-vietnamese-400-normal.woff +0 -0
  285. package/dist/fonts/playfair-display-vietnamese-400-normal.woff2 +0 -0
  286. package/dist/fonts/playfair-display-vietnamese-500-normal.woff +0 -0
  287. package/dist/fonts/playfair-display-vietnamese-500-normal.woff2 +0 -0
  288. package/dist/fonts/poppins-devanagari-400-normal.woff +0 -0
  289. package/dist/fonts/poppins-devanagari-400-normal.woff2 +0 -0
  290. package/dist/fonts/poppins-devanagari-500-normal.woff +0 -0
  291. package/dist/fonts/poppins-devanagari-500-normal.woff2 +0 -0
  292. package/dist/fonts/poppins-devanagari-600-normal.woff +0 -0
  293. package/dist/fonts/poppins-devanagari-600-normal.woff2 +0 -0
  294. package/dist/fonts/poppins-latin-400-normal.woff +0 -0
  295. package/dist/fonts/poppins-latin-400-normal.woff2 +0 -0
  296. package/dist/fonts/poppins-latin-500-normal.woff +0 -0
  297. package/dist/fonts/poppins-latin-500-normal.woff2 +0 -0
  298. package/dist/fonts/poppins-latin-600-normal.woff +0 -0
  299. package/dist/fonts/poppins-latin-600-normal.woff2 +0 -0
  300. package/dist/fonts/poppins-latin-ext-400-normal.woff +0 -0
  301. package/dist/fonts/poppins-latin-ext-400-normal.woff2 +0 -0
  302. package/dist/fonts/poppins-latin-ext-500-normal.woff +0 -0
  303. package/dist/fonts/poppins-latin-ext-500-normal.woff2 +0 -0
  304. package/dist/fonts/poppins-latin-ext-600-normal.woff +0 -0
  305. package/dist/fonts/poppins-latin-ext-600-normal.woff2 +0 -0
  306. package/dist/fonts/rubik-arabic-400-normal.woff +0 -0
  307. package/dist/fonts/rubik-arabic-400-normal.woff2 +0 -0
  308. package/dist/fonts/rubik-arabic-500-normal.woff +0 -0
  309. package/dist/fonts/rubik-arabic-500-normal.woff2 +0 -0
  310. package/dist/fonts/rubik-cyrillic-400-normal.woff +0 -0
  311. package/dist/fonts/rubik-cyrillic-400-normal.woff2 +0 -0
  312. package/dist/fonts/rubik-cyrillic-500-normal.woff +0 -0
  313. package/dist/fonts/rubik-cyrillic-500-normal.woff2 +0 -0
  314. package/dist/fonts/rubik-cyrillic-ext-400-normal.woff +0 -0
  315. package/dist/fonts/rubik-cyrillic-ext-400-normal.woff2 +0 -0
  316. package/dist/fonts/rubik-cyrillic-ext-500-normal.woff +0 -0
  317. package/dist/fonts/rubik-cyrillic-ext-500-normal.woff2 +0 -0
  318. package/dist/fonts/rubik-hebrew-400-normal.woff +0 -0
  319. package/dist/fonts/rubik-hebrew-400-normal.woff2 +0 -0
  320. package/dist/fonts/rubik-hebrew-500-normal.woff +0 -0
  321. package/dist/fonts/rubik-hebrew-500-normal.woff2 +0 -0
  322. package/dist/fonts/rubik-latin-400-normal.woff +0 -0
  323. package/dist/fonts/rubik-latin-400-normal.woff2 +0 -0
  324. package/dist/fonts/rubik-latin-500-normal.woff +0 -0
  325. package/dist/fonts/rubik-latin-500-normal.woff2 +0 -0
  326. package/dist/fonts/rubik-latin-ext-400-normal.woff +0 -0
  327. package/dist/fonts/rubik-latin-ext-400-normal.woff2 +0 -0
  328. package/dist/fonts/rubik-latin-ext-500-normal.woff +0 -0
  329. package/dist/fonts/rubik-latin-ext-500-normal.woff2 +0 -0
  330. package/dist/fonts/source-serif-pro-cyrillic-400-normal.woff +0 -0
  331. package/dist/fonts/source-serif-pro-cyrillic-400-normal.woff2 +0 -0
  332. package/dist/fonts/source-serif-pro-cyrillic-ext-400-normal.woff +0 -0
  333. package/dist/fonts/source-serif-pro-cyrillic-ext-400-normal.woff2 +0 -0
  334. package/dist/fonts/source-serif-pro-greek-400-normal.woff +0 -0
  335. package/dist/fonts/source-serif-pro-greek-400-normal.woff2 +0 -0
  336. package/dist/fonts/source-serif-pro-latin-400-normal.woff +0 -0
  337. package/dist/fonts/source-serif-pro-latin-400-normal.woff2 +0 -0
  338. package/dist/fonts/source-serif-pro-latin-ext-400-normal.woff +0 -0
  339. package/dist/fonts/source-serif-pro-latin-ext-400-normal.woff2 +0 -0
  340. package/dist/fonts/source-serif-pro-vietnamese-400-normal.woff +0 -0
  341. package/dist/fonts/source-serif-pro-vietnamese-400-normal.woff2 +0 -0
  342. package/dist/fonts/space-grotesk-latin-400-normal.woff +0 -0
  343. package/dist/fonts/space-grotesk-latin-400-normal.woff2 +0 -0
  344. package/dist/fonts/space-grotesk-latin-600-normal.woff +0 -0
  345. package/dist/fonts/space-grotesk-latin-600-normal.woff2 +0 -0
  346. package/dist/fonts/space-grotesk-latin-700-normal.woff +0 -0
  347. package/dist/fonts/space-grotesk-latin-700-normal.woff2 +0 -0
  348. package/dist/fonts/space-grotesk-latin-ext-400-normal.woff +0 -0
  349. package/dist/fonts/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  350. package/dist/fonts/space-grotesk-latin-ext-600-normal.woff +0 -0
  351. package/dist/fonts/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  352. package/dist/fonts/space-grotesk-latin-ext-700-normal.woff +0 -0
  353. package/dist/fonts/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  354. package/dist/fonts/space-grotesk-vietnamese-400-normal.woff +0 -0
  355. package/dist/fonts/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  356. package/dist/fonts/space-grotesk-vietnamese-600-normal.woff +0 -0
  357. package/dist/fonts/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  358. package/dist/fonts/space-grotesk-vietnamese-700-normal.woff +0 -0
  359. package/dist/fonts/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  360. package/dist/fonts/work-sans-latin-400-normal.woff +0 -0
  361. package/dist/fonts/work-sans-latin-400-normal.woff2 +0 -0
  362. package/dist/fonts/work-sans-latin-500-normal.woff +0 -0
  363. package/dist/fonts/work-sans-latin-500-normal.woff2 +0 -0
  364. package/dist/fonts/work-sans-latin-ext-400-normal.woff +0 -0
  365. package/dist/fonts/work-sans-latin-ext-400-normal.woff2 +0 -0
  366. package/dist/fonts/work-sans-latin-ext-500-normal.woff +0 -0
  367. package/dist/fonts/work-sans-latin-ext-500-normal.woff2 +0 -0
  368. package/dist/fonts/work-sans-vietnamese-400-normal.woff +0 -0
  369. package/dist/fonts/work-sans-vietnamese-400-normal.woff2 +0 -0
  370. package/dist/fonts/work-sans-vietnamese-500-normal.woff +0 -0
  371. package/dist/fonts/work-sans-vietnamese-500-normal.woff2 +0 -0
  372. package/dist/footer.js +308 -0
  373. package/dist/footer.js.map +1 -0
  374. package/dist/form-field.js +69 -0
  375. package/dist/form-field.js.map +1 -0
  376. package/dist/form.js +732 -0
  377. package/dist/form.js.map +1 -0
  378. package/dist/format.js +112 -0
  379. package/dist/format.js.map +1 -0
  380. package/dist/fouc.js +28 -0
  381. package/dist/fouc.js.map +1 -0
  382. package/dist/header.js +289 -0
  383. package/dist/header.js.map +1 -0
  384. package/dist/hooks.js +13 -0
  385. package/dist/hooks.js.map +1 -0
  386. package/dist/hover-card.js +210 -0
  387. package/dist/hover-card.js.map +1 -0
  388. package/dist/index-0ioNhtNM.js +11 -0
  389. package/dist/index-0ioNhtNM.js.map +1 -0
  390. package/dist/index-1QHKgw6D.js +55 -0
  391. package/dist/index-1QHKgw6D.js.map +1 -0
  392. package/dist/index-B6sSWi7l.js +747 -0
  393. package/dist/index-B6sSWi7l.js.map +1 -0
  394. package/dist/index-BCjJQGh8.js +71 -0
  395. package/dist/index-BCjJQGh8.js.map +1 -0
  396. package/dist/index-BGQepRFJ.js +28 -0
  397. package/dist/index-BGQepRFJ.js.map +1 -0
  398. package/dist/index-BVRIAMfe.js +37 -0
  399. package/dist/index-BVRIAMfe.js.map +1 -0
  400. package/dist/index-BY7PeRJA.js +145 -0
  401. package/dist/index-BY7PeRJA.js.map +1 -0
  402. package/dist/index-BZPx6jYI.js +9 -0
  403. package/dist/index-BZPx6jYI.js.map +1 -0
  404. package/dist/index-Ba4eHUBD.js +243 -0
  405. package/dist/index-Ba4eHUBD.js.map +1 -0
  406. package/dist/index-Bke1qZdk.js +35 -0
  407. package/dist/index-Bke1qZdk.js.map +1 -0
  408. package/dist/index-C0UREtMP.js +60 -0
  409. package/dist/index-C0UREtMP.js.map +1 -0
  410. package/dist/index-CCKe-Mpx.js +7 -0
  411. package/dist/index-CCKe-Mpx.js.map +1 -0
  412. package/dist/index-DFZozV_h.js +69 -0
  413. package/dist/index-DFZozV_h.js.map +1 -0
  414. package/dist/index-DFi6WydO.js +180 -0
  415. package/dist/index-DFi6WydO.js.map +1 -0
  416. package/dist/index-DQH6odE9.js +83 -0
  417. package/dist/index-DQH6odE9.js.map +1 -0
  418. package/dist/index-EO5flKM3.js +119 -0
  419. package/dist/index-EO5flKM3.js.map +1 -0
  420. package/dist/index-Lf7yDOXW.js +615 -0
  421. package/dist/index-Lf7yDOXW.js.map +1 -0
  422. package/dist/index-dhIqEbxW.js +1541 -0
  423. package/dist/index-dhIqEbxW.js.map +1 -0
  424. package/dist/index-pWhlqjff.js +32 -0
  425. package/dist/index-pWhlqjff.js.map +1 -0
  426. package/dist/index-rKs9bXHr.js +7 -0
  427. package/dist/index-rKs9bXHr.js.map +1 -0
  428. package/dist/index-xqkGMOJ8.js +14 -0
  429. package/dist/index-xqkGMOJ8.js.map +1 -0
  430. package/dist/index.js +247 -0
  431. package/dist/index.js.map +1 -0
  432. package/dist/input.js +22 -0
  433. package/dist/input.js.map +1 -0
  434. package/dist/label.js +36 -0
  435. package/dist/label.js.map +1 -0
  436. package/dist/layout-wrapper.js +208 -0
  437. package/dist/layout-wrapper.js.map +1 -0
  438. package/dist/llms.txt +1140 -0
  439. package/dist/menu-DBhEanGo.js +16 -0
  440. package/dist/menu-DBhEanGo.js.map +1 -0
  441. package/dist/menubar.js +565 -0
  442. package/dist/menubar.js.map +1 -0
  443. package/dist/mobile.js +183 -0
  444. package/dist/mobile.js.map +1 -0
  445. package/dist/motion.js +119 -0
  446. package/dist/motion.js.map +1 -0
  447. package/dist/page-header.js +47 -0
  448. package/dist/page-header.js.map +1 -0
  449. package/dist/page.js +214 -0
  450. package/dist/page.js.map +1 -0
  451. package/dist/pagination.js +121 -0
  452. package/dist/pagination.js.map +1 -0
  453. package/dist/platform.js +194 -0
  454. package/dist/platform.js.map +1 -0
  455. package/dist/popover.js +263 -0
  456. package/dist/popover.js.map +1 -0
  457. package/dist/popup.js +335 -0
  458. package/dist/popup.js.map +1 -0
  459. package/dist/progress.js +108 -0
  460. package/dist/progress.js.map +1 -0
  461. package/dist/radio-group.js +272 -0
  462. package/dist/radio-group.js.map +1 -0
  463. package/dist/safe-area.js +42 -0
  464. package/dist/safe-area.js.map +1 -0
  465. package/dist/search-CpUwRnG-.js +15 -0
  466. package/dist/search-CpUwRnG-.js.map +1 -0
  467. package/dist/select.js +985 -0
  468. package/dist/select.js.map +1 -0
  469. package/dist/separator.js +45 -0
  470. package/dist/separator.js.map +1 -0
  471. package/dist/sheet.js +127 -0
  472. package/dist/sheet.js.map +1 -0
  473. package/dist/skeleton.js +16 -0
  474. package/dist/skeleton.js.map +1 -0
  475. package/dist/slider.js +485 -0
  476. package/dist/slider.js.map +1 -0
  477. package/dist/sonner.js +52 -0
  478. package/dist/sonner.js.map +1 -0
  479. package/dist/styles/fonts.css +253 -0
  480. package/dist/styles.css +2 -0
  481. package/dist/switch.js +155 -0
  482. package/dist/switch.js.map +1 -0
  483. package/dist/tab-bar.js +110 -0
  484. package/dist/tab-bar.js.map +1 -0
  485. package/dist/table.js +115 -0
  486. package/dist/table.js.map +1 -0
  487. package/dist/tabs.js +218 -0
  488. package/dist/tabs.js.map +1 -0
  489. package/dist/textarea.js +19 -0
  490. package/dist/textarea.js.map +1 -0
  491. package/dist/theme-provider.js +154 -0
  492. package/dist/theme-provider.js.map +1 -0
  493. package/dist/themes.js +873 -0
  494. package/dist/themes.js.map +1 -0
  495. package/dist/toast.js +63 -0
  496. package/dist/toast.js.map +1 -0
  497. package/dist/toggle.js +70 -0
  498. package/dist/toggle.js.map +1 -0
  499. package/dist/tooltip.js +375 -0
  500. package/dist/tooltip.js.map +1 -0
  501. package/dist/types/App.d.ts +3 -0
  502. package/dist/types/App.d.ts.map +1 -0
  503. package/dist/types/components/layouts/admin.d.ts +117 -0
  504. package/dist/types/components/layouts/admin.d.ts.map +1 -0
  505. package/dist/types/components/layouts/auth.d.ts +17 -0
  506. package/dist/types/components/layouts/auth.d.ts.map +1 -0
  507. package/dist/types/components/layouts/blank.d.ts +63 -0
  508. package/dist/types/components/layouts/blank.d.ts.map +1 -0
  509. package/dist/types/components/layouts/layout-wrapper.d.ts +130 -0
  510. package/dist/types/components/layouts/layout-wrapper.d.ts.map +1 -0
  511. package/dist/types/components/layouts/mobile.d.ts +91 -0
  512. package/dist/types/components/layouts/mobile.d.ts.map +1 -0
  513. package/dist/types/components/layouts/page.d.ts +181 -0
  514. package/dist/types/components/layouts/page.d.ts.map +1 -0
  515. package/dist/types/components/layouts/popup.d.ts +100 -0
  516. package/dist/types/components/layouts/popup.d.ts.map +1 -0
  517. package/dist/types/components/sections/container.d.ts +79 -0
  518. package/dist/types/components/sections/container.d.ts.map +1 -0
  519. package/dist/types/components/sections/footer.d.ts +128 -0
  520. package/dist/types/components/sections/footer.d.ts.map +1 -0
  521. package/dist/types/components/sections/header.d.ts +72 -0
  522. package/dist/types/components/sections/header.d.ts.map +1 -0
  523. package/dist/types/components/sections/safe-area.d.ts +46 -0
  524. package/dist/types/components/sections/safe-area.d.ts.map +1 -0
  525. package/dist/types/components/sections/tab-bar.d.ts +61 -0
  526. package/dist/types/components/sections/tab-bar.d.ts.map +1 -0
  527. package/dist/types/components/ui/accordion.d.ts +8 -0
  528. package/dist/types/components/ui/accordion.d.ts.map +1 -0
  529. package/dist/types/components/ui/alert.d.ts +10 -0
  530. package/dist/types/components/ui/alert.d.ts.map +1 -0
  531. package/dist/types/components/ui/avatar.d.ts +7 -0
  532. package/dist/types/components/ui/avatar.d.ts.map +1 -0
  533. package/dist/types/components/ui/badge.d.ts +10 -0
  534. package/dist/types/components/ui/badge.d.ts.map +1 -0
  535. package/dist/types/components/ui/breadcrumb.d.ts +12 -0
  536. package/dist/types/components/ui/breadcrumb.d.ts.map +1 -0
  537. package/dist/types/components/ui/button.d.ts +11 -0
  538. package/dist/types/components/ui/button.d.ts.map +1 -0
  539. package/dist/types/components/ui/calendar.d.ts +9 -0
  540. package/dist/types/components/ui/calendar.d.ts.map +1 -0
  541. package/dist/types/components/ui/card.d.ts +10 -0
  542. package/dist/types/components/ui/card.d.ts.map +1 -0
  543. package/dist/types/components/ui/checkbox.d.ts +5 -0
  544. package/dist/types/components/ui/checkbox.d.ts.map +1 -0
  545. package/dist/types/components/ui/collapsible.d.ts +6 -0
  546. package/dist/types/components/ui/collapsible.d.ts.map +1 -0
  547. package/dist/types/components/ui/command.d.ts +19 -0
  548. package/dist/types/components/ui/command.d.ts.map +1 -0
  549. package/dist/types/components/ui/confirm-dialog.d.ts +72 -0
  550. package/dist/types/components/ui/confirm-dialog.d.ts.map +1 -0
  551. package/dist/types/components/ui/data-table.d.ts +211 -0
  552. package/dist/types/components/ui/data-table.d.ts.map +1 -0
  553. package/dist/types/components/ui/detail-page.d.ts +119 -0
  554. package/dist/types/components/ui/detail-page.d.ts.map +1 -0
  555. package/dist/types/components/ui/dialog.d.ts +16 -0
  556. package/dist/types/components/ui/dialog.d.ts.map +1 -0
  557. package/dist/types/components/ui/dropdown-menu.d.ts +26 -0
  558. package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -0
  559. package/dist/types/components/ui/empty-state.d.ts +30 -0
  560. package/dist/types/components/ui/empty-state.d.ts.map +1 -0
  561. package/dist/types/components/ui/form-field.d.ts +57 -0
  562. package/dist/types/components/ui/form-field.d.ts.map +1 -0
  563. package/dist/types/components/ui/form.d.ts +185 -0
  564. package/dist/types/components/ui/form.d.ts.map +1 -0
  565. package/dist/types/components/ui/hover-card.d.ts +7 -0
  566. package/dist/types/components/ui/hover-card.d.ts.map +1 -0
  567. package/dist/types/components/ui/input.d.ts +4 -0
  568. package/dist/types/components/ui/input.d.ts.map +1 -0
  569. package/dist/types/components/ui/label.d.ts +5 -0
  570. package/dist/types/components/ui/label.d.ts.map +1 -0
  571. package/dist/types/components/ui/menubar.d.ts +27 -0
  572. package/dist/types/components/ui/menubar.d.ts.map +1 -0
  573. package/dist/types/components/ui/motion.d.ts +130 -0
  574. package/dist/types/components/ui/motion.d.ts.map +1 -0
  575. package/dist/types/components/ui/page-header.d.ts +45 -0
  576. package/dist/types/components/ui/page-header.d.ts.map +1 -0
  577. package/dist/types/components/ui/pagination.d.ts +14 -0
  578. package/dist/types/components/ui/pagination.d.ts.map +1 -0
  579. package/dist/types/components/ui/popover.d.ts +8 -0
  580. package/dist/types/components/ui/popover.d.ts.map +1 -0
  581. package/dist/types/components/ui/progress.d.ts +5 -0
  582. package/dist/types/components/ui/progress.d.ts.map +1 -0
  583. package/dist/types/components/ui/radio-group.d.ts +6 -0
  584. package/dist/types/components/ui/radio-group.d.ts.map +1 -0
  585. package/dist/types/components/ui/select.d.ts +16 -0
  586. package/dist/types/components/ui/select.d.ts.map +1 -0
  587. package/dist/types/components/ui/separator.d.ts +5 -0
  588. package/dist/types/components/ui/separator.d.ts.map +1 -0
  589. package/dist/types/components/ui/sheet.d.ts +14 -0
  590. package/dist/types/components/ui/sheet.d.ts.map +1 -0
  591. package/dist/types/components/ui/skeleton.d.ts +3 -0
  592. package/dist/types/components/ui/skeleton.d.ts.map +1 -0
  593. package/dist/types/components/ui/slider.d.ts +5 -0
  594. package/dist/types/components/ui/slider.d.ts.map +1 -0
  595. package/dist/types/components/ui/sonner.d.ts +4 -0
  596. package/dist/types/components/ui/sonner.d.ts.map +1 -0
  597. package/dist/types/components/ui/switch.d.ts +5 -0
  598. package/dist/types/components/ui/switch.d.ts.map +1 -0
  599. package/dist/types/components/ui/table.d.ts +11 -0
  600. package/dist/types/components/ui/table.d.ts.map +1 -0
  601. package/dist/types/components/ui/tabs.d.ts +8 -0
  602. package/dist/types/components/ui/tabs.d.ts.map +1 -0
  603. package/dist/types/components/ui/textarea.d.ts +4 -0
  604. package/dist/types/components/ui/textarea.d.ts.map +1 -0
  605. package/dist/types/components/ui/toast.d.ts +70 -0
  606. package/dist/types/components/ui/toast.d.ts.map +1 -0
  607. package/dist/types/components/ui/toggle.d.ts +10 -0
  608. package/dist/types/components/ui/toggle.d.ts.map +1 -0
  609. package/dist/types/components/ui/tooltip.d.ts +8 -0
  610. package/dist/types/components/ui/tooltip.d.ts.map +1 -0
  611. package/dist/types/hooks/index.d.ts +14 -0
  612. package/dist/types/hooks/index.d.ts.map +1 -0
  613. package/dist/types/hooks/useApi.d.ts +38 -0
  614. package/dist/types/hooks/useApi.d.ts.map +1 -0
  615. package/dist/types/hooks/useBreakpoint.d.ts +35 -0
  616. package/dist/types/hooks/useBreakpoint.d.ts.map +1 -0
  617. package/dist/types/hooks/useDataTable.d.ts +59 -0
  618. package/dist/types/hooks/useDataTable.d.ts.map +1 -0
  619. package/dist/types/hooks/useMediaQuery.d.ts +12 -0
  620. package/dist/types/hooks/useMediaQuery.d.ts.map +1 -0
  621. package/dist/types/hooks/useStorage.d.ts +35 -0
  622. package/dist/types/hooks/useStorage.d.ts.map +1 -0
  623. package/dist/types/index.d.ts +75 -0
  624. package/dist/types/index.d.ts.map +1 -0
  625. package/dist/types/lib/errors.d.ts +37 -0
  626. package/dist/types/lib/errors.d.ts.map +1 -0
  627. package/dist/types/lib/format.d.ts +80 -0
  628. package/dist/types/lib/format.d.ts.map +1 -0
  629. package/dist/types/lib/fouc.d.ts +64 -0
  630. package/dist/types/lib/fouc.d.ts.map +1 -0
  631. package/dist/types/lib/platform.d.ts +156 -0
  632. package/dist/types/lib/platform.d.ts.map +1 -0
  633. package/dist/types/lib/utils.d.ts +14 -0
  634. package/dist/types/lib/utils.d.ts.map +1 -0
  635. package/dist/types/main.d.ts +2 -0
  636. package/dist/types/main.d.ts.map +1 -0
  637. package/dist/types/themes/index.d.ts +499 -0
  638. package/dist/types/themes/index.d.ts.map +1 -0
  639. package/dist/types/themes/presets/base.d.ts +108 -0
  640. package/dist/types/themes/presets/base.d.ts.map +1 -0
  641. package/dist/types/themes/presets/elegant.d.ts +108 -0
  642. package/dist/types/themes/presets/elegant.d.ts.map +1 -0
  643. package/dist/types/themes/presets/metro.d.ts +114 -0
  644. package/dist/types/themes/presets/metro.d.ts.map +1 -0
  645. package/dist/types/themes/presets/studio.d.ts +115 -0
  646. package/dist/types/themes/presets/studio.d.ts.map +1 -0
  647. package/dist/types/themes/presets/vivid.d.ts +115 -0
  648. package/dist/types/themes/presets/vivid.d.ts.map +1 -0
  649. package/dist/types/themes/theme-provider.d.ts +122 -0
  650. package/dist/types/themes/theme-provider.d.ts.map +1 -0
  651. package/dist/types/types/index.d.ts +813 -0
  652. package/dist/types/types/index.d.ts.map +1 -0
  653. package/dist/uikit.css +1 -0
  654. package/dist/useDataTable-CPiBpEg-.js +254 -0
  655. package/dist/useDataTable-CPiBpEg-.js.map +1 -0
  656. package/dist/utils-CwJPJKOE.js +2278 -0
  657. package/dist/utils-CwJPJKOE.js.map +1 -0
  658. package/dist/utils.js +5 -0
  659. package/dist/utils.js.map +1 -0
  660. package/dist/wrapper.js +13 -0
  661. package/dist/wrapper.js.map +1 -0
  662. package/dist/x-BxwubQiM.js +15 -0
  663. package/dist/x-BxwubQiM.js.map +1 -0
  664. package/examples/README.md +18 -0
  665. package/examples/button.tsx +16 -0
  666. package/examples/confirm-dialog.tsx +44 -0
  667. package/examples/data-table.tsx +35 -0
  668. package/examples/dialog.tsx +34 -0
  669. package/examples/empty-state.tsx +13 -0
  670. package/examples/form-field.tsx +22 -0
  671. package/examples/format.tsx +19 -0
  672. package/examples/page-header.tsx +17 -0
  673. package/examples/skeleton.tsx +12 -0
  674. package/examples/theme-provider.tsx +33 -0
  675. package/examples/toast.tsx +32 -0
  676. package/examples/use-breakpoint.tsx +17 -0
  677. package/llms.txt +1140 -0
  678. package/package.json +430 -0
package/dist/select.js ADDED
@@ -0,0 +1,985 @@
1
+ import { jsx as s, jsxs as Q, Fragment as be } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import * as _e from "react-dom";
4
+ import { c as Ne } from "./index-rKs9bXHr.js";
5
+ import { u as Re, c as P } from "./index-C0UREtMP.js";
6
+ import { u as lt, c as ct } from "./index-1QHKgw6D.js";
7
+ import { u as k, c as it } from "./index-DQH6odE9.js";
8
+ import { c as dt } from "./index-DFZozV_h.js";
9
+ import { P as ut, D as pt } from "./index-BY7PeRJA.js";
10
+ import { h as ft, u as mt, R as ht, F as vt } from "./Combination-C0DFrmJW.js";
11
+ import { u as Te } from "./index-xqkGMOJ8.js";
12
+ import { c as Ee, R as gt, A as St, C as wt, a as xt } from "./index-dhIqEbxW.js";
13
+ import { P as M } from "./index-BVRIAMfe.js";
14
+ import { u as Ct } from "./index-0ioNhtNM.js";
15
+ import { u as G } from "./index-CCKe-Mpx.js";
16
+ import { u as yt } from "./index-BZPx6jYI.js";
17
+ import { V as It } from "./index-pWhlqjff.js";
18
+ import { c as j } from "./utils-CwJPJKOE.js";
19
+ import { C as Me } from "./chevron-down-BORJtX8F.js";
20
+ import { C as bt } from "./check-DXouwtzp.js";
21
+ import { c as Tt } from "./createLucideIcon-B45kRl5r.js";
22
+ /**
23
+ * @license lucide-react v0.468.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */
28
+ const Pt = Tt("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
29
+ var Nt = [" ", "Enter", "ArrowUp", "ArrowDown"], Rt = [" ", "Enter"], ee = "Select", [de, ue, _t] = ct(ee), [ne, Eo] = dt(ee, [
30
+ _t,
31
+ Ee
32
+ ]), pe = Ee(), [Et, Y] = ne(ee), [Mt, At] = ne(ee), Ae = (t) => {
33
+ const {
34
+ __scopeSelect: o,
35
+ children: e,
36
+ open: c,
37
+ defaultOpen: l,
38
+ onOpenChange: u,
39
+ value: r,
40
+ defaultValue: a,
41
+ onValueChange: i,
42
+ dir: f,
43
+ name: g,
44
+ autoComplete: x,
45
+ disabled: N,
46
+ required: b,
47
+ form: y
48
+ } = t, d = pe(o), [h, S] = n.useState(null), [m, v] = n.useState(null), [W, A] = n.useState(!1), re = lt(f), [R, D] = Re({
49
+ prop: c,
50
+ defaultProp: l ?? !1,
51
+ onChange: u,
52
+ caller: ee
53
+ }), [z, X] = Re({
54
+ prop: r,
55
+ defaultProp: a,
56
+ onChange: i,
57
+ caller: ee
58
+ }), B = n.useRef(null), V = h ? y || !!h.closest("form") : !0, [K, H] = n.useState(/* @__PURE__ */ new Set()), U = Array.from(K).map((_) => _.props.value).join(";");
59
+ return /* @__PURE__ */ s(gt, { ...d, children: /* @__PURE__ */ Q(
60
+ Et,
61
+ {
62
+ required: b,
63
+ scope: o,
64
+ trigger: h,
65
+ onTriggerChange: S,
66
+ valueNode: m,
67
+ onValueNodeChange: v,
68
+ valueNodeHasChildren: W,
69
+ onValueNodeHasChildrenChange: A,
70
+ contentId: Te(),
71
+ value: z,
72
+ onValueChange: X,
73
+ open: R,
74
+ onOpenChange: D,
75
+ dir: re,
76
+ triggerPointerDownPosRef: B,
77
+ disabled: N,
78
+ children: [
79
+ /* @__PURE__ */ s(de.Provider, { scope: o, children: /* @__PURE__ */ s(
80
+ Mt,
81
+ {
82
+ scope: t.__scopeSelect,
83
+ onNativeOptionAdd: n.useCallback((_) => {
84
+ H((L) => new Set(L).add(_));
85
+ }, []),
86
+ onNativeOptionRemove: n.useCallback((_) => {
87
+ H((L) => {
88
+ const F = new Set(L);
89
+ return F.delete(_), F;
90
+ });
91
+ }, []),
92
+ children: e
93
+ }
94
+ ) }),
95
+ V ? /* @__PURE__ */ Q(
96
+ nt,
97
+ {
98
+ "aria-hidden": !0,
99
+ required: b,
100
+ tabIndex: -1,
101
+ name: g,
102
+ autoComplete: x,
103
+ value: z,
104
+ onChange: (_) => X(_.target.value),
105
+ disabled: N,
106
+ form: y,
107
+ children: [
108
+ z === void 0 ? /* @__PURE__ */ s("option", { value: "" }) : null,
109
+ Array.from(K)
110
+ ]
111
+ },
112
+ U
113
+ ) : null
114
+ ]
115
+ }
116
+ ) });
117
+ };
118
+ Ae.displayName = ee;
119
+ var Oe = "SelectTrigger", De = n.forwardRef(
120
+ (t, o) => {
121
+ const { __scopeSelect: e, disabled: c = !1, ...l } = t, u = pe(e), r = Y(Oe, e), a = r.disabled || c, i = k(o, r.onTriggerChange), f = ue(e), g = n.useRef("touch"), [x, N, b] = st((d) => {
122
+ const h = f().filter((v) => !v.disabled), S = h.find((v) => v.value === r.value), m = at(h, d, S);
123
+ m !== void 0 && r.onValueChange(m.value);
124
+ }), y = (d) => {
125
+ a || (r.onOpenChange(!0), b()), d && (r.triggerPointerDownPosRef.current = {
126
+ x: Math.round(d.pageX),
127
+ y: Math.round(d.pageY)
128
+ });
129
+ };
130
+ return /* @__PURE__ */ s(St, { asChild: !0, ...u, children: /* @__PURE__ */ s(
131
+ M.button,
132
+ {
133
+ type: "button",
134
+ role: "combobox",
135
+ "aria-controls": r.contentId,
136
+ "aria-expanded": r.open,
137
+ "aria-required": r.required,
138
+ "aria-autocomplete": "none",
139
+ dir: r.dir,
140
+ "data-state": r.open ? "open" : "closed",
141
+ disabled: a,
142
+ "data-disabled": a ? "" : void 0,
143
+ "data-placeholder": rt(r.value) ? "" : void 0,
144
+ ...l,
145
+ ref: i,
146
+ onClick: P(l.onClick, (d) => {
147
+ d.currentTarget.focus(), g.current !== "mouse" && y(d);
148
+ }),
149
+ onPointerDown: P(l.onPointerDown, (d) => {
150
+ g.current = d.pointerType;
151
+ const h = d.target;
152
+ h.hasPointerCapture(d.pointerId) && h.releasePointerCapture(d.pointerId), d.button === 0 && d.ctrlKey === !1 && d.pointerType === "mouse" && (y(d), d.preventDefault());
153
+ }),
154
+ onKeyDown: P(l.onKeyDown, (d) => {
155
+ const h = x.current !== "";
156
+ !(d.ctrlKey || d.altKey || d.metaKey) && d.key.length === 1 && N(d.key), !(h && d.key === " ") && Nt.includes(d.key) && (y(), d.preventDefault());
157
+ })
158
+ }
159
+ ) });
160
+ }
161
+ );
162
+ De.displayName = Oe;
163
+ var Le = "SelectValue", ke = n.forwardRef(
164
+ (t, o) => {
165
+ const { __scopeSelect: e, className: c, style: l, children: u, placeholder: r = "", ...a } = t, i = Y(Le, e), { onValueNodeHasChildrenChange: f } = i, g = u !== void 0, x = k(o, i.onValueNodeChange);
166
+ return G(() => {
167
+ f(g);
168
+ }, [f, g]), /* @__PURE__ */ s(
169
+ M.span,
170
+ {
171
+ ...a,
172
+ ref: x,
173
+ style: { pointerEvents: "none" },
174
+ children: rt(i.value) ? /* @__PURE__ */ s(be, { children: r }) : u
175
+ }
176
+ );
177
+ }
178
+ );
179
+ ke.displayName = Le;
180
+ var Ot = "SelectIcon", Be = n.forwardRef(
181
+ (t, o) => {
182
+ const { __scopeSelect: e, children: c, ...l } = t;
183
+ return /* @__PURE__ */ s(M.span, { "aria-hidden": !0, ...l, ref: o, children: c || "▼" });
184
+ }
185
+ );
186
+ Be.displayName = Ot;
187
+ var Dt = "SelectPortal", Ve = (t) => /* @__PURE__ */ s(ut, { asChild: !0, ...t });
188
+ Ve.displayName = Dt;
189
+ var te = "SelectContent", He = n.forwardRef(
190
+ (t, o) => {
191
+ const e = Y(te, t.__scopeSelect), [c, l] = n.useState();
192
+ if (G(() => {
193
+ l(new DocumentFragment());
194
+ }, []), !e.open) {
195
+ const u = c;
196
+ return u ? _e.createPortal(
197
+ /* @__PURE__ */ s(Ue, { scope: t.__scopeSelect, children: /* @__PURE__ */ s(de.Slot, { scope: t.__scopeSelect, children: /* @__PURE__ */ s("div", { children: t.children }) }) }),
198
+ u
199
+ ) : null;
200
+ }
201
+ return /* @__PURE__ */ s(Fe, { ...t, ref: o });
202
+ }
203
+ );
204
+ He.displayName = te;
205
+ var O = 10, [Ue, q] = ne(te), Lt = "SelectContentImpl", kt = it("SelectContent.RemoveScroll"), Fe = n.forwardRef(
206
+ (t, o) => {
207
+ const {
208
+ __scopeSelect: e,
209
+ position: c = "item-aligned",
210
+ onCloseAutoFocus: l,
211
+ onEscapeKeyDown: u,
212
+ onPointerDownOutside: r,
213
+ //
214
+ // PopperContent props
215
+ side: a,
216
+ sideOffset: i,
217
+ align: f,
218
+ alignOffset: g,
219
+ arrowPadding: x,
220
+ collisionBoundary: N,
221
+ collisionPadding: b,
222
+ sticky: y,
223
+ hideWhenDetached: d,
224
+ avoidCollisions: h,
225
+ //
226
+ ...S
227
+ } = t, m = Y(te, e), [v, W] = n.useState(null), [A, re] = n.useState(null), R = k(o, (p) => W(p)), [D, z] = n.useState(null), [X, B] = n.useState(
228
+ null
229
+ ), V = ue(e), [K, H] = n.useState(!1), U = n.useRef(!1);
230
+ n.useEffect(() => {
231
+ if (v) return ft(v);
232
+ }, [v]), mt();
233
+ const _ = n.useCallback(
234
+ (p) => {
235
+ const [I, ...E] = V().map((T) => T.ref.current), [w] = E.slice(-1), C = document.activeElement;
236
+ for (const T of p)
237
+ if (T === C || (T?.scrollIntoView({ block: "nearest" }), T === I && A && (A.scrollTop = 0), T === w && A && (A.scrollTop = A.scrollHeight), T?.focus(), document.activeElement !== C)) return;
238
+ },
239
+ [V, A]
240
+ ), L = n.useCallback(
241
+ () => _([D, v]),
242
+ [_, D, v]
243
+ );
244
+ n.useEffect(() => {
245
+ K && L();
246
+ }, [K, L]);
247
+ const { onOpenChange: F, triggerPointerDownPosRef: $ } = m;
248
+ n.useEffect(() => {
249
+ if (v) {
250
+ let p = { x: 0, y: 0 };
251
+ const I = (w) => {
252
+ p = {
253
+ x: Math.abs(Math.round(w.pageX) - ($.current?.x ?? 0)),
254
+ y: Math.abs(Math.round(w.pageY) - ($.current?.y ?? 0))
255
+ };
256
+ }, E = (w) => {
257
+ p.x <= 10 && p.y <= 10 ? w.preventDefault() : v.contains(w.target) || F(!1), document.removeEventListener("pointermove", I), $.current = null;
258
+ };
259
+ return $.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", E, { capture: !0, once: !0 })), () => {
260
+ document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", E, { capture: !0 });
261
+ };
262
+ }
263
+ }, [v, F, $]), n.useEffect(() => {
264
+ const p = () => F(!1);
265
+ return window.addEventListener("blur", p), window.addEventListener("resize", p), () => {
266
+ window.removeEventListener("blur", p), window.removeEventListener("resize", p);
267
+ };
268
+ }, [F]);
269
+ const [fe, le] = st((p) => {
270
+ const I = V().filter((C) => !C.disabled), E = I.find((C) => C.ref.current === document.activeElement), w = at(I, p, E);
271
+ w && setTimeout(() => w.ref.current.focus());
272
+ }), me = n.useCallback(
273
+ (p, I, E) => {
274
+ const w = !U.current && !E;
275
+ (m.value !== void 0 && m.value === I || w) && (z(p), w && (U.current = !0));
276
+ },
277
+ [m.value]
278
+ ), he = n.useCallback(() => v?.focus(), [v]), oe = n.useCallback(
279
+ (p, I, E) => {
280
+ const w = !U.current && !E;
281
+ (m.value !== void 0 && m.value === I || w) && B(p);
282
+ },
283
+ [m.value]
284
+ ), ce = c === "popper" ? we : We, se = ce === we ? {
285
+ side: a,
286
+ sideOffset: i,
287
+ align: f,
288
+ alignOffset: g,
289
+ arrowPadding: x,
290
+ collisionBoundary: N,
291
+ collisionPadding: b,
292
+ sticky: y,
293
+ hideWhenDetached: d,
294
+ avoidCollisions: h
295
+ } : {};
296
+ return /* @__PURE__ */ s(
297
+ Ue,
298
+ {
299
+ scope: e,
300
+ content: v,
301
+ viewport: A,
302
+ onViewportChange: re,
303
+ itemRefCallback: me,
304
+ selectedItem: D,
305
+ onItemLeave: he,
306
+ itemTextRefCallback: oe,
307
+ focusSelectedItem: L,
308
+ selectedItemText: X,
309
+ position: c,
310
+ isPositioned: K,
311
+ searchRef: fe,
312
+ children: /* @__PURE__ */ s(ht, { as: kt, allowPinchZoom: !0, children: /* @__PURE__ */ s(
313
+ vt,
314
+ {
315
+ asChild: !0,
316
+ trapped: m.open,
317
+ onMountAutoFocus: (p) => {
318
+ p.preventDefault();
319
+ },
320
+ onUnmountAutoFocus: P(l, (p) => {
321
+ m.trigger?.focus({ preventScroll: !0 }), p.preventDefault();
322
+ }),
323
+ children: /* @__PURE__ */ s(
324
+ pt,
325
+ {
326
+ asChild: !0,
327
+ disableOutsidePointerEvents: !0,
328
+ onEscapeKeyDown: u,
329
+ onPointerDownOutside: r,
330
+ onFocusOutside: (p) => p.preventDefault(),
331
+ onDismiss: () => m.onOpenChange(!1),
332
+ children: /* @__PURE__ */ s(
333
+ ce,
334
+ {
335
+ role: "listbox",
336
+ id: m.contentId,
337
+ "data-state": m.open ? "open" : "closed",
338
+ dir: m.dir,
339
+ onContextMenu: (p) => p.preventDefault(),
340
+ ...S,
341
+ ...se,
342
+ onPlaced: () => H(!0),
343
+ ref: R,
344
+ style: {
345
+ // flex layout so we can place the scroll buttons properly
346
+ display: "flex",
347
+ flexDirection: "column",
348
+ // reset the outline by default as the content MAY get focused
349
+ outline: "none",
350
+ ...S.style
351
+ },
352
+ onKeyDown: P(S.onKeyDown, (p) => {
353
+ const I = p.ctrlKey || p.altKey || p.metaKey;
354
+ if (p.key === "Tab" && p.preventDefault(), !I && p.key.length === 1 && le(p.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(p.key)) {
355
+ let w = V().filter((C) => !C.disabled).map((C) => C.ref.current);
356
+ if (["ArrowUp", "End"].includes(p.key) && (w = w.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(p.key)) {
357
+ const C = p.target, T = w.indexOf(C);
358
+ w = w.slice(T + 1);
359
+ }
360
+ setTimeout(() => _(w)), p.preventDefault();
361
+ }
362
+ })
363
+ }
364
+ )
365
+ }
366
+ )
367
+ }
368
+ ) })
369
+ }
370
+ );
371
+ }
372
+ );
373
+ Fe.displayName = Lt;
374
+ var Bt = "SelectItemAlignedPosition", We = n.forwardRef((t, o) => {
375
+ const { __scopeSelect: e, onPlaced: c, ...l } = t, u = Y(te, e), r = q(te, e), [a, i] = n.useState(null), [f, g] = n.useState(null), x = k(o, (R) => g(R)), N = ue(e), b = n.useRef(!1), y = n.useRef(!0), { viewport: d, selectedItem: h, selectedItemText: S, focusSelectedItem: m } = r, v = n.useCallback(() => {
376
+ if (u.trigger && u.valueNode && a && f && d && h && S) {
377
+ const R = u.trigger.getBoundingClientRect(), D = f.getBoundingClientRect(), z = u.valueNode.getBoundingClientRect(), X = S.getBoundingClientRect();
378
+ if (u.dir !== "rtl") {
379
+ const C = X.left - D.left, T = z.left - C, Z = R.left - T, J = R.width + Z, ve = Math.max(J, D.width), ge = window.innerWidth - O, Se = Ne(T, [
380
+ O,
381
+ // Prevents the content from going off the starting edge of the
382
+ // viewport. It may still go off the ending edge, but this can be
383
+ // controlled by the user since they may want to manage overflow in a
384
+ // specific way.
385
+ // https://github.com/radix-ui/primitives/issues/2049
386
+ Math.max(O, ge - ve)
387
+ ]);
388
+ a.style.minWidth = J + "px", a.style.left = Se + "px";
389
+ } else {
390
+ const C = D.right - X.right, T = window.innerWidth - z.right - C, Z = window.innerWidth - R.right - T, J = R.width + Z, ve = Math.max(J, D.width), ge = window.innerWidth - O, Se = Ne(T, [
391
+ O,
392
+ Math.max(O, ge - ve)
393
+ ]);
394
+ a.style.minWidth = J + "px", a.style.right = Se + "px";
395
+ }
396
+ const B = N(), V = window.innerHeight - O * 2, K = d.scrollHeight, H = window.getComputedStyle(f), U = parseInt(H.borderTopWidth, 10), _ = parseInt(H.paddingTop, 10), L = parseInt(H.borderBottomWidth, 10), F = parseInt(H.paddingBottom, 10), $ = U + _ + K + F + L, fe = Math.min(h.offsetHeight * 5, $), le = window.getComputedStyle(d), me = parseInt(le.paddingTop, 10), he = parseInt(le.paddingBottom, 10), oe = R.top + R.height / 2 - O, ce = V - oe, se = h.offsetHeight / 2, p = h.offsetTop + se, I = U + _ + p, E = $ - I;
397
+ if (I <= oe) {
398
+ const C = B.length > 0 && h === B[B.length - 1].ref.current;
399
+ a.style.bottom = "0px";
400
+ const T = f.clientHeight - d.offsetTop - d.offsetHeight, Z = Math.max(
401
+ ce,
402
+ se + // viewport might have padding bottom, include it to avoid a scrollable viewport
403
+ (C ? he : 0) + T + L
404
+ ), J = I + Z;
405
+ a.style.height = J + "px";
406
+ } else {
407
+ const C = B.length > 0 && h === B[0].ref.current;
408
+ a.style.top = "0px";
409
+ const Z = Math.max(
410
+ oe,
411
+ U + d.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
412
+ (C ? me : 0) + se
413
+ ) + E;
414
+ a.style.height = Z + "px", d.scrollTop = I - oe + d.offsetTop;
415
+ }
416
+ a.style.margin = `${O}px 0`, a.style.minHeight = fe + "px", a.style.maxHeight = V + "px", c?.(), requestAnimationFrame(() => b.current = !0);
417
+ }
418
+ }, [
419
+ N,
420
+ u.trigger,
421
+ u.valueNode,
422
+ a,
423
+ f,
424
+ d,
425
+ h,
426
+ S,
427
+ u.dir,
428
+ c
429
+ ]);
430
+ G(() => v(), [v]);
431
+ const [W, A] = n.useState();
432
+ G(() => {
433
+ f && A(window.getComputedStyle(f).zIndex);
434
+ }, [f]);
435
+ const re = n.useCallback(
436
+ (R) => {
437
+ R && y.current === !0 && (v(), m?.(), y.current = !1);
438
+ },
439
+ [v, m]
440
+ );
441
+ return /* @__PURE__ */ s(
442
+ Ht,
443
+ {
444
+ scope: e,
445
+ contentWrapper: a,
446
+ shouldExpandOnScrollRef: b,
447
+ onScrollButtonChange: re,
448
+ children: /* @__PURE__ */ s(
449
+ "div",
450
+ {
451
+ ref: i,
452
+ style: {
453
+ display: "flex",
454
+ flexDirection: "column",
455
+ position: "fixed",
456
+ zIndex: W
457
+ },
458
+ children: /* @__PURE__ */ s(
459
+ M.div,
460
+ {
461
+ ...l,
462
+ ref: x,
463
+ style: {
464
+ // When we get the height of the content, it includes borders. If we were to set
465
+ // the height without having `boxSizing: 'border-box'` it would be too big.
466
+ boxSizing: "border-box",
467
+ // We need to ensure the content doesn't get taller than the wrapper
468
+ maxHeight: "100%",
469
+ ...l.style
470
+ }
471
+ }
472
+ )
473
+ }
474
+ )
475
+ }
476
+ );
477
+ });
478
+ We.displayName = Bt;
479
+ var Vt = "SelectPopperPosition", we = n.forwardRef((t, o) => {
480
+ const {
481
+ __scopeSelect: e,
482
+ align: c = "start",
483
+ collisionPadding: l = O,
484
+ ...u
485
+ } = t, r = pe(e);
486
+ return /* @__PURE__ */ s(
487
+ wt,
488
+ {
489
+ ...r,
490
+ ...u,
491
+ ref: o,
492
+ align: c,
493
+ collisionPadding: l,
494
+ style: {
495
+ // Ensure border-box for floating-ui calculations
496
+ boxSizing: "border-box",
497
+ ...u.style,
498
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
499
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
500
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
501
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
502
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
503
+ }
504
+ }
505
+ );
506
+ });
507
+ we.displayName = Vt;
508
+ var [Ht, Pe] = ne(te, {}), xe = "SelectViewport", ze = n.forwardRef(
509
+ (t, o) => {
510
+ const { __scopeSelect: e, nonce: c, ...l } = t, u = q(xe, e), r = Pe(xe, e), a = k(o, u.onViewportChange), i = n.useRef(0);
511
+ return /* @__PURE__ */ Q(be, { children: [
512
+ /* @__PURE__ */ s(
513
+ "style",
514
+ {
515
+ dangerouslySetInnerHTML: {
516
+ __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
517
+ },
518
+ nonce: c
519
+ }
520
+ ),
521
+ /* @__PURE__ */ s(de.Slot, { scope: e, children: /* @__PURE__ */ s(
522
+ M.div,
523
+ {
524
+ "data-radix-select-viewport": "",
525
+ role: "presentation",
526
+ ...l,
527
+ ref: a,
528
+ style: {
529
+ // we use position: 'relative' here on the `viewport` so that when we call
530
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
531
+ // (independent of the scrollUpButton).
532
+ position: "relative",
533
+ flex: 1,
534
+ // Viewport should only be scrollable in the vertical direction.
535
+ // This won't work in vertical writing modes, so we'll need to
536
+ // revisit this if/when that is supported
537
+ // https://developer.chrome.com/blog/vertical-form-controls
538
+ overflow: "hidden auto",
539
+ ...l.style
540
+ },
541
+ onScroll: P(l.onScroll, (f) => {
542
+ const g = f.currentTarget, { contentWrapper: x, shouldExpandOnScrollRef: N } = r;
543
+ if (N?.current && x) {
544
+ const b = Math.abs(i.current - g.scrollTop);
545
+ if (b > 0) {
546
+ const y = window.innerHeight - O * 2, d = parseFloat(x.style.minHeight), h = parseFloat(x.style.height), S = Math.max(d, h);
547
+ if (S < y) {
548
+ const m = S + b, v = Math.min(y, m), W = m - v;
549
+ x.style.height = v + "px", x.style.bottom === "0px" && (g.scrollTop = W > 0 ? W : 0, x.style.justifyContent = "flex-end");
550
+ }
551
+ }
552
+ }
553
+ i.current = g.scrollTop;
554
+ })
555
+ }
556
+ ) })
557
+ ] });
558
+ }
559
+ );
560
+ ze.displayName = xe;
561
+ var Ke = "SelectGroup", [Ut, Ft] = ne(Ke), $e = n.forwardRef(
562
+ (t, o) => {
563
+ const { __scopeSelect: e, ...c } = t, l = Te();
564
+ return /* @__PURE__ */ s(Ut, { scope: e, id: l, children: /* @__PURE__ */ s(M.div, { role: "group", "aria-labelledby": l, ...c, ref: o }) });
565
+ }
566
+ );
567
+ $e.displayName = Ke;
568
+ var Ge = "SelectLabel", je = n.forwardRef(
569
+ (t, o) => {
570
+ const { __scopeSelect: e, ...c } = t, l = Ft(Ge, e);
571
+ return /* @__PURE__ */ s(M.div, { id: l.id, ...c, ref: o });
572
+ }
573
+ );
574
+ je.displayName = Ge;
575
+ var ie = "SelectItem", [Wt, Ye] = ne(ie), qe = n.forwardRef(
576
+ (t, o) => {
577
+ const {
578
+ __scopeSelect: e,
579
+ value: c,
580
+ disabled: l = !1,
581
+ textValue: u,
582
+ ...r
583
+ } = t, a = Y(ie, e), i = q(ie, e), f = a.value === c, [g, x] = n.useState(u ?? ""), [N, b] = n.useState(!1), y = k(
584
+ o,
585
+ (m) => i.itemRefCallback?.(m, c, l)
586
+ ), d = Te(), h = n.useRef("touch"), S = () => {
587
+ l || (a.onValueChange(c), a.onOpenChange(!1));
588
+ };
589
+ if (c === "")
590
+ throw new Error(
591
+ "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
592
+ );
593
+ return /* @__PURE__ */ s(
594
+ Wt,
595
+ {
596
+ scope: e,
597
+ value: c,
598
+ disabled: l,
599
+ textId: d,
600
+ isSelected: f,
601
+ onItemTextChange: n.useCallback((m) => {
602
+ x((v) => v || (m?.textContent ?? "").trim());
603
+ }, []),
604
+ children: /* @__PURE__ */ s(
605
+ de.ItemSlot,
606
+ {
607
+ scope: e,
608
+ value: c,
609
+ disabled: l,
610
+ textValue: g,
611
+ children: /* @__PURE__ */ s(
612
+ M.div,
613
+ {
614
+ role: "option",
615
+ "aria-labelledby": d,
616
+ "data-highlighted": N ? "" : void 0,
617
+ "aria-selected": f && N,
618
+ "data-state": f ? "checked" : "unchecked",
619
+ "aria-disabled": l || void 0,
620
+ "data-disabled": l ? "" : void 0,
621
+ tabIndex: l ? void 0 : -1,
622
+ ...r,
623
+ ref: y,
624
+ onFocus: P(r.onFocus, () => b(!0)),
625
+ onBlur: P(r.onBlur, () => b(!1)),
626
+ onClick: P(r.onClick, () => {
627
+ h.current !== "mouse" && S();
628
+ }),
629
+ onPointerUp: P(r.onPointerUp, () => {
630
+ h.current === "mouse" && S();
631
+ }),
632
+ onPointerDown: P(r.onPointerDown, (m) => {
633
+ h.current = m.pointerType;
634
+ }),
635
+ onPointerMove: P(r.onPointerMove, (m) => {
636
+ h.current = m.pointerType, l ? i.onItemLeave?.() : h.current === "mouse" && m.currentTarget.focus({ preventScroll: !0 });
637
+ }),
638
+ onPointerLeave: P(r.onPointerLeave, (m) => {
639
+ m.currentTarget === document.activeElement && i.onItemLeave?.();
640
+ }),
641
+ onKeyDown: P(r.onKeyDown, (m) => {
642
+ i.searchRef?.current !== "" && m.key === " " || (Rt.includes(m.key) && S(), m.key === " " && m.preventDefault());
643
+ })
644
+ }
645
+ )
646
+ }
647
+ )
648
+ }
649
+ );
650
+ }
651
+ );
652
+ qe.displayName = ie;
653
+ var ae = "SelectItemText", Xe = n.forwardRef(
654
+ (t, o) => {
655
+ const { __scopeSelect: e, className: c, style: l, ...u } = t, r = Y(ae, e), a = q(ae, e), i = Ye(ae, e), f = At(ae, e), [g, x] = n.useState(null), N = k(
656
+ o,
657
+ (S) => x(S),
658
+ i.onItemTextChange,
659
+ (S) => a.itemTextRefCallback?.(S, i.value, i.disabled)
660
+ ), b = g?.textContent, y = n.useMemo(
661
+ () => /* @__PURE__ */ s("option", { value: i.value, disabled: i.disabled, children: b }, i.value),
662
+ [i.disabled, i.value, b]
663
+ ), { onNativeOptionAdd: d, onNativeOptionRemove: h } = f;
664
+ return G(() => (d(y), () => h(y)), [d, h, y]), /* @__PURE__ */ Q(be, { children: [
665
+ /* @__PURE__ */ s(M.span, { id: i.textId, ...u, ref: N }),
666
+ i.isSelected && r.valueNode && !r.valueNodeHasChildren ? _e.createPortal(u.children, r.valueNode) : null
667
+ ] });
668
+ }
669
+ );
670
+ Xe.displayName = ae;
671
+ var Ze = "SelectItemIndicator", Je = n.forwardRef(
672
+ (t, o) => {
673
+ const { __scopeSelect: e, ...c } = t;
674
+ return Ye(Ze, e).isSelected ? /* @__PURE__ */ s(M.span, { "aria-hidden": !0, ...c, ref: o }) : null;
675
+ }
676
+ );
677
+ Je.displayName = Ze;
678
+ var Ce = "SelectScrollUpButton", Qe = n.forwardRef((t, o) => {
679
+ const e = q(Ce, t.__scopeSelect), c = Pe(Ce, t.__scopeSelect), [l, u] = n.useState(!1), r = k(o, c.onScrollButtonChange);
680
+ return G(() => {
681
+ if (e.viewport && e.isPositioned) {
682
+ let a = function() {
683
+ const f = i.scrollTop > 0;
684
+ u(f);
685
+ };
686
+ const i = e.viewport;
687
+ return a(), i.addEventListener("scroll", a), () => i.removeEventListener("scroll", a);
688
+ }
689
+ }, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ s(
690
+ tt,
691
+ {
692
+ ...t,
693
+ ref: r,
694
+ onAutoScroll: () => {
695
+ const { viewport: a, selectedItem: i } = e;
696
+ a && i && (a.scrollTop = a.scrollTop - i.offsetHeight);
697
+ }
698
+ }
699
+ ) : null;
700
+ });
701
+ Qe.displayName = Ce;
702
+ var ye = "SelectScrollDownButton", et = n.forwardRef((t, o) => {
703
+ const e = q(ye, t.__scopeSelect), c = Pe(ye, t.__scopeSelect), [l, u] = n.useState(!1), r = k(o, c.onScrollButtonChange);
704
+ return G(() => {
705
+ if (e.viewport && e.isPositioned) {
706
+ let a = function() {
707
+ const f = i.scrollHeight - i.clientHeight, g = Math.ceil(i.scrollTop) < f;
708
+ u(g);
709
+ };
710
+ const i = e.viewport;
711
+ return a(), i.addEventListener("scroll", a), () => i.removeEventListener("scroll", a);
712
+ }
713
+ }, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ s(
714
+ tt,
715
+ {
716
+ ...t,
717
+ ref: r,
718
+ onAutoScroll: () => {
719
+ const { viewport: a, selectedItem: i } = e;
720
+ a && i && (a.scrollTop = a.scrollTop + i.offsetHeight);
721
+ }
722
+ }
723
+ ) : null;
724
+ });
725
+ et.displayName = ye;
726
+ var tt = n.forwardRef((t, o) => {
727
+ const { __scopeSelect: e, onAutoScroll: c, ...l } = t, u = q("SelectScrollButton", e), r = n.useRef(null), a = ue(e), i = n.useCallback(() => {
728
+ r.current !== null && (window.clearInterval(r.current), r.current = null);
729
+ }, []);
730
+ return n.useEffect(() => () => i(), [i]), G(() => {
731
+ a().find((g) => g.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
732
+ }, [a]), /* @__PURE__ */ s(
733
+ M.div,
734
+ {
735
+ "aria-hidden": !0,
736
+ ...l,
737
+ ref: o,
738
+ style: { flexShrink: 0, ...l.style },
739
+ onPointerDown: P(l.onPointerDown, () => {
740
+ r.current === null && (r.current = window.setInterval(c, 50));
741
+ }),
742
+ onPointerMove: P(l.onPointerMove, () => {
743
+ u.onItemLeave?.(), r.current === null && (r.current = window.setInterval(c, 50));
744
+ }),
745
+ onPointerLeave: P(l.onPointerLeave, () => {
746
+ i();
747
+ })
748
+ }
749
+ );
750
+ }), zt = "SelectSeparator", ot = n.forwardRef(
751
+ (t, o) => {
752
+ const { __scopeSelect: e, ...c } = t;
753
+ return /* @__PURE__ */ s(M.div, { "aria-hidden": !0, ...c, ref: o });
754
+ }
755
+ );
756
+ ot.displayName = zt;
757
+ var Ie = "SelectArrow", Kt = n.forwardRef(
758
+ (t, o) => {
759
+ const { __scopeSelect: e, ...c } = t, l = pe(e), u = Y(Ie, e), r = q(Ie, e);
760
+ return u.open && r.position === "popper" ? /* @__PURE__ */ s(xt, { ...l, ...c, ref: o }) : null;
761
+ }
762
+ );
763
+ Kt.displayName = Ie;
764
+ var $t = "SelectBubbleInput", nt = n.forwardRef(
765
+ ({ __scopeSelect: t, value: o, ...e }, c) => {
766
+ const l = n.useRef(null), u = k(c, l), r = yt(o);
767
+ return n.useEffect(() => {
768
+ const a = l.current;
769
+ if (!a) return;
770
+ const i = window.HTMLSelectElement.prototype, g = Object.getOwnPropertyDescriptor(
771
+ i,
772
+ "value"
773
+ ).set;
774
+ if (r !== o && g) {
775
+ const x = new Event("change", { bubbles: !0 });
776
+ g.call(a, o), a.dispatchEvent(x);
777
+ }
778
+ }, [r, o]), /* @__PURE__ */ s(
779
+ M.select,
780
+ {
781
+ ...e,
782
+ style: { ...It, ...e.style },
783
+ ref: u,
784
+ defaultValue: o
785
+ }
786
+ );
787
+ }
788
+ );
789
+ nt.displayName = $t;
790
+ function rt(t) {
791
+ return t === "" || t === void 0;
792
+ }
793
+ function st(t) {
794
+ const o = Ct(t), e = n.useRef(""), c = n.useRef(0), l = n.useCallback(
795
+ (r) => {
796
+ const a = e.current + r;
797
+ o(a), (function i(f) {
798
+ e.current = f, window.clearTimeout(c.current), f !== "" && (c.current = window.setTimeout(() => i(""), 1e3));
799
+ })(a);
800
+ },
801
+ [o]
802
+ ), u = n.useCallback(() => {
803
+ e.current = "", window.clearTimeout(c.current);
804
+ }, []);
805
+ return n.useEffect(() => () => window.clearTimeout(c.current), []), [e, l, u];
806
+ }
807
+ function at(t, o, e) {
808
+ const l = o.length > 1 && Array.from(o).every((f) => f === o[0]) ? o[0] : o, u = e ? t.indexOf(e) : -1;
809
+ let r = Gt(t, Math.max(u, 0));
810
+ l.length === 1 && (r = r.filter((f) => f !== e));
811
+ const i = r.find(
812
+ (f) => f.textValue.toLowerCase().startsWith(l.toLowerCase())
813
+ );
814
+ return i !== e ? i : void 0;
815
+ }
816
+ function Gt(t, o) {
817
+ return t.map((e, c) => t[(o + c) % t.length]);
818
+ }
819
+ var jt = Ae, Yt = De, qt = ke, Xt = Be, Zt = Ve, Jt = He, Qt = ze, eo = $e, to = je, oo = qe, no = Xe, ro = Je, so = Qe, ao = et, lo = ot;
820
+ function Mo({
821
+ ...t
822
+ }) {
823
+ return /* @__PURE__ */ s(jt, { "data-slot": "select", ...t });
824
+ }
825
+ function Ao({
826
+ ...t
827
+ }) {
828
+ return /* @__PURE__ */ s(eo, { "data-slot": "select-group", ...t });
829
+ }
830
+ function Oo({
831
+ ...t
832
+ }) {
833
+ return /* @__PURE__ */ s(qt, { "data-slot": "select-value", ...t });
834
+ }
835
+ function Do({
836
+ className: t,
837
+ size: o = "default",
838
+ children: e,
839
+ ...c
840
+ }) {
841
+ return /* @__PURE__ */ Q(
842
+ Yt,
843
+ {
844
+ "data-slot": "select-trigger",
845
+ "data-size": o,
846
+ className: j(
847
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
848
+ t
849
+ ),
850
+ ...c,
851
+ children: [
852
+ e,
853
+ /* @__PURE__ */ s(Xt, { asChild: !0, children: /* @__PURE__ */ s(Me, { className: "size-4 opacity-50" }) })
854
+ ]
855
+ }
856
+ );
857
+ }
858
+ function Lo({
859
+ className: t,
860
+ children: o,
861
+ position: e = "popper",
862
+ ...c
863
+ }) {
864
+ return /* @__PURE__ */ s(Zt, { children: /* @__PURE__ */ Q(
865
+ Jt,
866
+ {
867
+ "data-slot": "select-content",
868
+ className: j(
869
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
870
+ e === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
871
+ t
872
+ ),
873
+ position: e,
874
+ ...c,
875
+ children: [
876
+ /* @__PURE__ */ s(co, {}),
877
+ /* @__PURE__ */ s(
878
+ Qt,
879
+ {
880
+ className: j(
881
+ "p-1",
882
+ e === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
883
+ ),
884
+ children: o
885
+ }
886
+ ),
887
+ /* @__PURE__ */ s(io, {})
888
+ ]
889
+ }
890
+ ) });
891
+ }
892
+ function ko({
893
+ className: t,
894
+ ...o
895
+ }) {
896
+ return /* @__PURE__ */ s(
897
+ to,
898
+ {
899
+ "data-slot": "select-label",
900
+ className: j("text-muted-foreground px-2 py-1.5 text-xs", t),
901
+ ...o
902
+ }
903
+ );
904
+ }
905
+ function Bo({
906
+ className: t,
907
+ children: o,
908
+ ...e
909
+ }) {
910
+ return /* @__PURE__ */ Q(
911
+ oo,
912
+ {
913
+ "data-slot": "select-item",
914
+ className: j(
915
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
916
+ t
917
+ ),
918
+ ...e,
919
+ children: [
920
+ /* @__PURE__ */ s("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ s(ro, { children: /* @__PURE__ */ s(bt, { className: "size-4" }) }) }),
921
+ /* @__PURE__ */ s(no, { children: o })
922
+ ]
923
+ }
924
+ );
925
+ }
926
+ function Vo({
927
+ className: t,
928
+ ...o
929
+ }) {
930
+ return /* @__PURE__ */ s(
931
+ lo,
932
+ {
933
+ "data-slot": "select-separator",
934
+ className: j("bg-border pointer-events-none -mx-1 my-1 h-px", t),
935
+ ...o
936
+ }
937
+ );
938
+ }
939
+ function co({
940
+ className: t,
941
+ ...o
942
+ }) {
943
+ return /* @__PURE__ */ s(
944
+ so,
945
+ {
946
+ "data-slot": "select-scroll-up-button",
947
+ className: j(
948
+ "flex cursor-default items-center justify-center py-1",
949
+ t
950
+ ),
951
+ ...o,
952
+ children: /* @__PURE__ */ s(Pt, { className: "size-4" })
953
+ }
954
+ );
955
+ }
956
+ function io({
957
+ className: t,
958
+ ...o
959
+ }) {
960
+ return /* @__PURE__ */ s(
961
+ ao,
962
+ {
963
+ "data-slot": "select-scroll-down-button",
964
+ className: j(
965
+ "flex cursor-default items-center justify-center py-1",
966
+ t
967
+ ),
968
+ ...o,
969
+ children: /* @__PURE__ */ s(Me, { className: "size-4" })
970
+ }
971
+ );
972
+ }
973
+ export {
974
+ Mo as Select,
975
+ Lo as SelectContent,
976
+ Ao as SelectGroup,
977
+ Bo as SelectItem,
978
+ ko as SelectLabel,
979
+ io as SelectScrollDownButton,
980
+ co as SelectScrollUpButton,
981
+ Vo as SelectSeparator,
982
+ Do as SelectTrigger,
983
+ Oo as SelectValue
984
+ };
985
+ //# sourceMappingURL=select.js.map