@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,9 @@
|
|
|
1
|
+
export interface AvatarProps {
|
|
2
|
+
img?: string | null;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
size?: number;
|
|
5
|
+
hex?: string;
|
|
6
|
+
shouldShowLogo?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Avatar: ({ img, isLoading, size, hex, shouldShowLogo }: AvatarProps) => import("react").JSX.Element | null;
|
|
9
|
+
export default Avatar;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import AvatarShimmer from "./AvatarShimmer.js";
|
|
3
|
+
import GalaxyLogomark from "../icons/GalaxyLogomark.js";
|
|
4
|
+
import AvatarEmpty from "./AvatarEmpty.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { styled } from "@linaria/react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region src/avatar/Avatar.tsx
|
|
9
|
+
var _exp2 = () => ({ $size }) => $size;
|
|
10
|
+
var StyledAvatar = /*#__PURE__*/ styled("img")({
|
|
11
|
+
name: "StyledAvatar",
|
|
12
|
+
class: "sve5wdp",
|
|
13
|
+
propsAsIs: false,
|
|
14
|
+
vars: { "sve5wdp-0": [_exp2(), "px"] }
|
|
15
|
+
});
|
|
16
|
+
var _exp3 = () => ({ theme }) => theme.color.background.tertiary;
|
|
17
|
+
var _exp4 = () => ({ theme }) => theme.color.border.primary;
|
|
18
|
+
var _exp5 = () => ({ $size }) => {
|
|
19
|
+
if ($size <= 16) return "2px";
|
|
20
|
+
if ($size <= 24) return "3px";
|
|
21
|
+
return "4px";
|
|
22
|
+
};
|
|
23
|
+
var _exp7 = () => ({ $size }) => $size;
|
|
24
|
+
var StyledLogoAvatar = withTheme(/*#__PURE__*/ styled("div")({
|
|
25
|
+
name: "StyledLogoAvatar",
|
|
26
|
+
class: "s3r0r1h",
|
|
27
|
+
propsAsIs: false,
|
|
28
|
+
vars: {
|
|
29
|
+
"s3r0r1h-0": [_exp3()],
|
|
30
|
+
"s3r0r1h-1": [_exp4()],
|
|
31
|
+
"s3r0r1h-2": [_exp5()],
|
|
32
|
+
"s3r0r1h-3": [_exp7(), "px"]
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
var Avatar = ({ img, isLoading, size = 16, hex, shouldShowLogo }) => {
|
|
36
|
+
if (isLoading) return isLoading ? /* @__PURE__ */ jsx(AvatarShimmer, { size }) : null;
|
|
37
|
+
if (shouldShowLogo) return /* @__PURE__ */ jsx(StyledLogoAvatar, {
|
|
38
|
+
$size: size,
|
|
39
|
+
children: /* @__PURE__ */ jsx(GalaxyLogomark, { height: Math.max(8, size - (size <= 16 ? 2 : size <= 24 ? 3 : 4) * 2 - 2) })
|
|
40
|
+
});
|
|
41
|
+
if (!img) return /* @__PURE__ */ jsx(AvatarEmpty, {
|
|
42
|
+
size,
|
|
43
|
+
hex
|
|
44
|
+
});
|
|
45
|
+
return /* @__PURE__ */ jsx(StyledAvatar, {
|
|
46
|
+
src: img,
|
|
47
|
+
alt: "Avatar",
|
|
48
|
+
$size: size
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { Avatar as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GalaxyTheme } from "../theme/constants";
|
|
2
|
+
export interface AvatarEmptyProps {
|
|
3
|
+
size: number;
|
|
4
|
+
hex?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const StyledAvatarEmpty: import("react").ComponentType<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
theme: import("../theme").Theme;
|
|
8
|
+
} & {
|
|
9
|
+
$size: number;
|
|
10
|
+
$hex?: string;
|
|
11
|
+
$galaxyTheme: Exclude<GalaxyTheme, GalaxyTheme.SYSTEM>;
|
|
12
|
+
} & {
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "as" | "$size" | "$hex" | "$galaxyTheme"> & {
|
|
15
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
16
|
+
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme: import("../theme").Theme;
|
|
18
|
+
} & {
|
|
19
|
+
$size: number;
|
|
20
|
+
$hex?: string;
|
|
21
|
+
$galaxyTheme: Exclude<GalaxyTheme, GalaxyTheme.SYSTEM>;
|
|
22
|
+
} & {
|
|
23
|
+
as?: React.ElementType;
|
|
24
|
+
}> & {
|
|
25
|
+
__wyw_meta: unknown;
|
|
26
|
+
} & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
theme: import("../theme").Theme;
|
|
28
|
+
} & {
|
|
29
|
+
$size: number;
|
|
30
|
+
$hex?: string;
|
|
31
|
+
$galaxyTheme: Exclude<GalaxyTheme, GalaxyTheme.SYSTEM>;
|
|
32
|
+
} & {
|
|
33
|
+
as?: React.ElementType;
|
|
34
|
+
}>, {}>;
|
|
35
|
+
declare const AvatarEmpty: ({ size, hex }: AvatarEmptyProps) => import("react").JSX.Element;
|
|
36
|
+
export default AvatarEmpty;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { GalaxyTheme } from "../theme/constants.js";
|
|
2
|
+
import { useGalaxyTheme, withTheme } from "../theme/GalaxyTheme.js";
|
|
3
|
+
import { getDarkerHexColor, getLighterHexColor, getOpaqueHexColor } from "../utils/colors.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { styled } from "@linaria/react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/avatar/AvatarEmpty.tsx
|
|
8
|
+
var _exp2 = () => ({ $size }) => `${$size}px`;
|
|
9
|
+
var _exp3 = () => ({ theme, $hex, $galaxyTheme }) => {
|
|
10
|
+
const isDark = $galaxyTheme === GalaxyTheme.DARK;
|
|
11
|
+
const base = $hex ? $hex : isDark ? theme.color.border.tertiary : getDarkerHexColor(theme.color.border.tertiary, 25);
|
|
12
|
+
const accent = $hex ? getLighterHexColor($hex, isDark ? 120 : 130) : isDark ? getLighterHexColor(theme.color.border.tertiary, 80) : getLighterHexColor(theme.color.border.tertiary, 55);
|
|
13
|
+
const galaxy = theme.color.background.galaxy;
|
|
14
|
+
const galaxyRing = getOpaqueHexColor(galaxy, .22);
|
|
15
|
+
const galaxyRingSoft = getOpaqueHexColor(galaxy, .08);
|
|
16
|
+
return `
|
|
17
|
+
radial-gradient(circle at 50% 50%, transparent 28%, ${galaxyRingSoft} 45%, ${galaxyRing} 62%, ${galaxyRing} 85%, ${galaxyRingSoft} 96%, transparent 100%),
|
|
18
|
+
radial-gradient(ellipse 90% 40% at 30% 25%, ${accent} 0%, transparent 55%),
|
|
19
|
+
radial-gradient(ellipse 85% 35% at 75% 65%, ${accent} 0%, transparent 50%),
|
|
20
|
+
radial-gradient(ellipse 70% 50% at 55% 80%, ${base} 0%, transparent 45%),
|
|
21
|
+
radial-gradient(ellipse 80% 45% at 20% 70%, ${base} 0%, transparent 50%),
|
|
22
|
+
radial-gradient(ellipse 100% 60% at 50% 50%, ${base} 10%, ${accent} 100%)
|
|
23
|
+
`;
|
|
24
|
+
};
|
|
25
|
+
var StyledAvatarEmpty = withTheme(/*#__PURE__*/ styled("div")({
|
|
26
|
+
name: "StyledAvatarEmpty",
|
|
27
|
+
class: "s3y5dk3",
|
|
28
|
+
propsAsIs: false,
|
|
29
|
+
vars: {
|
|
30
|
+
"s3y5dk3-0": [_exp2()],
|
|
31
|
+
"s3y5dk3-1": [_exp3()]
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
var AvatarEmpty = ({ size = 16, hex }) => {
|
|
35
|
+
const { galaxyTheme } = useGalaxyTheme();
|
|
36
|
+
return /* @__PURE__ */ jsx(StyledAvatarEmpty, {
|
|
37
|
+
$size: size,
|
|
38
|
+
$hex: hex,
|
|
39
|
+
$galaxyTheme: galaxyTheme
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { StyledAvatarEmpty, AvatarEmpty as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AvatarShimmerProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
}
|
|
4
|
+
export declare const StyledAvatarShimmer: import("react").ComponentType<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
$size?: number;
|
|
6
|
+
} & {
|
|
7
|
+
theme: import("../theme").Theme;
|
|
8
|
+
} & {
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "as" | "$size"> & {
|
|
11
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
12
|
+
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
$size?: number;
|
|
14
|
+
} & {
|
|
15
|
+
theme: import("../theme").Theme;
|
|
16
|
+
} & {
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
}> & {
|
|
19
|
+
__wyw_meta: unknown;
|
|
20
|
+
} & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
$size?: number;
|
|
22
|
+
} & {
|
|
23
|
+
theme: import("../theme").Theme;
|
|
24
|
+
} & {
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
}>, {}>;
|
|
27
|
+
declare const AvatarShimmer: ({ size }: AvatarShimmerProps) => import("react").JSX.Element;
|
|
28
|
+
export default AvatarShimmer;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { styled } from "@linaria/react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/avatar/AvatarShimmer.tsx
|
|
6
|
+
var _exp = () => ({ theme }) => theme.color.border.primary;
|
|
7
|
+
var _exp3 = () => ({ $size }) => $size ?? 16;
|
|
8
|
+
var StyledAvatarShimmer = withTheme(/*#__PURE__*/ styled("div")({
|
|
9
|
+
name: "StyledAvatarShimmer",
|
|
10
|
+
class: "s1o6ak6r",
|
|
11
|
+
propsAsIs: false,
|
|
12
|
+
vars: {
|
|
13
|
+
"s1o6ak6r-0": [_exp()],
|
|
14
|
+
"s1o6ak6r-1": [_exp3(), "px"]
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
var AvatarShimmer = ({ size }) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(StyledAvatarShimmer, { $size: size });
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { StyledAvatarShimmer, AvatarShimmer as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import AvatarShimmer from "./AvatarShimmer.js";
|
|
3
|
+
import GalaxyLogomark from "../icons/GalaxyLogomark.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { styled } from "@linaria/react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/avatar/GalaxyAvatar.tsx
|
|
8
|
+
var _exp = () => ({ theme }) => theme.color.background.tertiary;
|
|
9
|
+
var _exp2 = () => ({ theme }) => theme.color.border.primary;
|
|
10
|
+
var _exp3 = () => ({ $size }) => {
|
|
11
|
+
if ($size <= 16) return "2px";
|
|
12
|
+
if ($size <= 24) return "3px";
|
|
13
|
+
return "4px";
|
|
14
|
+
};
|
|
15
|
+
var _exp5 = () => ({ $size }) => $size;
|
|
16
|
+
var StyledGalaxyAvatar = withTheme(/*#__PURE__*/ styled("div")({
|
|
17
|
+
name: "StyledGalaxyAvatar",
|
|
18
|
+
class: "s1iz4plp",
|
|
19
|
+
propsAsIs: false,
|
|
20
|
+
vars: {
|
|
21
|
+
"s1iz4plp-0": [_exp()],
|
|
22
|
+
"s1iz4plp-1": [_exp2()],
|
|
23
|
+
"s1iz4plp-2": [_exp3()],
|
|
24
|
+
"s1iz4plp-3": [_exp5(), "px"]
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
var GalaxyAvatar = ({ isLoading, size = 16 }) => {
|
|
28
|
+
if (isLoading) return isLoading ? /* @__PURE__ */ jsx(AvatarShimmer, { size }) : null;
|
|
29
|
+
const availableInnerSize = size - (size <= 16 ? 2 : size <= 24 ? 3 : 4) * 2;
|
|
30
|
+
return /* @__PURE__ */ jsx(StyledGalaxyAvatar, {
|
|
31
|
+
$size: size,
|
|
32
|
+
children: /* @__PURE__ */ jsx(GalaxyLogomark, { height: Math.max(8, Math.round(availableInnerSize * .75)) })
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { GalaxyAvatar as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/avatar/types.ts
|
|
2
|
+
var AvatarSize = /* @__PURE__ */ function(AvatarSize) {
|
|
3
|
+
AvatarSize["SMALL"] = "h-[16px] w-[16px]";
|
|
4
|
+
AvatarSize["MEDIUM"] = "h-[24px] w-[24px]";
|
|
5
|
+
AvatarSize["LARGE"] = "h-[32px] w-[32px]";
|
|
6
|
+
return AvatarSize;
|
|
7
|
+
}({});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { AvatarSize };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { ThemeBackgroundColor } from "../theme/types";
|
|
3
|
+
interface CellGridBackgroundProps {
|
|
4
|
+
cellSize?: number;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
lineColor?: string;
|
|
7
|
+
backgroundColor?: ThemeBackgroundColor[keyof ThemeBackgroundColor];
|
|
8
|
+
lineOpacity?: number;
|
|
9
|
+
fillContainer?: boolean;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const CellGridBackground: ({ cellSize, strokeWidth, lineColor, backgroundColor, lineOpacity, fillContainer, children, }: CellGridBackgroundProps) => import("react").JSX.Element;
|
|
13
|
+
export default CellGridBackground;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useGalaxyTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { styled } from "@linaria/react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backgrounds/CellGridBackground.tsx
|
|
6
|
+
var _exp2 = () => ({ $fillContainer }) => $fillContainer ? "100%" : "auto";
|
|
7
|
+
var _exp3 = () => ({ $backgroundColor }) => $backgroundColor;
|
|
8
|
+
var _exp4 = () => ({ $backgroundImage }) => $backgroundImage;
|
|
9
|
+
var _exp5 = () => ({ $backgroundSize }) => $backgroundSize;
|
|
10
|
+
var StyledCellGridBackground = /*#__PURE__*/ styled("div")({
|
|
11
|
+
name: "StyledCellGridBackground",
|
|
12
|
+
class: "s3lwr7s",
|
|
13
|
+
propsAsIs: false,
|
|
14
|
+
vars: {
|
|
15
|
+
"s3lwr7s-0": [_exp2()],
|
|
16
|
+
"s3lwr7s-1": [_exp3()],
|
|
17
|
+
"s3lwr7s-2": [_exp4()],
|
|
18
|
+
"s3lwr7s-3": [_exp5()]
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
var generateCellSvg = (cellSize, strokeWidth, color, opacity) => {
|
|
22
|
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${cellSize}" height="${cellSize}" viewBox="0 0 ${cellSize} ${cellSize}">
|
|
23
|
+
<line x1="0" y1="0" x2="${cellSize}" y2="0" stroke="${color}" stroke-width="${strokeWidth}" opacity="${opacity}"/>
|
|
24
|
+
<line x1="0" y1="0" x2="0" y2="${cellSize}" stroke="${color}" stroke-width="${strokeWidth}" opacity="${opacity}"/>
|
|
25
|
+
</svg>`;
|
|
26
|
+
return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
|
|
27
|
+
};
|
|
28
|
+
var CellGridBackground = ({ cellSize = 24, strokeWidth = 1, lineColor, backgroundColor, lineOpacity = .5, fillContainer = true, children }) => {
|
|
29
|
+
const { theme } = useGalaxyTheme();
|
|
30
|
+
return /* @__PURE__ */ jsx(StyledCellGridBackground, {
|
|
31
|
+
$fillContainer: fillContainer,
|
|
32
|
+
$backgroundColor: backgroundColor ?? theme.color.background.base,
|
|
33
|
+
$backgroundImage: generateCellSvg(cellSize, strokeWidth, lineColor ?? theme.color.border.primary, lineOpacity),
|
|
34
|
+
$backgroundSize: `${cellSize}px ${cellSize}px`,
|
|
35
|
+
children
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CellGridBackground as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import { ThemeBackgroundColor } from "../theme/types";
|
|
3
|
+
interface CrossGridBackgroundProps {
|
|
4
|
+
crossSize?: number;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
crossColor?: string;
|
|
8
|
+
backgroundColor?: ThemeBackgroundColor[keyof ThemeBackgroundColor];
|
|
9
|
+
crossOpacity?: number;
|
|
10
|
+
fillContainer?: boolean;
|
|
11
|
+
borderRadius?: string | number;
|
|
12
|
+
}
|
|
13
|
+
declare const CrossGridBackground: ({ crossSize, spacing, strokeWidth, crossColor, backgroundColor, crossOpacity, fillContainer, borderRadius, children, }: PropsWithChildren<CrossGridBackgroundProps>) => import("react").JSX.Element;
|
|
14
|
+
export default CrossGridBackground;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useGalaxyTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { styled } from "@linaria/react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/backgrounds/CrossGridBackground.tsx
|
|
7
|
+
var _exp2 = () => ({ $fillContainer }) => $fillContainer ? "100%" : "auto";
|
|
8
|
+
var _exp3 = () => ({ $backgroundColor }) => $backgroundColor;
|
|
9
|
+
var _exp4 = () => ({ $backgroundImage }) => $backgroundImage;
|
|
10
|
+
var _exp5 = () => ({ $backgroundSize }) => $backgroundSize;
|
|
11
|
+
var _exp6 = () => ({ $borderRadius }) => $borderRadius === void 0 ? 0 : getCssSizeValue($borderRadius);
|
|
12
|
+
var StyledCrossGridBackground = /*#__PURE__*/ styled("div")({
|
|
13
|
+
name: "StyledCrossGridBackground",
|
|
14
|
+
class: "siq7g1q",
|
|
15
|
+
propsAsIs: false,
|
|
16
|
+
vars: {
|
|
17
|
+
"siq7g1q-0": [_exp2()],
|
|
18
|
+
"siq7g1q-1": [_exp3()],
|
|
19
|
+
"siq7g1q-2": [_exp4()],
|
|
20
|
+
"siq7g1q-3": [_exp5()],
|
|
21
|
+
"siq7g1q-4": [_exp6()]
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var generateCrossSvg = (crossSize, spacing, strokeWidth, color, opacity) => {
|
|
25
|
+
const center = spacing / 2;
|
|
26
|
+
const halfCross = crossSize / 2;
|
|
27
|
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${spacing}" height="${spacing}" viewBox="0 0 ${spacing} ${spacing}">
|
|
28
|
+
<line x1="${center}" y1="${center - halfCross}" x2="${center}" y2="${center + halfCross}" stroke="${color}" stroke-width="${strokeWidth}" opacity="${opacity}"/>
|
|
29
|
+
<line x1="${center - halfCross}" y1="${center}" x2="${center + halfCross}" y2="${center}" stroke="${color}" stroke-width="${strokeWidth}" opacity="${opacity}"/>
|
|
30
|
+
</svg>`;
|
|
31
|
+
return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
|
|
32
|
+
};
|
|
33
|
+
var CrossGridBackground = ({ crossSize = 8, spacing = 24, strokeWidth = 1, crossColor, backgroundColor, crossOpacity = .5, fillContainer = true, borderRadius, children }) => {
|
|
34
|
+
const { theme } = useGalaxyTheme();
|
|
35
|
+
return /* @__PURE__ */ jsx(StyledCrossGridBackground, {
|
|
36
|
+
$fillContainer: fillContainer,
|
|
37
|
+
$backgroundColor: backgroundColor ?? theme.color.background.base,
|
|
38
|
+
$backgroundImage: generateCrossSvg(crossSize, spacing, strokeWidth, crossColor ?? theme.color.border.primary, crossOpacity),
|
|
39
|
+
$backgroundSize: `${spacing}px ${spacing}px`,
|
|
40
|
+
$borderRadius: borderRadius,
|
|
41
|
+
children
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { CrossGridBackground as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import { ThemeBackgroundColor } from "../theme/types";
|
|
3
|
+
interface DotGridBackgroundProps {
|
|
4
|
+
dotSize?: number;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
dotColor?: string;
|
|
7
|
+
backgroundColor?: ThemeBackgroundColor[keyof ThemeBackgroundColor];
|
|
8
|
+
dotOpacity?: number;
|
|
9
|
+
fillContainer?: boolean;
|
|
10
|
+
borderRadius?: string | number;
|
|
11
|
+
}
|
|
12
|
+
declare const DotGridBackground: ({ dotSize, spacing, dotColor, backgroundColor, dotOpacity, fillContainer, borderRadius, children, }: PropsWithChildren<DotGridBackgroundProps>) => import("react").JSX.Element;
|
|
13
|
+
export default DotGridBackground;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useGalaxyTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { styled } from "@linaria/react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/backgrounds/DotGridBackground.tsx
|
|
7
|
+
var _exp2 = () => ({ $fillContainer }) => $fillContainer ? "100%" : "auto";
|
|
8
|
+
var _exp3 = () => ({ $backgroundColor }) => $backgroundColor;
|
|
9
|
+
var _exp4 = () => ({ $backgroundImage }) => $backgroundImage;
|
|
10
|
+
var _exp5 = () => ({ $backgroundSize }) => $backgroundSize;
|
|
11
|
+
var _exp6 = () => ({ $borderRadius }) => $borderRadius === void 0 ? 0 : getCssSizeValue($borderRadius);
|
|
12
|
+
var StyledDotGridBackground = /*#__PURE__*/ styled("div")({
|
|
13
|
+
name: "StyledDotGridBackground",
|
|
14
|
+
class: "saa8iad",
|
|
15
|
+
propsAsIs: false,
|
|
16
|
+
vars: {
|
|
17
|
+
"saa8iad-0": [_exp2()],
|
|
18
|
+
"saa8iad-1": [_exp3()],
|
|
19
|
+
"saa8iad-2": [_exp4()],
|
|
20
|
+
"saa8iad-3": [_exp5()],
|
|
21
|
+
"saa8iad-4": [_exp6()]
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var generateDotSvg = (size, dotSize, color, opacity) => {
|
|
25
|
+
const center = size / 2;
|
|
26
|
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 ${size} ${size}">
|
|
27
|
+
<circle cx="${center}" cy="${center}" r="${dotSize / 2}" fill="${color}" opacity="${opacity}"/>
|
|
28
|
+
</svg>`;
|
|
29
|
+
return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
|
|
30
|
+
};
|
|
31
|
+
var DotGridBackground = ({ dotSize = 3, spacing = 24, dotColor, backgroundColor, dotOpacity = .5, fillContainer = true, borderRadius, children }) => {
|
|
32
|
+
const { theme } = useGalaxyTheme();
|
|
33
|
+
return /* @__PURE__ */ jsx(StyledDotGridBackground, {
|
|
34
|
+
$fillContainer: fillContainer,
|
|
35
|
+
$backgroundColor: backgroundColor ?? theme.color.background.base,
|
|
36
|
+
$backgroundImage: generateDotSvg(spacing, dotSize, dotColor ?? theme.color.border.primary, dotOpacity),
|
|
37
|
+
$backgroundSize: `${spacing}px ${spacing}px`,
|
|
38
|
+
$borderRadius: borderRadius,
|
|
39
|
+
children
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { DotGridBackground as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum BadgeVariant {
|
|
2
|
+
PRIMARY = "PRIMARY",
|
|
3
|
+
PRIMARY_ALT = "PRIMARY_ALT",
|
|
4
|
+
SECONDARY = "SECONDARY",
|
|
5
|
+
TERTIARY = "TERTIARY",
|
|
6
|
+
SUCCESS = "SUCCESS",
|
|
7
|
+
WARNING = "WARNING",
|
|
8
|
+
ERROR = "ERROR",
|
|
9
|
+
PINK = "PINK",
|
|
10
|
+
ORANGE = "ORANGE",
|
|
11
|
+
YELLOW = "YELLOW",
|
|
12
|
+
LIME = "LIME",
|
|
13
|
+
BLUE = "BLUE",
|
|
14
|
+
PURPLE = "PURPLE",
|
|
15
|
+
TEAL = "TEAL"
|
|
16
|
+
}
|
|
17
|
+
export declare enum BadgeSize {
|
|
18
|
+
SMALL = "SMALL",
|
|
19
|
+
MEDIUM = "MEDIUM",
|
|
20
|
+
LARGE = "LARGE"
|
|
21
|
+
}
|
|
22
|
+
export interface BadgeProps {
|
|
23
|
+
count: number;
|
|
24
|
+
variant?: BadgeVariant;
|
|
25
|
+
size?: BadgeSize;
|
|
26
|
+
max?: number;
|
|
27
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
28
|
+
}
|
|
29
|
+
declare const Badge: ({ count, variant, size, max, onClick, }: BadgeProps) => import("react").JSX.Element | null;
|
|
30
|
+
export default Badge;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import Text, { TextSize, TextVariant } 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
|
+
//#region src/badge/Badge.tsx
|
|
8
|
+
var BadgeVariant = /* @__PURE__ */ function(BadgeVariant) {
|
|
9
|
+
BadgeVariant["PRIMARY"] = "PRIMARY";
|
|
10
|
+
BadgeVariant["PRIMARY_ALT"] = "PRIMARY_ALT";
|
|
11
|
+
BadgeVariant["SECONDARY"] = "SECONDARY";
|
|
12
|
+
BadgeVariant["TERTIARY"] = "TERTIARY";
|
|
13
|
+
BadgeVariant["SUCCESS"] = "SUCCESS";
|
|
14
|
+
BadgeVariant["WARNING"] = "WARNING";
|
|
15
|
+
BadgeVariant["ERROR"] = "ERROR";
|
|
16
|
+
BadgeVariant["PINK"] = "PINK";
|
|
17
|
+
BadgeVariant["ORANGE"] = "ORANGE";
|
|
18
|
+
BadgeVariant["YELLOW"] = "YELLOW";
|
|
19
|
+
BadgeVariant["LIME"] = "LIME";
|
|
20
|
+
BadgeVariant["BLUE"] = "BLUE";
|
|
21
|
+
BadgeVariant["PURPLE"] = "PURPLE";
|
|
22
|
+
BadgeVariant["TEAL"] = "TEAL";
|
|
23
|
+
return BadgeVariant;
|
|
24
|
+
}({});
|
|
25
|
+
var BadgeSize = /* @__PURE__ */ function(BadgeSize) {
|
|
26
|
+
BadgeSize["SMALL"] = "SMALL";
|
|
27
|
+
BadgeSize["MEDIUM"] = "MEDIUM";
|
|
28
|
+
BadgeSize["LARGE"] = "LARGE";
|
|
29
|
+
return BadgeSize;
|
|
30
|
+
}({});
|
|
31
|
+
var BADGE_SIZE_TO_DIMENSION = {
|
|
32
|
+
["SMALL"]: "16px",
|
|
33
|
+
["MEDIUM"]: "20px",
|
|
34
|
+
["LARGE"]: "24px"
|
|
35
|
+
};
|
|
36
|
+
var BADGE_VARIANT_TO_TEXT_VARIANT = {
|
|
37
|
+
["PRIMARY"]: TextVariant.PRIMARY,
|
|
38
|
+
["PRIMARY_ALT"]: TextVariant.PRIMARY_ALT,
|
|
39
|
+
["SECONDARY"]: TextVariant.PRIMARY,
|
|
40
|
+
["TERTIARY"]: TextVariant.PRIMARY,
|
|
41
|
+
["SUCCESS"]: TextVariant.SUCCESS,
|
|
42
|
+
["WARNING"]: TextVariant.WARNING,
|
|
43
|
+
["ERROR"]: TextVariant.ERROR,
|
|
44
|
+
["PINK"]: TextVariant.PINK,
|
|
45
|
+
["ORANGE"]: TextVariant.ORANGE,
|
|
46
|
+
["YELLOW"]: TextVariant.YELLOW,
|
|
47
|
+
["LIME"]: TextVariant.LIME,
|
|
48
|
+
["BLUE"]: TextVariant.BLUE,
|
|
49
|
+
["PURPLE"]: TextVariant.PURPLE,
|
|
50
|
+
["TEAL"]: TextVariant.TEAL
|
|
51
|
+
};
|
|
52
|
+
var BADGE_SIZE_TO_TEXT_SIZE = {
|
|
53
|
+
["SMALL"]: TextSize.BODY_SM,
|
|
54
|
+
["MEDIUM"]: TextSize.BODY_SM,
|
|
55
|
+
["LARGE"]: TextSize.BODY_MD
|
|
56
|
+
};
|
|
57
|
+
var _exp = () => ({ $isClickable }) => $isClickable ? "pointer" : "inherit";
|
|
58
|
+
var _exp3 = () => ({ $size }) => BADGE_SIZE_TO_DIMENSION[$size];
|
|
59
|
+
var _exp4 = () => ({ theme, $variant }) => {
|
|
60
|
+
return match($variant).with("PRIMARY", () => theme.color.background.primary).with("PRIMARY_ALT", () => theme.color.background.primaryAlt).with("SECONDARY", () => theme.color.background.secondary).with("TERTIARY", () => theme.color.background.tertiary).with("SUCCESS", () => theme.color.background.success).with("WARNING", () => theme.color.background.warning).with("ERROR", () => theme.color.background.error).with("PINK", () => theme.color.background.pink).with("ORANGE", () => theme.color.background.orange).with("YELLOW", () => theme.color.background.yellow).with("LIME", () => theme.color.background.lime).with("BLUE", () => theme.color.background.blue).with("PURPLE", () => theme.color.background.purple).with("TEAL", () => theme.color.background.teal).exhaustive();
|
|
61
|
+
};
|
|
62
|
+
var _exp5 = () => ({ theme, $variant }) => {
|
|
63
|
+
return match($variant).with("ERROR", () => theme.color.border.error).with("WARNING", () => theme.color.border.warning).with("SUCCESS", () => theme.color.border.success).otherwise(() => theme.color.border.primary);
|
|
64
|
+
};
|
|
65
|
+
var StyledBadge = withTheme(/*#__PURE__*/ styled("div")({
|
|
66
|
+
name: "StyledBadge",
|
|
67
|
+
class: "s6s20zd",
|
|
68
|
+
propsAsIs: false,
|
|
69
|
+
vars: {
|
|
70
|
+
"s6s20zd-0": [_exp()],
|
|
71
|
+
"s6s20zd-1": [_exp3()],
|
|
72
|
+
"s6s20zd-2": [_exp4()],
|
|
73
|
+
"s6s20zd-3": [_exp5()]
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
76
|
+
var Badge = ({ count, variant = "ERROR", size = "MEDIUM", max = 99, onClick }) => {
|
|
77
|
+
if (count === 0) return null;
|
|
78
|
+
const displayValue = count > max ? `${max}+` : count;
|
|
79
|
+
return /* @__PURE__ */ jsx(StyledBadge, {
|
|
80
|
+
$variant: variant,
|
|
81
|
+
$size: size,
|
|
82
|
+
$isClickable: !!onClick,
|
|
83
|
+
onClick,
|
|
84
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
85
|
+
variant: BADGE_VARIANT_TO_TEXT_VARIANT[variant],
|
|
86
|
+
size: BADGE_SIZE_TO_TEXT_SIZE[size],
|
|
87
|
+
children: displayValue
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { BadgeSize, BadgeVariant, Badge as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare enum BeaconSize {
|
|
2
|
+
SMALL = "SMALL",
|
|
3
|
+
MEDIUM = "MEDIUM",
|
|
4
|
+
LARGE = "LARGE"
|
|
5
|
+
}
|
|
6
|
+
export declare enum BeaconVariant {
|
|
7
|
+
BASE = "BASE",
|
|
8
|
+
PRIMARY = "PRIMARY",
|
|
9
|
+
SECONDARY = "SECONDARY",
|
|
10
|
+
TERTIARY = "TERTIARY",
|
|
11
|
+
SUCCESS = "SUCCESS",
|
|
12
|
+
ERROR = "ERROR",
|
|
13
|
+
WARNING = "WARNING",
|
|
14
|
+
LIME = "LIME",
|
|
15
|
+
YELLOW = "YELLOW",
|
|
16
|
+
BLUE = "BLUE",
|
|
17
|
+
ORANGE = "ORANGE",
|
|
18
|
+
PINK = "PINK",
|
|
19
|
+
PURPLE = "PURPLE",
|
|
20
|
+
TEAL = "TEAL",
|
|
21
|
+
DISABLED = "DISABLED"
|
|
22
|
+
}
|
|
23
|
+
export interface BeaconProps {
|
|
24
|
+
/**
|
|
25
|
+
* The size of the Beacon.
|
|
26
|
+
*/
|
|
27
|
+
size?: BeaconSize;
|
|
28
|
+
/**
|
|
29
|
+
* The color of the Beacon.
|
|
30
|
+
*/
|
|
31
|
+
variant?: BeaconVariant;
|
|
32
|
+
/**
|
|
33
|
+
* The speed of the pulse animation in seconds.
|
|
34
|
+
* @default 2
|
|
35
|
+
*/
|
|
36
|
+
speed?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to show the pulse animation.
|
|
39
|
+
*/
|
|
40
|
+
isPulse?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const Beacon: ({ variant, size, speed, isPulse, }: BeaconProps) => import("react").JSX.Element;
|
|
43
|
+
export default Beacon;
|