@galaxy-io/dls 1.0.3

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 (434) hide show
  1. package/README.md +42 -0
  2. package/dist/accordion/Accordion.d.ts +30 -0
  3. package/dist/accordion/Accordion.js +147 -0
  4. package/dist/animations/Fade.d.ts +6 -0
  5. package/dist/animations/Fade.js +22 -0
  6. package/dist/animations/Flashing.d.ts +3 -0
  7. package/dist/animations/Flashing.js +14 -0
  8. package/dist/animations/RotateWithTransition.d.ts +8 -0
  9. package/dist/animations/RotateWithTransition.js +28 -0
  10. package/dist/animations/ScaleFade.d.ts +6 -0
  11. package/dist/animations/ScaleFade.js +31 -0
  12. package/dist/animations/SpinAnimation.d.ts +7 -0
  13. package/dist/animations/SpinAnimation.js +20 -0
  14. package/dist/animations/SpinVerticalAnimation.d.ts +6 -0
  15. package/dist/animations/SpinVerticalAnimation.js +19 -0
  16. package/dist/assets/components/GalaxyLogomarkDark.d.ts +3 -0
  17. package/dist/assets/components/GalaxyLogomarkDark.js +11 -0
  18. package/dist/assets/components/GalaxyLogomarkLight.d.ts +3 -0
  19. package/dist/assets/components/GalaxyLogomarkLight.js +17 -0
  20. package/dist/assets/components/GalaxyWordmarkDark.d.ts +3 -0
  21. package/dist/assets/components/GalaxyWordmarkDark.js +15 -0
  22. package/dist/assets/components/GalaxyWordmarkLight.d.ts +3 -0
  23. package/dist/assets/components/GalaxyWordmarkLight.js +28 -0
  24. package/dist/assets/components/enrichment/PerplexityIcon.d.ts +3 -0
  25. package/dist/assets/components/enrichment/PerplexityIcon.js +35 -0
  26. package/dist/assets/components/enrichment/TavilyIcon.d.ts +3 -0
  27. package/dist/assets/components/enrichment/TavilyIcon.js +15 -0
  28. package/dist/assets/components/onboarding/TenantSetupDark.d.ts +3 -0
  29. package/dist/assets/components/onboarding/TenantSetupDark.js +498 -0
  30. package/dist/assets/components/onboarding/TenantSetupLight.d.ts +3 -0
  31. package/dist/assets/components/onboarding/TenantSetupLight.js +482 -0
  32. package/dist/assets/components/onboarding/UserSetupDark.d.ts +3 -0
  33. package/dist/assets/components/onboarding/UserSetupDark.js +1086 -0
  34. package/dist/assets/components/onboarding/UserSetupLight.d.ts +3 -0
  35. package/dist/assets/components/onboarding/UserSetupLight.js +1024 -0
  36. package/dist/assets/components/onboarding/WorkspaceSetupBuildDark.d.ts +3 -0
  37. package/dist/assets/components/onboarding/WorkspaceSetupBuildDark.js +466 -0
  38. package/dist/assets/components/onboarding/WorkspaceSetupBuildLight.d.ts +3 -0
  39. package/dist/assets/components/onboarding/WorkspaceSetupBuildLight.js +460 -0
  40. package/dist/assets/components/onboarding/WorkspaceSetupConnectDark.d.ts +3 -0
  41. package/dist/assets/components/onboarding/WorkspaceSetupConnectDark.js +336 -0
  42. package/dist/assets/components/onboarding/WorkspaceSetupConnectLight.d.ts +3 -0
  43. package/dist/assets/components/onboarding/WorkspaceSetupConnectLight.js +336 -0
  44. package/dist/assets/components/onboarding/WorkspaceSetupIntegrateDark.d.ts +3 -0
  45. package/dist/assets/components/onboarding/WorkspaceSetupIntegrateDark.js +153 -0
  46. package/dist/assets/components/onboarding/WorkspaceSetupIntegrateLight.d.ts +3 -0
  47. package/dist/assets/components/onboarding/WorkspaceSetupIntegrateLight.js +153 -0
  48. package/dist/assets/components/projects/MappingMethodAutoIntrospectDark.d.ts +3 -0
  49. package/dist/assets/components/projects/MappingMethodAutoIntrospectDark.js +117 -0
  50. package/dist/assets/components/projects/MappingMethodAutoIntrospectLight.d.ts +3 -0
  51. package/dist/assets/components/projects/MappingMethodAutoIntrospectLight.js +117 -0
  52. package/dist/assets/components/projects/MappingMethodBlankDark.d.ts +3 -0
  53. package/dist/assets/components/projects/MappingMethodBlankDark.js +150 -0
  54. package/dist/assets/components/projects/MappingMethodBlankDarkHovered.d.ts +3 -0
  55. package/dist/assets/components/projects/MappingMethodBlankDarkHovered.js +150 -0
  56. package/dist/assets/components/projects/MappingMethodBlankLight.d.ts +3 -0
  57. package/dist/assets/components/projects/MappingMethodBlankLight.js +150 -0
  58. package/dist/assets/components/projects/MappingMethodBlankLightHovered.d.ts +3 -0
  59. package/dist/assets/components/projects/MappingMethodBlankLightHovered.js +150 -0
  60. package/dist/assets/components/projects/MappingMethodJsonDark.d.ts +3 -0
  61. package/dist/assets/components/projects/MappingMethodJsonDark.js +90 -0
  62. package/dist/assets/components/projects/MappingMethodJsonDarkHovered.d.ts +3 -0
  63. package/dist/assets/components/projects/MappingMethodJsonDarkHovered.js +90 -0
  64. package/dist/assets/components/projects/MappingMethodJsonLight.d.ts +3 -0
  65. package/dist/assets/components/projects/MappingMethodJsonLight.js +90 -0
  66. package/dist/assets/components/projects/MappingMethodJsonLightHovered.d.ts +3 -0
  67. package/dist/assets/components/projects/MappingMethodJsonLightHovered.js +90 -0
  68. package/dist/assets/components/projects/ProjectsEmptyStateDark.d.ts +3 -0
  69. package/dist/assets/components/projects/ProjectsEmptyStateDark.js +454 -0
  70. package/dist/assets/components/projects/ProjectsEmptyStateLight.d.ts +3 -0
  71. package/dist/assets/components/projects/ProjectsEmptyStateLight.js +456 -0
  72. package/dist/assets/components/root/CreateProjectActionCardDark.d.ts +3 -0
  73. package/dist/assets/components/root/CreateProjectActionCardDark.js +1796 -0
  74. package/dist/assets/components/root/CreateProjectActionCardDarkHovered.d.ts +3 -0
  75. package/dist/assets/components/root/CreateProjectActionCardDarkHovered.js +1796 -0
  76. package/dist/assets/components/root/CreateProjectActionCardLight.d.ts +3 -0
  77. package/dist/assets/components/root/CreateProjectActionCardLight.js +1786 -0
  78. package/dist/assets/components/root/CreateProjectActionCardLightHovered.d.ts +3 -0
  79. package/dist/assets/components/root/CreateProjectActionCardLightHovered.js +1786 -0
  80. package/dist/assets/components/root/CreateSourceActionCardDark.d.ts +3 -0
  81. package/dist/assets/components/root/CreateSourceActionCardDark.js +879 -0
  82. package/dist/assets/components/root/CreateSourceActionCardDarkHovered.d.ts +3 -0
  83. package/dist/assets/components/root/CreateSourceActionCardDarkHovered.js +879 -0
  84. package/dist/assets/components/root/CreateSourceActionCardLight.d.ts +3 -0
  85. package/dist/assets/components/root/CreateSourceActionCardLight.js +889 -0
  86. package/dist/assets/components/root/CreateSourceActionCardLightHovered.d.ts +3 -0
  87. package/dist/assets/components/root/CreateSourceActionCardLightHovered.js +889 -0
  88. package/dist/assets/components/sources/AttioIcon.d.ts +3 -0
  89. package/dist/assets/components/sources/AttioIcon.js +11 -0
  90. package/dist/assets/components/sources/BigquerySourceIcon.d.ts +3 -0
  91. package/dist/assets/components/sources/BigquerySourceIcon.js +39 -0
  92. package/dist/assets/components/sources/BrowserbaseSourceIcon.d.ts +3 -0
  93. package/dist/assets/components/sources/BrowserbaseSourceIcon.js +35 -0
  94. package/dist/assets/components/sources/ClickhouseLogoSourceIconDark.d.ts +3 -0
  95. package/dist/assets/components/sources/ClickhouseLogoSourceIconDark.js +13 -0
  96. package/dist/assets/components/sources/ClickhouseLogoSourceIconLight.d.ts +3 -0
  97. package/dist/assets/components/sources/ClickhouseLogoSourceIconLight.js +13 -0
  98. package/dist/assets/components/sources/ConfluenceSourceIcon.d.ts +3 -0
  99. package/dist/assets/components/sources/ConfluenceSourceIcon.js +30 -0
  100. package/dist/assets/components/sources/GalaxyFileUploadSourceIcon.d.ts +3 -0
  101. package/dist/assets/components/sources/GalaxyFileUploadSourceIcon.js +16 -0
  102. package/dist/assets/components/sources/GalaxyTextSourceIcon.d.ts +3 -0
  103. package/dist/assets/components/sources/GalaxyTextSourceIcon.js +16 -0
  104. package/dist/assets/components/sources/GalaxyWebhookSourceIcon.d.ts +3 -0
  105. package/dist/assets/components/sources/GalaxyWebhookSourceIcon.js +16 -0
  106. package/dist/assets/components/sources/GithubSourceIcon.d.ts +3 -0
  107. package/dist/assets/components/sources/GithubSourceIcon.js +27 -0
  108. package/dist/assets/components/sources/GoogleDriveIcon.d.ts +3 -0
  109. package/dist/assets/components/sources/GoogleDriveIcon.js +45 -0
  110. package/dist/assets/components/sources/HubspotSourceIcon.d.ts +3 -0
  111. package/dist/assets/components/sources/HubspotSourceIcon.js +14 -0
  112. package/dist/assets/components/sources/JiraSourceIcon.d.ts +3 -0
  113. package/dist/assets/components/sources/JiraSourceIcon.js +54 -0
  114. package/dist/assets/components/sources/LinearSourceIcon.d.ts +3 -0
  115. package/dist/assets/components/sources/LinearSourceIcon.js +14 -0
  116. package/dist/assets/components/sources/MysqlLogoSourceIconDark.d.ts +3 -0
  117. package/dist/assets/components/sources/MysqlLogoSourceIconDark.js +17 -0
  118. package/dist/assets/components/sources/MysqlLogoSourceIconLight.d.ts +3 -0
  119. package/dist/assets/components/sources/MysqlLogoSourceIconLight.js +17 -0
  120. package/dist/assets/components/sources/NetsuiteSourceIcon.d.ts +3 -0
  121. package/dist/assets/components/sources/NetsuiteSourceIcon.js +32 -0
  122. package/dist/assets/components/sources/NotionIcon.d.ts +3 -0
  123. package/dist/assets/components/sources/NotionIcon.js +20 -0
  124. package/dist/assets/components/sources/NotionLogoSourceIconDark.d.ts +3 -0
  125. package/dist/assets/components/sources/NotionLogoSourceIconDark.js +10 -0
  126. package/dist/assets/components/sources/NotionLogoSourceIconLight.d.ts +3 -0
  127. package/dist/assets/components/sources/NotionLogoSourceIconLight.js +13 -0
  128. package/dist/assets/components/sources/PostgresLogoSourceIconDark.d.ts +3 -0
  129. package/dist/assets/components/sources/PostgresLogoSourceIconDark.js +28 -0
  130. package/dist/assets/components/sources/PostgresLogoSourceIconLight.d.ts +3 -0
  131. package/dist/assets/components/sources/PostgresLogoSourceIconLight.js +28 -0
  132. package/dist/assets/components/sources/PostgresqlIcon.d.ts +3 -0
  133. package/dist/assets/components/sources/PostgresqlIcon.js +61 -0
  134. package/dist/assets/components/sources/PostgresqlLogoSourceIconDark.d.ts +3 -0
  135. package/dist/assets/components/sources/PostgresqlLogoSourceIconDark.js +10 -0
  136. package/dist/assets/components/sources/PostgresqlLogoSourceIconLight.d.ts +3 -0
  137. package/dist/assets/components/sources/PostgresqlLogoSourceIconLight.js +13 -0
  138. package/dist/assets/components/sources/S3Icon.d.ts +3 -0
  139. package/dist/assets/components/sources/S3Icon.js +76 -0
  140. package/dist/assets/components/sources/S3LogoSourceIconDark.d.ts +3 -0
  141. package/dist/assets/components/sources/S3LogoSourceIconDark.js +10 -0
  142. package/dist/assets/components/sources/S3LogoSourceIconLight.d.ts +3 -0
  143. package/dist/assets/components/sources/S3LogoSourceIconLight.js +13 -0
  144. package/dist/assets/components/sources/SalesforceSourceIcon.d.ts +3 -0
  145. package/dist/assets/components/sources/SalesforceSourceIcon.js +23 -0
  146. package/dist/assets/components/sources/SlackIcon.d.ts +3 -0
  147. package/dist/assets/components/sources/SlackIcon.js +32 -0
  148. package/dist/assets/components/sources/SlackLogoSourceIconDark.d.ts +3 -0
  149. package/dist/assets/components/sources/SlackLogoSourceIconDark.js +15 -0
  150. package/dist/assets/components/sources/SlackLogoSourceIconLight.d.ts +3 -0
  151. package/dist/assets/components/sources/SlackLogoSourceIconLight.js +15 -0
  152. package/dist/assets/components/sources/SnowflakeLogoSourceIconDark.d.ts +3 -0
  153. package/dist/assets/components/sources/SnowflakeLogoSourceIconDark.js +14 -0
  154. package/dist/assets/components/sources/SnowflakeLogoSourceIconLight.d.ts +3 -0
  155. package/dist/assets/components/sources/SnowflakeLogoSourceIconLight.js +14 -0
  156. package/dist/assets/components/sources/SourcesEmptyStateDark.d.ts +3 -0
  157. package/dist/assets/components/sources/SourcesEmptyStateDark.js +432 -0
  158. package/dist/assets/components/sources/SourcesEmptyStateLight.d.ts +3 -0
  159. package/dist/assets/components/sources/SourcesEmptyStateLight.js +434 -0
  160. package/dist/assets/components/sources/WikipediaSourceIcon.d.ts +3 -0
  161. package/dist/assets/components/sources/WikipediaSourceIcon.js +1490 -0
  162. package/dist/assets/models/galaxy-logomark.js +4 -0
  163. package/dist/avatar/Avatar.d.ts +9 -0
  164. package/dist/avatar/Avatar.js +52 -0
  165. package/dist/avatar/AvatarEmpty.d.ts +36 -0
  166. package/dist/avatar/AvatarEmpty.js +43 -0
  167. package/dist/avatar/AvatarShimmer.d.ts +28 -0
  168. package/dist/avatar/AvatarShimmer.js +21 -0
  169. package/dist/avatar/GalaxyAvatar.d.ts +6 -0
  170. package/dist/avatar/GalaxyAvatar.js +36 -0
  171. package/dist/avatar/types.d.ts +5 -0
  172. package/dist/avatar/types.js +9 -0
  173. package/dist/backgrounds/CellGridBackground.d.ts +13 -0
  174. package/dist/backgrounds/CellGridBackground.js +39 -0
  175. package/dist/backgrounds/CrossGridBackground.d.ts +14 -0
  176. package/dist/backgrounds/CrossGridBackground.js +45 -0
  177. package/dist/backgrounds/DotGridBackground.d.ts +13 -0
  178. package/dist/backgrounds/DotGridBackground.js +43 -0
  179. package/dist/badge/Badge.d.ts +30 -0
  180. package/dist/badge/Badge.js +92 -0
  181. package/dist/beacons/Beacon.d.ts +43 -0
  182. package/dist/beacons/Beacon.js +68 -0
  183. package/dist/buttons/Button.d.ts +30 -0
  184. package/dist/buttons/Button.js +173 -0
  185. package/dist/charts/BarChart.d.ts +21 -0
  186. package/dist/charts/BarChart.js +264 -0
  187. package/dist/charts/ChartAxis.d.ts +28 -0
  188. package/dist/charts/ChartAxis.js +94 -0
  189. package/dist/charts/ChartLegend.d.ts +7 -0
  190. package/dist/charts/ChartLegend.js +30 -0
  191. package/dist/charts/ChartTooltip.d.ts +7 -0
  192. package/dist/charts/ChartTooltip.js +66 -0
  193. package/dist/charts/LineChart.d.ts +22 -0
  194. package/dist/charts/LineChart.js +250 -0
  195. package/dist/charts/PieChart.d.ts +35 -0
  196. package/dist/charts/PieChart.js +183 -0
  197. package/dist/charts/constants.d.ts +22 -0
  198. package/dist/charts/constants.js +38 -0
  199. package/dist/charts/types.d.ts +80 -0
  200. package/dist/charts/types.js +0 -0
  201. package/dist/charts/utils.d.ts +29 -0
  202. package/dist/charts/utils.js +62 -0
  203. package/dist/chips/Chip.d.ts +39 -0
  204. package/dist/chips/Chip.js +185 -0
  205. package/dist/containers/FlexItem.d.ts +28 -0
  206. package/dist/containers/FlexItem.js +93 -0
  207. package/dist/containers/FlexWrapper.d.ts +147 -0
  208. package/dist/containers/FlexWrapper.js +122 -0
  209. package/dist/containers/GridWrapper.d.ts +120 -0
  210. package/dist/containers/GridWrapper.js +117 -0
  211. package/dist/containers/Spacing.d.ts +13 -0
  212. package/dist/containers/Spacing.js +52 -0
  213. package/dist/containers/Wrapper.d.ts +16 -0
  214. package/dist/containers/Wrapper.js +50 -0
  215. package/dist/dividers/HorizontalDivider.d.ts +2 -0
  216. package/dist/dividers/HorizontalDivider.js +17 -0
  217. package/dist/dividers/VerticalDivider.d.ts +2 -0
  218. package/dist/dividers/VerticalDivider.js +17 -0
  219. package/dist/drawer/Drawer.d.ts +13 -0
  220. package/dist/drawer/Drawer.js +70 -0
  221. package/dist/dropdown/Dropdown.d.ts +51 -0
  222. package/dist/dropdown/Dropdown.js +136 -0
  223. package/dist/dropdown/DropdownButton.d.ts +18 -0
  224. package/dist/dropdown/DropdownButton.js +179 -0
  225. package/dist/dropdown/DropdownFooter.d.ts +10 -0
  226. package/dist/dropdown/DropdownFooter.js +35 -0
  227. package/dist/dropdown/DropdownItem.d.ts +10 -0
  228. package/dist/dropdown/DropdownItem.js +38 -0
  229. package/dist/editor/CodeEditor.d.ts +68 -0
  230. package/dist/editor/CodeEditor.js +435 -0
  231. package/dist/editor/CodeEditorReactWidget.d.ts +35 -0
  232. package/dist/editor/CodeEditorReactWidget.js +47 -0
  233. package/dist/hooks/useDismiss.d.ts +27 -0
  234. package/dist/hooks/useDismiss.js +37 -0
  235. package/dist/hooks/useElementWidth.d.ts +22 -0
  236. package/dist/hooks/useElementWidth.js +44 -0
  237. package/dist/hooks/useResize.d.ts +83 -0
  238. package/dist/hooks/useResize.js +114 -0
  239. package/dist/hotkeys/HotKeyBindings.d.ts +7 -0
  240. package/dist/hotkeys/HotKeyBindings.js +23 -0
  241. package/dist/hotkeys/HotKeySymbol.d.ts +13 -0
  242. package/dist/hotkeys/HotKeySymbol.js +49 -0
  243. package/dist/icons/BackIcon.d.ts +3 -0
  244. package/dist/icons/BackIcon.js +13 -0
  245. package/dist/icons/CloseIcon.d.ts +3 -0
  246. package/dist/icons/CloseIcon.js +13 -0
  247. package/dist/icons/CreateIcon.d.ts +3 -0
  248. package/dist/icons/CreateIcon.js +13 -0
  249. package/dist/icons/ForwardIcon.d.ts +3 -0
  250. package/dist/icons/ForwardIcon.js +13 -0
  251. package/dist/icons/GalaxyLogomark.d.ts +5 -0
  252. package/dist/icons/GalaxyLogomark.js +21 -0
  253. package/dist/icons/GalaxyLogomark3D.d.ts +41 -0
  254. package/dist/icons/GalaxyLogomark3D.js +310 -0
  255. package/dist/icons/GalaxyWordmark.d.ts +5 -0
  256. package/dist/icons/GalaxyWordmark.js +21 -0
  257. package/dist/icons/HelpIcon.d.ts +3 -0
  258. package/dist/icons/HelpIcon.js +14 -0
  259. package/dist/icons/Icon.d.ts +41 -0
  260. package/dist/icons/Icon.js +51 -0
  261. package/dist/icons/ProjectsIcon.d.ts +3 -0
  262. package/dist/icons/ProjectsIcon.js +12 -0
  263. package/dist/icons/SearchIcon.d.ts +3 -0
  264. package/dist/icons/SearchIcon.js +12 -0
  265. package/dist/icons/SourcesIcon.d.ts +3 -0
  266. package/dist/icons/SourcesIcon.js +12 -0
  267. package/dist/icons/TextIcon.d.ts +4 -0
  268. package/dist/icons/TextIcon.js +22 -0
  269. package/dist/icons/WebScrapeIcon.d.ts +4 -0
  270. package/dist/icons/WebScrapeIcon.js +22 -0
  271. package/dist/icons/WebhookIcon.d.ts +4 -0
  272. package/dist/icons/WebhookIcon.js +22 -0
  273. package/dist/icons/sources/AttioLogomark.d.ts +4 -0
  274. package/dist/icons/sources/AttioLogomark.js +8 -0
  275. package/dist/icons/sources/BrowserbaseLogomark.d.ts +4 -0
  276. package/dist/icons/sources/BrowserbaseLogomark.js +8 -0
  277. package/dist/icons/sources/ClickhouseLogomark.d.ts +4 -0
  278. package/dist/icons/sources/ClickhouseLogomark.js +16 -0
  279. package/dist/icons/sources/ConfluenceLogomark.d.ts +4 -0
  280. package/dist/icons/sources/ConfluenceLogomark.js +8 -0
  281. package/dist/icons/sources/GithubLogomark.d.ts +4 -0
  282. package/dist/icons/sources/GithubLogomark.js +8 -0
  283. package/dist/icons/sources/GoogleBigqueryLogomark.d.ts +4 -0
  284. package/dist/icons/sources/GoogleBigqueryLogomark.js +8 -0
  285. package/dist/icons/sources/GoogleDriveLogomark.d.ts +4 -0
  286. package/dist/icons/sources/GoogleDriveLogomark.js +8 -0
  287. package/dist/icons/sources/HubspotLogomark.d.ts +4 -0
  288. package/dist/icons/sources/HubspotLogomark.js +8 -0
  289. package/dist/icons/sources/JiraLogomark.d.ts +4 -0
  290. package/dist/icons/sources/JiraLogomark.js +8 -0
  291. package/dist/icons/sources/LinearLogomark.d.ts +4 -0
  292. package/dist/icons/sources/LinearLogomark.js +8 -0
  293. package/dist/icons/sources/MySQLLogomark.d.ts +4 -0
  294. package/dist/icons/sources/MySQLLogomark.js +8 -0
  295. package/dist/icons/sources/NetsuiteLogomark.d.ts +4 -0
  296. package/dist/icons/sources/NetsuiteLogomark.js +8 -0
  297. package/dist/icons/sources/NotionLogomark.d.ts +4 -0
  298. package/dist/icons/sources/NotionLogomark.js +8 -0
  299. package/dist/icons/sources/PostgresLogomark.d.ts +4 -0
  300. package/dist/icons/sources/PostgresLogomark.js +8 -0
  301. package/dist/icons/sources/S3Logomark.d.ts +4 -0
  302. package/dist/icons/sources/S3Logomark.js +8 -0
  303. package/dist/icons/sources/SalesforceLogomark.d.ts +4 -0
  304. package/dist/icons/sources/SalesforceLogomark.js +8 -0
  305. package/dist/icons/sources/SlackLogoIconmark.d.ts +4 -0
  306. package/dist/icons/sources/SlackLogoIconmark.js +8 -0
  307. package/dist/icons/sources/SnowflakeLogomark.d.ts +4 -0
  308. package/dist/icons/sources/SnowflakeLogomark.js +16 -0
  309. package/dist/icons/sources/WikipediaLogomark.d.ts +4 -0
  310. package/dist/icons/sources/WikipediaLogomark.js +8 -0
  311. package/dist/inputs/CheckboxInput.d.ts +20 -0
  312. package/dist/inputs/CheckboxInput.js +97 -0
  313. package/dist/inputs/ColorInput.d.ts +20 -0
  314. package/dist/inputs/ColorInput.js +368 -0
  315. package/dist/inputs/CopyInput.d.ts +15 -0
  316. package/dist/inputs/CopyInput.js +46 -0
  317. package/dist/inputs/DateInput.d.ts +19 -0
  318. package/dist/inputs/DateInput.js +498 -0
  319. package/dist/inputs/Input.d.ts +91 -0
  320. package/dist/inputs/Input.js +205 -0
  321. package/dist/inputs/MultiSelectInput.d.ts +38 -0
  322. package/dist/inputs/MultiSelectInput.js +566 -0
  323. package/dist/inputs/MultiTextInput.d.ts +27 -0
  324. package/dist/inputs/MultiTextInput.js +178 -0
  325. package/dist/inputs/NumberInput.d.ts +4 -0
  326. package/dist/inputs/NumberInput.js +34 -0
  327. package/dist/inputs/PasswordInput.d.ts +4 -0
  328. package/dist/inputs/PasswordInput.js +40 -0
  329. package/dist/inputs/RadioInput.d.ts +20 -0
  330. package/dist/inputs/RadioInput.js +108 -0
  331. package/dist/inputs/SelectInput.d.ts +51 -0
  332. package/dist/inputs/SelectInput.js +528 -0
  333. package/dist/inputs/SliderInput.d.ts +16 -0
  334. package/dist/inputs/SliderInput.js +172 -0
  335. package/dist/inputs/TextAreaInput.d.ts +40 -0
  336. package/dist/inputs/TextAreaInput.js +238 -0
  337. package/dist/inputs/TextInput.d.ts +4 -0
  338. package/dist/inputs/TextInput.js +53 -0
  339. package/dist/inputs/ToggleInput.d.ts +11 -0
  340. package/dist/inputs/ToggleInput.js +100 -0
  341. package/dist/inputs/hooks.d.ts +10 -0
  342. package/dist/inputs/hooks.js +22 -0
  343. package/dist/links/Link.d.ts +2 -0
  344. package/dist/links/Link.js +10 -0
  345. package/dist/lists/BulletedList.d.ts +11 -0
  346. package/dist/lists/BulletedList.js +41 -0
  347. package/dist/metrics/MetricItem.d.ts +15 -0
  348. package/dist/metrics/MetricItem.js +53 -0
  349. package/dist/metrics/ProgressBar.d.ts +15 -0
  350. package/dist/metrics/ProgressBar.js +60 -0
  351. package/dist/modal/Modal.d.ts +7 -0
  352. package/dist/modal/Modal.js +52 -0
  353. package/dist/overlay/OverlayProvider.d.ts +26 -0
  354. package/dist/overlay/OverlayProvider.js +92 -0
  355. package/dist/overlay/constants.d.ts +27 -0
  356. package/dist/overlay/constants.js +36 -0
  357. package/dist/overlay/useOverlay.d.ts +7 -0
  358. package/dist/overlay/useOverlay.js +46 -0
  359. package/dist/resizable/HorizontalResizeHandle.d.ts +10 -0
  360. package/dist/resizable/HorizontalResizeHandle.js +32 -0
  361. package/dist/resizable/VerticalResizeHandle.d.ts +11 -0
  362. package/dist/resizable/VerticalResizeHandle.js +33 -0
  363. package/dist/shapes/Circle.d.ts +6 -0
  364. package/dist/shapes/Circle.js +25 -0
  365. package/dist/spreadsheet/InfiniteSpreadsheet.d.ts +3 -0
  366. package/dist/spreadsheet/InfiniteSpreadsheet.js +265 -0
  367. package/dist/spreadsheet/SpreadsheetAddColumnButton.d.ts +6 -0
  368. package/dist/spreadsheet/SpreadsheetAddColumnButton.js +32 -0
  369. package/dist/spreadsheet/SpreadsheetCell.d.ts +19 -0
  370. package/dist/spreadsheet/SpreadsheetCell.js +115 -0
  371. package/dist/spreadsheet/SpreadsheetCellEditor.d.ts +11 -0
  372. package/dist/spreadsheet/SpreadsheetCellEditor.js +95 -0
  373. package/dist/spreadsheet/SpreadsheetHeaderCell.d.ts +13 -0
  374. package/dist/spreadsheet/SpreadsheetHeaderCell.js +125 -0
  375. package/dist/spreadsheet/SpreadsheetRow.d.ts +21 -0
  376. package/dist/spreadsheet/SpreadsheetRow.js +68 -0
  377. package/dist/spreadsheet/SpreadsheetRowActionCell.d.ts +11 -0
  378. package/dist/spreadsheet/SpreadsheetRowActionCell.js +60 -0
  379. package/dist/spreadsheet/hooks/useColumnResize.d.ts +6 -0
  380. package/dist/spreadsheet/hooks/useColumnResize.js +46 -0
  381. package/dist/spreadsheet/hooks/useSpreadsheetEditing.d.ts +13 -0
  382. package/dist/spreadsheet/hooks/useSpreadsheetEditing.js +41 -0
  383. package/dist/spreadsheet/types.d.ts +92 -0
  384. package/dist/spreadsheet/types.js +21 -0
  385. package/dist/styles.css +213 -0
  386. package/dist/switcher/Switcher.d.ts +11 -0
  387. package/dist/switcher/Switcher.js +41 -0
  388. package/dist/table/InfiniteTable.d.ts +83 -0
  389. package/dist/table/InfiniteTable.js +711 -0
  390. package/dist/table/VirtualizedInfiniteTable.d.ts +28 -0
  391. package/dist/table/VirtualizedInfiniteTable.js +359 -0
  392. package/dist/text/Bold.d.ts +3 -0
  393. package/dist/text/Bold.js +17 -0
  394. package/dist/text/Code.d.ts +3 -0
  395. package/dist/text/Code.js +27 -0
  396. package/dist/text/EditableText.d.ts +7 -0
  397. package/dist/text/EditableText.js +141 -0
  398. package/dist/text/Ellipsis.d.ts +10 -0
  399. package/dist/text/Ellipsis.js +28 -0
  400. package/dist/text/MarkdownText.d.ts +7 -0
  401. package/dist/text/MarkdownText.js +295 -0
  402. package/dist/text/Paragraph.d.ts +16 -0
  403. package/dist/text/Paragraph.js +76 -0
  404. package/dist/text/RequiredMarker.d.ts +6 -0
  405. package/dist/text/RequiredMarker.js +44 -0
  406. package/dist/text/Selectable.d.ts +3 -0
  407. package/dist/text/Selectable.js +15 -0
  408. package/dist/text/Text.d.ts +47 -0
  409. package/dist/text/Text.js +104 -0
  410. package/dist/text/TextShimmer.d.ts +7 -0
  411. package/dist/text/TextShimmer.js +30 -0
  412. package/dist/theme/GalaxyTheme.d.ts +36 -0
  413. package/dist/theme/GalaxyTheme.js +107 -0
  414. package/dist/theme/constants.d.ts +13 -0
  415. package/dist/theme/constants.js +43 -0
  416. package/dist/theme/index.d.ts +6 -0
  417. package/dist/theme/index.js +6 -0
  418. package/dist/theme/types.d.ts +174 -0
  419. package/dist/theme/types.js +0 -0
  420. package/dist/theme/typography.d.ts +2 -0
  421. package/dist/theme/typography.js +73 -0
  422. package/dist/theme/variants/dark.d.ts +2 -0
  423. package/dist/theme/variants/dark.js +125 -0
  424. package/dist/theme/variants/light.d.ts +2 -0
  425. package/dist/theme/variants/light.js +125 -0
  426. package/dist/tooltip/Tooltip.d.ts +37 -0
  427. package/dist/tooltip/Tooltip.js +79 -0
  428. package/dist/utils/colors.d.ts +84 -0
  429. package/dist/utils/colors.js +323 -0
  430. package/dist/utils/linaria.d.ts +1 -0
  431. package/dist/utils/linaria.js +8 -0
  432. package/dist/widget/Widget.d.ts +28 -0
  433. package/dist/widget/Widget.js +99 -0
  434. package/package.json +268 -0
