zudoku 0.47.2 → 0.48.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 (264) hide show
  1. package/dist/app/ZuploBuildConfig.d.ts +4 -114
  2. package/dist/app/ZuploBuildConfig.js +1 -1
  3. package/dist/app/ZuploBuildConfig.js.map +1 -1
  4. package/dist/app/demo.js +4 -3
  5. package/dist/app/demo.js.map +1 -1
  6. package/dist/app/main.js +5 -5
  7. package/dist/app/main.js.map +1 -1
  8. package/dist/app/standalone.js +4 -3
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/config/loader.js +1 -2
  11. package/dist/config/loader.js.map +1 -1
  12. package/dist/config/validators/BuildSchema.d.ts +20 -44
  13. package/dist/config/validators/BuildSchema.js +3 -14
  14. package/dist/config/validators/BuildSchema.js.map +1 -1
  15. package/dist/config/validators/InputNavigationSchema.d.ts +7217 -0
  16. package/dist/config/validators/InputNavigationSchema.js +74 -0
  17. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  18. package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
  19. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  20. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  21. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  22. package/dist/config/validators/NavigationSchema.js +95 -0
  23. package/dist/config/validators/NavigationSchema.js.map +1 -0
  24. package/dist/config/validators/icon-types.d.ts +2 -1
  25. package/dist/config/validators/icon-types.js +1775 -1
  26. package/dist/config/validators/icon-types.js.map +1 -1
  27. package/dist/config/validators/validate.d.ts +442 -5780
  28. package/dist/config/validators/validate.js +37 -55
  29. package/dist/config/validators/validate.js.map +1 -1
  30. package/dist/config/validators/validate.test.js +0 -2
  31. package/dist/config/validators/validate.test.js.map +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js.map +1 -1
  34. package/dist/lib/components/BuildCheck.js +1 -1
  35. package/dist/lib/components/BuildCheck.js.map +1 -1
  36. package/dist/lib/components/Header.js +10 -9
  37. package/dist/lib/components/Header.js.map +1 -1
  38. package/dist/lib/components/Heading.d.ts +6 -2
  39. package/dist/lib/components/Heading.js +2 -2
  40. package/dist/lib/components/Heading.js.map +1 -1
  41. package/dist/lib/components/Main.js +4 -4
  42. package/dist/lib/components/Main.js.map +1 -1
  43. package/dist/lib/components/MobileTopNavigation.js +5 -5
  44. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  45. package/dist/lib/components/PageProgress.d.ts +1 -0
  46. package/dist/lib/components/PageProgress.js +20 -0
  47. package/dist/lib/components/PageProgress.js.map +1 -0
  48. package/dist/lib/components/TopNavigation.d.ts +2 -3
  49. package/dist/lib/components/TopNavigation.js +45 -44
  50. package/dist/lib/components/TopNavigation.js.map +1 -1
  51. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  52. package/dist/lib/components/context/ZudokuContext.js +44 -26
  53. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  54. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  55. package/dist/lib/components/navigation/Navigation.js +12 -0
  56. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  57. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  58. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
  59. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  60. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  61. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +14 -12
  62. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  63. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  64. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  65. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  66. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  67. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +3 -3
  68. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  69. package/dist/lib/components/navigation/utils.d.ts +7 -9
  70. package/dist/lib/components/navigation/utils.js +17 -17
  71. package/dist/lib/components/navigation/utils.js.map +1 -1
  72. package/dist/lib/core/ZudokuContext.d.ts +6 -8
  73. package/dist/lib/core/ZudokuContext.js +5 -7
  74. package/dist/lib/core/ZudokuContext.js.map +1 -1
  75. package/dist/lib/core/plugins.d.ts +2 -2
  76. package/dist/lib/hooks/useEvent.test.js +5 -3
  77. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  78. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  79. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  80. package/dist/lib/plugins/api-catalog/index.js +10 -10
  81. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  82. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
  83. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  84. package/dist/lib/plugins/custom-pages/index.d.ts +3 -2
  85. package/dist/lib/plugins/custom-pages/index.js +15 -8
  86. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  87. package/dist/lib/plugins/markdown/MdxPage.js +6 -3
  88. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  89. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  90. package/dist/lib/plugins/markdown/index.js +9 -26
  91. package/dist/lib/plugins/markdown/index.js.map +1 -1
  92. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  93. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  94. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  95. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  96. package/dist/lib/plugins/openapi/SchemaList.js +1 -1
  97. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  98. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  99. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  100. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  101. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
  102. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
  103. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  104. package/dist/lib/plugins/openapi/index.d.ts +3 -3
  105. package/dist/lib/plugins/openapi/index.js +9 -9
  106. package/dist/lib/plugins/openapi/index.js.map +1 -1
  107. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
  108. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  109. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
  110. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  111. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
  112. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  113. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  114. package/dist/lib/util/useScrollToAnchor.js +3 -3
  115. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  116. package/dist/vite/api/SchemaManager.d.ts +4 -4
  117. package/dist/vite/api/SchemaManager.js +19 -19
  118. package/dist/vite/api/SchemaManager.js.map +1 -1
  119. package/dist/vite/api/SchemaManager.test.js +4 -4
  120. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  121. package/dist/vite/config.js +1 -0
  122. package/dist/vite/config.js.map +1 -1
  123. package/dist/vite/plugin-api.js +8 -8
  124. package/dist/vite/plugin-api.js.map +1 -1
  125. package/dist/vite/plugin-config-reload.js +2 -0
  126. package/dist/vite/plugin-config-reload.js.map +1 -1
  127. package/dist/vite/plugin-custom-pages.js +2 -2
  128. package/dist/vite/plugin-custom-pages.js.map +1 -1
  129. package/dist/vite/plugin-docs.js +61 -59
  130. package/dist/vite/plugin-docs.js.map +1 -1
  131. package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
  132. package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
  133. package/dist/vite/plugin-navigation.js.map +1 -0
  134. package/dist/vite/plugin.js +2 -2
  135. package/dist/vite/plugin.js.map +1 -1
  136. package/dist/vite/shadcn-registry.d.ts +4 -4
  137. package/lib/{Markdown-C5j8kKSX.js → Markdown-DCAIYXF5.js} +480 -475
  138. package/lib/Markdown-DCAIYXF5.js.map +1 -0
  139. package/lib/{MdxPage-CKTMf1cR.js → MdxPage-Cf9YXWoC.js} +30 -30
  140. package/lib/MdxPage-Cf9YXWoC.js.map +1 -0
  141. package/lib/OasProvider-JMVTfG6_.js +35 -0
  142. package/lib/OasProvider-JMVTfG6_.js.map +1 -0
  143. package/lib/{OperationList-BJAKaG5p.js → OperationList-m4tFCI4S.js} +8 -8
  144. package/lib/{OperationList-BJAKaG5p.js.map → OperationList-m4tFCI4S.js.map} +1 -1
  145. package/lib/{RouteGuard-B7GVW4oL.js → RouteGuard-gV7nvzi7.js} +2 -2
  146. package/lib/{RouteGuard-B7GVW4oL.js.map → RouteGuard-gV7nvzi7.js.map} +1 -1
  147. package/lib/{SchemaList-Dgc0A8x5.js → SchemaList-_wRy4aQ0.js} +20 -20
  148. package/lib/SchemaList-_wRy4aQ0.js.map +1 -0
  149. package/lib/{SchemaView-DVx-jFN4.js → SchemaView-CRl_cQYH.js} +3 -3
  150. package/lib/{SchemaView-DVx-jFN4.js.map → SchemaView-CRl_cQYH.js.map} +1 -1
  151. package/lib/{SignUp-CRIKdWt9.js → SignUp-B6w5AwHM.js} +2 -2
  152. package/lib/{SignUp-CRIKdWt9.js.map → SignUp-B6w5AwHM.js.map} +1 -1
  153. package/lib/{Slot-ITby_hMb.js → Slot-BkYrj_uC.js} +4 -4
  154. package/lib/{Slot-ITby_hMb.js.map → Slot-BkYrj_uC.js.map} +1 -1
  155. package/lib/{SyntaxHighlight-CqKHkyEy.js → SyntaxHighlight-CH9OUJre.js} +2 -2
  156. package/lib/{SyntaxHighlight-CqKHkyEy.js.map → SyntaxHighlight-CH9OUJre.js.map} +1 -1
  157. package/lib/{Toc-Csq3UNtW.js → Toc-DRxqEsFc.js} +2 -2
  158. package/lib/{Toc-Csq3UNtW.js.map → Toc-DRxqEsFc.js.map} +1 -1
  159. package/lib/{circular-BP4OrHFK.js → circular-wJaV4vh_.js} +2 -2
  160. package/lib/{circular-BP4OrHFK.js.map → circular-wJaV4vh_.js.map} +1 -1
  161. package/lib/{createServer-zu4cDiPe.js → createServer-DN5AJLcN.js} +3 -3
  162. package/lib/{createServer-zu4cDiPe.js.map → createServer-DN5AJLcN.js.map} +1 -1
  163. package/lib/{errors-CPPSp5F4.js → errors-D_5vKvUq.js} +3 -3
  164. package/lib/{errors-CPPSp5F4.js.map → errors-D_5vKvUq.js.map} +1 -1
  165. package/lib/hook-CHXroBFt.js +1503 -0
  166. package/lib/hook-CHXroBFt.js.map +1 -0
  167. package/lib/{index-jWXxqkni.js → index-DJVaRmzI.js} +63 -62
  168. package/lib/index-DJVaRmzI.js.map +1 -0
  169. package/lib/{mutation-C1XCQTQL.js → mutation-BpcyTgWI.js} +2 -2
  170. package/lib/{mutation-C1XCQTQL.js.map → mutation-BpcyTgWI.js.map} +1 -1
  171. package/lib/ui/SyntaxHighlight.js +2 -2
  172. package/lib/{useMutation-BKvPttRn.js → useMutation-N4ockVKi.js} +3 -3
  173. package/lib/{useMutation-BKvPttRn.js.map → useMutation-N4ockVKi.js.map} +1 -1
  174. package/lib/zudoku.auth-auth0.js +1 -1
  175. package/lib/zudoku.auth-azureb2c.js +2 -2
  176. package/lib/zudoku.auth-clerk.js +2 -2
  177. package/lib/zudoku.auth-openid.js +2 -2
  178. package/lib/zudoku.components.js +2756 -3424
  179. package/lib/zudoku.components.js.map +1 -1
  180. package/lib/zudoku.hooks.js +2 -2
  181. package/lib/zudoku.plugin-api-catalog.js +44 -44
  182. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  183. package/lib/zudoku.plugin-api-keys.js +42 -39
  184. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  185. package/lib/zudoku.plugin-custom-pages.js +22 -16
  186. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  187. package/lib/zudoku.plugin-markdown.js +20 -69
  188. package/lib/zudoku.plugin-markdown.js.map +1 -1
  189. package/lib/zudoku.plugin-openapi.js +5 -5
  190. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  191. package/lib/zudoku.plugins.js.map +1 -1
  192. package/package.json +12 -9
  193. package/src/app/ZuploBuildConfig.ts +1 -1
  194. package/src/app/demo.tsx +4 -3
  195. package/src/app/main.css +5 -0
  196. package/src/app/main.tsx +6 -5
  197. package/src/app/standalone.tsx +4 -3
  198. package/src/lib/components/BuildCheck.tsx +1 -1
  199. package/src/lib/components/Header.tsx +5 -3
  200. package/src/lib/components/Heading.tsx +7 -3
  201. package/src/lib/components/Main.tsx +8 -8
  202. package/src/lib/components/MobileTopNavigation.tsx +12 -11
  203. package/src/lib/components/PageProgress.tsx +28 -0
  204. package/src/lib/components/TopNavigation.tsx +57 -66
  205. package/src/lib/components/context/ZudokuContext.ts +50 -32
  206. package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
  207. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
  208. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +16 -14
  209. package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +23 -17
  210. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +2 -2
  211. package/src/lib/components/navigation/utils.ts +27 -28
  212. package/src/lib/core/ZudokuContext.ts +9 -15
  213. package/src/lib/core/plugins.ts +2 -2
  214. package/src/lib/hooks/useEvent.test.tsx +7 -5
  215. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
  216. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  217. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +6 -5
  218. package/src/lib/plugins/custom-pages/index.tsx +20 -11
  219. package/src/lib/plugins/markdown/MdxPage.tsx +6 -3
  220. package/src/lib/plugins/markdown/index.tsx +19 -40
  221. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  222. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  223. package/src/lib/plugins/openapi/SchemaList.tsx +2 -2
  224. package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
  225. package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
  226. package/src/lib/plugins/openapi/index.tsx +11 -11
  227. package/src/lib/plugins/openapi/interfaces.ts +3 -3
  228. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
  229. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  230. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  231. package/src/lib/util/useScrollToAnchor.ts +3 -3
  232. package/dist/config/validators/InputSidebarSchema.d.ts +0 -220
  233. package/dist/config/validators/InputSidebarSchema.js +0 -63
  234. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  235. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  236. package/dist/config/validators/SidebarSchema.js +0 -118
  237. package/dist/config/validators/SidebarSchema.js.map +0 -1
  238. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  239. package/dist/lib/components/navigation/Sidebar.js +0 -10
  240. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  241. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  242. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  243. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  244. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
  245. package/dist/lib/components/navigation/SidebarItem.js +0 -44
  246. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  247. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  248. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  249. package/dist/lib/plugins/markdown/resolver.js +0 -46
  250. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  251. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  252. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  253. package/dist/vite/plugin-sidebar.js.map +0 -1
  254. package/lib/Markdown-C5j8kKSX.js.map +0 -1
  255. package/lib/MdxPage-CKTMf1cR.js.map +0 -1
  256. package/lib/OasProvider-_GzmsbMg.js +0 -33
  257. package/lib/OasProvider-_GzmsbMg.js.map +0 -1
  258. package/lib/SchemaList-Dgc0A8x5.js.map +0 -1
  259. package/lib/hook-7wZANGJP.js +0 -1483
  260. package/lib/hook-7wZANGJP.js.map +0 -1
  261. package/lib/index-jWXxqkni.js.map +0 -1
  262. package/lib/joinPath-B7kNnUX4.js +0 -8
  263. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  264. package/src/lib/plugins/markdown/resolver.ts +0 -59
