@speakeasy-api/moonshine 1.33.4 → 2.0.0-alpha.2

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 (330) hide show
  1. package/README.md +26 -10
  2. package/package.json +12 -23
  3. package/scripts/generate-utility-docs.js +324 -0
  4. package/src/assets/icons/external/github.svg +3 -0
  5. package/src/assets/icons/external/maven.svg +152 -0
  6. package/src/assets/icons/external/npm.svg +4 -0
  7. package/src/assets/icons/external/nuget.svg +5 -0
  8. package/src/assets/icons/external/packagist.svg +1 -0
  9. package/src/assets/icons/external/pypi.svg +182 -0
  10. package/src/assets/icons/external/rubygems.svg +14 -0
  11. package/src/assets/icons/external/terraform.svg +1 -0
  12. package/src/assets/icons/languages/csharp.svg +1 -0
  13. package/src/assets/icons/languages/go.svg +1 -0
  14. package/src/assets/icons/languages/java.svg +1 -0
  15. package/src/assets/icons/languages/json.svg +2 -0
  16. package/src/assets/icons/languages/php.svg +1 -0
  17. package/src/assets/icons/languages/postman.svg +3 -0
  18. package/src/assets/icons/languages/python.svg +1 -0
  19. package/src/assets/icons/languages/ruby.svg +1 -0
  20. package/src/assets/icons/languages/swift.svg +1 -0
  21. package/src/assets/icons/languages/terraform.svg +1 -0
  22. package/src/assets/icons/languages/typescript.svg +1 -0
  23. package/src/assets/icons/languages/unity.svg +1 -0
  24. package/src/components/AIChat/AIChatContainer.tsx +71 -0
  25. package/src/components/AIChat/AIChatMessage.tsx +135 -0
  26. package/src/components/AIChat/AIChatMessageComposer.tsx +175 -0
  27. package/src/components/AIChat/AIChatMessageList.tsx +34 -0
  28. package/src/components/AIChat/AIChatModelSelector.tsx +159 -0
  29. package/src/components/AIChat/componentsTypes.ts +36 -0
  30. package/src/components/AIChat/context.ts +15 -0
  31. package/src/components/AIChat/index.ts +12 -0
  32. package/src/components/AIChat/parts/AIChatMessageFilePart.tsx +129 -0
  33. package/src/components/AIChat/parts/AIChatMessageReasoningPart.tsx +23 -0
  34. package/src/components/AIChat/parts/AIChatMessageSourcePart.tsx +58 -0
  35. package/src/components/AIChat/parts/AIChatMessageTextPart.tsx +33 -0
  36. package/src/components/AIChat/parts/AIChatMessageToolInvocationPart.tsx +53 -0
  37. package/src/components/AIChat/parts/AIChatMessageToolPart.tsx +395 -0
  38. package/src/components/AIChat/parts/AIChatMessageToolResultPart.tsx +46 -0
  39. package/src/components/AIChat/toolCallApproval.ts +61 -0
  40. package/src/components/AIChat/types.ts +97 -0
  41. package/src/components/ActionBar/index.tsx +184 -0
  42. package/src/components/Alert/index.tsx +118 -0
  43. package/src/components/Alert/types.ts +12 -0
  44. package/src/components/AppLayout/context.tsx +31 -0
  45. package/src/components/AppLayout/index.tsx +550 -0
  46. package/src/components/AppLayout/provider.tsx +40 -0
  47. package/src/components/AppLayout/useAppLayoutKeys.ts +26 -0
  48. package/src/components/Badge/index.tsx +227 -0
  49. package/src/components/Button/index.tsx +531 -0
  50. package/src/components/Card/index.tsx +193 -0
  51. package/src/components/CodeEditorLayout/index.tsx +394 -0
  52. package/src/components/CodeEditorLayout/styles.module.css +8 -0
  53. package/src/components/CodeHighlight/Pre.tsx +63 -0
  54. package/src/components/CodePlayground/index.tsx +411 -0
  55. package/src/components/CodeSnippet/codeSnippet.css +97 -0
  56. package/src/components/CodeSnippet/index.tsx +224 -0
  57. package/src/components/Combobox/index.tsx +193 -0
  58. package/src/components/Command/index.tsx +152 -0
  59. package/src/components/Container/index.tsx +31 -0
  60. package/src/components/ContextDropdown/index.tsx +150 -0
  61. package/src/components/Dialog/index.tsx +123 -0
  62. package/src/components/DragNDrop/DragNDropArea.tsx +30 -0
  63. package/src/components/DragNDrop/DragOverlay.tsx +4 -0
  64. package/src/components/DragNDrop/Draggable.tsx +97 -0
  65. package/src/components/DragNDrop/Droppable.tsx +51 -0
  66. package/src/components/Dropdown/index.tsx +201 -0
  67. package/src/components/ExternalPill/index.tsx +58 -0
  68. package/src/components/Facepile/index.tsx +309 -0
  69. package/src/components/GradientCircle/gradientCircle.css +34 -0
  70. package/src/components/GradientCircle/index.tsx +143 -0
  71. package/src/components/Grid/index.tsx +150 -0
  72. package/src/components/Heading/index.tsx +54 -0
  73. package/src/components/HighlightedText/index.tsx +152 -0
  74. package/src/components/Icon/customIcons/createCustomLucideIcon.ts +25 -0
  75. package/src/components/Icon/customIcons/gems.ts +26 -0
  76. package/{dist/go-DsW1bFpz.mjs → src/components/Icon/customIcons/go.ts} +21 -19
  77. package/src/components/Icon/customIcons/index.ts +11 -0
  78. package/{dist/maven-Dub5liK1.mjs → src/components/Icon/customIcons/maven.ts} +17 -15
  79. package/src/components/Icon/customIcons/npm.ts +19 -0
  80. package/{dist/nuget-D86y5HDl.mjs → src/components/Icon/customIcons/nuget.ts} +17 -15
  81. package/src/components/Icon/customIcons/packagist.ts +124 -0
  82. package/{dist/pypi-2SUX-2OR.mjs → src/components/Icon/customIcons/pypi.ts} +16 -14
  83. package/src/components/Icon/index.tsx +83 -0
  84. package/src/components/Icon/isIconName.ts +10 -0
  85. package/src/components/Icon/names.ts +14 -0
  86. package/src/components/IconButton/index.tsx +51 -0
  87. package/src/components/Input/index.tsx +98 -0
  88. package/src/components/KeyHint/index.tsx +118 -0
  89. package/src/components/LanguageIndicator/index.tsx +68 -0
  90. package/src/components/Link/index.tsx +153 -0
  91. package/src/components/LoggedInUserMenu/index.tsx +116 -0
  92. package/src/components/Logo/Animated.tsx +191 -0
  93. package/src/components/Logo/index.tsx +17 -0
  94. package/src/components/Logo/speakeasy-logo.riv +0 -0
  95. package/src/components/Logo/svgs/index.tsx +126 -0
  96. package/src/components/Modal/index.tsx +104 -0
  97. package/src/components/PageHeader/index.tsx +227 -0
  98. package/src/components/PageHeader/styles.module.css +27 -0
  99. package/src/components/Popover/index.tsx +35 -0
  100. package/src/components/PromptInput/index.tsx +372 -0
  101. package/src/components/PullRequestLink/index.tsx +64 -0
  102. package/src/components/ResizablePanel/index.tsx +119 -0
  103. package/src/components/Score/index.module.css +32 -0
  104. package/src/components/Score/index.tsx +268 -0
  105. package/src/components/ScrollArea/index.tsx +48 -0
  106. package/src/components/SegmentedButton/index.module.css +19 -0
  107. package/src/components/SegmentedButton/index.tsx +101 -0
  108. package/src/components/Select/index.tsx +159 -0
  109. package/src/components/Separator/index.tsx +23 -0
  110. package/src/components/Skeleton/index.tsx +61 -0
  111. package/src/components/Skeleton/skeleton.css +52 -0
  112. package/src/components/Stack/index.tsx +137 -0
  113. package/src/components/Subnav/index.tsx +315 -0
  114. package/src/components/Switch/index.tsx +29 -0
  115. package/src/components/Table/context/context.tsx +19 -0
  116. package/src/components/Table/context/tableProvider.tsx +39 -0
  117. package/src/components/Table/index.tsx +707 -0
  118. package/src/components/Table/styles.module.css +25 -0
  119. package/src/components/Tabs/index.tsx +87 -0
  120. package/src/components/TargetLanguageIcon/index.tsx +84 -0
  121. package/src/components/Text/index.tsx +59 -0
  122. package/src/components/ThemeSwitcher/index.tsx +118 -0
  123. package/src/components/Timeline/index.tsx +290 -0
  124. package/src/components/Tooltip/index.tsx +41 -0
  125. package/src/components/UserAvatar/index.tsx +87 -0
  126. package/src/components/UserAvatar/sizeMap.ts +12 -0
  127. package/src/components/Wizard/index.tsx +208 -0
  128. package/src/components/Wizard/types.ts +17 -0
  129. package/src/components/WorkspaceSelector/CreateOrg.tsx +95 -0
  130. package/src/components/WorkspaceSelector/CreateWorkspace.tsx +196 -0
  131. package/src/components/WorkspaceSelector/OrgList.tsx +115 -0
  132. package/src/components/WorkspaceSelector/OrgSelector.tsx +207 -0
  133. package/src/components/WorkspaceSelector/RecentWorkspaces.tsx +83 -0
  134. package/src/components/WorkspaceSelector/ScrollingList.tsx +84 -0
  135. package/src/components/WorkspaceSelector/SearchBox.tsx +40 -0
  136. package/src/components/WorkspaceSelector/WorkspaceItem.tsx +37 -0
  137. package/src/components/WorkspaceSelector/WorkspaceList.tsx +107 -0
  138. package/src/components/WorkspaceSelector/index.tsx +400 -0
  139. package/src/components/WorkspaceSelector/styles.css +74 -0
  140. package/src/components/__beta__/CLIWizard/index.tsx +357 -0
  141. package/src/components/__beta__/CLIWizard/terminal-command.tsx +108 -0
  142. package/src/components/__beta__/CLIWizard/terminal.tsx +83 -0
  143. package/src/components/__beta__/README.md +3 -0
  144. package/src/components/index.mdx +38 -0
  145. package/src/context/ConfigContext.tsx +43 -0
  146. package/src/context/ModalContext.tsx +118 -0
  147. package/src/context/theme.ts +1 -0
  148. package/src/hooks/useAppLayout.ts +10 -0
  149. package/src/hooks/useConfig.ts +10 -0
  150. package/src/hooks/useIsMounted.ts +13 -0
  151. package/src/hooks/useModal.tsx +10 -0
  152. package/src/hooks/useTailwindBreakpoint.ts +47 -0
  153. package/src/hooks/useTheme.ts +13 -0
  154. package/src/index.ts +234 -0
  155. package/src/lib/assert.ts +9 -0
  156. package/src/lib/codeUtils.ts +177 -0
  157. package/src/lib/debounce.ts +9 -0
  158. package/src/lib/responsiveMappers.ts +69 -0
  159. package/src/lib/responsiveUtils.ts +23 -0
  160. package/src/lib/storybookUtils.tsx +26 -0
  161. package/src/lib/typeUtils.ts +109 -0
  162. package/src/lib/utils.ts +85 -0
  163. package/src/styles/codeSyntax.css +59 -0
  164. package/src/styles/globals.css +51 -0
  165. package/src/types.ts +200 -0
  166. package/src/vite-env.d.ts +6 -0
  167. package/types/utilities.d.ts +1 -1
  168. package/dist/components/AIChat/AIChatContainer.d.ts +0 -26
  169. package/dist/components/AIChat/AIChatMessage.d.ts +0 -19
  170. package/dist/components/AIChat/AIChatMessageComposer.d.ts +0 -22
  171. package/dist/components/AIChat/AIChatMessageList.d.ts +0 -6
  172. package/dist/components/AIChat/AIChatModelSelector.d.ts +0 -14
  173. package/dist/components/AIChat/componentsTypes.d.ts +0 -11
  174. package/dist/components/AIChat/context.d.ts +0 -3
  175. package/dist/components/AIChat/index.d.ts +0 -12
  176. package/dist/components/AIChat/parts/AIChatMessageFilePart.d.ts +0 -7
  177. package/dist/components/AIChat/parts/AIChatMessageReasoningPart.d.ts +0 -5
  178. package/dist/components/AIChat/parts/AIChatMessageSourcePart.d.ts +0 -9
  179. package/dist/components/AIChat/parts/AIChatMessageTextPart.d.ts +0 -5
  180. package/dist/components/AIChat/parts/AIChatMessageToolInvocationPart.d.ts +0 -6
  181. package/dist/components/AIChat/parts/AIChatMessageToolPart.d.ts +0 -33
  182. package/dist/components/AIChat/parts/AIChatMessageToolResultPart.d.ts +0 -5
  183. package/dist/components/AIChat/toolCallApproval.d.ts +0 -15
  184. package/dist/components/AIChat/types.d.ts +0 -79
  185. package/dist/components/ActionBar/index.d.ts +0 -36
  186. package/dist/components/Alert/index.d.ts +0 -18
  187. package/dist/components/Alert/types.d.ts +0 -4
  188. package/dist/components/AppLayout/context.d.ts +0 -16
  189. package/dist/components/AppLayout/index.d.ts +0 -131
  190. package/dist/components/AppLayout/provider.d.ts +0 -8
  191. package/dist/components/AppLayout/useAppLayoutKeys.d.ts +0 -1
  192. package/dist/components/Badge/index.d.ts +0 -21
  193. package/dist/components/Button/index.d.ts +0 -22
  194. package/dist/components/Card/index.d.ts +0 -47
  195. package/dist/components/CodeEditorLayout/index.d.ts +0 -101
  196. package/dist/components/CodeHighlight/Pre.d.ts +0 -8
  197. package/dist/components/CodePlayground/index.d.ts +0 -102
  198. package/dist/components/CodeSnippet/index.d.ts +0 -49
  199. package/dist/components/Combobox/index.d.ts +0 -35
  200. package/dist/components/Command/index.d.ts +0 -80
  201. package/dist/components/Container/index.d.ts +0 -9
  202. package/dist/components/ContextDropdown/index.d.ts +0 -7
  203. package/dist/components/Dialog/index.d.ts +0 -21
  204. package/dist/components/DragNDrop/DragNDropArea.d.ts +0 -8
  205. package/dist/components/DragNDrop/DragOverlay.d.ts +0 -1
  206. package/dist/components/DragNDrop/Draggable.d.ts +0 -29
  207. package/dist/components/DragNDrop/Droppable.d.ts +0 -28
  208. package/dist/components/Dropdown/index.d.ts +0 -27
  209. package/dist/components/ExternalPill/index.d.ts +0 -12
  210. package/dist/components/Facepile/index.d.ts +0 -16
  211. package/dist/components/GradientCircle/index.d.ts +0 -10
  212. package/dist/components/Grid/index.d.ts +0 -80
  213. package/dist/components/Heading/index.d.ts +0 -12
  214. package/dist/components/HighlightedText/index.d.ts +0 -19
  215. package/dist/components/Icon/customIcons/createCustomLucideIcon.d.ts +0 -3
  216. package/dist/components/Icon/customIcons/gems.d.ts +0 -2
  217. package/dist/components/Icon/customIcons/go.d.ts +0 -2
  218. package/dist/components/Icon/customIcons/index.d.ts +0 -10
  219. package/dist/components/Icon/customIcons/maven.d.ts +0 -2
  220. package/dist/components/Icon/customIcons/npm.d.ts +0 -2
  221. package/dist/components/Icon/customIcons/nuget.d.ts +0 -2
  222. package/dist/components/Icon/customIcons/packagist.d.ts +0 -2
  223. package/dist/components/Icon/customIcons/pypi.d.ts +0 -2
  224. package/dist/components/Icon/index.d.ts +0 -10
  225. package/dist/components/Icon/isIconName.d.ts +0 -2
  226. package/dist/components/Icon/names.d.ts +0 -6
  227. package/dist/components/IconButton/index.d.ts +0 -14
  228. package/dist/components/Input/index.d.ts +0 -8
  229. package/dist/components/KeyHint/index.d.ts +0 -16
  230. package/dist/components/LanguageIndicator/index.d.ts +0 -7
  231. package/dist/components/Link/index.d.ts +0 -15
  232. package/dist/components/LoggedInUserMenu/index.d.ts +0 -17
  233. package/dist/components/Logo/Animated.d.ts +0 -7
  234. package/dist/components/Logo/index.d.ts +0 -7
  235. package/dist/components/Logo/svgs/index.d.ts +0 -6
  236. package/dist/components/Modal/index.d.ts +0 -8
  237. package/dist/components/PageHeader/index.d.ts +0 -45
  238. package/dist/components/Popover/index.d.ts +0 -8
  239. package/dist/components/PromptInput/index.d.ts +0 -55
  240. package/dist/components/PullRequestLink/index.d.ts +0 -10
  241. package/dist/components/ResizablePanel/index.d.ts +0 -26
  242. package/dist/components/Score/index.d.ts +0 -37
  243. package/dist/components/ScrollArea/index.d.ts +0 -5
  244. package/dist/components/SegmentedButton/index.d.ts +0 -23
  245. package/dist/components/Select/index.d.ts +0 -13
  246. package/dist/components/Separator/index.d.ts +0 -6
  247. package/dist/components/Skeleton/index.d.ts +0 -27
  248. package/dist/components/Stack/index.d.ts +0 -33
  249. package/dist/components/Subnav/index.d.ts +0 -12
  250. package/dist/components/Switch/index.d.ts +0 -4
  251. package/dist/components/Table/context/context.d.ts +0 -8
  252. package/dist/components/Table/context/tableProvider.d.ts +0 -6
  253. package/dist/components/Table/index.d.ts +0 -94
  254. package/dist/components/Tabs/index.d.ts +0 -21
  255. package/dist/components/TargetLanguageIcon/index.d.ts +0 -7
  256. package/dist/components/Text/index.d.ts +0 -19
  257. package/dist/components/ThemeSwitcher/index.d.ts +0 -6
  258. package/dist/components/Timeline/index.d.ts +0 -49
  259. package/dist/components/Tooltip/index.d.ts +0 -9
  260. package/dist/components/UserAvatar/index.d.ts +0 -9
  261. package/dist/components/UserAvatar/sizeMap.d.ts +0 -3
  262. package/dist/components/Wizard/index.d.ts +0 -19
  263. package/dist/components/Wizard/types.d.ts +0 -15
  264. package/dist/components/WorkspaceSelector/CreateOrg.d.ts +0 -6
  265. package/dist/components/WorkspaceSelector/CreateWorkspace.d.ts +0 -17
  266. package/dist/components/WorkspaceSelector/OrgList.d.ts +0 -12
  267. package/dist/components/WorkspaceSelector/OrgSelector.d.ts +0 -13
  268. package/dist/components/WorkspaceSelector/RecentWorkspaces.d.ts +0 -11
  269. package/dist/components/WorkspaceSelector/ScrollingList.d.ts +0 -21
  270. package/dist/components/WorkspaceSelector/SearchBox.d.ts +0 -9
  271. package/dist/components/WorkspaceSelector/WorkspaceItem.d.ts +0 -9
  272. package/dist/components/WorkspaceSelector/WorkspaceList.d.ts +0 -11
  273. package/dist/components/WorkspaceSelector/index.d.ts +0 -36
  274. package/dist/components/__beta__/CLIWizard/index.d.ts +0 -19
  275. package/dist/components/__beta__/CLIWizard/terminal-command.d.ts +0 -19
  276. package/dist/components/__beta__/CLIWizard/terminal.d.ts +0 -26
  277. package/dist/context/ConfigContext.d.ts +0 -18
  278. package/dist/context/ModalContext.d.ts +0 -22
  279. package/dist/context/theme.d.ts +0 -1
  280. package/dist/createCustomLucideIcon-CatlpFc0.mjs +0 -19
  281. package/dist/createCustomLucideIcon-CatlpFc0.mjs.map +0 -1
  282. package/dist/gems-DQ7pOLLr.mjs +0 -24
  283. package/dist/gems-DQ7pOLLr.mjs.map +0 -1
  284. package/dist/github-kgjMtfE7.mjs +0 -11
  285. package/dist/github-kgjMtfE7.mjs.map +0 -1
  286. package/dist/go-DsW1bFpz.mjs.map +0 -1
  287. package/dist/hooks/useAppLayout.d.ts +0 -1
  288. package/dist/hooks/useConfig.d.ts +0 -2
  289. package/dist/hooks/useIsMounted.d.ts +0 -1
  290. package/dist/hooks/useModal.d.ts +0 -11
  291. package/dist/hooks/useTailwindBreakpoint.d.ts +0 -3
  292. package/dist/hooks/useTheme.d.ts +0 -6
  293. package/dist/index-C9bJtuJ5.mjs +0 -16347
  294. package/dist/index-C9bJtuJ5.mjs.map +0 -1
  295. package/dist/index.d.ts +0 -80
  296. package/dist/lib/assert.d.ts +0 -2
  297. package/dist/lib/codeUtils.d.ts +0 -36
  298. package/dist/lib/debounce.d.ts +0 -1
  299. package/dist/lib/responsiveMappers.d.ts +0 -10
  300. package/dist/lib/responsiveUtils.d.ts +0 -3
  301. package/dist/lib/storybookUtils.d.ts +0 -5
  302. package/dist/lib/typeUtils.d.ts +0 -24
  303. package/dist/lib/utils.d.ts +0 -24
  304. package/dist/maven-Dub5liK1.mjs.map +0 -1
  305. package/dist/maven-W_nkSDNW.mjs +0 -107
  306. package/dist/maven-W_nkSDNW.mjs.map +0 -1
  307. package/dist/moonshine.es.js +0 -125
  308. package/dist/moonshine.es.js.map +0 -1
  309. package/dist/npm-BWTcVvFH.mjs +0 -11
  310. package/dist/npm-BWTcVvFH.mjs.map +0 -1
  311. package/dist/npm-BYcG5_q9.mjs +0 -17
  312. package/dist/npm-BYcG5_q9.mjs.map +0 -1
  313. package/dist/nuget-CV5HU1JR.mjs +0 -11
  314. package/dist/nuget-CV5HU1JR.mjs.map +0 -1
  315. package/dist/nuget-D86y5HDl.mjs.map +0 -1
  316. package/dist/packagist-BFSSrw4p.mjs +0 -118
  317. package/dist/packagist-BFSSrw4p.mjs.map +0 -1
  318. package/dist/packagist-D01fn9N_.mjs +0 -11
  319. package/dist/packagist-D01fn9N_.mjs.map +0 -1
  320. package/dist/pypi-2SUX-2OR.mjs.map +0 -1
  321. package/dist/pypi-DLh6kIJe.mjs +0 -11
  322. package/dist/pypi-DLh6kIJe.mjs.map +0 -1
  323. package/dist/rubygems-DeiNjcDV.mjs +0 -11
  324. package/dist/rubygems-DeiNjcDV.mjs.map +0 -1
  325. package/dist/speakeasy-logo-ByBTXLWb.mjs +0 -5
  326. package/dist/speakeasy-logo-ByBTXLWb.mjs.map +0 -1
  327. package/dist/style.css +0 -1
  328. package/dist/terraform-C4aktQ0o.mjs +0 -11
  329. package/dist/terraform-C4aktQ0o.mjs.map +0 -1
  330. package/dist/types.d.ts +0 -85