@@ -0,0 +1,125 @@
1
+ //#region src/theme/variants/light.ts
2
+ var GALAXY_LIGHT_COLOR = {
3
+ text: {
4
+ primary: "#101010",
5
+ primaryAlt: "#ffffff",
6
+ secondary: "#3f3f3f",
7
+ secondaryAlt: "#acacac",
8
+ tertiary: "#9e9e9e",
9
+ tertiaryAlt: "#868686",
10
+ success: "#4cb782",
11
+ warning: "#ff6b24",
12
+ error: "#e53f4f",
13
+ pink: "#ff4595",
14
+ orange: "#e99243",
15
+ yellow: "#cbc24d",
16
+ lime: "#9cca55",
17
+ green: "#4cb782",
18
+ blue: "#4885ff",
19
+ teal: "#20b2a5",
20
+ purple: "#b080f3",
21
+ disabled: "#b8b8b8",
22
+ galaxy: "#0059B8",
23
+ galaxyAlt: "#0060c8"
24
+ },
25
+ background: {
26
+ base: "#ffffff",
27
+ baseAlt: "#131313",
28
+ primary: "#fafafa",
29
+ primaryAlt: "#161616",
30
+ secondary: "#f0f0f0",
31
+ secondaryAlt: "#242424",
32
+ tertiary: "#f5f5f5",
33
+ tertiaryAlt: "#202020",
34
+ success: "#e3f6ec",
35
+ successAlt: "#1d3329",
36
+ warning: "#ffe6d2",
37
+ warningAlt: "#3f2e19",
38
+ error: "#fce8ec",
39
+ errorAlt: "#3d1f24",
40
+ pink: "#f8e6f7",
41
+ pinkAlt: "#361c23",
42
+ orange: "#fdefdc",
43
+ orangeAlt: "#3d2a12",
44
+ yellow: "#faf8d2",
45
+ yellowAlt: "#404022",
46
+ lime: "#e4f8c5",
47
+ limeAlt: "#263017",
48
+ blue: "#e6f2ff",
49
+ blueAlt: "#232f3b",
50
+ teal: "#e6f7f9",
51
+ tealAlt: "#2a393c",
52
+ purple: "#f2f0ff",
53
+ purpleAlt: "#272442",
54
+ disabled: "#ffffff",
55
+ disabledAlt: "#1e1e1e",
56
+ galaxy: "#0059B8",
57
+ galaxyAlt: "#0060c8"
58
+ },
59
+ border: {
60
+ primary: "#cdcecd",
61
+ secondary: "#d5d6d7",
62
+ tertiary: "#e0e0e0",
63
+ selected: "#d5d6d7",
64
+ success: "#62c796",
65
+ warning: "#f78d55",
66
+ error: "#e26178",
67
+ disabled: "#e7e7e7",
68
+ pink: "#f57bb0",
69
+ orange: "#e2a65c",
70
+ yellow: "#d4cc6a",
71
+ lime: "#9cca55",
72
+ blue: "#7aa7f8",
73
+ teal: "#4cc2b7",
74
+ purple: "#b080f3",
75
+ galaxy: "#0059B8",
76
+ galaxyAlt: "#0060c8"
77
+ },
78
+ icon: {
79
+ primary: "#101010",
80
+ primaryAlt: "#ffffff",
81
+ secondary: "#3f3f3f",
82
+ secondaryAlt: "#acacac",
83
+ tertiary: "#9e9e9e",
84
+ tertiaryAlt: "#868686",
85
+ success: "#4cb782",
86
+ warning: "#ff6b24",
87
+ error: "#e53f4f",
88
+ pink: "#ff4595",
89
+ orange: "#e99243",
90
+ yellow: "#cbc24d",
91
+ lime: "#966a55",
92
+ blue: "#4885ff",
93
+ teal: "#20b2a5",
94
+ purple: "#b080f3",
95
+ disabled: "#b8b8b8",
96
+ galaxy: "#0059B8",
97
+ galaxyAlt: "#0060c8"
98
+ },
99
+ opacity: {
100
+ bw100: "rgba(255, 255, 255, 1)",
101
+ bw100Alt: "rgba(0, 0, 0, 1)",
102
+ bw80: "rgba(255, 255, 255, 0.8)",
103
+ bw80Alt: "rgba(0, 0, 0, 0.8)",
104
+ bw64: "rgba(255, 255, 255, 0.64)",
105
+ bw64Alt: "rgba(0, 0, 0, 0.64)",
106
+ bw48: "rgba(255, 255, 255, 0.48)",
107
+ bw48Alt: "rgba(0, 0, 0, 0.48)",
108
+ bw32: "rgba(255, 255, 255, 0.32)",
109
+ bw32Alt: "rgba(0, 0, 0, 0.32)",
110
+ bw24: "rgba(255, 255, 255, 0.24)",
111
+ bw24Alt: "rgba(0, 0, 0, 0.24)",
112
+ bw16: "rgba(255, 255, 255, 0.16)",
113
+ bw16Alt: "rgba(0, 0, 0, 0.16)",
114
+ bw12: "rgba(255, 255, 255, 0.12)",
115
+ bw12Alt: "rgba(0, 0, 0, 0.12)",
116
+ bw8: "rgba(255, 255, 255, 0.08)",
117
+ bw8Alt: "rgba(0, 0, 0, 0.08)",
118
+ b4: "rgba(255, 255, 255, 0.04)",
119
+ b4Alt: "rgba(0, 0, 0, 0.04)",
120
+ bw0: "rgba(255, 255, 255, 0)",
121
+ bw0Alt: "rgba(0, 0, 0, 0)"
122
+ }
123
+ };
124
+ //#endregion
125
+ export { GALAXY_LIGHT_COLOR };
@@ -0,0 +1,37 @@
1
+ import type { PropsWithChildren } from "react";
2
+ export declare enum TooltipPosition {
3
+ TOP = "top",
4
+ BOTTOM = "bottom",
5
+ LEFT = "left",
6
+ RIGHT = "right",
7
+ TOP_START = "top-start",
8
+ TOP_END = "top-end",
9
+ BOTTOM_START = "bottom-start",
10
+ BOTTOM_END = "bottom-end",
11
+ RIGHT_START = "right-start",
12
+ RIGHT_END = "right-end",
13
+ LEFT_START = "left-start",
14
+ LEFT_END = "left-end",
15
+ AUTO = "auto",
16
+ AUTO_START = "auto-start",
17
+ AUTO_END = "auto-end"
18
+ }
19
+ export declare enum TooltipVariant {
20
+ BASE = "BASE",
21
+ PRIMARY = "PRIMARY",
22
+ SECONDARY = "SECONDARY",
23
+ TERTIARY = "TERTIARY"
24
+ }
25
+ interface TooltipProps {
26
+ body: string | React.ReactNode;
27
+ variant?: TooltipVariant;
28
+ position?: TooltipPosition;
29
+ delay?: number;
30
+ offset?: [number, number];
31
+ isInteractive?: boolean;
32
+ noPadding?: boolean;
33
+ noBorder?: boolean;
34
+ isDisabled?: boolean;
35
+ }
36
+ declare const Tooltip: ({ children, variant, body, position, delay, offset, isInteractive, noPadding, noBorder, isDisabled, }: PropsWithChildren<TooltipProps>) => string | number | boolean | Iterable<import("react").ReactNode> | import("react").JSX.Element | null | undefined;
37
+ export default Tooltip;
@@ -0,0 +1,79 @@
1
+ import { withTheme } from "../theme/GalaxyTheme.js";
2
+ import Text, { TextSize } from "../text/Text.js";
3
+ /* empty css */
4
+ import { styled } from "@linaria/react";
5
+ import { match } from "ts-pattern";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import Tippy from "@tippyjs/react";
8
+ //#region src/tooltip/Tooltip.tsx
9
+ var TooltipPosition = /* @__PURE__ */ function(TooltipPosition) {
10
+ TooltipPosition["TOP"] = "top";
11
+ TooltipPosition["BOTTOM"] = "bottom";
12
+ TooltipPosition["LEFT"] = "left";
13
+ TooltipPosition["RIGHT"] = "right";
14
+ TooltipPosition["TOP_START"] = "top-start";
15
+ TooltipPosition["TOP_END"] = "top-end";
16
+ TooltipPosition["BOTTOM_START"] = "bottom-start";
17
+ TooltipPosition["BOTTOM_END"] = "bottom-end";
18
+ TooltipPosition["RIGHT_START"] = "right-start";
19
+ TooltipPosition["RIGHT_END"] = "right-end";
20
+ TooltipPosition["LEFT_START"] = "left-start";
21
+ TooltipPosition["LEFT_END"] = "left-end";
22
+ TooltipPosition["AUTO"] = "auto";
23
+ TooltipPosition["AUTO_START"] = "auto-start";
24
+ TooltipPosition["AUTO_END"] = "auto-end";
25
+ return TooltipPosition;
26
+ }({});
27
+ var TooltipVariant = /* @__PURE__ */ function(TooltipVariant) {
28
+ TooltipVariant["BASE"] = "BASE";
29
+ TooltipVariant["PRIMARY"] = "PRIMARY";
30
+ TooltipVariant["SECONDARY"] = "SECONDARY";
31
+ TooltipVariant["TERTIARY"] = "TERTIARY";
32
+ return TooltipVariant;
33
+ }({});
34
+ var TooltipWrapper = /*#__PURE__*/ styled("span")({
35
+ name: "TooltipWrapper",
36
+ class: "tbnx4ok",
37
+ propsAsIs: false
38
+ });
39
+ var _exp = () => ({ $noPadding }) => $noPadding ? "0" : "8px";
40
+ var _exp2 = () => ({ $variant, theme }) => {
41
+ return match($variant).with("BASE", () => theme.color.background.base).with("PRIMARY", () => theme.color.background.primary).with("SECONDARY", () => theme.color.background.secondary).with("TERTIARY", () => theme.color.background.tertiary).exhaustive();
42
+ };
43
+ var _exp3 = () => ({ $noBorder, $variant, theme }) => {
44
+ if ($noBorder) return "none";
45
+ return match($variant).with("BASE", () => `0.5px solid ${theme.color.border.secondary}`).with("PRIMARY", () => `0.5px solid ${theme.color.border.secondary}`).with("SECONDARY", () => `0.5px solid ${theme.color.border.secondary}`).with("TERTIARY", () => `0.5px solid ${theme.color.border.secondary}`).exhaustive();
46
+ };
47
+ var TooltipContent = withTheme(/*#__PURE__*/ styled("span")({
48
+ name: "TooltipContent",
49
+ class: "tjda4tq",
50
+ propsAsIs: false,
51
+ vars: {
52
+ "tjda4tq-0": [_exp()],
53
+ "tjda4tq-1": [_exp2()],
54
+ "tjda4tq-2": [_exp3()]
55
+ }
56
+ }));
57
+ var Tooltip = ({ children, variant = "SECONDARY", body, position = "top", delay = 0, offset = [0, 4], isInteractive = false, noPadding = false, noBorder = false, isDisabled = false }) => {
58
+ if (isDisabled) return children;
59
+ return /* @__PURE__ */ jsx(Tippy, {
60
+ content: /* @__PURE__ */ jsx(TooltipContent, {
61
+ $variant: variant,
62
+ $noPadding: noPadding,
63
+ $noBorder: noBorder,
64
+ children: typeof body === "string" ? /* @__PURE__ */ jsx(Text, {
65
+ size: TextSize.BODY_SM,
66
+ children: body
67
+ }) : body
68
+ }),
69
+ placement: position,
70
+ delay,
71
+ duration: 0,
72
+ offset,
73
+ interactive: isInteractive,
74
+ zIndex: 1e4,
75
+ children: /* @__PURE__ */ jsx(TooltipWrapper, { children })
76
+ });
77
+ };
78
+ //#endregion
79
+ export { TooltipPosition, TooltipVariant, Tooltip as default };
@@ -0,0 +1,84 @@
1
+ export type RGB = {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ };
6
+ export type RGBA = RGB & {
7
+ a: number;
8
+ };
9
+ export type HSL = {
10
+ h: number;
11
+ s: number;
12
+ l: number;
13
+ };
14
+ export type HSVA = {
15
+ h: number;
16
+ s: number;
17
+ v: number;
18
+ a: number;
19
+ };
20
+ export declare const hexToRgb: (hex: string) => RGB;
21
+ export declare const hexToRgba: (hex: string, a?: number) => RGBA;
22
+ export declare const rgbToHex: ({ r, g, b }: RGB) => string;
23
+ export declare const rgbToHsl: ({ r, g, b }: RGB) => HSL;
24
+ export declare const hslToRgb: ({ h, s, l }: HSL) => RGB;
25
+ export declare const hslToHex: ({ h, s, l }: HSL) => string;
26
+ export declare const hexToHsva: (hex: string) => HSVA;
27
+ export declare const hsvaToHex: (hsva: HSVA) => string;
28
+ /**
29
+ * Generates a random hex color
30
+ * @returns A random hex color in the format #RRGGBB
31
+ */
32
+ export declare const generateRandomHexColor: () => string;
33
+ /**
34
+ * Gets an opaque hex color
35
+ * @param hex - The hex color to add opacity to
36
+ * @param opacity - The opacity to add (0-1)
37
+ * @returns A hex color with the added opacity
38
+ */
39
+ export declare const getOpaqueHexColor: (hex: string, opacity?: number) => string;
40
+ /**
41
+ * Generates a darker hex color by subtracting from each RGB channel (clamped)
42
+ * @param hex - The hex color to darken
43
+ * @param amount - Amount to subtract from each channel (0..255-ish)
44
+ */
45
+ export declare const getDarkerHexColor: (hex: string, amount?: number) => string;
46
+ /**
47
+ * Generates a lighter hex color by adding to each RGB channel (clamped)
48
+ * @param hex - The hex color to lighten
49
+ * @param amount - Amount to add to each channel (0..255-ish)
50
+ */
51
+ export declare const getLighterHexColor: (hex: string, amount?: number) => string;
52
+ /**
53
+ * Creates a brighter, more neon/vibrant version of a color.
54
+ * Lightens the color while increasing saturation to create a neon effect.
55
+ * This is designed to complement getDarkerPronouncedHexColor - when applied
56
+ * to the same base color, they create a bright text/dark background pair.
57
+ *
58
+ * @param hex - The hex color to transform
59
+ * @param lightnessTarget - Target lightness (0-1, default 0.82 = 82% lightness for bright neon colors)
60
+ * @param saturationTarget - Target saturation (0-1, default 0.75 = 75% saturation for vibrant look)
61
+ * @returns A brighter, more saturated hex color
62
+ */
63
+ export declare const getBrighterPronouncedHexColor: (hex: string, lightnessTarget?: number, saturationTarget?: number) => string;
64
+ /**
65
+ * Creates a darker but more pronounced/vibrant version of a color.
66
+ * Darkens the color while increasing saturation to maintain vibrancy.
67
+ * This creates a rich, deep color that pairs perfectly with getBrighterPronouncedHexColor.
68
+ * When both are applied to the same base color, they create complementary pairs.
69
+ *
70
+ * @param hex - The hex color to transform
71
+ * @param lightnessTarget - Target lightness (0-1, default 0.18 = 18% lightness for dark rich colors)
72
+ * @param saturationTarget - Target saturation (0-1, default 0.35 = 35% saturation for pronounced dark colors)
73
+ * @returns A darker, more saturated hex color
74
+ */
75
+ export declare const getDarkerPronouncedHexColor: (hex: string, lightnessTarget?: number, saturationTarget?: number) => string;
76
+ /**
77
+ * Random pastel color (soft, light, UI-friendly)
78
+ */
79
+ export declare const generateRandomPastelHexColor: () => string;
80
+ /**
81
+ * Random vibrant color (saturated, bold, UI-friendly)
82
+ * Generates colors similar to: #5D9CEC, #4FC1E9, #48CFAD, #A0D468, #FFCE54, #FC6E51, #ED5565, #AC92EC, #EC87C0
83
+ */
84
+ export declare const generateRandomVibrantHexColor: () => string;
@@ -0,0 +1,323 @@
1
+ //#region src/utils/colors.ts
2
+ var clamp = (n, min, max) => Math.max(min, Math.min(max, n));
3
+ var clamp01 = (n) => clamp(n, 0, 1);
4
+ var rand = (min, max) => Math.random() * (max - min) + min;
5
+ var wrap360 = (h) => (h % 360 + 360) % 360;
6
+ var normalizeHex = (hex) => {
7
+ let h = hex.trim().toLowerCase();
8
+ if (!h.startsWith("#")) h = `#${h}`;
9
+ if (h.length === 4) {
10
+ const r = h[1], g = h[2], b = h[3];
11
+ return `#${r}${r}${g}${g}${b}${b}`;
12
+ }
13
+ if (h.length !== 7) throw new Error(`Invalid hex color: "${hex}". Expected #RRGGBB or #RGB`);
14
+ return h;
15
+ };
16
+ var hexToRgb = (hex) => {
17
+ const h = normalizeHex(hex);
18
+ return {
19
+ r: parseInt(h.slice(1, 3), 16),
20
+ g: parseInt(h.slice(3, 5), 16),
21
+ b: parseInt(h.slice(5, 7), 16)
22
+ };
23
+ };
24
+ var hexToRgba = (hex, a = 1) => {
25
+ const { r, g, b } = hexToRgb(hex);
26
+ return {
27
+ r,
28
+ g,
29
+ b,
30
+ a
31
+ };
32
+ };
33
+ var rgbToHex = ({ r, g, b }) => "#" + [
34
+ r,
35
+ g,
36
+ b
37
+ ].map((v) => clamp(Math.round(v), 0, 255).toString(16).padStart(2, "0")).join("");
38
+ var rgbToHsl = ({ r, g, b }) => {
39
+ r /= 255;
40
+ g /= 255;
41
+ b /= 255;
42
+ const max = Math.max(r, g, b);
43
+ const min = Math.min(r, g, b);
44
+ const delta = max - min;
45
+ let h = 0;
46
+ let s = 0;
47
+ const l = (max + min) / 2;
48
+ if (delta !== 0) {
49
+ s = delta / (1 - Math.abs(2 * l - 1));
50
+ switch (max) {
51
+ case r:
52
+ h = (g - b) / delta % 6;
53
+ break;
54
+ case g:
55
+ h = (b - r) / delta + 2;
56
+ break;
57
+ case b:
58
+ h = (r - g) / delta + 4;
59
+ break;
60
+ }
61
+ h *= 60;
62
+ if (h < 0) h += 360;
63
+ }
64
+ return {
65
+ h,
66
+ s,
67
+ l
68
+ };
69
+ };
70
+ var hslToRgb = ({ h, s, l }) => {
71
+ h = wrap360(h);
72
+ s = clamp01(s);
73
+ l = clamp01(l);
74
+ const c = (1 - Math.abs(2 * l - 1)) * s;
75
+ const x = c * (1 - Math.abs(h / 60 % 2 - 1));
76
+ const m = l - c / 2;
77
+ let r = 0, g = 0, b = 0;
78
+ if (h < 60) [r, g, b] = [
79
+ c,
80
+ x,
81
+ 0
82
+ ];
83
+ else if (h < 120) [r, g, b] = [
84
+ x,
85
+ c,
86
+ 0
87
+ ];
88
+ else if (h < 180) [r, g, b] = [
89
+ 0,
90
+ c,
91
+ x
92
+ ];
93
+ else if (h < 240) [r, g, b] = [
94
+ 0,
95
+ x,
96
+ c
97
+ ];
98
+ else if (h < 300) [r, g, b] = [
99
+ x,
100
+ 0,
101
+ c
102
+ ];
103
+ else [r, g, b] = [
104
+ c,
105
+ 0,
106
+ x
107
+ ];
108
+ return {
109
+ r: (r + m) * 255,
110
+ g: (g + m) * 255,
111
+ b: (b + m) * 255
112
+ };
113
+ };
114
+ var hslToHex = ({ h, s, l }) => {
115
+ const { r, g, b } = hslToRgb({
116
+ h,
117
+ s,
118
+ l
119
+ });
120
+ return rgbToHex({
121
+ r,
122
+ g,
123
+ b
124
+ });
125
+ };
126
+ var rgbToHsva = ({ r, g, b }) => {
127
+ r /= 255;
128
+ g /= 255;
129
+ b /= 255;
130
+ const max = Math.max(r, g, b);
131
+ const delta = max - Math.min(r, g, b);
132
+ let h = 0;
133
+ if (delta !== 0) {
134
+ if (max === r) h = (g - b) / delta % 6;
135
+ else if (max === g) h = (b - r) / delta + 2;
136
+ else h = (r - g) / delta + 4;
137
+ h *= 60;
138
+ if (h < 0) h += 360;
139
+ }
140
+ const s = max === 0 ? 0 : delta / max * 100;
141
+ const v = max * 100;
142
+ return {
143
+ h,
144
+ s,
145
+ v,
146
+ a: 1
147
+ };
148
+ };
149
+ var hsvaToRgb = ({ h, s, v, a: _a }) => {
150
+ const sNorm = s / 100;
151
+ const vNorm = v / 100;
152
+ const c = vNorm * sNorm;
153
+ const x = c * (1 - Math.abs(h / 60 % 2 - 1));
154
+ const m = vNorm - c;
155
+ let r = 0, g = 0, b = 0;
156
+ if (h < 60) [r, g, b] = [
157
+ c,
158
+ x,
159
+ 0
160
+ ];
161
+ else if (h < 120) [r, g, b] = [
162
+ x,
163
+ c,
164
+ 0
165
+ ];
166
+ else if (h < 180) [r, g, b] = [
167
+ 0,
168
+ c,
169
+ x
170
+ ];
171
+ else if (h < 240) [r, g, b] = [
172
+ 0,
173
+ x,
174
+ c
175
+ ];
176
+ else if (h < 300) [r, g, b] = [
177
+ x,
178
+ 0,
179
+ c
180
+ ];
181
+ else [r, g, b] = [
182
+ c,
183
+ 0,
184
+ x
185
+ ];
186
+ return {
187
+ r: Math.round((r + m) * 255),
188
+ g: Math.round((g + m) * 255),
189
+ b: Math.round((b + m) * 255)
190
+ };
191
+ };
192
+ var hexToHsva = (hex) => {
193
+ return rgbToHsva(hexToRgb(hex));
194
+ };
195
+ var hsvaToHex = (hsva) => {
196
+ return rgbToHex(hsvaToRgb(hsva));
197
+ };
198
+ /**
199
+ * Generates a random hex color
200
+ * @returns A random hex color in the format #RRGGBB
201
+ */
202
+ var generateRandomHexColor = () => {
203
+ return `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`;
204
+ };
205
+ /**
206
+ * Gets an opaque hex color
207
+ * @param hex - The hex color to add opacity to
208
+ * @param opacity - The opacity to add (0-1)
209
+ * @returns A hex color with the added opacity
210
+ */
211
+ var getOpaqueHexColor = (hex, opacity = .5) => {
212
+ const { r, g, b } = hexToRgb(hex);
213
+ return `rgba(${r}, ${g}, ${b}, ${opacity})`;
214
+ };
215
+ /**
216
+ * Generates a darker hex color by subtracting from each RGB channel (clamped)
217
+ * @param hex - The hex color to darken
218
+ * @param amount - Amount to subtract from each channel (0..255-ish)
219
+ */
220
+ var getDarkerHexColor = (hex, amount = 50) => {
221
+ const { r, g, b } = hexToRgb(hex);
222
+ return rgbToHex({
223
+ r: r - amount,
224
+ g: g - amount,
225
+ b: b - amount
226
+ });
227
+ };
228
+ /**
229
+ * Generates a lighter hex color by adding to each RGB channel (clamped)
230
+ * @param hex - The hex color to lighten
231
+ * @param amount - Amount to add to each channel (0..255-ish)
232
+ */
233
+ var getLighterHexColor = (hex, amount = 50) => {
234
+ const { r, g, b } = hexToRgb(hex);
235
+ return rgbToHex({
236
+ r: r + amount,
237
+ g: g + amount,
238
+ b: b + amount
239
+ });
240
+ };
241
+ /**
242
+ * Creates a brighter, more neon/vibrant version of a color.
243
+ * Lightens the color while increasing saturation to create a neon effect.
244
+ * This is designed to complement getDarkerPronouncedHexColor - when applied
245
+ * to the same base color, they create a bright text/dark background pair.
246
+ *
247
+ * @param hex - The hex color to transform
248
+ * @param lightnessTarget - Target lightness (0-1, default 0.82 = 82% lightness for bright neon colors)
249
+ * @param saturationTarget - Target saturation (0-1, default 0.75 = 75% saturation for vibrant look)
250
+ * @returns A brighter, more saturated hex color
251
+ */
252
+ var getBrighterPronouncedHexColor = (hex, lightnessTarget = .82, saturationTarget = .75) => {
253
+ const { r, g, b } = hexToRgb(hex);
254
+ const { h, s } = rgbToHsl({
255
+ r,
256
+ g,
257
+ b
258
+ });
259
+ const newLightness = clamp01(lightnessTarget);
260
+ return hslToHex({
261
+ h,
262
+ s: clamp01(Math.max(saturationTarget, s * 1.2)),
263
+ l: newLightness
264
+ });
265
+ };
266
+ /**
267
+ * Creates a darker but more pronounced/vibrant version of a color.
268
+ * Darkens the color while increasing saturation to maintain vibrancy.
269
+ * This creates a rich, deep color that pairs perfectly with getBrighterPronouncedHexColor.
270
+ * When both are applied to the same base color, they create complementary pairs.
271
+ *
272
+ * @param hex - The hex color to transform
273
+ * @param lightnessTarget - Target lightness (0-1, default 0.18 = 18% lightness for dark rich colors)
274
+ * @param saturationTarget - Target saturation (0-1, default 0.35 = 35% saturation for pronounced dark colors)
275
+ * @returns A darker, more saturated hex color
276
+ */
277
+ var getDarkerPronouncedHexColor = (hex, lightnessTarget = .18, saturationTarget = .35) => {
278
+ const { r, g, b } = hexToRgb(hex);
279
+ const { h, s } = rgbToHsl({
280
+ r,
281
+ g,
282
+ b
283
+ });
284
+ const newLightness = clamp01(lightnessTarget);
285
+ return hslToHex({
286
+ h,
287
+ s: clamp01(Math.max(saturationTarget, s * 1.1)),
288
+ l: newLightness
289
+ });
290
+ };
291
+ /**
292
+ * Random pastel color (soft, light, UI-friendly)
293
+ */
294
+ var generateRandomPastelHexColor = () => {
295
+ return hslToHex({
296
+ h: rand(0, 360),
297
+ s: rand(.25, .55),
298
+ l: rand(.75, .9)
299
+ });
300
+ };
301
+ /**
302
+ * Random vibrant color (saturated, bold, UI-friendly)
303
+ * Generates colors similar to: #5D9CEC, #4FC1E9, #48CFAD, #A0D468, #FFCE54, #FC6E51, #ED5565, #AC92EC, #EC87C0
304
+ */
305
+ var generateRandomVibrantHexColor = () => {
306
+ const hueRanges = [
307
+ [0, 60],
308
+ [60, 90],
309
+ [90, 150],
310
+ [150, 210],
311
+ [210, 270],
312
+ [270, 330],
313
+ [330, 360]
314
+ ];
315
+ const range = hueRanges[Math.floor(Math.random() * hueRanges.length)];
316
+ return hslToHex({
317
+ h: rand(range[0], range[1]),
318
+ s: rand(.6, .95),
319
+ l: rand(.5, .75)
320
+ });
321
+ };
322
+ //#endregion
323
+ export { generateRandomHexColor, generateRandomPastelHexColor, generateRandomVibrantHexColor, getBrighterPronouncedHexColor, getDarkerHexColor, getDarkerPronouncedHexColor, getLighterHexColor, getOpaqueHexColor, hexToHsva, hexToRgb, hexToRgba, hslToHex, hslToRgb, hsvaToHex, rgbToHex, rgbToHsl };
@@ -0,0 +1 @@
1
+ export declare function getCssSizeValue(value?: number | string, fallback?: number | string): string;
@@ -0,0 +1,8 @@
1
+ //#region src/utils/linaria.ts
2
+ function getCssSizeValue(value, fallback) {
3
+ if (typeof value === "number") return `${value}px`;
4
+ if (typeof fallback === "number") return `${fallback}px`;
5
+ return value ?? fallback ?? "0";
6
+ }
7
+ //#endregion
8
+ export { getCssSizeValue };
@@ -0,0 +1,28 @@
1
+ import type { PropsWithChildren } from "react";
2
+ export declare enum WidgetVariant {
3
+ BASE = "BASE",
4
+ PRIMARY = "PRIMARY",
5
+ SECONDARY = "SECONDARY",
6
+ TERTIARY = "TERTIARY",
7
+ ERROR = "ERROR",
8
+ DISABLED = "DISABLED"
9
+ }
10
+ interface WidgetProps {
11
+ header?: string;
12
+ minWidth?: number | string;
13
+ maxWidth?: number | string;
14
+ minHeight?: number | string;
15
+ maxHeight?: number | string;
16
+ fillWidth?: boolean;
17
+ fillHeight?: boolean;
18
+ padding?: React.CSSProperties["padding"];
19
+ noPadding?: boolean;
20
+ noHover?: boolean;
21
+ noBorder?: boolean;
22
+ isGradient?: boolean;
23
+ isSelected?: boolean;
24
+ variant?: WidgetVariant;
25
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
26
+ }
27
+ declare const Widget: ({ children, minHeight, maxHeight, minWidth, maxWidth, fillWidth, fillHeight, padding, noPadding, noHover, noBorder, isSelected, variant, onClick, }: PropsWithChildren<WidgetProps>) => import("react").JSX.Element;
28
+ export default Widget;