@@ -0,0 +1,74 @@
1
+ import { z } from "zod/v4";
2
+ import { IconNames } from "./icon-types.js";
3
+ const IconSchema = z.enum(IconNames);
4
+ const BadgeSchema = z.object({
5
+ label: z.string(),
6
+ // prettier-ignore
7
+ color: z.enum(["green", "blue", "yellow", "red", "purple", "indigo", "gray", "outline"]),
8
+ invert: z.boolean().optional(),
9
+ });
10
+ const InputNavigationCategoryLinkDocSchema = z.union([
11
+ z.string(),
12
+ z.object({
13
+ type: z.literal("doc"),
14
+ file: z.string(),
15
+ label: z.string().optional(),
16
+ }),
17
+ ]);
18
+ export const DisplaySchema = z
19
+ .enum(["auth", "anon", "always", "hide"])
20
+ .default("always")
21
+ .optional();
22
+ const InputNavigationDocSchema = z.union([
23
+ z.string(),
24
+ z.object({
25
+ type: z.literal("doc"),
26
+ file: z.string(),
27
+ // Custom URL path for this document (overrides file-based path)
28
+ path: z.string().optional(),
29
+ icon: IconSchema.optional(),
30
+ label: z.string().optional(),
31
+ badge: BadgeSchema.optional(),
32
+ display: DisplaySchema,
33
+ }),
34
+ ]);
35
+ const InputNavigationLinkSchema = z.object({
36
+ type: z.literal("link"),
37
+ to: z.string(),
38
+ label: z.string(),
39
+ icon: IconSchema.optional(),
40
+ description: z.string().optional(),
41
+ badge: BadgeSchema.optional(),
42
+ display: DisplaySchema,
43
+ });
44
+ const InputNavigationCustomPageSchema = z.object({
45
+ type: z.literal("custom-page"),
46
+ path: z.string(),
47
+ label: z.string().optional(),
48
+ element: z.any(),
49
+ icon: IconSchema.optional(),
50
+ badge: BadgeSchema.optional(),
51
+ display: DisplaySchema,
52
+ });
53
+ // Base category schema without items
54
+ const BaseInputNavigationCategorySchema = z.object({
55
+ type: z.literal("category"),
56
+ icon: IconSchema.optional(),
57
+ label: z.string(),
58
+ description: z.string().optional(),
59
+ collapsible: z.boolean().optional(),
60
+ collapsed: z.boolean().optional(),
61
+ link: InputNavigationCategoryLinkDocSchema.optional(),
62
+ display: DisplaySchema,
63
+ });
64
+ const InputNavigationCategorySchema = BaseInputNavigationCategorySchema.extend({
65
+ items: z.lazy(() => InputNavigationItemSchema.array()),
66
+ });
67
+ const InputNavigationItemSchema = z.union([
68
+ InputNavigationDocSchema,
69
+ InputNavigationLinkSchema,
70
+ InputNavigationCustomPageSchema,
71
+ InputNavigationCategorySchema,
72
+ ]);
73
+ export const InputNavigationSchema = InputNavigationItemSchema.array();
74
+ //# sourceMappingURL=InputNavigationSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputNavigationSchema.js","sourceRoot":"","sources":["../../../src/config/validators/InputNavigationSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAErC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,kB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B,GAI/B,iCAAiC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAmC,CAAC,CAAC,KAAK,CAAC;IACxE,wBAAwB;IACxB,yBAAyB;IACzB,+BAA+B;IAC/B,6BAA6B;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,146 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { assertType, describe, expectTypeOf, it } from "vitest";
3
+ describe("InputNavigationSchema types", () => {
4
+ it("infers correct types for navigation items", () => {
5
+ // Test that TypeScript correctly infers the types using satisfies
6
+ const docString = "path/to/doc.md";
7
+ const docObject = {
8
+ type: "doc",
9
+ file: "path/to/doc.md",
10
+ label: "My Doc",
11
+ icon: "book",
12
+ badge: { label: "New", color: "green" },
13
+ display: "always",
14
+ };
15
+ const linkObject = {
16
+ type: "link",
17
+ label: "External Link",
18
+ to: "https://example.com",
19
+ icon: "external-link",
20
+ description: "Link description",
21
+ badge: { label: "External", color: "blue" },
22
+ display: "auth",
23
+ };
24
+ const customPage = {
25
+ type: "custom-page",
26
+ path: "/custom",
27
+ label: "Custom Page",
28
+ element: null,
29
+ icon: "star",
30
+ badge: { label: "Custom", color: "purple" },
31
+ display: "anon",
32
+ };
33
+ // Test that these are assignable to InputNavigationItem
34
+ assertType(docString);
35
+ assertType(docObject);
36
+ assertType(linkObject);
37
+ assertType(customPage);
38
+ });
39
+ it("prevents items array from being unknown[]", () => {
40
+ // Core test: ensure items are properly typed
41
+ const category = {
42
+ type: "category",
43
+ label: "Test Category",
44
+ items: [
45
+ "doc.md",
46
+ { type: "doc", file: "test.md" },
47
+ { type: "link", label: "Link", to: "https://example.com" },
48
+ { type: "category", label: "Nested", items: ["nested.md"] },
49
+ ],
50
+ };
51
+ // Key assertions - items must be InputNavigationItem[], not unknown[]
52
+ assertType(category.items);
53
+ expectTypeOf(category.items).not.toEqualTypeOf();
54
+ expectTypeOf(category.items).not.toEqualTypeOf();
55
+ });
56
+ it("validates nested structure maintains type safety", () => {
57
+ const navigation = [
58
+ {
59
+ type: "category",
60
+ label: "Parent",
61
+ items: [
62
+ {
63
+ type: "category",
64
+ label: "Child",
65
+ items: ["nested.md", { type: "doc", file: "nested.md" }],
66
+ },
67
+ ],
68
+ },
69
+ ];
70
+ const parent = navigation[0];
71
+ assertType(parent.items);
72
+ const child = parent.items[0];
73
+ assertType(child.items);
74
+ expectTypeOf(child.items).not.toEqualTypeOf();
75
+ });
76
+ it("validates union types work correctly", () => {
77
+ // Test that all valid types are assignable
78
+ assertType("doc.md");
79
+ assertType({ type: "doc", file: "test.md" });
80
+ assertType({ type: "link", label: "Link", to: "/" });
81
+ assertType({
82
+ type: "category",
83
+ label: "C",
84
+ items: [],
85
+ });
86
+ // Test type constraints
87
+ expectTypeOf().toEqualTypeOf();
88
+ expectTypeOf().not.toEqualTypeOf();
89
+ expectTypeOf().not.toEqualTypeOf();
90
+ });
91
+ it("validates individual type exports", () => {
92
+ const doc = {
93
+ type: "doc",
94
+ file: "test.md",
95
+ label: "Test Doc",
96
+ };
97
+ assertType(doc);
98
+ const link = {
99
+ type: "link",
100
+ label: "Test Link",
101
+ to: "https://example.com",
102
+ };
103
+ assertType(link);
104
+ const customPage = {
105
+ type: "custom-page",
106
+ path: "/test",
107
+ label: "Test Page",
108
+ element: null,
109
+ };
110
+ assertType(customPage);
111
+ const category = {
112
+ type: "category",
113
+ label: "Test Category",
114
+ items: ["test.md"],
115
+ };
116
+ assertType(category);
117
+ assertType(category.items);
118
+ });
119
+ it("validates constrained properties", () => {
120
+ const validDisplayValues = ["auth", "anon", "always", "hide"];
121
+ for (const display of validDisplayValues) {
122
+ const item = {
123
+ type: "doc",
124
+ file: "test.md",
125
+ display,
126
+ };
127
+ assertType(item);
128
+ }
129
+ });
130
+ it("rejects invalid types", () => {
131
+ // Test that invalid values fail at compile time
132
+ // @ts-expect-error - number not assignable to InputNavigationItem
133
+ assertType(0);
134
+ // @ts-expect-error - missing required 'file' property
135
+ assertType({ type: "doc" });
136
+ // @ts-expect-error - missing required 'href' property
137
+ assertType({ type: "link", label: "Invalid Link" });
138
+ assertType({
139
+ type: "category",
140
+ label: "Test",
141
+ // @ts-expect-error - items should not accept unknown[]
142
+ items: [],
143
+ });
144
+ });
145
+ });
146
+ //# sourceMappingURL=InputNavigationSchema.test-d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputNavigationSchema.test-d.js","sourceRoot":"","sources":["../../../src/config/validators/InputNavigationSchema.test-d.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAUhE,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,kEAAkE;QAClE,MAAM,SAAS,GAAG,gBAA8C,CAAC;QACjE,MAAM,SAAS,GAAG;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE;YACvC,OAAO,EAAE,QAAQ;SACY,CAAC;QAChC,MAAM,UAAU,GAAG;YACjB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,eAAe;YACtB,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,kBAAkB;YAC/B,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE;YAC3C,OAAO,EAAE,MAAM;SACc,CAAC;QAChC,MAAM,UAAU,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I,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;QAEzE,UAAU,CAA0B;YAClC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,MAAM;YACb,uDAAuD;YACvD,KAAK,EAAE,EAAe;SACvB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { type LucideIcon } from "lucide-react";
2
+ import type { ConfigWithMeta } from "../loader.js";
3
+ import type { InputNavigationCategory, InputNavigationCategoryLinkDoc, InputNavigationCustomPage, InputNavigationDoc, InputNavigationLink } from "./InputNavigationSchema.js";
4
+ type ReplaceFields<Base, Overrides> = Omit<Base, keyof Overrides> & Overrides;
5
+ type ResolvedIcon = {
6
+ icon?: LucideIcon | string;
7
+ };
8
+ type FinalNavigationDoc = Extract<InputNavigationDoc, {
9
+ type: "doc";
10
+ }>;
11
+ type FinalNavigationCategoryLinkDoc = Extract<InputNavigationCategoryLinkDoc, {
12
+ type: "doc";
13
+ }>;
14
+ export type NavigationDoc = ReplaceFields<FinalNavigationDoc, {
15
+ label: string;
16
+ categoryLabel?: string;
17
+ path: string;
18
+ } & ResolvedIcon>;
19
+ export type NavigationLink = ReplaceFields<InputNavigationLink, ResolvedIcon>;
20
+ export type NavigationCategoryLinkDoc = ReplaceFields<FinalNavigationCategoryLinkDoc, {
21
+ label: string;
22
+ path: string;
23
+ } & ResolvedIcon>;
24
+ export type NavigationCategory = ReplaceFields<InputNavigationCategory, {
25
+ items: NavigationItem[];
26
+ link?: NavigationCategoryLinkDoc;
27
+ } & ResolvedIcon>;
28
+ export type NavigationCustomPage = ReplaceFields<InputNavigationCustomPage, ResolvedIcon>;
29
+ export type NavigationItem = NavigationDoc | NavigationLink | NavigationCategory | NavigationCustomPage;
30
+ export type Navigation = NavigationItem[];
31
+ export declare class NavigationResolver {
32
+ private rootDir;
33
+ private globPatterns;
34
+ private globFiles;
35
+ private items;
36
+ constructor(config: ConfigWithMeta);
37
+ resolve(): Promise<NavigationItem[]>;
38
+ private resolveDoc;
39
+ private resolveLink;
40
+ private resolveItemCategoryLinkDoc;
41
+ private resolveNavigationItemDoc;
42
+ private resolveItem;
43
+ }
44
+ export {};
@@ -0,0 +1,95 @@
1
+ import { glob } from "glob";
2
+ import matter from "gray-matter";
3
+ import fs from "node:fs/promises";
4
+ import { DocsConfigSchema } from "./validate.js";
5
+ const extractTitleFromContent = (content) => content.match(/^\s*#\s(.*)$/m)?.at(1);
6
+ const isNavigationItem = (item) => item !== undefined;
7
+ export class NavigationResolver {
8
+ rootDir;
9
+ globPatterns;
10
+ globFiles = [];
11
+ items = [];
12
+ constructor(config) {
13
+ this.rootDir = config.__meta.rootDir;
14
+ this.globPatterns = DocsConfigSchema.parse(config.docs ?? {}).files;
15
+ this.items = config.navigation ?? [];
16
+ }
17
+ async resolve() {
18
+ this.globFiles = await glob(this.globPatterns, {
19
+ root: this.rootDir,
20
+ ignore: ["**/node_modules/**", "**/.git/**", "**/dist/**"],
21
+ });
22
+ const resolvedItems = await Promise.all(this.items.map((item) => this.resolveItem(item)));
23
+ return resolvedItems.filter(isNavigationItem);
24
+ }
25
+ async resolveDoc(filePath, categoryLabel) {
26
+ const foundMatches = this.globFiles.find((file) => file.endsWith(`${filePath}.md`) || file.endsWith(`${filePath}.mdx`));
27
+ if (!foundMatches) {
28
+ throw new Error(`File not found for document '${filePath}'. Check your navigation configuration.`);
29
+ }
30
+ const fileContent = await fs.readFile(foundMatches);
31
+ const { data, content } = matter(fileContent);
32
+ const label = data.navigation_label ??
33
+ data.sidebar_label ??
34
+ data.title ??
35
+ extractTitleFromContent(content) ??
36
+ filePath;
37
+ const icon = data.navigation_icon ?? data.sidebar_icon;
38
+ const doc = {
39
+ type: "doc",
40
+ file: filePath,
41
+ label,
42
+ icon,
43
+ categoryLabel,
44
+ path: filePath,
45
+ };
46
+ return doc;
47
+ }
48
+ async resolveLink(file) {
49
+ const doc = await this.resolveDoc(file);
50
+ return doc
51
+ ? { type: "doc", file, label: doc.label, icon: doc.icon, path: doc.path }
52
+ : undefined;
53
+ }
54
+ async resolveItemCategoryLinkDoc(item) {
55
+ if (typeof item === "string") {
56
+ return this.resolveLink(item);
57
+ }
58
+ const doc = await this.resolveDoc(item.file);
59
+ return doc
60
+ ? { ...item, label: doc.label, icon: doc.icon, path: doc.path }
61
+ : undefined;
62
+ }
63
+ async resolveNavigationItemDoc(item, categoryLabel) {
64
+ if (typeof item === "string") {
65
+ return this.resolveDoc(item, categoryLabel);
66
+ }
67
+ const doc = await this.resolveDoc(item.file, categoryLabel);
68
+ return doc ? { ...doc, ...item, path: item.path ?? doc.path } : undefined;
69
+ }
70
+ async resolveItem(item, categoryLabel) {
71
+ if (typeof item === "string") {
72
+ return this.resolveDoc(item, categoryLabel);
73
+ }
74
+ switch (item.type) {
75
+ case "doc":
76
+ return this.resolveNavigationItemDoc(item, categoryLabel);
77
+ case "link":
78
+ case "custom-page":
79
+ return item;
80
+ case "category": {
81
+ const categoryItem = item;
82
+ const items = (await Promise.all(categoryItem.items.map((subItem) => this.resolveItem(subItem, categoryItem.label)))).filter(isNavigationItem);
83
+ const resolvedLink = categoryItem.link
84
+ ? await this.resolveItemCategoryLinkDoc(categoryItem.link)
85
+ : undefined;
86
+ return {
87
+ ...categoryItem,
88
+ items,
89
+ link: resolvedLink,
90
+ };
91
+ }
92
+ }
93
+ }
94
+ }
95
+ //# sourceMappingURL=NavigationSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationSchema.js","sourceRoot":"","sources":["../../../src/config/validators/NavigationSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAUlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0CjD,MAAM,uBAAuB,GAAG,CAAC,OAAe,EAAsB,EAAE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YAAY,CAAC,KAA+B,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5D,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,CAC9C,CACF,CACF,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;gBAE3B,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI;oBACpC,CAAC,CAAC,MAAM,IAAI,CAAC,0BAA0B,CAAC,YAAY,CAAC,IAAI,CAAC;oBAC1D,CAAC,CAAC,SAAS,CAAC;gBAEd,OAAO;oBACL,GAAG,YAAY;oBACf,KAAK;oBACL,IAAI,EAAE,YAAY;iBACnB,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -1 +1,2 @@
1
- export type IconNames = "a-arrow-down" | "a-arrow-up" | "a-large-small" | "accessibility" | "activity" | "activity-square" | "air-vent" | "airplay" | "alarm-check" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "alarm-minus" | "alarm-plus" | "alarm-smoke" | "album" | "alert-circle" | "alert-octagon" | "alert-triangle" | "align-center" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-justify" | "align-left" | "align-right" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ambulance" | "ampersand" | "ampersands" | "amphora" | "anchor" | "angry" | "annoyed" | "antenna" | "anvil" | "aperture" | "app-window" | "app-window-mac" | "apple" | "archive" | "archive-restore" | "archive-x" | "area-chart" | "armchair" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-0-1" | "arrow-down-01" | "arrow-down-1-0" | "arrow-down-10" | "arrow-down-a-z" | "arrow-down-az" | "arrow-down-circle" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-left-from-circle" | "arrow-down-left-from-square" | "arrow-down-left-square" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-right-from-circle" | "arrow-down-right-from-square" | "arrow-down-right-square" | "arrow-down-square" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-down-za" | "arrow-left" | "arrow-left-circle" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-square" | "arrow-left-to-line" | "arrow-right" | "arrow-right-circle" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-square" | "arrow-right-to-line" | "arrow-up" | "arrow-up-0-1" | "arrow-up-01" | "arrow-up-1-0" | "arrow-up-10" | "arrow-up-a-z" | "arrow-up-az" | "arrow-up-circle" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-left-from-circle" | "arrow-up-left-from-square" | "arrow-up-left-square" | "arrow-up-narrow-wide" | "arrow-up-right" | "arrow-up-right-from-circle" | "arrow-up-right-from-square" | "arrow-up-right-square" | "arrow-up-square" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrow-up-za" | "arrows-up-from-line" | "asterisk" | "asterisk-square" | "at-sign" | "atom" | "audio-lines" | "audio-waveform" | "award" | "axe" | "axis-3-d" | "axis-3d" | "baby" | "backpack" | "badge" | "badge-alert" | "badge-cent" | "badge-check" | "badge-dollar-sign" | "badge-euro" | "badge-help" | "badge-indian-rupee" | "badge-info" | "badge-japanese-yen" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-pound-sterling" | "badge-russian-ruble" | "badge-swiss-franc" | "badge-x" | "baggage-claim" | "ban" | "banana" | "bandage" | "banknote" | "banknote-arrow-down" | "banknote-arrow-up" | "banknote-x" | "bar-chart" | "bar-chart-2" | "bar-chart-3" | "bar-chart-4" | "bar-chart-big" | "bar-chart-horizontal" | "bar-chart-horizontal-big" | "barcode" | "baseline" | "bath" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-plus" | "battery-warning" | "beaker" | "bean" | "bean-off" | "bed" | "bed-double" | "bed-single" | "beef" | "beer" | "beer-off" | "bell" | "bell-dot" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "between-horizonal-end" | "between-horizonal-start" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "biceps-flexed" | "bike" | "binary" | "binoculars" | "biohazard" | "bird" | "bitcoin" | "blend" | "blinds" | "blocks" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "bold" | "bolt" | "bomb" | "bone" | "book" | "book-a" | "book-audio" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-headphones" | "book-heart" | "book-image" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-template" | "book-text" | "book-type" | "book-up" | "book-up-2" | "book-user" | "book-x" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-plus" | "bookmark-x" | "boom-box" | "bot" | "bot-message-square" | "bot-off" | "box" | "box-select" | "boxes" | "braces" | "brackets" | "brain" | "brain-circuit" | "brain-cog" | "brick-wall" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "bring-to-front" | "brush" | "bug" | "bug-off" | "bug-play" | "building" | "building-2" | "bus" | "bus-front" | "cable" | "cable-car" | "cake" | "cake-slice" | "calculator" | "calendar" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-fold" | "calendar-heart" | "calendar-minus" | "calendar-minus-2" | "calendar-off" | "calendar-plus" | "calendar-plus-2" | "calendar-range" | "calendar-search" | "calendar-sync" | "calendar-x" | "calendar-x-2" | "camera" | "camera-off" | "candlestick-chart" | "candy" | "candy-cane" | "candy-off" | "cannabis" | "captions" | "captions-off" | "car" | "car-front" | "car-taxi-front" | "caravan" | "carrot" | "case-lower" | "case-sensitive" | "case-upper" | "cassette-tape" | "cast" | "castle" | "cat" | "cctv" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "check" | "check-check" | "check-circle" | "check-circle-2" | "check-square" | "check-square-2" | "chef-hat" | "cherry" | "chevron-down" | "chevron-down-circle" | "chevron-down-square" | "chevron-first" | "chevron-last" | "chevron-left" | "chevron-left-circle" | "chevron-left-square" | "chevron-right" | "chevron-right-circle" | "chevron-right-square" | "chevron-up" | "chevron-up-circle" | "chevron-up-square" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-left-right-ellipsis" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "chrome" | "church" | "cigarette" | "cigarette-off" | "circle" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-dashed" | "circle-divide" | "circle-dollar-sign" | "circle-dot" | "circle-dot-dashed" | "circle-ellipsis" | "circle-equal" | "circle-fading-arrow-up" | "circle-fading-plus" | "circle-gauge" | "circle-help" | "circle-minus" | "circle-off" | "circle-parking" | "circle-parking-off" | "circle-pause" | "circle-percent" | "circle-play" | "circle-plus" | "circle-power" | "circle-slash" | "circle-slash-2" | "circle-slashed" | "circle-small" | "circle-stop" | "circle-user" | "circle-user-round" | "circle-x" | "circuit-board" | "citrus" | "clapperboard" | "clipboard" | "clipboard-check" | "clipboard-copy" | "clipboard-edit" | "clipboard-list" | "clipboard-minus" | "clipboard-paste" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-signature" | "clipboard-type" | "clipboard-x" | "clock" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-fading" | "cloud" | "cloud-alert" | "cloud-cog" | "cloud-download" | "cloud-drizzle" | "cloud-fog" | "cloud-hail" | "cloud-lightning" | "cloud-moon" | "cloud-moon-rain" | "cloud-off" | "cloud-rain" | "cloud-rain-wind" | "cloud-snow" | "cloud-sun" | "cloud-sun-rain" | "cloud-upload" | "cloudy" | "clover" | "club" | "code" | "code-2" | "code-square" | "code-xml" | "codepen" | "codesandbox" | "coffee" | "cog" | "coins" | "columns" | "columns-2" | "columns-3" | "columns-4" | "combine" | "command" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-2" | "contact-round" | "container" | "contrast" | "cookie" | "cooking-pot" | "copy" | "copy-check" | "copy-minus" | "copy-plus" | "copy-slash" | "copy-x" | "copyleft" | "copyright" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "creative-commons" | "credit-card" | "croissant" | "crop" | "cross" | "crosshair" | "crown" | "cuboid" | "cup-soda" | "curly-braces" | "currency" | "cylinder" | "dam" | "database" | "database-backup" | "database-zap" | "delete" | "dessert" | "diameter" | "diamond" | "diamond-minus" | "diamond-percent" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "dices" | "diff" | "disc" | "disc-2" | "disc-3" | "disc-album" | "divide" | "divide-circle" | "divide-square" | "dna" | "dna-off" | "dock" | "dog" | "dollar-sign" | "donut" | "door-closed" | "door-open" | "dot" | "dot-square" | "download" | "download-cloud" | "drafting-compass" | "drama" | "dribbble" | "drill" | "droplet" | "droplet-off" | "droplets" | "drum" | "drumstick" | "dumbbell" | "ear" | "ear-off" | "earth" | "earth-lock" | "eclipse" | "edit" | "edit-2" | "edit-3" | "egg" | "egg-fried" | "egg-off" | "ellipsis" | "ellipsis-vertical" | "equal" | "equal-approximately" | "equal-not" | "equal-square" | "eraser" | "ethernet-port" | "euro" | "expand" | "external-link" | "eye" | "eye-closed" | "eye-off" | "facebook" | "factory" | "fan" | "fast-forward" | "feather" | "fence" | "ferris-wheel" | "figma" | "file" | "file-archive" | "file-audio" | "file-audio-2" | "file-axis-3-d" | "file-axis-3d" | "file-badge" | "file-badge-2" | "file-bar-chart" | "file-bar-chart-2" | "file-box" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-check-2" | "file-clock" | "file-code" | "file-code-2" | "file-cog" | "file-cog-2" | "file-diff" | "file-digit" | "file-down" | "file-edit" | "file-heart" | "file-image" | "file-input" | "file-json" | "file-json-2" | "file-key" | "file-key-2" | "file-line-chart" | "file-lock" | "file-lock-2" | "file-minus" | "file-minus-2" | "file-music" | "file-output" | "file-pen" | "file-pen-line" | "file-pie-chart" | "file-plus" | "file-plus-2" | "file-question" | "file-scan" | "file-search" | "file-search-2" | "file-signature" | "file-sliders" | "file-spreadsheet" | "file-stack" | "file-symlink" | "file-terminal" | "file-text" | "file-type" | "file-type-2" | "file-up" | "file-user" | "file-video" | "file-video-2" | "file-volume" | "file-volume-2" | "file-warning" | "file-x" | "file-x-2" | "files" | "film" | "filter" | "filter-x" | "fingerprint" | "fire-extinguisher" | "fish" | "fish-off" | "fish-symbol" | "flag" | "flag-off" | "flag-triangle-left" | "flag-triangle-right" | "flame" | "flame-kindling" | "flashlight" | "flashlight-off" | "flask-conical" | "flask-conical-off" | "flask-round" | "flip-horizontal" | "flip-horizontal-2" | "flip-vertical" | "flip-vertical-2" | "flower" | "flower-2" | "focus" | "fold-horizontal" | "fold-vertical" | "folder" | "folder-archive" | "folder-check" | "folder-clock" | "folder-closed" | "folder-code" | "folder-cog" | "folder-cog-2" | "folder-dot" | "folder-down" | "folder-edit" | "folder-git" | "folder-git-2" | "folder-heart" | "folder-input" | "folder-kanban" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-open-dot" | "folder-output" | "folder-pen" | "folder-plus" | "folder-root" | "folder-search" | "folder-search-2" | "folder-symlink" | "folder-sync" | "folder-tree" | "folder-up" | "folder-x" | "folders" | "footprints" | "fork-knife" | "fork-knife-crossed" | "forklift" | "form-input" | "forward" | "frame" | "framer" | "frown" | "fuel" | "fullscreen" | "function-square" | "funnel" | "funnel-plus" | "funnel-x" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gamepad" | "gamepad-2" | "gantt-chart" | "gantt-chart-square" | "gauge" | "gauge-circle" | "gavel" | "gem" | "ghost" | "gift" | "git-branch" | "git-branch-plus" | "git-commit" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-compare-arrows" | "git-fork" | "git-graph" | "git-merge" | "git-pull-request" | "git-pull-request-arrow" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-create-arrow" | "git-pull-request-draft" | "github" | "gitlab" | "glass-water" | "glasses" | "globe" | "globe-2" | "globe-lock" | "goal" | "grab" | "graduation-cap" | "grape" | "grid" | "grid-2-x-2" | "grid-2-x-2-check" | "grid-2-x-2-plus" | "grid-2-x-2-x" | "grid-2x2" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grid-3-x-3" | "grid-3x3" | "grip" | "grip-horizontal" | "grip-vertical" | "group" | "guitar" | "ham" | "hammer" | "hand" | "hand-coins" | "hand-heart" | "hand-helping" | "hand-metal" | "hand-platter" | "handshake" | "hard-drive" | "hard-drive-download" | "hard-drive-upload" | "hard-hat" | "hash" | "haze" | "hdmi-port" | "heading" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "headphone-off" | "headphones" | "headset" | "heart" | "heart-crack" | "heart-handshake" | "heart-off" | "heart-pulse" | "heater" | "help-circle" | "helping-hand" | "hexagon" | "highlighter" | "history" | "home" | "hop" | "hop-off" | "hospital" | "hotel" | "hourglass" | "house" | "house-plug" | "house-plus" | "house-wifi" | "ice-cream" | "ice-cream-2" | "ice-cream-bowl" | "ice-cream-cone" | "id-card" | "image" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "image-upscale" | "images" | "import" | "inbox" | "indent" | "indent-decrease" | "indent-increase" | "indian-rupee" | "infinity" | "info" | "inspect" | "inspection-panel" | "instagram" | "italic" | "iteration-ccw" | "iteration-cw" | "japanese-yen" | "joystick" | "kanban" | "kanban-square" | "kanban-square-dashed" | "key" | "key-round" | "key-square" | "keyboard" | "keyboard-music" | "keyboard-off" | "lamp" | "lamp-ceiling" | "lamp-desk" | "lamp-floor" | "lamp-wall-down" | "lamp-wall-up" | "land-plot" | "landmark" | "languages" | "laptop" | "laptop-2" | "laptop-minimal" | "laptop-minimal-check" | "lasso" | "lasso-select" | "laugh" | "layers" | "layers-2" | "layers-3" | "layout" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "leaf" | "leafy-green" | "lectern" | "letter-text" | "library" | "library-big" | "library-square" | "life-buoy" | "ligature" | "lightbulb" | "lightbulb-off" | "line-chart" | "link" | "link-2" | "link-2-off" | "linkedin" | "list" | "list-check" | "list-checks" | "list-collapse" | "list-end" | "list-filter" | "list-filter-plus" | "list-minus" | "list-music" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-tree" | "list-video" | "list-x" | "loader" | "loader-2" | "loader-circle" | "loader-pinwheel" | "locate" | "locate-fixed" | "locate-off" | "lock" | "lock-keyhole" | "lock-keyhole-open" | "lock-open" | "log-in" | "log-out" | "logs" | "lollipop" | "luggage" | "m-square" | "magnet" | "mail" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "map" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-off" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "map-plus" | "mars" | "mars-stroke" | "martini" | "maximize" | "maximize-2" | "medal" | "megaphone" | "megaphone-off" | "meh" | "memory-stick" | "menu" | "menu-square" | "merge" | "message-circle" | "message-circle-code" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-plus" | "message-circle-question" | "message-circle-reply" | "message-circle-warning" | "message-circle-x" | "message-square" | "message-square-code" | "message-square-dashed" | "message-square-diff" | "message-square-dot" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-warning" | "message-square-x" | "messages-square" | "mic" | "mic-2" | "mic-off" | "mic-vocal" | "microchip" | "microscope" | "microwave" | "milestone" | "milk" | "milk-off" | "minimize" | "minimize-2" | "minus" | "minus-circle" | "minus-square" | "monitor" | "monitor-check" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "moon" | "moon-star" | "more-horizontal" | "more-vertical" | "mountain" | "mountain-snow" | "mouse" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-ban" | "mouse-pointer-click" | "mouse-pointer-square-dashed" | "move" | "move-3-d" | "move-3d" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "music" | "music-2" | "music-3" | "music-4" | "navigation" | "navigation-2" | "navigation-2-off" | "navigation-off" | "network" | "newspaper" | "nfc" | "non-binary" | "notebook" | "notebook-pen" | "notebook-tabs" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "nut" | "nut-off" | "octagon" | "octagon-alert" | "octagon-minus" | "octagon-pause" | "octagon-x" | "omega" | "option" | "orbit" | "origami" | "outdent" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-2" | "paintbrush-vertical" | "palette" | "palmtree" | "panel-bottom" | "panel-bottom-close" | "panel-bottom-dashed" | "panel-bottom-inactive" | "panel-bottom-open" | "panel-left" | "panel-left-close" | "panel-left-dashed" | "panel-left-inactive" | "panel-left-open" | "panel-right" | "panel-right-close" | "panel-right-dashed" | "panel-right-inactive" | "panel-right-open" | "panel-top" | "panel-top-close" | "panel-top-dashed" | "panel-top-inactive" | "panel-top-open" | "panels-left-bottom" | "panels-left-right" | "panels-right-bottom" | "panels-top-bottom" | "panels-top-left" | "paperclip" | "parentheses" | "parking-circle" | "parking-circle-off" | "parking-meter" | "parking-square" | "parking-square-off" | "party-popper" | "pause" | "pause-circle" | "pause-octagon" | "paw-print" | "pc-case" | "pen" | "pen-box" | "pen-line" | "pen-off" | "pen-square" | "pen-tool" | "pencil" | "pencil-line" | "pencil-off" | "pencil-ruler" | "pentagon" | "percent" | "percent-circle" | "percent-diamond" | "percent-square" | "person-standing" | "philippine-peso" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pi" | "pi-square" | "piano" | "pickaxe" | "picture-in-picture" | "picture-in-picture-2" | "pie-chart" | "piggy-bank" | "pilcrow" | "pilcrow-left" | "pilcrow-right" | "pilcrow-square" | "pill" | "pill-bottle" | "pin" | "pin-off" | "pipette" | "pizza" | "plane" | "plane-landing" | "plane-takeoff" | "play" | "play-circle" | "play-square" | "plug" | "plug-2" | "plug-zap" | "plug-zap-2" | "plus" | "plus-circle" | "plus-square" | "pocket" | "pocket-knife" | "podcast" | "pointer" | "pointer-off" | "popcorn" | "popsicle" | "pound-sterling" | "power" | "power-circle" | "power-off" | "power-square" | "presentation" | "printer" | "printer-check" | "projector" | "proportions" | "puzzle" | "pyramid" | "qr-code" | "quote" | "rabbit" | "radar" | "radiation" | "radical" | "radio" | "radio-receiver" | "radio-tower" | "radius" | "rail-symbol" | "rainbow" | "rat" | "ratio" | "receipt" | "receipt-cent" | "receipt-euro" | "receipt-indian-rupee" | "receipt-japanese-yen" | "receipt-pound-sterling" | "receipt-russian-ruble" | "receipt-swiss-franc" | "receipt-text" | "rectangle-ellipsis" | "rectangle-horizontal" | "rectangle-vertical" | "recycle" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "refrigerator" | "regex" | "remove-formatting" | "repeat" | "repeat-1" | "repeat-2" | "replace" | "replace-all" | "reply" | "reply-all" | "rewind" | "ribbon" | "rocket" | "rocking-chair" | "roller-coaster" | "rotate-3-d" | "rotate-3d" | "rotate-ccw" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "route" | "route-off" | "router" | "rows" | "rows-2" | "rows-3" | "rows-4" | "rss" | "ruler" | "russian-ruble" | "sailboat" | "salad" | "sandwich" | "satellite" | "satellite-dish" | "saudi-riyal" | "save" | "save-all" | "save-off" | "scale" | "scale-3-d" | "scale-3d" | "scaling" | "scan" | "scan-barcode" | "scan-eye" | "scan-face" | "scan-heart" | "scan-line" | "scan-qr-code" | "scan-search" | "scan-text" | "scatter-chart" | "school" | "school-2" | "scissors" | "scissors-line-dashed" | "scissors-square" | "scissors-square-dashed-bottom" | "screen-share" | "screen-share-off" | "scroll" | "scroll-text" | "search" | "search-check" | "search-code" | "search-slash" | "search-x" | "section" | "send" | "send-horizonal" | "send-horizontal" | "send-to-back" | "separator-horizontal" | "separator-vertical" | "server" | "server-cog" | "server-crash" | "server-off" | "settings" | "settings-2" | "shapes" | "share" | "share-2" | "sheet" | "shell" | "shield" | "shield-alert" | "shield-ban" | "shield-check" | "shield-close" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question" | "shield-user" | "shield-x" | "ship" | "ship-wheel" | "shirt" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shovel" | "shower-head" | "shrimp" | "shrink" | "shrub" | "shuffle" | "sidebar" | "sidebar-close" | "sidebar-open" | "sigma" | "sigma-square" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "signpost" | "signpost-big" | "siren" | "skip-back" | "skip-forward" | "skull" | "slack" | "slash" | "slash-square" | "slice" | "sliders" | "sliders-horizontal" | "sliders-vertical" | "smartphone" | "smartphone-charging" | "smartphone-nfc" | "smile" | "smile-plus" | "snail" | "snowflake" | "sofa" | "sort-asc" | "sort-desc" | "soup" | "space" | "spade" | "sparkle" | "sparkles" | "speaker" | "speech" | "spell-check" | "spell-check-2" | "spline" | "spline-pointer" | "split" | "split-square-horizontal" | "split-square-vertical" | "spray-can" | "sprout" | "square" | "square-activity" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-asterisk" | "square-bottom-dashed-scissors" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-code" | "square-dashed" | "square-dashed-bottom" | "square-dashed-bottom-code" | "square-dashed-kanban" | "square-dashed-mouse-pointer" | "square-divide" | "square-dot" | "square-equal" | "square-function" | "square-gantt-chart" | "square-kanban" | "square-library" | "square-m" | "square-menu" | "square-minus" | "square-mouse-pointer" | "square-parking" | "square-parking-off" | "square-pen" | "square-percent" | "square-pi" | "square-pilcrow" | "square-play" | "square-plus" | "square-power" | "square-radical" | "square-round-corner" | "square-scissors" | "square-sigma" | "square-slash" | "square-split-horizontal" | "square-split-vertical" | "square-square" | "square-stack" | "square-terminal" | "square-user" | "square-user-round" | "square-x" | "squircle" | "squirrel" | "stamp" | "star" | "star-half" | "star-off" | "stars" | "step-back" | "step-forward" | "stethoscope" | "sticker" | "sticky-note" | "stop-circle" | "store" | "stretch-horizontal" | "stretch-vertical" | "strikethrough" | "subscript" | "subtitles" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table" | "table-2" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-of-contents" | "table-properties" | "table-rows-split" | "tablet" | "tablet-smartphone" | "tablets" | "tag" | "tags" | "tally-1" | "tally-2" | "tally-3" | "tally-4" | "tally-5" | "tangent" | "target" | "telescope" | "tent" | "tent-tree" | "terminal" | "terminal-square" | "test-tube" | "test-tube-2" | "test-tube-diagonal" | "test-tubes" | "text" | "text-cursor" | "text-cursor-input" | "text-quote" | "text-search" | "text-select" | "text-selection" | "theater" | "thermometer" | "thermometer-snowflake" | "thermometer-sun" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-check" | "ticket-minus" | "ticket-percent" | "ticket-plus" | "ticket-slash" | "ticket-x" | "tickets" | "tickets-plane" | "timer" | "timer-off" | "timer-reset" | "toggle-left" | "toggle-right" | "toilet" | "tornado" | "torus" | "touchpad" | "touchpad-off" | "tower-control" | "toy-brick" | "tractor" | "traffic-cone" | "train" | "train-front" | "train-front-tunnel" | "train-track" | "tram-front" | "transgender" | "trash" | "trash-2" | "tree-deciduous" | "tree-palm" | "tree-pine" | "trees" | "trello" | "trending-down" | "trending-up" | "trending-up-down" | "triangle" | "triangle-alert" | "triangle-dashed" | "triangle-right" | "trophy" | "truck" | "turtle" | "tv" | "tv-2" | "tv-minimal" | "tv-minimal-play" | "twitch" | "twitter" | "type" | "type-outline" | "umbrella" | "umbrella-off" | "underline" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "ungroup" | "university" | "unlink" | "unlink-2" | "unlock" | "unlock-keyhole" | "unplug" | "upload" | "upload-cloud" | "usb" | "user" | "user-2" | "user-check" | "user-check-2" | "user-circle" | "user-circle-2" | "user-cog" | "user-cog-2" | "user-minus" | "user-minus-2" | "user-pen" | "user-plus" | "user-plus-2" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-square" | "user-square-2" | "user-x" | "user-x-2" | "users" | "users-2" | "users-round" | "utensils" | "utensils-crossed" | "utility-pole" | "variable" | "vault" | "vegan" | "venetian-mask" | "venus" | "venus-and-mars" | "verified" | "vibrate" | "vibrate-off" | "video" | "video-off" | "videotape" | "view" | "voicemail" | "volleyball" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "vote" | "wallet" | "wallet-2" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "wand" | "wand-2" | "wand-sparkles" | "warehouse" | "washing-machine" | "watch" | "waves" | "waves-ladder" | "waypoints" | "webcam" | "webhook" | "webhook-off" | "weight" | "wheat" | "wheat-off" | "whole-word" | "wifi" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-zero" | "wind" | "wind-arrow-down" | "wine" | "wine-off" | "workflow" | "worm" | "wrap-text" | "wrench" | "x" | "x-circle" | "x-octagon" | "x-square" | "youtube" | "zap" | "zap-off" | "zoom-in" | "zoom-out";
1
+ export declare const IconNames: readonly ["a-arrow-down", "a-arrow-up", "a-large-small", "accessibility", "activity", "activity-square", "air-vent", "airplay", "alarm-check", "alarm-clock", "alarm-clock-check", "alarm-clock-minus", "alarm-clock-off", "alarm-clock-plus", "alarm-minus", "alarm-plus", "alarm-smoke", "album", "alert-circle", "alert-octagon", "alert-triangle", "align-center", "align-center-horizontal", "align-center-vertical", "align-end-horizontal", "align-end-vertical", "align-horizontal-distribute-center", "align-horizontal-distribute-end", "align-horizontal-distribute-start", "align-horizontal-justify-center", "align-horizontal-justify-end", "align-horizontal-justify-start", "align-horizontal-space-around", "align-horizontal-space-between", "align-justify", "align-left", "align-right", "align-start-horizontal", "align-start-vertical", "align-vertical-distribute-center", "align-vertical-distribute-end", "align-vertical-distribute-start", "align-vertical-justify-center", "align-vertical-justify-end", "align-vertical-justify-start", "align-vertical-space-around", "align-vertical-space-between", "ambulance", "ampersand", "ampersands", "amphora", "anchor", "angry", "annoyed", "antenna", "anvil", "aperture", "app-window", "app-window-mac", "apple", "archive", "archive-restore", "archive-x", "area-chart", "armchair", "arrow-big-down", "arrow-big-down-dash", "arrow-big-left", "arrow-big-left-dash", "arrow-big-right", "arrow-big-right-dash", "arrow-big-up", "arrow-big-up-dash", "arrow-down", "arrow-down-0-1", "arrow-down-01", "arrow-down-1-0", "arrow-down-10", "arrow-down-a-z", "arrow-down-az", "arrow-down-circle", "arrow-down-from-line", "arrow-down-left", "arrow-down-left-from-circle", "arrow-down-left-from-square", "arrow-down-left-square", "arrow-down-narrow-wide", "arrow-down-right", "arrow-down-right-from-circle", "arrow-down-right-from-square", "arrow-down-right-square", "arrow-down-square", "arrow-down-to-dot", "arrow-down-to-line", "arrow-down-up", "arrow-down-wide-narrow", "arrow-down-z-a", "arrow-down-za", "arrow-left", "arrow-left-circle", "arrow-left-from-line", "arrow-left-right", "arrow-left-square", "arrow-left-to-line", "arrow-right", "arrow-right-circle", "arrow-right-from-line", "arrow-right-left", "arrow-right-square", "arrow-right-to-line", "arrow-up", "arrow-up-0-1", "arrow-up-01", "arrow-up-1-0", "arrow-up-10", "arrow-up-a-z", "arrow-up-az", "arrow-up-circle", "arrow-up-down", "arrow-up-from-dot", "arrow-up-from-line", "arrow-up-left", "arrow-up-left-from-circle", "arrow-up-left-from-square", "arrow-up-left-square", "arrow-up-narrow-wide", "arrow-up-right", "arrow-up-right-from-circle", "arrow-up-right-from-square", "arrow-up-right-square", "arrow-up-square", "arrow-up-to-line", "arrow-up-wide-narrow", "arrow-up-z-a", "arrow-up-za", "arrows-up-from-line", "asterisk", "asterisk-square", "at-sign", "atom", "audio-lines", "audio-waveform", "award", "axe", "axis-3-d", "axis-3d", "baby", "backpack", "badge", "badge-alert", "badge-cent", "badge-check", "badge-dollar-sign", "badge-euro", "badge-help", "badge-indian-rupee", "badge-info", "badge-japanese-yen", "badge-minus", "badge-percent", "badge-plus", "badge-pound-sterling", "badge-russian-ruble", "badge-swiss-franc", "badge-x", "baggage-claim", "ban", "banana", "bandage", "banknote", "banknote-arrow-down", "banknote-arrow-up", "banknote-x", "bar-chart", "bar-chart-2", "bar-chart-3", "bar-chart-4", "bar-chart-big", "bar-chart-horizontal", "bar-chart-horizontal-big", "barcode", "baseline", "bath", "battery", "battery-charging", "battery-full", "battery-low", "battery-medium", "battery-plus", "battery-warning", "beaker", "bean", "bean-off", "bed", "bed-double", "bed-single", "beef", "beer", "beer-off", "bell", "bell-dot", "bell-electric", "bell-minus", "bell-off", "bell-plus", "bell-ring", "between-horizonal-end", "between-horizonal-start", "between-horizontal-end", "between-horizontal-start", "between-vertical-end", "between-vertical-start", "biceps-flexed", "bike", "binary", "binoculars", "biohazard", "bird", "bitcoin", "blend", "blinds", "blocks", "bluetooth", "bluetooth-connected", "bluetooth-off", "bluetooth-searching", "bold", "bolt", "bomb", "bone", "book", "book-a", "book-audio", "book-check", "book-copy", "book-dashed", "book-down", "book-headphones", "book-heart", "book-image", "book-key", "book-lock", "book-marked", "book-minus", "book-open", "book-open-check", "book-open-text", "book-plus", "book-template", "book-text", "book-type", "book-up", "book-up-2", "book-user", "book-x", "bookmark", "bookmark-check", "bookmark-minus", "bookmark-plus", "bookmark-x", "boom-box", "bot", "bot-message-square", "bot-off", "box", "box-select", "boxes", "braces", "brackets", "brain", "brain-circuit", "brain-cog", "brick-wall", "briefcase", "briefcase-business", "briefcase-conveyor-belt", "briefcase-medical", "bring-to-front", "brush", "bug", "bug-off", "bug-play", "building", "building-2", "bus", "bus-front", "cable", "cable-car", "cake", "cake-slice", "calculator", "calendar", "calendar-1", "calendar-arrow-down", "calendar-arrow-up", "calendar-check", "calendar-check-2", "calendar-clock", "calendar-cog", "calendar-days", "calendar-fold", "calendar-heart", "calendar-minus", "calendar-minus-2", "calendar-off", "calendar-plus", "calendar-plus-2", "calendar-range", "calendar-search", "calendar-sync", "calendar-x", "calendar-x-2", "camera", "camera-off", "candlestick-chart", "candy", "candy-cane", "candy-off", "cannabis", "captions", "captions-off", "car", "car-front", "car-taxi-front", "caravan", "carrot", "case-lower", "case-sensitive", "case-upper", "cassette-tape", "cast", "castle", "cat", "cctv", "chart-area", "chart-bar", "chart-bar-big", "chart-bar-decreasing", "chart-bar-increasing", "chart-bar-stacked", "chart-candlestick", "chart-column", "chart-column-big", "chart-column-decreasing", "chart-column-increasing", "chart-column-stacked", "chart-gantt", "chart-line", "chart-network", "chart-no-axes-column", "chart-no-axes-column-decreasing", "chart-no-axes-column-increasing", "chart-no-axes-combined", "chart-no-axes-gantt", "chart-pie", "chart-scatter", "chart-spline", "check", "check-check", "check-circle", "check-circle-2", "check-square", "check-square-2", "chef-hat", "cherry", "chevron-down", "chevron-down-circle", "chevron-down-square", "chevron-first", "chevron-last", "chevron-left", "chevron-left-circle", "chevron-left-square", "chevron-right", "chevron-right-circle", "chevron-right-square", "chevron-up", "chevron-up-circle", "chevron-up-square", "chevrons-down", "chevrons-down-up", "chevrons-left", "chevrons-left-right", "chevrons-left-right-ellipsis", "chevrons-right", "chevrons-right-left", "chevrons-up", "chevrons-up-down", "chrome", "church", "cigarette", "cigarette-off", "circle", "circle-alert", "circle-arrow-down", "circle-arrow-left", "circle-arrow-out-down-left", "circle-arrow-out-down-right", "circle-arrow-out-up-left", "circle-arrow-out-up-right", "circle-arrow-right", "circle-arrow-up", "circle-check", "circle-check-big", "circle-chevron-down", "circle-chevron-left", "circle-chevron-right", "circle-chevron-up", "circle-dashed", "circle-divide", "circle-dollar-sign", "circle-dot", "circle-dot-dashed", "circle-ellipsis", "circle-equal", "circle-fading-arrow-up", "circle-fading-plus", "circle-gauge", "circle-help", "circle-minus", "circle-off", "circle-parking", "circle-parking-off", "circle-pause", "circle-percent", "circle-play", "circle-plus", "circle-power", "circle-slash", "circle-slash-2", "circle-slashed", "circle-small", "circle-stop", "circle-user", "circle-user-round", "circle-x", "circuit-board", "citrus", "clapperboard", "clipboard", "clipboard-check", "clipboard-copy", "clipboard-edit", "clipboard-list", "clipboard-minus", "clipboard-paste", "clipboard-pen", "clipboard-pen-line", "clipboard-plus", "clipboard-signature", "clipboard-type", "clipboard-x", "clock", "clock-1", "clock-10", "clock-11", "clock-12", "clock-2", "clock-3", "clock-4", "clock-5", "clock-6", "clock-7", "clock-8", "clock-9", "clock-alert", "clock-arrow-down", "clock-arrow-up", "clock-fading", "cloud", "cloud-alert", "cloud-cog", "cloud-download", "cloud-drizzle", "cloud-fog", "cloud-hail", "cloud-lightning", "cloud-moon", "cloud-moon-rain", "cloud-off", "cloud-rain", "cloud-rain-wind", "cloud-snow", "cloud-sun", "cloud-sun-rain", "cloud-upload", "cloudy", "clover", "club", "code", "code-2", "code-square", "code-xml", "codepen", "codesandbox", "coffee", "cog", "coins", "columns", "columns-2", "columns-3", "columns-4", "combine", "command", "compass", "component", "computer", "concierge-bell", "cone", "construction", "contact", "contact-2", "contact-round", "container", "contrast", "cookie", "cooking-pot", "copy", "copy-check", "copy-minus", "copy-plus", "copy-slash", "copy-x", "copyleft", "copyright", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "cpu", "creative-commons", "credit-card", "croissant", "crop", "cross", "crosshair", "crown", "cuboid", "cup-soda", "curly-braces", "currency", "cylinder", "dam", "database", "database-backup", "database-zap", "delete", "dessert", "diameter", "diamond", "diamond-minus", "diamond-percent", "diamond-plus", "dice-1", "dice-2", "dice-3", "dice-4", "dice-5", "dice-6", "dices", "diff", "disc", "disc-2", "disc-3", "disc-album", "divide", "divide-circle", "divide-square", "dna", "dna-off", "dock", "dog", "dollar-sign", "donut", "door-closed", "door-open", "dot", "dot-square", "download", "download-cloud", "drafting-compass", "drama", "dribbble", "drill", "droplet", "droplet-off", "droplets", "drum", "drumstick", "dumbbell", "ear", "ear-off", "earth", "earth-lock", "eclipse", "edit", "edit-2", "edit-3", "egg", "egg-fried", "egg-off", "ellipsis", "ellipsis-vertical", "equal", "equal-approximately", "equal-not", "equal-square", "eraser", "ethernet-port", "euro", "expand", "external-link", "eye", "eye-closed", "eye-off", "facebook", "factory", "fan", "fast-forward", "feather", "fence", "ferris-wheel", "figma", "file", "file-archive", "file-audio", "file-audio-2", "file-axis-3-d", "file-axis-3d", "file-badge", "file-badge-2", "file-bar-chart", "file-bar-chart-2", "file-box", "file-chart-column", "file-chart-column-increasing", "file-chart-line", "file-chart-pie", "file-check", "file-check-2", "file-clock", "file-code", "file-code-2", "file-cog", "file-cog-2", "file-diff", "file-digit", "file-down", "file-edit", "file-heart", "file-image", "file-input", "file-json", "file-json-2", "file-key", "file-key-2", "file-line-chart", "file-lock", "file-lock-2", "file-minus", "file-minus-2", "file-music", "file-output", "file-pen", "file-pen-line", "file-pie-chart", "file-plus", "file-plus-2", "file-question", "file-scan", "file-search", "file-search-2", "file-signature", "file-sliders", "file-spreadsheet", "file-stack", "file-symlink", "file-terminal", "file-text", "file-type", "file-type-2", "file-up", "file-user", "file-video", "file-video-2", "file-volume", "file-volume-2", "file-warning", "file-x", "file-x-2", "files", "film", "filter", "filter-x", "fingerprint", "fire-extinguisher", "fish", "fish-off", "fish-symbol", "flag", "flag-off", "flag-triangle-left", "flag-triangle-right", "flame", "flame-kindling", "flashlight", "flashlight-off", "flask-conical", "flask-conical-off", "flask-round", "flip-horizontal", "flip-horizontal-2", "flip-vertical", "flip-vertical-2", "flower", "flower-2", "focus", "fold-horizontal", "fold-vertical", "folder", "folder-archive", "folder-check", "folder-clock", "folder-closed", "folder-code", "folder-cog", "folder-cog-2", "folder-dot", "folder-down", "folder-edit", "folder-git", "folder-git-2", "folder-heart", "folder-input", "folder-kanban", "folder-key", "folder-lock", "folder-minus", "folder-open", "folder-open-dot", "folder-output", "folder-pen", "folder-plus", "folder-root", "folder-search", "folder-search-2", "folder-symlink", "folder-sync", "folder-tree", "folder-up", "folder-x", "folders", "footprints", "fork-knife", "fork-knife-crossed", "forklift", "form-input", "forward", "frame", "framer", "frown", "fuel", "fullscreen", "function-square", "funnel", "funnel-plus", "funnel-x", "gallery-horizontal", "gallery-horizontal-end", "gallery-thumbnails", "gallery-vertical", "gallery-vertical-end", "gamepad", "gamepad-2", "gantt-chart", "gantt-chart-square", "gauge", "gauge-circle", "gavel", "gem", "ghost", "gift", "git-branch", "git-branch-plus", "git-commit", "git-commit-horizontal", "git-commit-vertical", "git-compare", "git-compare-arrows", "git-fork", "git-graph", "git-merge", "git-pull-request", "git-pull-request-arrow", "git-pull-request-closed", "git-pull-request-create", "git-pull-request-create-arrow", "git-pull-request-draft", "github", "gitlab", "glass-water", "glasses", "globe", "globe-2", "globe-lock", "goal", "grab", "graduation-cap", "grape", "grid", "grid-2-x-2", "grid-2-x-2-check", "grid-2-x-2-plus", "grid-2-x-2-x", "grid-2x2", "grid-2x2-check", "grid-2x2-plus", "grid-2x2-x", "grid-3-x-3", "grid-3x3", "grip", "grip-horizontal", "grip-vertical", "group", "guitar", "ham", "hammer", "hand", "hand-coins", "hand-heart", "hand-helping", "hand-metal", "hand-platter", "handshake", "hard-drive", "hard-drive-download", "hard-drive-upload", "hard-hat", "hash", "haze", "hdmi-port", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "headphone-off", "headphones", "headset", "heart", "heart-crack", "heart-handshake", "heart-off", "heart-pulse", "heater", "help-circle", "helping-hand", "hexagon", "highlighter", "history", "home", "hop", "hop-off", "hospital", "hotel", "hourglass", "house", "house-plug", "house-plus", "house-wifi", "ice-cream", "ice-cream-2", "ice-cream-bowl", "ice-cream-cone", "id-card", "image", "image-down", "image-minus", "image-off", "image-play", "image-plus", "image-up", "image-upscale", "images", "import", "inbox", "indent", "indent-decrease", "indent-increase", "indian-rupee", "infinity", "info", "inspect", "inspection-panel", "instagram", "italic", "iteration-ccw", "iteration-cw", "japanese-yen", "joystick", "kanban", "kanban-square", "kanban-square-dashed", "key", "key-round", "key-square", "keyboard", "keyboard-music", "keyboard-off", "lamp", "lamp-ceiling", "lamp-desk", "lamp-floor", "lamp-wall-down", "lamp-wall-up", "land-plot", "landmark", "languages", "laptop", "laptop-2", "laptop-minimal", "laptop-minimal-check", "lasso", "lasso-select", "laugh", "layers", "layers-2", "layers-3", "layout", "layout-dashboard", "layout-grid", "layout-list", "layout-panel-left", "layout-panel-top", "layout-template", "leaf", "leafy-green", "lectern", "letter-text", "library", "library-big", "library-square", "life-buoy", "ligature", "lightbulb", "lightbulb-off", "line-chart", "link", "link-2", "link-2-off", "linkedin", "list", "list-check", "list-checks", "list-collapse", "list-end", "list-filter", "list-filter-plus", "list-minus", "list-music", "list-ordered", "list-plus", "list-restart", "list-start", "list-todo", "list-tree", "list-video", "list-x", "loader", "loader-2", "loader-circle", "loader-pinwheel", "locate", "locate-fixed", "locate-off", "lock", "lock-keyhole", "lock-keyhole-open", "lock-open", "log-in", "log-out", "logs", "lollipop", "luggage", "m-square", "magnet", "mail", "mail-check", "mail-minus", "mail-open", "mail-plus", "mail-question", "mail-search", "mail-warning", "mail-x", "mailbox", "mails", "map", "map-pin", "map-pin-check", "map-pin-check-inside", "map-pin-house", "map-pin-minus", "map-pin-minus-inside", "map-pin-off", "map-pin-plus", "map-pin-plus-inside", "map-pin-x", "map-pin-x-inside", "map-pinned", "map-plus", "mars", "mars-stroke", "martini", "maximize", "maximize-2", "medal", "megaphone", "megaphone-off", "meh", "memory-stick", "menu", "menu-square", "merge", "message-circle", "message-circle-code", "message-circle-dashed", "message-circle-heart", "message-circle-more", "message-circle-off", "message-circle-plus", "message-circle-question", "message-circle-reply", "message-circle-warning", "message-circle-x", "message-square", "message-square-code", "message-square-dashed", "message-square-diff", "message-square-dot", "message-square-heart", "message-square-lock", "message-square-more", "message-square-off", "message-square-plus", "message-square-quote", "message-square-reply", "message-square-share", "message-square-text", "message-square-warning", "message-square-x", "messages-square", "mic", "mic-2", "mic-off", "mic-vocal", "microchip", "microscope", "microwave", "milestone", "milk", "milk-off", "minimize", "minimize-2", "minus", "minus-circle", "minus-square", "monitor", "monitor-check", "monitor-cog", "monitor-dot", "monitor-down", "monitor-off", "monitor-pause", "monitor-play", "monitor-smartphone", "monitor-speaker", "monitor-stop", "monitor-up", "monitor-x", "moon", "moon-star", "more-horizontal", "more-vertical", "mountain", "mountain-snow", "mouse", "mouse-off", "mouse-pointer", "mouse-pointer-2", "mouse-pointer-ban", "mouse-pointer-click", "mouse-pointer-square-dashed", "move", "move-3-d", "move-3d", "move-diagonal", "move-diagonal-2", "move-down", "move-down-left", "move-down-right", "move-horizontal", "move-left", "move-right", "move-up", "move-up-left", "move-up-right", "move-vertical", "music", "music-2", "music-3", "music-4", "navigation", "navigation-2", "navigation-2-off", "navigation-off", "network", "newspaper", "nfc", "non-binary", "notebook", "notebook-pen", "notebook-tabs", "notebook-text", "notepad-text", "notepad-text-dashed", "nut", "nut-off", "octagon", "octagon-alert", "octagon-minus", "octagon-pause", "octagon-x", "omega", "option", "orbit", "origami", "outdent", "package", "package-2", "package-check", "package-minus", "package-open", "package-plus", "package-search", "package-x", "paint-bucket", "paint-roller", "paintbrush", "paintbrush-2", "paintbrush-vertical", "palette", "palmtree", "panel-bottom", "panel-bottom-close", "panel-bottom-dashed", "panel-bottom-inactive", "panel-bottom-open", "panel-left", "panel-left-close", "panel-left-dashed", "panel-left-inactive", "panel-left-open", "panel-right", "panel-right-close", "panel-right-dashed", "panel-right-inactive", "panel-right-open", "panel-top", "panel-top-close", "panel-top-dashed", "panel-top-inactive", "panel-top-open", "panels-left-bottom", "panels-left-right", "panels-right-bottom", "panels-top-bottom", "panels-top-left", "paperclip", "parentheses", "parking-circle", "parking-circle-off", "parking-meter", "parking-square", "parking-square-off", "party-popper", "pause", "pause-circle", "pause-octagon", "paw-print", "pc-case", "pen", "pen-box", "pen-line", "pen-off", "pen-square", "pen-tool", "pencil", "pencil-line", "pencil-off", "pencil-ruler", "pentagon", "percent", "percent-circle", "percent-diamond", "percent-square", "person-standing", "philippine-peso", "phone", "phone-call", "phone-forwarded", "phone-incoming", "phone-missed", "phone-off", "phone-outgoing", "pi", "pi-square", "piano", "pickaxe", "picture-in-picture", "picture-in-picture-2", "pie-chart", "piggy-bank", "pilcrow", "pilcrow-left", "pilcrow-right", "pilcrow-square", "pill", "pill-bottle", "pin", "pin-off", "pipette", "pizza", "plane", "plane-landing", "plane-takeoff", "play", "play-circle", "play-square", "plug", "plug-2", "plug-zap", "plug-zap-2", "plus", "plus-circle", "plus-square", "pocket", "pocket-knife", "podcast", "pointer", "pointer-off", "popcorn", "popsicle", "pound-sterling", "power", "power-circle", "power-off", "power-square", "presentation", "printer", "printer-check", "projector", "proportions", "puzzle", "pyramid", "qr-code", "quote", "rabbit", "radar", "radiation", "radical", "radio", "radio-receiver", "radio-tower", "radius", "rail-symbol", "rainbow", "rat", "ratio", "receipt", "receipt-cent", "receipt-euro", "receipt-indian-rupee", "receipt-japanese-yen", "receipt-pound-sterling", "receipt-russian-ruble", "receipt-swiss-franc", "receipt-text", "rectangle-ellipsis", "rectangle-horizontal", "rectangle-vertical", "recycle", "redo", "redo-2", "redo-dot", "refresh-ccw", "refresh-ccw-dot", "refresh-cw", "refresh-cw-off", "refrigerator", "regex", "remove-formatting", "repeat", "repeat-1", "repeat-2", "replace", "replace-all", "reply", "reply-all", "rewind", "ribbon", "rocket", "rocking-chair", "roller-coaster", "rotate-3-d", "rotate-3d", "rotate-ccw", "rotate-ccw-square", "rotate-cw", "rotate-cw-square", "route", "route-off", "router", "rows", "rows-2", "rows-3", "rows-4", "rss", "ruler", "russian-ruble", "sailboat", "salad", "sandwich", "satellite", "satellite-dish", "saudi-riyal", "save", "save-all", "save-off", "scale", "scale-3-d", "scale-3d", "scaling", "scan", "scan-barcode", "scan-eye", "scan-face", "scan-heart", "scan-line", "scan-qr-code", "scan-search", "scan-text", "scatter-chart", "school", "school-2", "scissors", "scissors-line-dashed", "scissors-square", "scissors-square-dashed-bottom", "screen-share", "screen-share-off", "scroll", "scroll-text", "search", "search-check", "search-code", "search-slash", "search-x", "section", "send", "send-horizonal", "send-horizontal", "send-to-back", "separator-horizontal", "separator-vertical", "server", "server-cog", "server-crash", "server-off", "settings", "settings-2", "shapes", "share", "share-2", "sheet", "shell", "shield", "shield-alert", "shield-ban", "shield-check", "shield-close", "shield-ellipsis", "shield-half", "shield-minus", "shield-off", "shield-plus", "shield-question", "shield-user", "shield-x", "ship", "ship-wheel", "shirt", "shopping-bag", "shopping-basket", "shopping-cart", "shovel", "shower-head", "shrimp", "shrink", "shrub", "shuffle", "sidebar", "sidebar-close", "sidebar-open", "sigma", "sigma-square", "signal", "signal-high", "signal-low", "signal-medium", "signal-zero", "signature", "signpost", "signpost-big", "siren", "skip-back", "skip-forward", "skull", "slack", "slash", "slash-square", "slice", "sliders", "sliders-horizontal", "sliders-vertical", "smartphone", "smartphone-charging", "smartphone-nfc", "smile", "smile-plus", "snail", "snowflake", "sofa", "sort-asc", "sort-desc", "soup", "space", "spade", "sparkle", "sparkles", "speaker", "speech", "spell-check", "spell-check-2", "spline", "spline-pointer", "split", "split-square-horizontal", "split-square-vertical", "spray-can", "sprout", "square", "square-activity", "square-arrow-down", "square-arrow-down-left", "square-arrow-down-right", "square-arrow-left", "square-arrow-out-down-left", "square-arrow-out-down-right", "square-arrow-out-up-left", "square-arrow-out-up-right", "square-arrow-right", "square-arrow-up", "square-arrow-up-left", "square-arrow-up-right", "square-asterisk", "square-bottom-dashed-scissors", "square-chart-gantt", "square-check", "square-check-big", "square-chevron-down", "square-chevron-left", "square-chevron-right", "square-chevron-up", "square-code", "square-dashed", "square-dashed-bottom", "square-dashed-bottom-code", "square-dashed-kanban", "square-dashed-mouse-pointer", "square-divide", "square-dot", "square-equal", "square-function", "square-gantt-chart", "square-kanban", "square-library", "square-m", "square-menu", "square-minus", "square-mouse-pointer", "square-parking", "square-parking-off", "square-pen", "square-percent", "square-pi", "square-pilcrow", "square-play", "square-plus", "square-power", "square-radical", "square-round-corner", "square-scissors", "square-sigma", "square-slash", "square-split-horizontal", "square-split-vertical", "square-square", "square-stack", "square-terminal", "square-user", "square-user-round", "square-x", "squircle", "squirrel", "stamp", "star", "star-half", "star-off", "stars", "step-back", "step-forward", "stethoscope", "sticker", "sticky-note", "stop-circle", "store", "stretch-horizontal", "stretch-vertical", "strikethrough", "subscript", "subtitles", "sun", "sun-dim", "sun-medium", "sun-moon", "sun-snow", "sunrise", "sunset", "superscript", "swatch-book", "swiss-franc", "switch-camera", "sword", "swords", "syringe", "table", "table-2", "table-cells-merge", "table-cells-split", "table-columns-split", "table-of-contents", "table-properties", "table-rows-split", "tablet", "tablet-smartphone", "tablets", "tag", "tags", "tally-1", "tally-2", "tally-3", "tally-4", "tally-5", "tangent", "target", "telescope", "tent", "tent-tree", "terminal", "terminal-square", "test-tube", "test-tube-2", "test-tube-diagonal", "test-tubes", "text", "text-cursor", "text-cursor-input", "text-quote", "text-search", "text-select", "text-selection", "theater", "thermometer", "thermometer-snowflake", "thermometer-sun", "thumbs-down", "thumbs-up", "ticket", "ticket-check", "ticket-minus", "ticket-percent", "ticket-plus", "ticket-slash", "ticket-x", "tickets", "tickets-plane", "timer", "timer-off", "timer-reset", "toggle-left", "toggle-right", "toilet", "tornado", "torus", "touchpad", "touchpad-off", "tower-control", "toy-brick", "tractor", "traffic-cone", "train", "train-front", "train-front-tunnel", "train-track", "tram-front", "transgender", "trash", "trash-2", "tree-deciduous", "tree-palm", "tree-pine", "trees", "trello", "trending-down", "trending-up", "trending-up-down", "triangle", "triangle-alert", "triangle-dashed", "triangle-right", "trophy", "truck", "turtle", "tv", "tv-2", "tv-minimal", "tv-minimal-play", "twitch", "twitter", "type", "type-outline", "umbrella", "umbrella-off", "underline", "undo", "undo-2", "undo-dot", "unfold-horizontal", "unfold-vertical", "ungroup", "university", "unlink", "unlink-2", "unlock", "unlock-keyhole", "unplug", "upload", "upload-cloud", "usb", "user", "user-2", "user-check", "user-check-2", "user-circle", "user-circle-2", "user-cog", "user-cog-2", "user-minus", "user-minus-2", "user-pen", "user-plus", "user-plus-2", "user-round", "user-round-check", "user-round-cog", "user-round-minus", "user-round-pen", "user-round-plus", "user-round-search", "user-round-x", "user-search", "user-square", "user-square-2", "user-x", "user-x-2", "users", "users-2", "users-round", "utensils", "utensils-crossed", "utility-pole", "variable", "vault", "vegan", "venetian-mask", "venus", "venus-and-mars", "verified", "vibrate", "vibrate-off", "video", "video-off", "videotape", "view", "voicemail", "volleyball", "volume", "volume-1", "volume-2", "volume-off", "volume-x", "vote", "wallet", "wallet-2", "wallet-cards", "wallet-minimal", "wallpaper", "wand", "wand-2", "wand-sparkles", "warehouse", "washing-machine", "watch", "waves", "waves-ladder", "waypoints", "webcam", "webhook", "webhook-off", "weight", "wheat", "wheat-off", "whole-word", "wifi", "wifi-high", "wifi-low", "wifi-off", "wifi-zero", "wind", "wind-arrow-down", "wine", "wine-off", "workflow", "worm", "wrap-text", "wrench", "x", "x-circle", "x-octagon", "x-square", "youtube", "zap", "zap-off", "zoom-in", "zoom-out"];
2
+ export type IconNames = (typeof IconNames)[number];