@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.
- package/README.md +42 -0
- package/dist/accordion/Accordion.d.ts +30 -0
- package/dist/accordion/Accordion.js +147 -0
- package/dist/animations/Fade.d.ts +6 -0
- package/dist/animations/Fade.js +22 -0
- package/dist/animations/Flashing.d.ts +3 -0
- package/dist/animations/Flashing.js +14 -0
- package/dist/animations/RotateWithTransition.d.ts +8 -0
- package/dist/animations/RotateWithTransition.js +28 -0
- package/dist/animations/ScaleFade.d.ts +6 -0
- package/dist/animations/ScaleFade.js +31 -0
- package/dist/animations/SpinAnimation.d.ts +7 -0
- package/dist/animations/SpinAnimation.js +20 -0
- package/dist/animations/SpinVerticalAnimation.d.ts +6 -0
- package/dist/animations/SpinVerticalAnimation.js +19 -0
- package/dist/assets/components/GalaxyLogomarkDark.d.ts +3 -0
- package/dist/assets/components/GalaxyLogomarkDark.js +11 -0
- package/dist/assets/components/GalaxyLogomarkLight.d.ts +3 -0
- package/dist/assets/components/GalaxyLogomarkLight.js +17 -0
- package/dist/assets/components/GalaxyWordmarkDark.d.ts +3 -0
- package/dist/assets/components/GalaxyWordmarkDark.js +15 -0
- package/dist/assets/components/GalaxyWordmarkLight.d.ts +3 -0
- package/dist/assets/components/GalaxyWordmarkLight.js +28 -0
- package/dist/assets/components/enrichment/PerplexityIcon.d.ts +3 -0
- package/dist/assets/components/enrichment/PerplexityIcon.js +35 -0
- package/dist/assets/components/enrichment/TavilyIcon.d.ts +3 -0
- package/dist/assets/components/enrichment/TavilyIcon.js +15 -0
- package/dist/assets/components/onboarding/TenantSetupDark.d.ts +3 -0
- package/dist/assets/components/onboarding/TenantSetupDark.js +498 -0
- package/dist/assets/components/onboarding/TenantSetupLight.d.ts +3 -0
- package/dist/assets/components/onboarding/TenantSetupLight.js +482 -0
- package/dist/assets/components/onboarding/UserSetupDark.d.ts +3 -0
- package/dist/assets/components/onboarding/UserSetupDark.js +1086 -0
- package/dist/assets/components/onboarding/UserSetupLight.d.ts +3 -0
- package/dist/assets/components/onboarding/UserSetupLight.js +1024 -0
- package/dist/assets/components/onboarding/WorkspaceSetupBuildDark.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupBuildDark.js +466 -0
- package/dist/assets/components/onboarding/WorkspaceSetupBuildLight.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupBuildLight.js +460 -0
- package/dist/assets/components/onboarding/WorkspaceSetupConnectDark.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupConnectDark.js +336 -0
- package/dist/assets/components/onboarding/WorkspaceSetupConnectLight.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupConnectLight.js +336 -0
- package/dist/assets/components/onboarding/WorkspaceSetupIntegrateDark.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupIntegrateDark.js +153 -0
- package/dist/assets/components/onboarding/WorkspaceSetupIntegrateLight.d.ts +3 -0
- package/dist/assets/components/onboarding/WorkspaceSetupIntegrateLight.js +153 -0
- package/dist/assets/components/projects/MappingMethodAutoIntrospectDark.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodAutoIntrospectDark.js +117 -0
- package/dist/assets/components/projects/MappingMethodAutoIntrospectLight.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodAutoIntrospectLight.js +117 -0
- package/dist/assets/components/projects/MappingMethodBlankDark.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodBlankDark.js +150 -0
- package/dist/assets/components/projects/MappingMethodBlankDarkHovered.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodBlankDarkHovered.js +150 -0
- package/dist/assets/components/projects/MappingMethodBlankLight.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodBlankLight.js +150 -0
- package/dist/assets/components/projects/MappingMethodBlankLightHovered.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodBlankLightHovered.js +150 -0
- package/dist/assets/components/projects/MappingMethodJsonDark.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodJsonDark.js +90 -0
- package/dist/assets/components/projects/MappingMethodJsonDarkHovered.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodJsonDarkHovered.js +90 -0
- package/dist/assets/components/projects/MappingMethodJsonLight.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodJsonLight.js +90 -0
- package/dist/assets/components/projects/MappingMethodJsonLightHovered.d.ts +3 -0
- package/dist/assets/components/projects/MappingMethodJsonLightHovered.js +90 -0
- package/dist/assets/components/projects/ProjectsEmptyStateDark.d.ts +3 -0
- package/dist/assets/components/projects/ProjectsEmptyStateDark.js +454 -0
- package/dist/assets/components/projects/ProjectsEmptyStateLight.d.ts +3 -0
- package/dist/assets/components/projects/ProjectsEmptyStateLight.js +456 -0
- package/dist/assets/components/root/CreateProjectActionCardDark.d.ts +3 -0
- package/dist/assets/components/root/CreateProjectActionCardDark.js +1796 -0
- package/dist/assets/components/root/CreateProjectActionCardDarkHovered.d.ts +3 -0
- package/dist/assets/components/root/CreateProjectActionCardDarkHovered.js +1796 -0
- package/dist/assets/components/root/CreateProjectActionCardLight.d.ts +3 -0
- package/dist/assets/components/root/CreateProjectActionCardLight.js +1786 -0
- package/dist/assets/components/root/CreateProjectActionCardLightHovered.d.ts +3 -0
- package/dist/assets/components/root/CreateProjectActionCardLightHovered.js +1786 -0
- package/dist/assets/components/root/CreateSourceActionCardDark.d.ts +3 -0
- package/dist/assets/components/root/CreateSourceActionCardDark.js +879 -0
- package/dist/assets/components/root/CreateSourceActionCardDarkHovered.d.ts +3 -0
- package/dist/assets/components/root/CreateSourceActionCardDarkHovered.js +879 -0
- package/dist/assets/components/root/CreateSourceActionCardLight.d.ts +3 -0
- package/dist/assets/components/root/CreateSourceActionCardLight.js +889 -0
- package/dist/assets/components/root/CreateSourceActionCardLightHovered.d.ts +3 -0
- package/dist/assets/components/root/CreateSourceActionCardLightHovered.js +889 -0
- package/dist/assets/components/sources/AttioIcon.d.ts +3 -0
- package/dist/assets/components/sources/AttioIcon.js +11 -0
- package/dist/assets/components/sources/BigquerySourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/BigquerySourceIcon.js +39 -0
- package/dist/assets/components/sources/BrowserbaseSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/BrowserbaseSourceIcon.js +35 -0
- package/dist/assets/components/sources/ClickhouseLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/ClickhouseLogoSourceIconDark.js +13 -0
- package/dist/assets/components/sources/ClickhouseLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/ClickhouseLogoSourceIconLight.js +13 -0
- package/dist/assets/components/sources/ConfluenceSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/ConfluenceSourceIcon.js +30 -0
- package/dist/assets/components/sources/GalaxyFileUploadSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/GalaxyFileUploadSourceIcon.js +16 -0
- package/dist/assets/components/sources/GalaxyTextSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/GalaxyTextSourceIcon.js +16 -0
- package/dist/assets/components/sources/GalaxyWebhookSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/GalaxyWebhookSourceIcon.js +16 -0
- package/dist/assets/components/sources/GithubSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/GithubSourceIcon.js +27 -0
- package/dist/assets/components/sources/GoogleDriveIcon.d.ts +3 -0
- package/dist/assets/components/sources/GoogleDriveIcon.js +45 -0
- package/dist/assets/components/sources/HubspotSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/HubspotSourceIcon.js +14 -0
- package/dist/assets/components/sources/JiraSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/JiraSourceIcon.js +54 -0
- package/dist/assets/components/sources/LinearSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/LinearSourceIcon.js +14 -0
- package/dist/assets/components/sources/MysqlLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/MysqlLogoSourceIconDark.js +17 -0
- package/dist/assets/components/sources/MysqlLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/MysqlLogoSourceIconLight.js +17 -0
- package/dist/assets/components/sources/NetsuiteSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/NetsuiteSourceIcon.js +32 -0
- package/dist/assets/components/sources/NotionIcon.d.ts +3 -0
- package/dist/assets/components/sources/NotionIcon.js +20 -0
- package/dist/assets/components/sources/NotionLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/NotionLogoSourceIconDark.js +10 -0
- package/dist/assets/components/sources/NotionLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/NotionLogoSourceIconLight.js +13 -0
- package/dist/assets/components/sources/PostgresLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/PostgresLogoSourceIconDark.js +28 -0
- package/dist/assets/components/sources/PostgresLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/PostgresLogoSourceIconLight.js +28 -0
- package/dist/assets/components/sources/PostgresqlIcon.d.ts +3 -0
- package/dist/assets/components/sources/PostgresqlIcon.js +61 -0
- package/dist/assets/components/sources/PostgresqlLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/PostgresqlLogoSourceIconDark.js +10 -0
- package/dist/assets/components/sources/PostgresqlLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/PostgresqlLogoSourceIconLight.js +13 -0
- package/dist/assets/components/sources/S3Icon.d.ts +3 -0
- package/dist/assets/components/sources/S3Icon.js +76 -0
- package/dist/assets/components/sources/S3LogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/S3LogoSourceIconDark.js +10 -0
- package/dist/assets/components/sources/S3LogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/S3LogoSourceIconLight.js +13 -0
- package/dist/assets/components/sources/SalesforceSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/SalesforceSourceIcon.js +23 -0
- package/dist/assets/components/sources/SlackIcon.d.ts +3 -0
- package/dist/assets/components/sources/SlackIcon.js +32 -0
- package/dist/assets/components/sources/SlackLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/SlackLogoSourceIconDark.js +15 -0
- package/dist/assets/components/sources/SlackLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/SlackLogoSourceIconLight.js +15 -0
- package/dist/assets/components/sources/SnowflakeLogoSourceIconDark.d.ts +3 -0
- package/dist/assets/components/sources/SnowflakeLogoSourceIconDark.js +14 -0
- package/dist/assets/components/sources/SnowflakeLogoSourceIconLight.d.ts +3 -0
- package/dist/assets/components/sources/SnowflakeLogoSourceIconLight.js +14 -0
- package/dist/assets/components/sources/SourcesEmptyStateDark.d.ts +3 -0
- package/dist/assets/components/sources/SourcesEmptyStateDark.js +432 -0
- package/dist/assets/components/sources/SourcesEmptyStateLight.d.ts +3 -0
- package/dist/assets/components/sources/SourcesEmptyStateLight.js +434 -0
- package/dist/assets/components/sources/WikipediaSourceIcon.d.ts +3 -0
- package/dist/assets/components/sources/WikipediaSourceIcon.js +1490 -0
- package/dist/assets/models/galaxy-logomark.js +4 -0
- package/dist/avatar/Avatar.d.ts +9 -0
- package/dist/avatar/Avatar.js +52 -0
- package/dist/avatar/AvatarEmpty.d.ts +36 -0
- package/dist/avatar/AvatarEmpty.js +43 -0
- package/dist/avatar/AvatarShimmer.d.ts +28 -0
- package/dist/avatar/AvatarShimmer.js +21 -0
- package/dist/avatar/GalaxyAvatar.d.ts +6 -0
- package/dist/avatar/GalaxyAvatar.js +36 -0
- package/dist/avatar/types.d.ts +5 -0
- package/dist/avatar/types.js +9 -0
- package/dist/backgrounds/CellGridBackground.d.ts +13 -0
- package/dist/backgrounds/CellGridBackground.js +39 -0
- package/dist/backgrounds/CrossGridBackground.d.ts +14 -0
- package/dist/backgrounds/CrossGridBackground.js +45 -0
- package/dist/backgrounds/DotGridBackground.d.ts +13 -0
- package/dist/backgrounds/DotGridBackground.js +43 -0
- package/dist/badge/Badge.d.ts +30 -0
- package/dist/badge/Badge.js +92 -0
- package/dist/beacons/Beacon.d.ts +43 -0
- package/dist/beacons/Beacon.js +68 -0
- package/dist/buttons/Button.d.ts +30 -0
- package/dist/buttons/Button.js +173 -0
- package/dist/charts/BarChart.d.ts +21 -0
- package/dist/charts/BarChart.js +264 -0
- package/dist/charts/ChartAxis.d.ts +28 -0
- package/dist/charts/ChartAxis.js +94 -0
- package/dist/charts/ChartLegend.d.ts +7 -0
- package/dist/charts/ChartLegend.js +30 -0
- package/dist/charts/ChartTooltip.d.ts +7 -0
- package/dist/charts/ChartTooltip.js +66 -0
- package/dist/charts/LineChart.d.ts +22 -0
- package/dist/charts/LineChart.js +250 -0
- package/dist/charts/PieChart.d.ts +35 -0
- package/dist/charts/PieChart.js +183 -0
- package/dist/charts/constants.d.ts +22 -0
- package/dist/charts/constants.js +38 -0
- package/dist/charts/types.d.ts +80 -0
- package/dist/charts/types.js +0 -0
- package/dist/charts/utils.d.ts +29 -0
- package/dist/charts/utils.js +62 -0
- package/dist/chips/Chip.d.ts +39 -0
- package/dist/chips/Chip.js +185 -0
- package/dist/containers/FlexItem.d.ts +28 -0
- package/dist/containers/FlexItem.js +93 -0
- package/dist/containers/FlexWrapper.d.ts +147 -0
- package/dist/containers/FlexWrapper.js +122 -0
- package/dist/containers/GridWrapper.d.ts +120 -0
- package/dist/containers/GridWrapper.js +117 -0
- package/dist/containers/Spacing.d.ts +13 -0
- package/dist/containers/Spacing.js +52 -0
- package/dist/containers/Wrapper.d.ts +16 -0
- package/dist/containers/Wrapper.js +50 -0
- package/dist/dividers/HorizontalDivider.d.ts +2 -0
- package/dist/dividers/HorizontalDivider.js +17 -0
- package/dist/dividers/VerticalDivider.d.ts +2 -0
- package/dist/dividers/VerticalDivider.js +17 -0
- package/dist/drawer/Drawer.d.ts +13 -0
- package/dist/drawer/Drawer.js +70 -0
- package/dist/dropdown/Dropdown.d.ts +51 -0
- package/dist/dropdown/Dropdown.js +136 -0
- package/dist/dropdown/DropdownButton.d.ts +18 -0
- package/dist/dropdown/DropdownButton.js +179 -0
- package/dist/dropdown/DropdownFooter.d.ts +10 -0
- package/dist/dropdown/DropdownFooter.js +35 -0
- package/dist/dropdown/DropdownItem.d.ts +10 -0
- package/dist/dropdown/DropdownItem.js +38 -0
- package/dist/editor/CodeEditor.d.ts +68 -0
- package/dist/editor/CodeEditor.js +435 -0
- package/dist/editor/CodeEditorReactWidget.d.ts +35 -0
- package/dist/editor/CodeEditorReactWidget.js +47 -0
- package/dist/hooks/useDismiss.d.ts +27 -0
- package/dist/hooks/useDismiss.js +37 -0
- package/dist/hooks/useElementWidth.d.ts +22 -0
- package/dist/hooks/useElementWidth.js +44 -0
- package/dist/hooks/useResize.d.ts +83 -0
- package/dist/hooks/useResize.js +114 -0
- package/dist/hotkeys/HotKeyBindings.d.ts +7 -0
- package/dist/hotkeys/HotKeyBindings.js +23 -0
- package/dist/hotkeys/HotKeySymbol.d.ts +13 -0
- package/dist/hotkeys/HotKeySymbol.js +49 -0
- package/dist/icons/BackIcon.d.ts +3 -0
- package/dist/icons/BackIcon.js +13 -0
- package/dist/icons/CloseIcon.d.ts +3 -0
- package/dist/icons/CloseIcon.js +13 -0
- package/dist/icons/CreateIcon.d.ts +3 -0
- package/dist/icons/CreateIcon.js +13 -0
- package/dist/icons/ForwardIcon.d.ts +3 -0
- package/dist/icons/ForwardIcon.js +13 -0
- package/dist/icons/GalaxyLogomark.d.ts +5 -0
- package/dist/icons/GalaxyLogomark.js +21 -0
- package/dist/icons/GalaxyLogomark3D.d.ts +41 -0
- package/dist/icons/GalaxyLogomark3D.js +310 -0
- package/dist/icons/GalaxyWordmark.d.ts +5 -0
- package/dist/icons/GalaxyWordmark.js +21 -0
- package/dist/icons/HelpIcon.d.ts +3 -0
- package/dist/icons/HelpIcon.js +14 -0
- package/dist/icons/Icon.d.ts +41 -0
- package/dist/icons/Icon.js +51 -0
- package/dist/icons/ProjectsIcon.d.ts +3 -0
- package/dist/icons/ProjectsIcon.js +12 -0
- package/dist/icons/SearchIcon.d.ts +3 -0
- package/dist/icons/SearchIcon.js +12 -0
- package/dist/icons/SourcesIcon.d.ts +3 -0
- package/dist/icons/SourcesIcon.js +12 -0
- package/dist/icons/TextIcon.d.ts +4 -0
- package/dist/icons/TextIcon.js +22 -0
- package/dist/icons/WebScrapeIcon.d.ts +4 -0
- package/dist/icons/WebScrapeIcon.js +22 -0
- package/dist/icons/WebhookIcon.d.ts +4 -0
- package/dist/icons/WebhookIcon.js +22 -0
- package/dist/icons/sources/AttioLogomark.d.ts +4 -0
- package/dist/icons/sources/AttioLogomark.js +8 -0
- package/dist/icons/sources/BrowserbaseLogomark.d.ts +4 -0
- package/dist/icons/sources/BrowserbaseLogomark.js +8 -0
- package/dist/icons/sources/ClickhouseLogomark.d.ts +4 -0
- package/dist/icons/sources/ClickhouseLogomark.js +16 -0
- package/dist/icons/sources/ConfluenceLogomark.d.ts +4 -0
- package/dist/icons/sources/ConfluenceLogomark.js +8 -0
- package/dist/icons/sources/GithubLogomark.d.ts +4 -0
- package/dist/icons/sources/GithubLogomark.js +8 -0
- package/dist/icons/sources/GoogleBigqueryLogomark.d.ts +4 -0
- package/dist/icons/sources/GoogleBigqueryLogomark.js +8 -0
- package/dist/icons/sources/GoogleDriveLogomark.d.ts +4 -0
- package/dist/icons/sources/GoogleDriveLogomark.js +8 -0
- package/dist/icons/sources/HubspotLogomark.d.ts +4 -0
- package/dist/icons/sources/HubspotLogomark.js +8 -0
- package/dist/icons/sources/JiraLogomark.d.ts +4 -0
- package/dist/icons/sources/JiraLogomark.js +8 -0
- package/dist/icons/sources/LinearLogomark.d.ts +4 -0
- package/dist/icons/sources/LinearLogomark.js +8 -0
- package/dist/icons/sources/MySQLLogomark.d.ts +4 -0
- package/dist/icons/sources/MySQLLogomark.js +8 -0
- package/dist/icons/sources/NetsuiteLogomark.d.ts +4 -0
- package/dist/icons/sources/NetsuiteLogomark.js +8 -0
- package/dist/icons/sources/NotionLogomark.d.ts +4 -0
- package/dist/icons/sources/NotionLogomark.js +8 -0
- package/dist/icons/sources/PostgresLogomark.d.ts +4 -0
- package/dist/icons/sources/PostgresLogomark.js +8 -0
- package/dist/icons/sources/S3Logomark.d.ts +4 -0
- package/dist/icons/sources/S3Logomark.js +8 -0
- package/dist/icons/sources/SalesforceLogomark.d.ts +4 -0
- package/dist/icons/sources/SalesforceLogomark.js +8 -0
- package/dist/icons/sources/SlackLogoIconmark.d.ts +4 -0
- package/dist/icons/sources/SlackLogoIconmark.js +8 -0
- package/dist/icons/sources/SnowflakeLogomark.d.ts +4 -0
- package/dist/icons/sources/SnowflakeLogomark.js +16 -0
- package/dist/icons/sources/WikipediaLogomark.d.ts +4 -0
- package/dist/icons/sources/WikipediaLogomark.js +8 -0
- package/dist/inputs/CheckboxInput.d.ts +20 -0
- package/dist/inputs/CheckboxInput.js +97 -0
- package/dist/inputs/ColorInput.d.ts +20 -0
- package/dist/inputs/ColorInput.js +368 -0
- package/dist/inputs/CopyInput.d.ts +15 -0
- package/dist/inputs/CopyInput.js +46 -0
- package/dist/inputs/DateInput.d.ts +19 -0
- package/dist/inputs/DateInput.js +498 -0
- package/dist/inputs/Input.d.ts +91 -0
- package/dist/inputs/Input.js +205 -0
- package/dist/inputs/MultiSelectInput.d.ts +38 -0
- package/dist/inputs/MultiSelectInput.js +566 -0
- package/dist/inputs/MultiTextInput.d.ts +27 -0
- package/dist/inputs/MultiTextInput.js +178 -0
- package/dist/inputs/NumberInput.d.ts +4 -0
- package/dist/inputs/NumberInput.js +34 -0
- package/dist/inputs/PasswordInput.d.ts +4 -0
- package/dist/inputs/PasswordInput.js +40 -0
- package/dist/inputs/RadioInput.d.ts +20 -0
- package/dist/inputs/RadioInput.js +108 -0
- package/dist/inputs/SelectInput.d.ts +51 -0
- package/dist/inputs/SelectInput.js +528 -0
- package/dist/inputs/SliderInput.d.ts +16 -0
- package/dist/inputs/SliderInput.js +172 -0
- package/dist/inputs/TextAreaInput.d.ts +40 -0
- package/dist/inputs/TextAreaInput.js +238 -0
- package/dist/inputs/TextInput.d.ts +4 -0
- package/dist/inputs/TextInput.js +53 -0
- package/dist/inputs/ToggleInput.d.ts +11 -0
- package/dist/inputs/ToggleInput.js +100 -0
- package/dist/inputs/hooks.d.ts +10 -0
- package/dist/inputs/hooks.js +22 -0
- package/dist/links/Link.d.ts +2 -0
- package/dist/links/Link.js +10 -0
- package/dist/lists/BulletedList.d.ts +11 -0
- package/dist/lists/BulletedList.js +41 -0
- package/dist/metrics/MetricItem.d.ts +15 -0
- package/dist/metrics/MetricItem.js +53 -0
- package/dist/metrics/ProgressBar.d.ts +15 -0
- package/dist/metrics/ProgressBar.js +60 -0
- package/dist/modal/Modal.d.ts +7 -0
- package/dist/modal/Modal.js +52 -0
- package/dist/overlay/OverlayProvider.d.ts +26 -0
- package/dist/overlay/OverlayProvider.js +92 -0
- package/dist/overlay/constants.d.ts +27 -0
- package/dist/overlay/constants.js +36 -0
- package/dist/overlay/useOverlay.d.ts +7 -0
- package/dist/overlay/useOverlay.js +46 -0
- package/dist/resizable/HorizontalResizeHandle.d.ts +10 -0
- package/dist/resizable/HorizontalResizeHandle.js +32 -0
- package/dist/resizable/VerticalResizeHandle.d.ts +11 -0
- package/dist/resizable/VerticalResizeHandle.js +33 -0
- package/dist/shapes/Circle.d.ts +6 -0
- package/dist/shapes/Circle.js +25 -0
- package/dist/spreadsheet/InfiniteSpreadsheet.d.ts +3 -0
- package/dist/spreadsheet/InfiniteSpreadsheet.js +265 -0
- package/dist/spreadsheet/SpreadsheetAddColumnButton.d.ts +6 -0
- package/dist/spreadsheet/SpreadsheetAddColumnButton.js +32 -0
- package/dist/spreadsheet/SpreadsheetCell.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetCell.js +115 -0
- package/dist/spreadsheet/SpreadsheetCellEditor.d.ts +11 -0
- package/dist/spreadsheet/SpreadsheetCellEditor.js +95 -0
- package/dist/spreadsheet/SpreadsheetHeaderCell.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetHeaderCell.js +125 -0
- package/dist/spreadsheet/SpreadsheetRow.d.ts +21 -0
- package/dist/spreadsheet/SpreadsheetRow.js +68 -0
- package/dist/spreadsheet/SpreadsheetRowActionCell.d.ts +11 -0
- package/dist/spreadsheet/SpreadsheetRowActionCell.js +60 -0
- package/dist/spreadsheet/hooks/useColumnResize.d.ts +6 -0
- package/dist/spreadsheet/hooks/useColumnResize.js +46 -0
- package/dist/spreadsheet/hooks/useSpreadsheetEditing.d.ts +13 -0
- package/dist/spreadsheet/hooks/useSpreadsheetEditing.js +41 -0
- package/dist/spreadsheet/types.d.ts +92 -0
- package/dist/spreadsheet/types.js +21 -0
- package/dist/styles.css +213 -0
- package/dist/switcher/Switcher.d.ts +11 -0
- package/dist/switcher/Switcher.js +41 -0
- package/dist/table/InfiniteTable.d.ts +83 -0
- package/dist/table/InfiniteTable.js +711 -0
- package/dist/table/VirtualizedInfiniteTable.d.ts +28 -0
- package/dist/table/VirtualizedInfiniteTable.js +359 -0
- package/dist/text/Bold.d.ts +3 -0
- package/dist/text/Bold.js +17 -0
- package/dist/text/Code.d.ts +3 -0
- package/dist/text/Code.js +27 -0
- package/dist/text/EditableText.d.ts +7 -0
- package/dist/text/EditableText.js +141 -0
- package/dist/text/Ellipsis.d.ts +10 -0
- package/dist/text/Ellipsis.js +28 -0
- package/dist/text/MarkdownText.d.ts +7 -0
- package/dist/text/MarkdownText.js +295 -0
- package/dist/text/Paragraph.d.ts +16 -0
- package/dist/text/Paragraph.js +76 -0
- package/dist/text/RequiredMarker.d.ts +6 -0
- package/dist/text/RequiredMarker.js +44 -0
- package/dist/text/Selectable.d.ts +3 -0
- package/dist/text/Selectable.js +15 -0
- package/dist/text/Text.d.ts +47 -0
- package/dist/text/Text.js +104 -0
- package/dist/text/TextShimmer.d.ts +7 -0
- package/dist/text/TextShimmer.js +30 -0
- package/dist/theme/GalaxyTheme.d.ts +36 -0
- package/dist/theme/GalaxyTheme.js +107 -0
- package/dist/theme/constants.d.ts +13 -0
- package/dist/theme/constants.js +43 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.js +6 -0
- package/dist/theme/types.d.ts +174 -0
- package/dist/theme/types.js +0 -0
- package/dist/theme/typography.d.ts +2 -0
- package/dist/theme/typography.js +73 -0
- package/dist/theme/variants/dark.d.ts +2 -0
- package/dist/theme/variants/dark.js +125 -0
- package/dist/theme/variants/light.d.ts +2 -0
- package/dist/theme/variants/light.js +125 -0
- package/dist/tooltip/Tooltip.d.ts +37 -0
- package/dist/tooltip/Tooltip.js +79 -0
- package/dist/utils/colors.d.ts +84 -0
- package/dist/utils/colors.js +323 -0
- package/dist/utils/linaria.d.ts +1 -0
- package/dist/utils/linaria.js +8 -0
- package/dist/widget/Widget.d.ts +28 -0
- package/dist/widget/Widget.js +99 -0
- package/package.json +268 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import { GalaxyTheme } from "./constants";
|
|
3
|
+
import type { Theme } from "./types";
|
|
4
|
+
declare const ThemeProvider: import("react").ComponentType<{
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
theme?: Theme | undefined;
|
|
7
|
+
}>, withTheme: <Props extends {
|
|
8
|
+
theme: Theme;
|
|
9
|
+
}, C>(WrappedComponent: import("react").ComponentType<Props> & C) => import("react").ComponentType<import("@callstack/react-theme-provider").$Without<Props, "theme"> & {
|
|
10
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<Theme> | undefined;
|
|
11
|
+
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<Props> & C, {}>, useTheme: <T = Theme>(overrides?: import("@callstack/react-theme-provider").$DeepPartial<T> | undefined) => T;
|
|
12
|
+
export interface ThemeDetector {
|
|
13
|
+
detectInitialTheme(): Promise<GalaxyTheme.DARK | GalaxyTheme.LIGHT>;
|
|
14
|
+
onThemeChange(callback: (theme: GalaxyTheme.DARK | GalaxyTheme.LIGHT) => void): () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const BrowserThemeDetector: ThemeDetector;
|
|
17
|
+
interface GalaxyThemeContextValue {
|
|
18
|
+
theme: Theme;
|
|
19
|
+
galaxyTheme: Exclude<GalaxyTheme, GalaxyTheme.SYSTEM>;
|
|
20
|
+
selectedTheme: GalaxyTheme;
|
|
21
|
+
systemTheme: GalaxyTheme.DARK | GalaxyTheme.LIGHT;
|
|
22
|
+
isSystemThemeSupported: boolean;
|
|
23
|
+
setTheme: (theme: GalaxyTheme) => void;
|
|
24
|
+
}
|
|
25
|
+
interface GalaxyThemeProviderProps {
|
|
26
|
+
initialTheme?: GalaxyTheme;
|
|
27
|
+
storageKey?: string;
|
|
28
|
+
themeDetector?: ThemeDetector;
|
|
29
|
+
storage?: {
|
|
30
|
+
get: (key: string) => GalaxyTheme | null;
|
|
31
|
+
set: (key: string, theme: GalaxyTheme) => void;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
declare const GalaxyThemeProvider: ({ children, initialTheme, storageKey, themeDetector, storage, }: PropsWithChildren<GalaxyThemeProviderProps>) => import("react").JSX.Element;
|
|
35
|
+
export declare const useGalaxyTheme: () => GalaxyThemeContextValue;
|
|
36
|
+
export { GalaxyThemeProvider, ThemeProvider, useTheme, withTheme };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DEFAULT_THEME, GALAXY_THEME_MAP, GALAXY_THEME_STORAGE_KEY, GalaxyTheme } from "./constants.js";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { createTheming } from "@callstack/react-theme-provider";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/theme/GalaxyTheme.tsx
|
|
6
|
+
var { ThemeProvider, withTheme, useTheme } = createTheming(DEFAULT_THEME);
|
|
7
|
+
var BrowserThemeDetector = {
|
|
8
|
+
detectInitialTheme: () => {
|
|
9
|
+
if (typeof window !== "undefined" && window.matchMedia) {
|
|
10
|
+
const isDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
11
|
+
return Promise.resolve(isDark ? GalaxyTheme.DARK : GalaxyTheme.LIGHT);
|
|
12
|
+
}
|
|
13
|
+
return Promise.resolve(GalaxyTheme.DARK);
|
|
14
|
+
},
|
|
15
|
+
onThemeChange: (callback) => {
|
|
16
|
+
if (typeof window === "undefined" || !window.matchMedia) return () => {};
|
|
17
|
+
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
18
|
+
const handler = (e) => {
|
|
19
|
+
callback(e.matches ? GalaxyTheme.DARK : GalaxyTheme.LIGHT);
|
|
20
|
+
};
|
|
21
|
+
if (mediaQuery.addEventListener) {
|
|
22
|
+
mediaQuery.addEventListener("change", handler);
|
|
23
|
+
return () => mediaQuery.removeEventListener("change", handler);
|
|
24
|
+
}
|
|
25
|
+
return () => {};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var GalaxyThemeContext = createContext(void 0);
|
|
29
|
+
var GalaxyThemeProvider = ({ children, initialTheme, storageKey = GALAXY_THEME_STORAGE_KEY, themeDetector = BrowserThemeDetector, storage }) => {
|
|
30
|
+
const [systemTheme, setSystemTheme] = useState(() => {
|
|
31
|
+
return GalaxyTheme.DARK;
|
|
32
|
+
});
|
|
33
|
+
const [isSystemThemeSupported] = useState(() => {
|
|
34
|
+
if (typeof window === "undefined") return false;
|
|
35
|
+
return true;
|
|
36
|
+
});
|
|
37
|
+
const [selectedTheme, setSelectedTheme] = useState(() => {
|
|
38
|
+
if (storage) {
|
|
39
|
+
const stored = storage.get(storageKey);
|
|
40
|
+
if (stored && Object.values(GalaxyTheme).includes(stored)) return stored;
|
|
41
|
+
}
|
|
42
|
+
if (initialTheme) return initialTheme;
|
|
43
|
+
return GalaxyTheme.SYSTEM;
|
|
44
|
+
});
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
if (typeof window === "undefined" || !themeDetector) return;
|
|
47
|
+
let mounted = true;
|
|
48
|
+
let cleanup;
|
|
49
|
+
const initializeThemeDetection = async () => {
|
|
50
|
+
try {
|
|
51
|
+
const initialTheme = await themeDetector.detectInitialTheme();
|
|
52
|
+
if (!mounted) return;
|
|
53
|
+
setSystemTheme(initialTheme);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error("[GalaxyTheme] Failed to detect initial theme:", error);
|
|
56
|
+
setSystemTheme(GalaxyTheme.DARK);
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
cleanup = themeDetector.onThemeChange((newTheme) => {
|
|
60
|
+
if (mounted) setSystemTheme(newTheme);
|
|
61
|
+
});
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.error("[GalaxyTheme] Failed to set up theme change listener:", error);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
initializeThemeDetection();
|
|
67
|
+
return () => {
|
|
68
|
+
mounted = false;
|
|
69
|
+
if (cleanup) cleanup();
|
|
70
|
+
};
|
|
71
|
+
}, [themeDetector]);
|
|
72
|
+
const resolvedTheme = selectedTheme === GalaxyTheme.SYSTEM ? systemTheme : selectedTheme;
|
|
73
|
+
const setTheme = useCallback((theme) => {
|
|
74
|
+
setSelectedTheme(theme);
|
|
75
|
+
if (storage) storage.set(storageKey, theme);
|
|
76
|
+
}, [storage, storageKey]);
|
|
77
|
+
const actualTheme = GALAXY_THEME_MAP[resolvedTheme] || GALAXY_THEME_MAP[GalaxyTheme.DARK];
|
|
78
|
+
const value = useMemo(() => ({
|
|
79
|
+
theme: actualTheme,
|
|
80
|
+
galaxyTheme: resolvedTheme,
|
|
81
|
+
selectedTheme,
|
|
82
|
+
systemTheme,
|
|
83
|
+
isSystemThemeSupported,
|
|
84
|
+
setTheme
|
|
85
|
+
}), [
|
|
86
|
+
actualTheme,
|
|
87
|
+
resolvedTheme,
|
|
88
|
+
selectedTheme,
|
|
89
|
+
systemTheme,
|
|
90
|
+
isSystemThemeSupported,
|
|
91
|
+
setTheme
|
|
92
|
+
]);
|
|
93
|
+
return /* @__PURE__ */ jsx(GalaxyThemeContext.Provider, {
|
|
94
|
+
value,
|
|
95
|
+
children: /* @__PURE__ */ jsx(ThemeProvider, {
|
|
96
|
+
theme: value.theme,
|
|
97
|
+
children
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
var useGalaxyTheme = () => {
|
|
102
|
+
const context = useContext(GalaxyThemeContext);
|
|
103
|
+
if (context === void 0) throw new Error("useGalaxyTheme must be used within a GalaxyThemeProvider");
|
|
104
|
+
return context;
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { BrowserThemeDetector, GalaxyThemeProvider, ThemeProvider, useGalaxyTheme, useTheme, withTheme };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SelectInputOption } from "../inputs/SelectInput";
|
|
2
|
+
import type { Theme } from "./types";
|
|
3
|
+
export declare const GALAXY_THEME_STORAGE_KEY = "galaxy:theme";
|
|
4
|
+
export declare enum GalaxyTheme {
|
|
5
|
+
SYSTEM = "SYSTEM",
|
|
6
|
+
DARK = "DARK",
|
|
7
|
+
LIGHT = "LIGHT"
|
|
8
|
+
}
|
|
9
|
+
export declare const GALAXY_DARK_THEME: Theme;
|
|
10
|
+
export declare const GALAXY_LIGHT_THEME: Theme;
|
|
11
|
+
export declare const GALAXY_THEME_OPTIONS: SelectInputOption[];
|
|
12
|
+
export declare const GALAXY_THEME_MAP: Record<Exclude<GalaxyTheme, GalaxyTheme.SYSTEM>, Theme>;
|
|
13
|
+
export declare const DEFAULT_THEME: Theme;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { GALAXY_FONT } from "./typography.js";
|
|
2
|
+
import { GALAXY_DARK_COLOR } from "./variants/dark.js";
|
|
3
|
+
import { GALAXY_LIGHT_COLOR } from "./variants/light.js";
|
|
4
|
+
//#region src/theme/constants.ts
|
|
5
|
+
var GALAXY_THEME_STORAGE_KEY = "galaxy:theme";
|
|
6
|
+
var GalaxyTheme = /* @__PURE__ */ function(GalaxyTheme) {
|
|
7
|
+
GalaxyTheme["SYSTEM"] = "SYSTEM";
|
|
8
|
+
GalaxyTheme["DARK"] = "DARK";
|
|
9
|
+
GalaxyTheme["LIGHT"] = "LIGHT";
|
|
10
|
+
return GalaxyTheme;
|
|
11
|
+
}({});
|
|
12
|
+
var GALAXY_DARK_THEME = {
|
|
13
|
+
color: GALAXY_DARK_COLOR,
|
|
14
|
+
font: GALAXY_FONT
|
|
15
|
+
};
|
|
16
|
+
var GALAXY_LIGHT_THEME = {
|
|
17
|
+
color: GALAXY_LIGHT_COLOR,
|
|
18
|
+
font: GALAXY_FONT
|
|
19
|
+
};
|
|
20
|
+
var GALAXY_THEME_OPTIONS = [
|
|
21
|
+
{
|
|
22
|
+
id: "SYSTEM",
|
|
23
|
+
label: "System",
|
|
24
|
+
value: "SYSTEM"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "DARK",
|
|
28
|
+
label: "Dark",
|
|
29
|
+
value: "DARK"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "LIGHT",
|
|
33
|
+
label: "Light",
|
|
34
|
+
value: "LIGHT"
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
var GALAXY_THEME_MAP = {
|
|
38
|
+
["DARK"]: GALAXY_DARK_THEME,
|
|
39
|
+
["LIGHT"]: GALAXY_LIGHT_THEME
|
|
40
|
+
};
|
|
41
|
+
var DEFAULT_THEME = GALAXY_DARK_THEME;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { DEFAULT_THEME, GALAXY_DARK_THEME, GALAXY_LIGHT_THEME, GALAXY_THEME_MAP, GALAXY_THEME_OPTIONS, GALAXY_THEME_STORAGE_KEY, GalaxyTheme };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GALAXY_FONT } from "./typography.js";
|
|
2
|
+
import { GALAXY_DARK_COLOR } from "./variants/dark.js";
|
|
3
|
+
import { GALAXY_LIGHT_COLOR } from "./variants/light.js";
|
|
4
|
+
import { DEFAULT_THEME, GALAXY_DARK_THEME, GALAXY_LIGHT_THEME, GALAXY_THEME_MAP, GALAXY_THEME_OPTIONS, GALAXY_THEME_STORAGE_KEY, GalaxyTheme } from "./constants.js";
|
|
5
|
+
import { BrowserThemeDetector, GalaxyThemeProvider, ThemeProvider, useGalaxyTheme, useTheme, withTheme } from "./GalaxyTheme.js";
|
|
6
|
+
export { BrowserThemeDetector, DEFAULT_THEME, GALAXY_DARK_COLOR, GALAXY_DARK_THEME, GALAXY_FONT, GALAXY_LIGHT_COLOR, GALAXY_LIGHT_THEME, GALAXY_THEME_MAP, GALAXY_THEME_OPTIONS, GALAXY_THEME_STORAGE_KEY, GalaxyTheme, GalaxyThemeProvider, ThemeProvider, useGalaxyTheme, useTheme, withTheme };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export type ThemeTextColor = {
|
|
2
|
+
primary: string;
|
|
3
|
+
primaryAlt: string;
|
|
4
|
+
secondary: string;
|
|
5
|
+
secondaryAlt: string;
|
|
6
|
+
tertiary: string;
|
|
7
|
+
tertiaryAlt: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
error: string;
|
|
11
|
+
pink: string;
|
|
12
|
+
orange: string;
|
|
13
|
+
yellow: string;
|
|
14
|
+
lime: string;
|
|
15
|
+
green: string;
|
|
16
|
+
blue: string;
|
|
17
|
+
teal: string;
|
|
18
|
+
purple: string;
|
|
19
|
+
disabled: string;
|
|
20
|
+
galaxy: string;
|
|
21
|
+
galaxyAlt: string;
|
|
22
|
+
};
|
|
23
|
+
export type ThemeBackgroundColor = {
|
|
24
|
+
base: string;
|
|
25
|
+
baseAlt: string;
|
|
26
|
+
primary: string;
|
|
27
|
+
primaryAlt: string;
|
|
28
|
+
secondary: string;
|
|
29
|
+
secondaryAlt: string;
|
|
30
|
+
tertiary: string;
|
|
31
|
+
tertiaryAlt: string;
|
|
32
|
+
success: string;
|
|
33
|
+
successAlt: string;
|
|
34
|
+
warning: string;
|
|
35
|
+
warningAlt: string;
|
|
36
|
+
error: string;
|
|
37
|
+
errorAlt: string;
|
|
38
|
+
pink: string;
|
|
39
|
+
pinkAlt: string;
|
|
40
|
+
orange: string;
|
|
41
|
+
orangeAlt: string;
|
|
42
|
+
yellow: string;
|
|
43
|
+
yellowAlt: string;
|
|
44
|
+
lime: string;
|
|
45
|
+
limeAlt: string;
|
|
46
|
+
blue: string;
|
|
47
|
+
blueAlt: string;
|
|
48
|
+
teal: string;
|
|
49
|
+
tealAlt: string;
|
|
50
|
+
purple: string;
|
|
51
|
+
purpleAlt: string;
|
|
52
|
+
disabled: string;
|
|
53
|
+
disabledAlt: string;
|
|
54
|
+
galaxy: string;
|
|
55
|
+
galaxyAlt: string;
|
|
56
|
+
};
|
|
57
|
+
export type ThemeBorderColor = {
|
|
58
|
+
primary: string;
|
|
59
|
+
secondary: string;
|
|
60
|
+
tertiary: string;
|
|
61
|
+
selected: string;
|
|
62
|
+
success: string;
|
|
63
|
+
warning: string;
|
|
64
|
+
error: string;
|
|
65
|
+
disabled: string;
|
|
66
|
+
pink: string;
|
|
67
|
+
orange: string;
|
|
68
|
+
yellow: string;
|
|
69
|
+
lime: string;
|
|
70
|
+
blue: string;
|
|
71
|
+
teal: string;
|
|
72
|
+
purple: string;
|
|
73
|
+
galaxy: string;
|
|
74
|
+
galaxyAlt: string;
|
|
75
|
+
};
|
|
76
|
+
export type ThemeIconColor = {
|
|
77
|
+
primary: string;
|
|
78
|
+
primaryAlt: string;
|
|
79
|
+
secondary: string;
|
|
80
|
+
secondaryAlt: string;
|
|
81
|
+
tertiary: string;
|
|
82
|
+
tertiaryAlt: string;
|
|
83
|
+
success: string;
|
|
84
|
+
warning: string;
|
|
85
|
+
error: string;
|
|
86
|
+
pink: string;
|
|
87
|
+
orange: string;
|
|
88
|
+
yellow: string;
|
|
89
|
+
lime: string;
|
|
90
|
+
blue: string;
|
|
91
|
+
teal: string;
|
|
92
|
+
purple: string;
|
|
93
|
+
disabled: string;
|
|
94
|
+
galaxy: string;
|
|
95
|
+
galaxyAlt: string;
|
|
96
|
+
};
|
|
97
|
+
export type ThemeOpacityColor = {
|
|
98
|
+
bw100: string;
|
|
99
|
+
bw100Alt: string;
|
|
100
|
+
bw80: string;
|
|
101
|
+
bw80Alt: string;
|
|
102
|
+
bw64: string;
|
|
103
|
+
bw64Alt: string;
|
|
104
|
+
bw48: string;
|
|
105
|
+
bw48Alt: string;
|
|
106
|
+
bw32: string;
|
|
107
|
+
bw32Alt: string;
|
|
108
|
+
bw24: string;
|
|
109
|
+
bw24Alt: string;
|
|
110
|
+
bw16: string;
|
|
111
|
+
bw16Alt: string;
|
|
112
|
+
bw12: string;
|
|
113
|
+
bw12Alt: string;
|
|
114
|
+
bw8: string;
|
|
115
|
+
bw8Alt: string;
|
|
116
|
+
b4: string;
|
|
117
|
+
b4Alt: string;
|
|
118
|
+
bw0: string;
|
|
119
|
+
bw0Alt: string;
|
|
120
|
+
};
|
|
121
|
+
export type ThemeFontWeight = {
|
|
122
|
+
regular: number;
|
|
123
|
+
medium: number;
|
|
124
|
+
};
|
|
125
|
+
export type ThemeFontSize = {
|
|
126
|
+
caption: string;
|
|
127
|
+
body_sm: string;
|
|
128
|
+
body_md: string;
|
|
129
|
+
body_lg: string;
|
|
130
|
+
heading_sm: string;
|
|
131
|
+
heading_md: string;
|
|
132
|
+
heading_lg: string;
|
|
133
|
+
};
|
|
134
|
+
export type ThemeFontHeight = {
|
|
135
|
+
caption: string;
|
|
136
|
+
body_sm: string;
|
|
137
|
+
body_md: string;
|
|
138
|
+
body_lg: string;
|
|
139
|
+
heading_sm: string;
|
|
140
|
+
heading_md: string;
|
|
141
|
+
heading_lg: string;
|
|
142
|
+
};
|
|
143
|
+
export type ThemeFontSpacing = {
|
|
144
|
+
caption: string;
|
|
145
|
+
body_sm: string;
|
|
146
|
+
body_md: string;
|
|
147
|
+
body_lg: string;
|
|
148
|
+
heading_sm: string;
|
|
149
|
+
heading_md: string;
|
|
150
|
+
heading_lg: string;
|
|
151
|
+
};
|
|
152
|
+
export type ThemeFont = {
|
|
153
|
+
family: string;
|
|
154
|
+
weight: ThemeFontWeight;
|
|
155
|
+
size: ThemeFontSize;
|
|
156
|
+
height: ThemeFontHeight;
|
|
157
|
+
spacing: ThemeFontSpacing;
|
|
158
|
+
};
|
|
159
|
+
export type Theme = {
|
|
160
|
+
color: {
|
|
161
|
+
text: ThemeTextColor;
|
|
162
|
+
background: ThemeBackgroundColor;
|
|
163
|
+
border: ThemeBorderColor;
|
|
164
|
+
icon: ThemeIconColor;
|
|
165
|
+
opacity: ThemeOpacityColor;
|
|
166
|
+
};
|
|
167
|
+
font: {
|
|
168
|
+
sans: ThemeFont;
|
|
169
|
+
mono: ThemeFont;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export type PropsWithTheme<P = unknown> = P & {
|
|
173
|
+
theme: Theme;
|
|
174
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/theme/typography.ts
|
|
2
|
+
var GALAXY_FONT = {
|
|
3
|
+
sans: {
|
|
4
|
+
family: "\"ABC Diatype\", Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
5
|
+
weight: {
|
|
6
|
+
regular: 400,
|
|
7
|
+
medium: 500
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
caption: "10px",
|
|
11
|
+
body_sm: "12px",
|
|
12
|
+
body_md: "13px",
|
|
13
|
+
body_lg: "14px",
|
|
14
|
+
heading_sm: "16px",
|
|
15
|
+
heading_md: "20px",
|
|
16
|
+
heading_lg: "24px"
|
|
17
|
+
},
|
|
18
|
+
height: {
|
|
19
|
+
caption: "12px",
|
|
20
|
+
body_sm: "14px",
|
|
21
|
+
body_md: "15px",
|
|
22
|
+
body_lg: "16px",
|
|
23
|
+
heading_sm: "18px",
|
|
24
|
+
heading_md: "22px",
|
|
25
|
+
heading_lg: "26px"
|
|
26
|
+
},
|
|
27
|
+
spacing: {
|
|
28
|
+
caption: "0.1px",
|
|
29
|
+
body_sm: "0.12px",
|
|
30
|
+
body_md: "0.13px",
|
|
31
|
+
body_lg: "0.14px",
|
|
32
|
+
heading_sm: "0.16px",
|
|
33
|
+
heading_md: "0.20px",
|
|
34
|
+
heading_lg: "0.24px"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
mono: {
|
|
38
|
+
family: "\"Berkeley Mono\", ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace",
|
|
39
|
+
weight: {
|
|
40
|
+
regular: 400,
|
|
41
|
+
medium: 500
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
caption: "10px",
|
|
45
|
+
body_sm: "11px",
|
|
46
|
+
body_md: "12px",
|
|
47
|
+
body_lg: "13px",
|
|
48
|
+
heading_sm: "15px",
|
|
49
|
+
heading_md: "18px",
|
|
50
|
+
heading_lg: "21px"
|
|
51
|
+
},
|
|
52
|
+
height: {
|
|
53
|
+
caption: "12px",
|
|
54
|
+
body_sm: "13px",
|
|
55
|
+
body_md: "15px",
|
|
56
|
+
body_lg: "16px",
|
|
57
|
+
heading_sm: "17px",
|
|
58
|
+
heading_md: "20px",
|
|
59
|
+
heading_lg: "23px"
|
|
60
|
+
},
|
|
61
|
+
spacing: {
|
|
62
|
+
caption: "0.1px",
|
|
63
|
+
body_sm: "0.12px",
|
|
64
|
+
body_md: "0.13px",
|
|
65
|
+
body_lg: "0.14px",
|
|
66
|
+
heading_sm: "0.16px",
|
|
67
|
+
heading_md: "0.20px",
|
|
68
|
+
heading_lg: "0.24px"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { GALAXY_FONT };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
//#region src/theme/variants/dark.ts
|
|
2
|
+
var GALAXY_DARK_COLOR = {
|
|
3
|
+
text: {
|
|
4
|
+
primary: "#ffffff",
|
|
5
|
+
primaryAlt: "#101010",
|
|
6
|
+
secondary: "#acacac",
|
|
7
|
+
secondaryAlt: "#3f3f3f",
|
|
8
|
+
tertiary: "#868686",
|
|
9
|
+
tertiaryAlt: "#9e9e9e",
|
|
10
|
+
success: "#6ee4b0",
|
|
11
|
+
warning: "#ffb265",
|
|
12
|
+
error: "#ff6881",
|
|
13
|
+
pink: "#f3a8e5",
|
|
14
|
+
orange: "#ffd2a8",
|
|
15
|
+
yellow: "#fff7aa",
|
|
16
|
+
lime: "#d5f2a7",
|
|
17
|
+
green: "#6ee4b0",
|
|
18
|
+
blue: "#99cffd",
|
|
19
|
+
teal: "#bde8ee",
|
|
20
|
+
purple: "#b7b1f1",
|
|
21
|
+
disabled: "#4d4d4d",
|
|
22
|
+
galaxy: "#0059B8",
|
|
23
|
+
galaxyAlt: "#0060c8"
|
|
24
|
+
},
|
|
25
|
+
background: {
|
|
26
|
+
base: "#131313",
|
|
27
|
+
baseAlt: "#ffffff",
|
|
28
|
+
primary: "#161616",
|
|
29
|
+
primaryAlt: "#fafafa",
|
|
30
|
+
secondary: "#242424",
|
|
31
|
+
secondaryAlt: "#f0f0f0",
|
|
32
|
+
tertiary: "#1B1B1B",
|
|
33
|
+
tertiaryAlt: "#f5f5f5",
|
|
34
|
+
success: "#1d3329",
|
|
35
|
+
successAlt: "#327056",
|
|
36
|
+
warning: "#3f2e19",
|
|
37
|
+
warningAlt: "#B66A1E",
|
|
38
|
+
error: "#3d1f24",
|
|
39
|
+
errorAlt: "#AA3247",
|
|
40
|
+
pink: "#361c23",
|
|
41
|
+
pinkAlt: "#f8e6f7",
|
|
42
|
+
orange: "#3d2a12",
|
|
43
|
+
orangeAlt: "#ffe6d2",
|
|
44
|
+
yellow: "#404022",
|
|
45
|
+
yellowAlt: "#faf8d2",
|
|
46
|
+
lime: "#263017",
|
|
47
|
+
limeAlt: "#e4f8c5",
|
|
48
|
+
blue: "#232f3b",
|
|
49
|
+
blueAlt: "#e6f2ff",
|
|
50
|
+
teal: "#2a393c",
|
|
51
|
+
tealAlt: "#e6f7f9",
|
|
52
|
+
purple: "#272442",
|
|
53
|
+
purpleAlt: "#f2f0ff",
|
|
54
|
+
disabled: "#1e1e1e",
|
|
55
|
+
disabledAlt: "#ffffff",
|
|
56
|
+
galaxy: "#0059B8",
|
|
57
|
+
galaxyAlt: "#0060c8"
|
|
58
|
+
},
|
|
59
|
+
border: {
|
|
60
|
+
primary: "#2c2c2c",
|
|
61
|
+
secondary: "#3a3a3a",
|
|
62
|
+
tertiary: "#4a4a4a",
|
|
63
|
+
selected: "#777777",
|
|
64
|
+
success: "#3aa175",
|
|
65
|
+
warning: "#aa6d2f",
|
|
66
|
+
error: "#ac4757",
|
|
67
|
+
disabled: "#2e2e2e",
|
|
68
|
+
pink: "#a8527e",
|
|
69
|
+
orange: "#b3722e",
|
|
70
|
+
yellow: "#a09b3f",
|
|
71
|
+
lime: "#d5f2a7",
|
|
72
|
+
blue: "#3f6ea5",
|
|
73
|
+
teal: "#3a8a8f",
|
|
74
|
+
purple: "#b7b1f1",
|
|
75
|
+
galaxy: "#0059B8",
|
|
76
|
+
galaxyAlt: "#0060c8"
|
|
77
|
+
},
|
|
78
|
+
icon: {
|
|
79
|
+
primary: "#ffffff",
|
|
80
|
+
primaryAlt: "#000000",
|
|
81
|
+
secondary: "#acacac",
|
|
82
|
+
secondaryAlt: "#000000",
|
|
83
|
+
tertiary: "#868686",
|
|
84
|
+
tertiaryAlt: "#000000",
|
|
85
|
+
success: "#55c393",
|
|
86
|
+
warning: "#ffb265",
|
|
87
|
+
error: "#f3506b",
|
|
88
|
+
pink: "#f3a8ef",
|
|
89
|
+
orange: "#ffd2a8",
|
|
90
|
+
yellow: "#fff7aa",
|
|
91
|
+
lime: "#d5f2a7",
|
|
92
|
+
blue: "#99cffd",
|
|
93
|
+
teal: "#bde8ee",
|
|
94
|
+
purple: "#b7b1f1",
|
|
95
|
+
disabled: "#4d4d4d",
|
|
96
|
+
galaxy: "#0059B8",
|
|
97
|
+
galaxyAlt: "#0060c8"
|
|
98
|
+
},
|
|
99
|
+
opacity: {
|
|
100
|
+
bw100: "rgba(0, 0, 0, 1)",
|
|
101
|
+
bw100Alt: "rgba(255, 255, 255, 1)",
|
|
102
|
+
bw80: "rgba(0, 0, 0, 0.8)",
|
|
103
|
+
bw80Alt: "rgba(255, 255, 255, 0.8)",
|
|
104
|
+
bw64: "rgba(0, 0, 0, 0.64)",
|
|
105
|
+
bw64Alt: "rgba(255, 255, 255, 0.64)",
|
|
106
|
+
bw48: "rgba(0, 0, 0, 0.48)",
|
|
107
|
+
bw48Alt: "rgba(255, 255, 255, 0.48)",
|
|
108
|
+
bw32: "rgba(0, 0, 0, 0.32)",
|
|
109
|
+
bw32Alt: "rgba(255, 255, 255, 0.32)",
|
|
110
|
+
bw24: "rgba(0, 0, 0, 0.24)",
|
|
111
|
+
bw24Alt: "rgba(255, 255, 255, 0.24)",
|
|
112
|
+
bw16: "rgba(0, 0, 0, 0.16)",
|
|
113
|
+
bw16Alt: "rgba(255, 255, 255, 0.16)",
|
|
114
|
+
bw12: "rgba(0, 0, 0, 0.12)",
|
|
115
|
+
bw12Alt: "rgba(255, 255, 255, 0.12)",
|
|
116
|
+
bw8: "rgba(0, 0, 0, 0.08)",
|
|
117
|
+
bw8Alt: "rgba(255, 255, 255, 0.08)",
|
|
118
|
+
b4: "rgba(0, 0, 0, 0.04)",
|
|
119
|
+
b4Alt: "rgba(255, 255, 255, 0.04)",
|
|
120
|
+
bw0: "rgba(0, 0, 0, 0)",
|
|
121
|
+
bw0Alt: "rgba(255, 255, 255, 0)"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
//#endregion
|
|
125
|
+
export { GALAXY_DARK_COLOR };
|