@@ -1,8 +0,0 @@
1
- type TableContextValue = {
2
- depth: number;
3
- expandedRowKeys: Set<string | number>;
4
- toggleExpanded: (rowKey: string | number) => void;
5
- };
6
- export declare const TableContext: import('react').Context<TableContextValue>;
7
- export declare function useTable(): TableContextValue;
8
- export {};
@@ -1,6 +0,0 @@
1
- export interface TableProviderProps {
2
- children: React.ReactNode;
3
- depth: number;
4
- expandedRowKeys?: Set<string | number>;
5
- }
6
- export declare function TableProvider({ children, depth, expandedRowKeys: defaultExpanded, }: TableProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,94 +0,0 @@
1
- import { default as React, PropsWithChildren, ReactNode } from 'react';
2
- export type Column<T extends object> = {
3
- key: keyof T | string;
4
- header: ReactNode;
5
- render?: (row: T) => ReactNode;
6
- width?: `${number}fr` | `${number}px` | 'auto' | undefined;
7
- };
8
- export type Group<T extends object> = {
9
- key: string;
10
- items: T[];
11
- [k: string]: unknown;
12
- };
13
- type CellPadding = 'normal' | 'condensed' | 'spacious';
14
- type PropsWithChildrenAndClassName = PropsWithChildren<{
15
- className?: string;
16
- }>;
17
- export type TableProps<T extends object> = {
18
- columns: Column<T>[];
19
- data: T[] | Group<T>[];
20
- rowKey: (row: T) => string | number;
21
- onRowClick?: (row: T) => void;
22
- renderGroupHeader?: (group: Group<T>) => ReactNode;
23
- renderExpandedContent?: (row: T) => ReactNode;
24
- onLoadMore?: () => Promise<void> | (() => void);
25
- hasMore?: boolean;
26
- noResultsMessage?: ReactNode;
27
- className?: string;
28
- cellPadding?: CellPadding;
29
- hideHeader?: boolean;
30
- };
31
- export type TableWrapperProps<T extends object> = PropsWithChildrenAndClassName & {
32
- columns: Column<T>[];
33
- cellPadding?: CellPadding;
34
- };
35
- declare function TableRoot<T extends object>(props: TableProps<T> | TableWrapperProps<T>): import("react/jsx-runtime").JSX.Element;
36
- type HeaderProps<T extends object> = {
37
- columns: Column<T>[];
38
- className?: string;
39
- };
40
- declare function Header<T extends object>(props: HeaderProps<T> | PropsWithChildrenAndClassName): import("react/jsx-runtime").JSX.Element;
41
- type BodyProps<T extends object> = {
42
- columns: Column<T>[];
43
- data: T[] | Group<T>[];
44
- rowKey: (row: T) => string | number;
45
- onRowClick?: (row: T) => void;
46
- noResultsMessage?: ReactNode;
47
- renderGroupHeader?: (group: Group<T>) => ReactNode;
48
- renderExpandedContent?: (row: T) => ReactNode;
49
- hasMore?: boolean;
50
- handleLoadMore?: () => void;
51
- isLoading?: boolean;
52
- className?: string;
53
- };
54
- type RowProps<T extends object> = {
55
- row: T;
56
- onClick?: (row: T) => void;
57
- columns: Column<T>[];
58
- className?: string;
59
- };
60
- type RowContainerProps = {
61
- onClick?: () => void;
62
- } & PropsWithChildrenAndClassName;
63
- declare function Row<T extends object>(props: RowProps<T> | RowContainerProps): import("react/jsx-runtime").JSX.Element;
64
- declare function RowGroup<T extends object>({ group, columns, rowKey, renderGroupHeader, className, onRowClick, }: {
65
- group: Group<T>;
66
- columns: Column<T>[];
67
- rowKey: (row: T) => string | number;
68
- renderGroupHeader?: (group: Group<T>) => ReactNode;
69
- className?: string;
70
- onRowClick?: (row: T) => void;
71
- }): import("react/jsx-runtime").JSX.Element;
72
- type CellProps<T extends object> = {
73
- row: T;
74
- column: Column<T>;
75
- className?: string;
76
- };
77
- declare function Cell<T extends object>(props: CellProps<T> | PropsWithChildrenAndClassName): import("react/jsx-runtime").JSX.Element;
78
- declare function NoResultsMessage({ className, children, }: PropsWithChildrenAndClassName): import("react/jsx-runtime").JSX.Element;
79
- declare function HeaderCell({ className, children, }: PropsWithChildren<{
80
- className?: string;
81
- }>): import("react/jsx-runtime").JSX.Element;
82
- export declare const Table: typeof TableRoot & {
83
- Header: typeof Header & {
84
- Cell: typeof HeaderCell;
85
- };
86
- Body: <T extends object>(props: {
87
- ref?: React.ForwardedRef<HTMLTableSectionElement>;
88
- } & (BodyProps<T> | PropsWithChildrenAndClassName)) => JSX.Element;
89
- Row: typeof Row;
90
- Cell: typeof Cell;
91
- RowGroup: typeof RowGroup;
92
- NoResultsMessage: typeof NoResultsMessage;
93
- };
94
- export {};
@@ -1,21 +0,0 @@
1
- import { default as React, ReactElement } from 'react';
2
- export interface TabProps<I extends string> {
3
- children: React.ReactNode;
4
- active?: boolean;
5
- id: I;
6
- onClick?: () => void;
7
- className?: string;
8
- }
9
- export interface TabsProps<I extends string> {
10
- children: Array<ReactElement<TabProps<I>>>;
11
- selectedTab: I;
12
- onTabChange: (identifier: I) => void;
13
- className?: string;
14
- }
15
- export declare function Tabs<I extends string>({ children, selectedTab, onTabChange, className, }: TabsProps<I>): import("react/jsx-runtime").JSX.Element;
16
- export declare namespace Tabs {
17
- var Tab: {
18
- <I extends string>({ children, active, onClick, className, }: TabProps<I>): import("react/jsx-runtime").JSX.Element;
19
- displayName: string;
20
- };
21
- }
@@ -1,7 +0,0 @@
1
- import { Size, SupportedLanguage } from '../../types';
2
- export interface TargetLanguageIconProps {
3
- language: SupportedLanguage;
4
- size?: Size;
5
- className?: string;
6
- }
7
- export declare function TargetLanguageIcon({ language, size, className, }: TargetLanguageIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type TextVariant = 'lg' | 'md' | 'sm' | 'xs';
3
- type TextElement = 'p' | 'span' | 'div' | 'label';
4
- type TextWhitespace = 'normal' | 'nowrap';
5
- export type TextProps = {
6
- children: ReactNode;
7
- variant?: TextVariant;
8
- muted?: boolean;
9
- whiteSpace?: TextWhitespace;
10
- className?: string;
11
- } & ({
12
- as?: Exclude<TextElement, 'label'>;
13
- htmlFor?: never;
14
- } | {
15
- as: 'label';
16
- htmlFor?: string;
17
- });
18
- export declare function Text({ children, variant, as: Component, muted, whiteSpace, className, htmlFor, }: TextProps): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,6 +0,0 @@
1
- export interface ThemeSwitcherProps {
2
- onThemeSwitch?: (theme: string) => void;
3
- className?: string;
4
- orientation?: 'horizontal' | 'vertical';
5
- }
6
- export declare function ThemeSwitcher({ className, onThemeSwitch, orientation, }: ThemeSwitcherProps): import("react/jsx-runtime").JSX.Element;
@@ -1,49 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface TimelineItemProps {
3
- icon?: ReactNode;
4
- children: ReactNode;
5
- className?: string;
6
- index?: number;
7
- isLast?: boolean;
8
- setsize?: number;
9
- }
10
- declare function TimelineItem({ icon, children, className, index, isLast, setsize, }: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
11
- export interface TimelineContentProps {
12
- children: ReactNode;
13
- className?: string;
14
- isLast?: boolean;
15
- }
16
- declare function TimelineContent({ children, className, isLast, }: TimelineContentProps): import("react/jsx-runtime").JSX.Element;
17
- export interface TimelineTitleProps {
18
- children: ReactNode;
19
- className?: string;
20
- as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
21
- }
22
- declare function TimelineTitle({ children, className, as, }: TimelineTitleProps): import("react/jsx-runtime").JSX.Element;
23
- export interface TimelineDescriptionProps {
24
- children: ReactNode;
25
- className?: string;
26
- }
27
- declare function TimelineDescription({ children, className, }: TimelineDescriptionProps): import("react/jsx-runtime").JSX.Element;
28
- export interface TimelineTimestampProps {
29
- children: ReactNode;
30
- className?: string;
31
- }
32
- declare function TimelineTimestamp({ children, className }: TimelineTimestampProps): import("react/jsx-runtime").JSX.Element;
33
- export interface TimelineSeparatorProps {
34
- className?: string;
35
- }
36
- export interface TimelineRootProps {
37
- children: ReactNode;
38
- className?: string;
39
- hasMore?: boolean;
40
- }
41
- declare function TimelineRoot({ children, className, hasMore, }: TimelineRootProps): import("react/jsx-runtime").JSX.Element;
42
- declare const Timeline: typeof TimelineRoot & {
43
- Item: typeof TimelineItem;
44
- Content: typeof TimelineContent;
45
- Title: typeof TimelineTitle;
46
- Description: typeof TimelineDescription;
47
- Timestamp: typeof TimelineTimestamp;
48
- };
49
- export { Timeline };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
7
- declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
8
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- export { Tooltip, TooltipPortal, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow, };
@@ -1,9 +0,0 @@
1
- import { ResponsiveValue, Size } from '../../types';
2
- export interface UserAvatarProps {
3
- name: string;
4
- imageUrl?: string;
5
- size?: ResponsiveValue<Size>;
6
- border?: boolean;
7
- className?: string;
8
- }
9
- export declare function UserAvatar({ name, imageUrl, size, border, className, }: UserAvatarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { Size } from '../../types';
2
- export declare const userAvatarSizeMap: Record<Size, number>;
3
- export declare const userAvatarSizeMapper: (size: Size) => string;
@@ -1,19 +0,0 @@
1
- import { WizardStep } from './types';
2
- import * as React from 'react';
3
- export interface WizardProps {
4
- /**
5
- * The steps to display in the wizard
6
- */
7
- steps: WizardStep[];
8
- /**
9
- * The current step number, starting from 1
10
- */
11
- currentStep: number;
12
- /**
13
- * The steps that have been completed, starting from 1
14
- */
15
- completedSteps: number[];
16
- headerContent: (completedSteps: number[], steps: WizardStep[]) => React.ReactNode;
17
- className?: string;
18
- }
19
- export declare function Wizard({ steps, currentStep, completedSteps, headerContent, className, }: WizardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { ProgrammingLanguage } from '../../types';
2
- export interface WizardCommand {
3
- id: string;
4
- code: string;
5
- language: ProgrammingLanguage;
6
- comment?: string;
7
- active?: boolean;
8
- path?: string;
9
- onSelectOrCopy?: (id: string) => void;
10
- }
11
- export interface WizardStep {
12
- title: string;
13
- description: string;
14
- commands?: WizardCommand[];
15
- }
@@ -1,6 +0,0 @@
1
- import { Org } from '.';
2
- interface CreateOrgProps {
3
- onSubmit: (name: string) => Promise<Org>;
4
- }
5
- export declare function CreateOrg({ onSubmit }: CreateOrgProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,17 +0,0 @@
1
- import { Org } from '.';
2
- export interface CreateResult {
3
- success: boolean;
4
- error?: string;
5
- }
6
- interface CreateWorkspaceProps {
7
- open: boolean;
8
- selectedOrg: Org;
9
- allOrgs: Org[];
10
- onBack?: () => void;
11
- onSubmit: (org: Org, workspaceName: string) => Promise<CreateResult>;
12
- newWorkspaceName: string;
13
- setNewWorkspaceName: (name: string) => void;
14
- backButtonEnabled?: boolean;
15
- }
16
- export declare function CreateWorkspace({ open, selectedOrg, allOrgs, onBack, onSubmit, newWorkspaceName, setNewWorkspaceName, backButtonEnabled, }: CreateWorkspaceProps): import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,12 +0,0 @@
1
- import { Org } from '.';
2
- interface OrgListProps {
3
- orgs: Org[];
4
- enableRecents: boolean;
5
- showRecents: boolean;
6
- selectedOrg: Org | null;
7
- setSelectedOrg: (org: Org) => void;
8
- onSelectRecent: () => void;
9
- filterOrgFunc: (org: Org, search: string) => boolean;
10
- }
11
- export declare function OrgList({ orgs, showRecents, selectedOrg, setSelectedOrg, enableRecents, onSelectRecent, filterOrgFunc, }: OrgListProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,13 +0,0 @@
1
- import { Org } from '.';
2
- interface OrgSelectorProps {
3
- orgs: Org[];
4
- selectedOrg: Org | null;
5
- onSelect: (org: Org) => void;
6
- searchable?: boolean;
7
- error?: boolean;
8
- errorText?: string;
9
- emptyText?: string;
10
- searchPlaceholder?: string;
11
- }
12
- export declare function OrgSelector({ orgs, selectedOrg, onSelect, searchable, error, errorText, emptyText, searchPlaceholder, }: OrgSelectorProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,11 +0,0 @@
1
- import { Org, Workspace } from '.';
2
- interface RecentWorkspacesProps {
3
- orgsWithFilteredWorkspaces: Org[];
4
- onSelect: (org: Org, workspace: Workspace) => void;
5
- fullWidth?: boolean;
6
- selectedOrg: Org | null;
7
- selectedWorkspace: Workspace | null;
8
- handleCreateViewOpen: () => void;
9
- }
10
- export declare function RecentWorkspaces({ orgsWithFilteredWorkspaces, onSelect, fullWidth, selectedOrg, selectedWorkspace, handleCreateViewOpen, }: RecentWorkspacesProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- import { GroupedVirtuosoHandle, VirtuosoHandle } from 'react-virtuoso';
3
- interface ScrollingListProps<T> {
4
- items: T[];
5
- renderItem: (item: T) => React.ReactNode;
6
- ref?: React.RefObject<VirtuosoHandle>;
7
- }
8
- export declare const ScrollingList: <T>(props: ScrollingListProps<T> & React.RefAttributes<VirtuosoHandle>) => React.ReactNode | null;
9
- interface GroupedScrollingListProps<G> {
10
- groups: G[];
11
- /**
12
- * An array of integers to represent the number of items in each group.
13
- * e.g [10, 20, 30] means there are 3 groups with 10, 20, and 30 items respectively.
14
- */
15
- groupCounts: number[];
16
- renderGroupHeader: (group: G) => React.ReactNode;
17
- renderItem: (group: G, itemIndex: number) => React.ReactNode;
18
- ref?: React.RefObject<GroupedVirtuosoHandle>;
19
- }
20
- export declare const GroupedScrollingList: <G>(props: GroupedScrollingListProps<G> & React.RefAttributes<GroupedVirtuosoHandle>) => React.ReactNode | null;
21
- export {};
@@ -1,9 +0,0 @@
1
- import { RefObject } from 'react';
2
- interface SearchBoxProps {
3
- inputRef: RefObject<HTMLInputElement>;
4
- search: string;
5
- setSearch: (search: string) => void;
6
- placeholder: string;
7
- }
8
- export declare function SearchBox({ inputRef, search, setSearch, placeholder, }: SearchBoxProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { Org, Workspace } from '.';
2
- interface WorkspaceItemProps {
3
- workspace: Workspace;
4
- selectedOrg: Org;
5
- isSelected: boolean;
6
- handleSelect: (org: Org, workspace: Workspace) => void;
7
- }
8
- export declare const WorkspaceItem: import('react').ForwardRefExoticComponent<WorkspaceItemProps & import('react').RefAttributes<HTMLDivElement>>;
9
- export {};
@@ -1,11 +0,0 @@
1
- import { Org, Workspace } from '.';
2
- interface WorkspaceListProps {
3
- selectedOrg: Org;
4
- selectedWorkspace: Workspace | null;
5
- handleCreateViewOpen: () => void;
6
- handleSelect: (org: Org, workspace: Workspace) => void;
7
- enableCreate?: boolean;
8
- filterWorkspaceFunc: (workspace: Workspace, search: string) => boolean;
9
- }
10
- export declare function WorkspaceList({ selectedOrg, selectedWorkspace, handleCreateViewOpen, handleSelect, enableCreate, filterWorkspaceFunc, }: WorkspaceListProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,36 +0,0 @@
1
- import { CreateResult } from './CreateWorkspace';
2
- import { GlobalWorkspaceSelectorProps } from '../../types';
3
- export interface Org {
4
- id: string;
5
- label: string;
6
- slug: string;
7
- workspaces: Workspace[];
8
- }
9
- export interface Workspace {
10
- id: string;
11
- slug: string;
12
- label: string;
13
- active: boolean;
14
- createdAt: Date;
15
- updatedAt: Date;
16
- }
17
- export interface WorkspaceSelectorProps extends GlobalWorkspaceSelectorProps {
18
- onCreateOrg: (newOrgName: string) => Promise<Org>;
19
- /**
20
- * Returns a promise that resolves to true if the workspace was created, false otherwise.
21
- */
22
- onCreate: (org: Org, newWorkspaceName: string) => Promise<CreateResult>;
23
- placeholder?: string;
24
- emptyText?: string;
25
- recents?: Org[];
26
- height?: string | number;
27
- /**
28
- * If true, creating a new workspace will trigger the onSelect callback.
29
- */
30
- createTriggersSelection?: boolean;
31
- showCreateWorkspaceView?: boolean;
32
- defaultSelectedOrg?: Org;
33
- filterOrgFunc: (org: Org, search: string) => boolean;
34
- filterWorkspaceFunc: (workspace: Workspace, search: string) => boolean;
35
- }
36
- export declare function WorkspaceSelector({ orgs, onSelect, onCreate, emptyText, recents, height, onCreateOrg, createTriggersSelection, showCreateWorkspaceView, defaultSelectedOrg, filterOrgFunc, filterWorkspaceFunc, }: WorkspaceSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- import { WizardStep } from '../../Wizard/types';
2
- /**
3
- * TODO before moving out of beta:
4
- * - Replace all these hardcoded colors with our design tokens:
5
- * bg-[#09090b], text-zinc-400, etc
6
- * - Make sure we're using our standard border radius
7
- * - Move the step circle sizes into our design tokens
8
- */
9
- export interface CLIWizardProps {
10
- steps: WizardStep[];
11
- currentStep: number;
12
- completedSteps: number[];
13
- onStepComplete?: (stepIndex: number) => void;
14
- }
15
- export declare const ExpandChevron: ({ isCollapsed, }: {
16
- isCollapsed: boolean | undefined;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
- export declare function CLIWizard({ steps, currentStep, completedSteps, onStepComplete, }: CLIWizardProps): import("react/jsx-runtime").JSX.Element;
19
- export default CLIWizard;
@@ -1,19 +0,0 @@
1
- /**
2
- * TODO: Clean up before moving out of beta
3
- * - Replace hardcoded colors with our tokens (the green highlight, hover states, etc)
4
- * - Use our standard font size tokens instead of hardcoding small/medium/large
5
- * - Add loading state for copy action
6
- * - Add an animation around the active command
7
- */
8
- interface TerminalCommandProps {
9
- code: string;
10
- language: string;
11
- onSelectOrCopy?: () => void;
12
- copyable?: boolean;
13
- fontSize?: 'small' | 'medium' | 'large';
14
- isActive?: boolean;
15
- comment?: string;
16
- path?: string;
17
- }
18
- export declare function TerminalCommand({ code, onSelectOrCopy, copyable, fontSize, isActive, comment, path, }: TerminalCommandProps): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * TODO: Before moving out of beta
3
- * - Need to replace these hardcoded colors with our tokens:
4
- * - All the terminal chrome colors (#27272a, #000000, etc)
5
- * - Use different colors for the termainal window, may offend windows users
6
- */
7
- import * as React from 'react';
8
- interface TerminalProps {
9
- children: React.ReactNode;
10
- path?: string;
11
- }
12
- export declare function Terminal({ children, path }: TerminalProps): import("react/jsx-runtime").JSX.Element;
13
- interface TerminalPromptProps {
14
- path?: string;
15
- branch?: string;
16
- children: React.ReactNode;
17
- isActive?: boolean;
18
- time?: string;
19
- }
20
- export declare function TerminalPrompt({ path, branch, children, time, }: TerminalPromptProps): import("react/jsx-runtime").JSX.Element;
21
- interface TerminalOutputProps {
22
- children: React.ReactNode;
23
- className?: string;
24
- }
25
- export declare function TerminalOutput({ children, className }: TerminalOutputProps): import("react/jsx-runtime").JSX.Element;
26
- export {};
@@ -1,18 +0,0 @@
1
- import { Theme } from './theme';
2
- export interface ConfigContextType {
3
- theme: Theme;
4
- setTheme: (theme: Theme) => void;
5
- }
6
- export declare const ConfigContext: import('react').Context<ConfigContextType | undefined>;
7
- export interface MoonshineConfigProviderProps extends ConfigContextType {
8
- children: React.ReactNode;
9
- }
10
- /**
11
- * Configures Speakeasy's design system, Moonshine, within a consuming application.
12
- *
13
- * @param {React.ReactNode} children - The components to be wrapped by the MoonshineConfigProvider.
14
- * @param {Theme} theme - The current theme
15
- * @param {function(Theme): void} setTheme - Function to update the theme
16
- * @returns {React.ReactNode} - The components wrapped by the MoonshineConfigProvider.
17
- */
18
- export declare function MoonshineConfigProvider({ children, theme, setTheme, }: MoonshineConfigProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type Screen = {
3
- id: string;
4
- title: string;
5
- component: ReactNode;
6
- };
7
- type ModalContextType = {
8
- screens: Screen[];
9
- currentIndex: number;
10
- isOpen: boolean;
11
- openScreen: (screen: Screen) => void;
12
- close: () => void;
13
- navigateTo: (index: number) => void;
14
- pushScreen: (screen: Screen) => void;
15
- popScreen: () => void;
16
- navigationDirection: 'forward' | 'backward';
17
- };
18
- export declare const ModalContext: import('react').Context<ModalContextType | undefined>;
19
- export declare function ModalProvider({ children, }: {
20
- children: ReactNode | ((props: ModalContextType) => ReactNode);
21
- }): import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1 +0,0 @@
1
- export type Theme = 'light' | 'dark';
@@ -1,19 +0,0 @@
1
- import { c as s, t as n } from "./index-C9bJtuJ5.mjs";
2
- import { Icon as p } from "lucide-react";
3
- import { forwardRef as f, createElement as i } from "react";
4
- const C = (e, t, r) => {
5
- const o = f(
6
- ({ className: a, ...c }, m) => i(p, {
7
- ref: m,
8
- iconNode: t,
9
- className: s(`lucide-${n(e)}`, a),
10
- ...r ?? {},
11
- ...c
12
- })
13
- );
14
- return o.displayName = `${e}`, o;
15
- };
16
- export {
17
- C as c
18
- };
19
- //# sourceMappingURL=createCustomLucideIcon-CatlpFc0.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCustomLucideIcon-CatlpFc0.mjs","sources":["../src/components/Icon/customIcons/createCustomLucideIcon.ts"],"sourcesContent":["import { cn, toKebabCase } from '@/lib/utils'\nimport { Icon, IconNode, LucideProps } from 'lucide-react'\nimport { createElement, forwardRef } from 'react'\n\nconst createCustomLucideIcon = (\n iconName: string,\n iconNode: IconNode,\n lucideProps?: Partial<LucideProps>\n) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(\n ({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: cn(`lucide-${toKebabCase(iconName)}`, className),\n ...{ ...(lucideProps ?? {}), ...props },\n })\n )\n\n Component.displayName = `${iconName}`\n\n return Component\n}\n\nexport default createCustomLucideIcon\n"],"names":["createCustomLucideIcon","iconName","iconNode","lucideProps","Component","forwardRef","className","props","ref","createElement","Icon","cn","toKebabCase"],"mappings":";;;AAIA,MAAMA,IAAyB,CAC7BC,GACAC,GACAC,MACG;AACH,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MACxBC,EAAcC,GAAM;AAAA,MAClB,KAAAF;AAAA,MACA,UAAAN;AAAA,MACA,WAAWS,EAAG,UAAUC,EAAYX,CAAQ,CAAC,IAAIK,CAAS;AAAA,MACrD,GAAIH,KAAe,CAAC;AAAA,MAAI,GAAGI;AAAA,IACjC,CAAA;AAAA,EACL;AAEU,SAAAH,EAAA,cAAc,GAAGH,CAAQ,IAE5BG;AACT;"}
@@ -1,24 +0,0 @@
1
- import { c as L } from "./createCustomLucideIcon-CatlpFc0.mjs";
2
- const o = [
3
- [
4
- "path",
5
- {
6
- d: "M156.139 157.469L196.307 117.301L168.177 89.1397V89.0126H88.2885L88.4113 89.2582L88.2885 89.1354L60.6496 117.296L128.5 184.929",
7
- key: "path-1"
8
- }
9
- ],
10
- [
11
- "path",
12
- {
13
- d: "M128.5 14L29 71.0835V185.25L128.5 242.333L228 185.25V71.0829L128.5 14ZM208.96 174.341L128.5 220.767L48.0401 174.34V81.7386L128.5 35.3114L208.96 81.3762",
14
- key: "path-2"
15
- }
16
- ]
17
- ], e = L("gems", o, {
18
- viewBox: "0 0 256 256",
19
- fill: "currentColor"
20
- });
21
- export {
22
- e as default
23
- };
24
- //# sourceMappingURL=gems-DQ7pOLLr.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gems-DQ7pOLLr.mjs","sources":["../src/components/Icon/customIcons/gems.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M156.139 157.469L196.307 117.301L168.177 89.1397V89.0126H88.2885L88.4113 89.2582L88.2885 89.1354L60.6496 117.296L128.5 184.929',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M128.5 14L29 71.0835V185.25L128.5 242.333L228 185.25V71.0829L128.5 14ZM208.96 174.341L128.5 220.767L48.0401 174.34V81.7386L128.5 35.3114L208.96 81.3762',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('gems', iconNode, {\n viewBox: '0 0 256 256',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,QAAQF,GAAU;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
@@ -1,11 +0,0 @@
1
- import * as e from "react";
2
- import { forwardRef as a } from "react";
3
- const m = ({
4
- title: t,
5
- titleId: c,
6
- ...l
7
- }, r) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 128 128", width: 16, height: 16, ref: r, "aria-labelledby": c, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: c }, t) : null, /* @__PURE__ */ e.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z" }), /* @__PURE__ */ e.createElement("path", { d: "M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0" }))), d = a(m);
8
- export {
9
- d as default
10
- };
11
- //# sourceMappingURL=github-kgjMtfE7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github-kgjMtfE7.mjs","sources":["../src/assets/icons/external/github.svg?react"],"sourcesContent":["import * as React from \"react\";\nimport { forwardRef } from \"react\";\nconst SvgGithub = ({\n title,\n titleId,\n ...props\n}, ref) => /* @__PURE__ */ React.createElement(\"svg\", { viewBox: \"0 0 128 128\", width: 16, height: 16, ref, \"aria-labelledby\": titleId, ...props }, title ? /* @__PURE__ */ React.createElement(\"title\", { id: titleId }, title) : null, /* @__PURE__ */ React.createElement(\"g\", { fill: \"currentColor\" }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0\" })));\nconst ForwardRef = forwardRef(SvgGithub);\nexport default ForwardRef;\n"],"names":["SvgGithub","title","titleId","props","ref","React","ForwardRef","forwardRef"],"mappings":";;AAEA,MAAMA,IAAY,CAAC;AAAA,EACjB,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAAGC,MAAwB,gBAAAC,EAAM,cAAc,OAAO,EAAE,SAAS,eAAe,OAAO,IAAI,QAAQ,IAAI,KAAAD,GAAK,mBAAmBF,GAAS,GAAGC,EAAO,GAAEF,IAAwB,gBAAAI,EAAM,cAAc,SAAS,EAAE,IAAIH,EAAS,GAAED,CAAK,IAAI,MAAsB,gBAAAI,EAAM,cAAc,KAAK,EAAE,MAAM,eAAgB,GAAkB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,w1BAAu1B,CAAE,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,81BAA61B,CAAE,CAAC,CAAC,GAC/mEC,IAAaC,EAAWP,CAAS;"}