@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,80 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** A single data point with a category label and series values */
|
|
3
|
+
export interface ChartDatum {
|
|
4
|
+
/** Category label (x-axis for bar/line, slice label for pie) */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Numeric values keyed by series key. e.g. { revenue: 150, cost: 80 } */
|
|
7
|
+
values: Record<string, number>;
|
|
8
|
+
}
|
|
9
|
+
/** Describes one series in the chart */
|
|
10
|
+
export interface ChartSeriesConfig {
|
|
11
|
+
/** Unique key matching a key in ChartDatum.values */
|
|
12
|
+
key: string;
|
|
13
|
+
/** Human-readable name shown in legend/tooltip */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Override color (hex). Falls back to palette order. */
|
|
16
|
+
color?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A single slice in a pie/donut chart */
|
|
19
|
+
export interface PieSlice {
|
|
20
|
+
/** Slice label shown in legend/tooltip */
|
|
21
|
+
label: string;
|
|
22
|
+
/** Numeric value determining slice size */
|
|
23
|
+
value: number;
|
|
24
|
+
/** Override color (hex). Falls back to palette order. */
|
|
25
|
+
color?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ChartMargin {
|
|
28
|
+
top: number;
|
|
29
|
+
right: number;
|
|
30
|
+
bottom: number;
|
|
31
|
+
left: number;
|
|
32
|
+
}
|
|
33
|
+
export type ChartValueFormatter = (value: number) => string;
|
|
34
|
+
export type ChartLabelFormatter = (label: string) => string;
|
|
35
|
+
export interface ChartTooltipItem {
|
|
36
|
+
seriesKey: string;
|
|
37
|
+
seriesName: string;
|
|
38
|
+
value: number;
|
|
39
|
+
color: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ChartTooltipData {
|
|
42
|
+
/** The category label */
|
|
43
|
+
label: string;
|
|
44
|
+
/** Series values for this datum */
|
|
45
|
+
items: ChartTooltipItem[];
|
|
46
|
+
/** Pixel position for tooltip anchor */
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}
|
|
50
|
+
/** Custom render function for tooltip body */
|
|
51
|
+
export type ChartTooltipRenderer = (data: ChartTooltipData) => ReactNode;
|
|
52
|
+
/** Base props shared by all chart components */
|
|
53
|
+
export interface BaseChartProps {
|
|
54
|
+
/** The data to render */
|
|
55
|
+
data: ChartDatum[];
|
|
56
|
+
/** Series configuration (order determines stacking/legend order) */
|
|
57
|
+
series: ChartSeriesConfig[];
|
|
58
|
+
/** Chart width in pixels. Optional when fillWidth is true. */
|
|
59
|
+
width?: number;
|
|
60
|
+
/** Chart height in pixels. Optional when aspectRatio is provided. */
|
|
61
|
+
height?: number;
|
|
62
|
+
/** Margins around the plot area */
|
|
63
|
+
margin?: Partial<ChartMargin>;
|
|
64
|
+
/** When true, chart fills container width */
|
|
65
|
+
fillWidth?: boolean;
|
|
66
|
+
/** Aspect ratio (width/height). Used to auto-calculate height when fillWidth is true. */
|
|
67
|
+
aspectRatio?: number;
|
|
68
|
+
/** Format y-axis / value labels. Default: toLocaleString() */
|
|
69
|
+
valueFormatter?: ChartValueFormatter;
|
|
70
|
+
/** Format x-axis / category labels. Default: identity */
|
|
71
|
+
labelFormatter?: ChartLabelFormatter;
|
|
72
|
+
/** Custom tooltip renderer. If omitted, uses default ChartTooltip */
|
|
73
|
+
tooltipRenderer?: ChartTooltipRenderer;
|
|
74
|
+
/** Disable tooltip entirely */
|
|
75
|
+
noTooltip?: boolean;
|
|
76
|
+
/** Show legend */
|
|
77
|
+
showLegend?: boolean;
|
|
78
|
+
/** Accessible label for the chart SVG */
|
|
79
|
+
ariaLabel?: string;
|
|
80
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ChartDatum, ChartMargin, ChartSeriesConfig } from "./types";
|
|
2
|
+
/** Resolve partial margin with defaults */
|
|
3
|
+
export declare const resolveMargin: (partial?: Partial<ChartMargin>) => ChartMargin;
|
|
4
|
+
/** Compute the inner plot dimensions */
|
|
5
|
+
export declare const getPlotDimensions: (width: number, height: number, margin: ChartMargin) => {
|
|
6
|
+
plotWidth: number;
|
|
7
|
+
plotHeight: number;
|
|
8
|
+
};
|
|
9
|
+
/** Build a band scale for categories */
|
|
10
|
+
export declare const buildBandScale: (labels: string[], range: [number, number], paddingInner: number, paddingOuter: number) => import("d3-scale").ScaleBand<string>;
|
|
11
|
+
/** Build a point scale for categorical labels (line charts) */
|
|
12
|
+
export declare const buildPointScale: (labels: string[], range: [number, number], padding?: number) => import("d3-scale").ScalePoint<string>;
|
|
13
|
+
/** Build a linear scale for values */
|
|
14
|
+
export declare const buildLinearScale: (domainMax: number, range: [number, number]) => import("d3-scale").ScaleLinear<number, number, never>;
|
|
15
|
+
/** Compute the max stacked total across all data points */
|
|
16
|
+
export declare const getStackedMax: (data: ChartDatum[], seriesKeys: string[]) => number;
|
|
17
|
+
/** Compute the max single-series value across all data points */
|
|
18
|
+
export declare const getGroupedMax: (data: ChartDatum[], seriesKeys: string[]) => number;
|
|
19
|
+
/** Default value formatter */
|
|
20
|
+
export declare const defaultValueFormatter: (value: number) => string;
|
|
21
|
+
/** Default label formatter (identity) */
|
|
22
|
+
export declare const defaultLabelFormatter: (label: string) => string;
|
|
23
|
+
/** Resolve series color from explicit color or palette index */
|
|
24
|
+
export declare const resolveSeriesColor: (config: ChartSeriesConfig, index: number, palette: string[]) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Build an SVG path for a rectangle with only top corners rounded.
|
|
27
|
+
* Used for the topmost bar segment in a stack.
|
|
28
|
+
*/
|
|
29
|
+
export declare const roundedTopRectPath: (x: number, y: number, width: number, height: number, radius: number) => string;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DEFAULT_CHART_MARGIN } from "./constants.js";
|
|
2
|
+
import { scaleBand, scaleLinear, scalePoint } from "d3-scale";
|
|
3
|
+
//#region src/charts/utils.ts
|
|
4
|
+
/** Resolve partial margin with defaults */
|
|
5
|
+
var resolveMargin = (partial) => ({
|
|
6
|
+
...DEFAULT_CHART_MARGIN,
|
|
7
|
+
...partial
|
|
8
|
+
});
|
|
9
|
+
/** Compute the inner plot dimensions */
|
|
10
|
+
var getPlotDimensions = (width, height, margin) => ({
|
|
11
|
+
plotWidth: Math.max(0, width - margin.left - margin.right),
|
|
12
|
+
plotHeight: Math.max(0, height - margin.top - margin.bottom)
|
|
13
|
+
});
|
|
14
|
+
/** Build a band scale for categories */
|
|
15
|
+
var buildBandScale = (labels, range, paddingInner, paddingOuter) => scaleBand().domain(labels).range(range).paddingInner(paddingInner).paddingOuter(paddingOuter);
|
|
16
|
+
/** Build a point scale for categorical labels (line charts) */
|
|
17
|
+
var buildPointScale = (labels, range, padding = 0) => scalePoint().domain(labels).range(range).padding(padding);
|
|
18
|
+
/** Build a linear scale for values */
|
|
19
|
+
var buildLinearScale = (domainMax, range) => scaleLinear().domain([0, domainMax]).nice().range(range);
|
|
20
|
+
/** Compute the max stacked total across all data points */
|
|
21
|
+
var getStackedMax = (data, seriesKeys) => {
|
|
22
|
+
let m = 0;
|
|
23
|
+
for (const d of data) {
|
|
24
|
+
let total = 0;
|
|
25
|
+
for (const key of seriesKeys) total += d.values[key] ?? 0;
|
|
26
|
+
if (total > m) m = total;
|
|
27
|
+
}
|
|
28
|
+
return m;
|
|
29
|
+
};
|
|
30
|
+
/** Compute the max single-series value across all data points */
|
|
31
|
+
var getGroupedMax = (data, seriesKeys) => {
|
|
32
|
+
let m = 0;
|
|
33
|
+
for (const d of data) for (const key of seriesKeys) {
|
|
34
|
+
const v = d.values[key] ?? 0;
|
|
35
|
+
if (v > m) m = v;
|
|
36
|
+
}
|
|
37
|
+
return m;
|
|
38
|
+
};
|
|
39
|
+
/** Default value formatter */
|
|
40
|
+
var defaultValueFormatter = (value) => value.toLocaleString();
|
|
41
|
+
/** Default label formatter (identity) */
|
|
42
|
+
var defaultLabelFormatter = (label) => label;
|
|
43
|
+
/** Resolve series color from explicit color or palette index */
|
|
44
|
+
var resolveSeriesColor = (config, index, palette) => config.color ?? palette[index % palette.length];
|
|
45
|
+
/**
|
|
46
|
+
* Build an SVG path for a rectangle with only top corners rounded.
|
|
47
|
+
* Used for the topmost bar segment in a stack.
|
|
48
|
+
*/
|
|
49
|
+
var roundedTopRectPath = (x, y, width, height, radius) => {
|
|
50
|
+
const r = Math.min(radius, width / 2, height);
|
|
51
|
+
return [
|
|
52
|
+
`M${x},${y + r}`,
|
|
53
|
+
`a${r},${r} 0 0 1 ${r},${-r}`,
|
|
54
|
+
`h${width - 2 * r}`,
|
|
55
|
+
`a${r},${r} 0 0 1 ${r},${r}`,
|
|
56
|
+
`v${height - r}`,
|
|
57
|
+
`h${-width}`,
|
|
58
|
+
`z`
|
|
59
|
+
].join(" ");
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { buildBandScale, buildLinearScale, buildPointScale, defaultLabelFormatter, defaultValueFormatter, getGroupedMax, getPlotDimensions, getStackedMax, resolveMargin, resolveSeriesColor, roundedTopRectPath };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Icon as PhosphorIcon } from "@phosphor-icons/react";
|
|
2
|
+
export declare enum ChipVariant {
|
|
3
|
+
PRIMARY = "PRIMARY",
|
|
4
|
+
PRIMARY_ALT = "PRIMARY_ALT",
|
|
5
|
+
SECONDARY = "SECONDARY",
|
|
6
|
+
TERTIARY = "TERTIARY",
|
|
7
|
+
SUCCESS = "SUCCESS",
|
|
8
|
+
WARNING = "WARNING",
|
|
9
|
+
ERROR = "ERROR",
|
|
10
|
+
PINK = "PINK",
|
|
11
|
+
ORANGE = "ORANGE",
|
|
12
|
+
YELLOW = "YELLOW",
|
|
13
|
+
LIME = "LIME",
|
|
14
|
+
BLUE = "BLUE",
|
|
15
|
+
PURPLE = "PURPLE",
|
|
16
|
+
TEAL = "TEAL"
|
|
17
|
+
}
|
|
18
|
+
export declare enum ChipSize {
|
|
19
|
+
SMALL = "SMALL",
|
|
20
|
+
MEDIUM = "MEDIUM",
|
|
21
|
+
LARGE = "LARGE"
|
|
22
|
+
}
|
|
23
|
+
export interface ChipProps {
|
|
24
|
+
label?: string | number;
|
|
25
|
+
variant?: ChipVariant;
|
|
26
|
+
size?: ChipSize;
|
|
27
|
+
svg?: React.ReactNode;
|
|
28
|
+
icon?: PhosphorIcon;
|
|
29
|
+
onDismiss?: () => void;
|
|
30
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
31
|
+
isPill?: boolean;
|
|
32
|
+
noBackground?: boolean;
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
isEllipsis?: boolean;
|
|
35
|
+
/** When true, shows active/selected styling with variant-colored border */
|
|
36
|
+
isActive?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const Chip: ({ label, variant, size, svg, icon, onDismiss, onClick, isPill, noBackground, isLoading, isEllipsis, isActive, }: ChipProps) => import("react").JSX.Element | null;
|
|
39
|
+
export default Chip;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import Text, { TextSize, TextVariant } from "../text/Text.js";
|
|
3
|
+
import TextShimmer from "../text/TextShimmer.js";
|
|
4
|
+
import Ellipsis from "../text/Ellipsis.js";
|
|
5
|
+
import FlexWrapper from "../containers/FlexWrapper.js";
|
|
6
|
+
import FlexItem from "../containers/FlexItem.js";
|
|
7
|
+
import Icon, { IconVariant } from "../icons/Icon.js";
|
|
8
|
+
import AvatarShimmer from "../avatar/AvatarShimmer.js";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { styled } from "@linaria/react";
|
|
11
|
+
import { match } from "ts-pattern";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { XIcon } from "@phosphor-icons/react";
|
|
14
|
+
//#region src/chips/Chip.tsx
|
|
15
|
+
var ChipVariant = /* @__PURE__ */ function(ChipVariant) {
|
|
16
|
+
ChipVariant["PRIMARY"] = "PRIMARY";
|
|
17
|
+
ChipVariant["PRIMARY_ALT"] = "PRIMARY_ALT";
|
|
18
|
+
ChipVariant["SECONDARY"] = "SECONDARY";
|
|
19
|
+
ChipVariant["TERTIARY"] = "TERTIARY";
|
|
20
|
+
ChipVariant["SUCCESS"] = "SUCCESS";
|
|
21
|
+
ChipVariant["WARNING"] = "WARNING";
|
|
22
|
+
ChipVariant["ERROR"] = "ERROR";
|
|
23
|
+
ChipVariant["PINK"] = "PINK";
|
|
24
|
+
ChipVariant["ORANGE"] = "ORANGE";
|
|
25
|
+
ChipVariant["YELLOW"] = "YELLOW";
|
|
26
|
+
ChipVariant["LIME"] = "LIME";
|
|
27
|
+
ChipVariant["BLUE"] = "BLUE";
|
|
28
|
+
ChipVariant["PURPLE"] = "PURPLE";
|
|
29
|
+
ChipVariant["TEAL"] = "TEAL";
|
|
30
|
+
return ChipVariant;
|
|
31
|
+
}({});
|
|
32
|
+
var ChipSize = /* @__PURE__ */ function(ChipSize) {
|
|
33
|
+
ChipSize["SMALL"] = "SMALL";
|
|
34
|
+
ChipSize["MEDIUM"] = "MEDIUM";
|
|
35
|
+
ChipSize["LARGE"] = "LARGE";
|
|
36
|
+
return ChipSize;
|
|
37
|
+
}({});
|
|
38
|
+
var _exp = () => ({ $isClickable }) => $isClickable ? "pointer" : "inherit";
|
|
39
|
+
var _exp2 = () => ({ $size }) => {
|
|
40
|
+
return match($size).with("SMALL", () => "18px").with("MEDIUM", () => "20px").with("LARGE", () => "24px").exhaustive();
|
|
41
|
+
};
|
|
42
|
+
var _exp3 = () => ({ $size }) => {
|
|
43
|
+
return match($size).with("SMALL", () => "0 4px").with("MEDIUM", () => "0 6px").with("LARGE", () => "0 8px").exhaustive();
|
|
44
|
+
};
|
|
45
|
+
var _exp4 = () => ({ theme, $variant, $noBackground }) => {
|
|
46
|
+
if ($noBackground) return "transparent";
|
|
47
|
+
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();
|
|
48
|
+
};
|
|
49
|
+
var _exp5 = () => ({ theme, $variant, $isActive }) => {
|
|
50
|
+
if (!$isActive) return match($variant).with("SUCCESS", () => theme.color.border.success).with("WARNING", () => theme.color.border.warning).with("ERROR", () => theme.color.border.error).with("PINK", () => theme.color.border.pink).with("ORANGE", () => theme.color.border.orange).with("YELLOW", () => theme.color.border.yellow).with("LIME", () => theme.color.border.lime).with("BLUE", () => theme.color.border.blue).with("PURPLE", () => theme.color.border.purple).with("TEAL", () => theme.color.border.teal).otherwise(() => theme.color.border.primary);
|
|
51
|
+
return match($variant).with("PRIMARY", () => theme.color.icon.primary).with("PRIMARY_ALT", () => theme.color.icon.primaryAlt).with("SECONDARY", () => theme.color.icon.secondary).with("TERTIARY", () => theme.color.icon.tertiary).with("SUCCESS", () => theme.color.icon.success).with("WARNING", () => theme.color.icon.warning).with("ERROR", () => theme.color.icon.error).with("PINK", () => theme.color.icon.pink).with("ORANGE", () => theme.color.icon.orange).with("YELLOW", () => theme.color.icon.yellow).with("LIME", () => theme.color.icon.lime).with("BLUE", () => theme.color.icon.blue).with("PURPLE", () => theme.color.icon.purple).with("TEAL", () => theme.color.icon.teal).exhaustive();
|
|
52
|
+
};
|
|
53
|
+
var _exp6 = () => ({ $isPill }) => $isPill ? "200px" : "4px";
|
|
54
|
+
var StyledChip = withTheme(/*#__PURE__*/ styled("div")({
|
|
55
|
+
name: "StyledChip",
|
|
56
|
+
class: "shdcix9",
|
|
57
|
+
propsAsIs: false,
|
|
58
|
+
vars: {
|
|
59
|
+
"shdcix9-0": [_exp()],
|
|
60
|
+
"shdcix9-1": [_exp2()],
|
|
61
|
+
"shdcix9-2": [_exp3()],
|
|
62
|
+
"shdcix9-3": [_exp4()],
|
|
63
|
+
"shdcix9-4": [_exp5()],
|
|
64
|
+
"shdcix9-5": [_exp6()]
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
var CHIP_SIZE_TO_SHIMMER_HEIGHT = {
|
|
68
|
+
["SMALL"]: 10,
|
|
69
|
+
["MEDIUM"]: 12,
|
|
70
|
+
["LARGE"]: 14
|
|
71
|
+
};
|
|
72
|
+
var CHIP_SIZE_TO_SHIMMER_WIDTH = {
|
|
73
|
+
["SMALL"]: 14,
|
|
74
|
+
["MEDIUM"]: 18,
|
|
75
|
+
["LARGE"]: 22
|
|
76
|
+
};
|
|
77
|
+
var CHIP_SIZE_TO_ICON_SIZE = {
|
|
78
|
+
["SMALL"]: 10,
|
|
79
|
+
["MEDIUM"]: 12,
|
|
80
|
+
["LARGE"]: 14
|
|
81
|
+
};
|
|
82
|
+
var CHIP_VARIANT_TO_ICON_VARIANT = {
|
|
83
|
+
["PRIMARY"]: IconVariant.PRIMARY,
|
|
84
|
+
["PRIMARY_ALT"]: IconVariant.PRIMARY_ALT,
|
|
85
|
+
["SECONDARY"]: IconVariant.SECONDARY,
|
|
86
|
+
["TERTIARY"]: IconVariant.TERTIARY,
|
|
87
|
+
["SUCCESS"]: IconVariant.SUCCESS,
|
|
88
|
+
["WARNING"]: IconVariant.WARNING,
|
|
89
|
+
["ERROR"]: IconVariant.ERROR,
|
|
90
|
+
["PINK"]: IconVariant.PINK,
|
|
91
|
+
["ORANGE"]: IconVariant.ORANGE,
|
|
92
|
+
["YELLOW"]: IconVariant.YELLOW,
|
|
93
|
+
["LIME"]: IconVariant.LIME,
|
|
94
|
+
["BLUE"]: IconVariant.BLUE,
|
|
95
|
+
["PURPLE"]: IconVariant.PURPLE,
|
|
96
|
+
["TEAL"]: IconVariant.TEAL
|
|
97
|
+
};
|
|
98
|
+
var CHIP_VARIANT_TO_TEXT_VARIANT = {
|
|
99
|
+
["PRIMARY"]: TextVariant.PRIMARY,
|
|
100
|
+
["PRIMARY_ALT"]: TextVariant.PRIMARY_ALT,
|
|
101
|
+
["SECONDARY"]: TextVariant.PRIMARY,
|
|
102
|
+
["TERTIARY"]: TextVariant.PRIMARY,
|
|
103
|
+
["SUCCESS"]: TextVariant.SUCCESS,
|
|
104
|
+
["WARNING"]: TextVariant.WARNING,
|
|
105
|
+
["ERROR"]: TextVariant.ERROR,
|
|
106
|
+
["PINK"]: TextVariant.PINK,
|
|
107
|
+
["ORANGE"]: TextVariant.ORANGE,
|
|
108
|
+
["YELLOW"]: TextVariant.YELLOW,
|
|
109
|
+
["LIME"]: TextVariant.LIME,
|
|
110
|
+
["BLUE"]: TextVariant.BLUE,
|
|
111
|
+
["PURPLE"]: TextVariant.PURPLE,
|
|
112
|
+
["TEAL"]: TextVariant.TEAL
|
|
113
|
+
};
|
|
114
|
+
var CHIP_SIZE_TO_TEXT_SIZE = {
|
|
115
|
+
["SMALL"]: TextSize.BODY_SM,
|
|
116
|
+
["MEDIUM"]: TextSize.BODY_MD,
|
|
117
|
+
["LARGE"]: TextSize.BODY_LG
|
|
118
|
+
};
|
|
119
|
+
var Chip = ({ label, variant = "SECONDARY", size = "MEDIUM", svg, icon, onDismiss, onClick, isPill, noBackground, isLoading, isEllipsis, isActive }) => {
|
|
120
|
+
if (!label && !icon) return null;
|
|
121
|
+
if (isLoading) return /* @__PURE__ */ jsxs(StyledChip, {
|
|
122
|
+
$variant: variant,
|
|
123
|
+
$size: size,
|
|
124
|
+
$isPill: isPill,
|
|
125
|
+
$isClickable: false,
|
|
126
|
+
$noBackground: noBackground,
|
|
127
|
+
$isActive: isActive,
|
|
128
|
+
children: [(icon || svg) && /* @__PURE__ */ jsx(FlexItem, {
|
|
129
|
+
shrink: 0,
|
|
130
|
+
grow: 0,
|
|
131
|
+
children: /* @__PURE__ */ jsx(AvatarShimmer, { size: CHIP_SIZE_TO_ICON_SIZE[size] })
|
|
132
|
+
}), /* @__PURE__ */ jsx(FlexItem, {
|
|
133
|
+
shrink: 0,
|
|
134
|
+
grow: 0,
|
|
135
|
+
children: /* @__PURE__ */ jsx(TextShimmer, {
|
|
136
|
+
height: CHIP_SIZE_TO_SHIMMER_HEIGHT[size],
|
|
137
|
+
width: CHIP_SIZE_TO_SHIMMER_WIDTH[size]
|
|
138
|
+
})
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
return /* @__PURE__ */ jsxs(StyledChip, {
|
|
142
|
+
$variant: variant,
|
|
143
|
+
$size: size,
|
|
144
|
+
$isPill: isPill,
|
|
145
|
+
$isClickable: !!onClick,
|
|
146
|
+
$noBackground: noBackground,
|
|
147
|
+
$isActive: isActive,
|
|
148
|
+
onClick,
|
|
149
|
+
children: [
|
|
150
|
+
icon && /* @__PURE__ */ jsx(FlexItem, {
|
|
151
|
+
shrink: 0,
|
|
152
|
+
grow: 0,
|
|
153
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
154
|
+
component: icon,
|
|
155
|
+
size: CHIP_SIZE_TO_ICON_SIZE[size],
|
|
156
|
+
variant: CHIP_VARIANT_TO_ICON_VARIANT[variant]
|
|
157
|
+
})
|
|
158
|
+
}),
|
|
159
|
+
svg && /* @__PURE__ */ jsx(FlexItem, {
|
|
160
|
+
shrink: 0,
|
|
161
|
+
grow: 0,
|
|
162
|
+
children: svg
|
|
163
|
+
}),
|
|
164
|
+
label && /* @__PURE__ */ jsx(FlexItem, {
|
|
165
|
+
shrink: 0,
|
|
166
|
+
grow: 0,
|
|
167
|
+
children: /* @__PURE__ */ jsxs(Text, {
|
|
168
|
+
variant: CHIP_VARIANT_TO_TEXT_VARIANT[variant],
|
|
169
|
+
size: CHIP_SIZE_TO_TEXT_SIZE[size],
|
|
170
|
+
children: [label, isEllipsis && /* @__PURE__ */ jsx(Ellipsis, { isPulse: true })]
|
|
171
|
+
})
|
|
172
|
+
}),
|
|
173
|
+
onDismiss && /* @__PURE__ */ jsx(FlexWrapper, {
|
|
174
|
+
onClick: onDismiss,
|
|
175
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
176
|
+
component: XIcon,
|
|
177
|
+
size: 12,
|
|
178
|
+
variant: IconVariant.TERTIARY
|
|
179
|
+
})
|
|
180
|
+
})
|
|
181
|
+
]
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
//#endregion
|
|
185
|
+
export { ChipSize, ChipVariant, Chip as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
import { AlignItems, JustifyContent } from "./FlexWrapper";
|
|
3
|
+
interface FlexItemProps {
|
|
4
|
+
position?: CSSProperties["position"];
|
|
5
|
+
grow?: number;
|
|
6
|
+
shrink?: number;
|
|
7
|
+
basis?: number | string;
|
|
8
|
+
overflow?: CSSProperties["overflow"];
|
|
9
|
+
whiteSpace?: CSSProperties["whiteSpace"];
|
|
10
|
+
textOverflow?: CSSProperties["textOverflow"];
|
|
11
|
+
width?: number | string;
|
|
12
|
+
height?: number | string;
|
|
13
|
+
fillWidth?: boolean;
|
|
14
|
+
fillHeight?: boolean;
|
|
15
|
+
display?: CSSProperties["display"];
|
|
16
|
+
alignItems?: AlignItems;
|
|
17
|
+
justifyContent?: JustifyContent;
|
|
18
|
+
minWidth?: number | string;
|
|
19
|
+
minHeight?: number | string;
|
|
20
|
+
maxWidth?: number | string;
|
|
21
|
+
maxHeight?: number | string;
|
|
22
|
+
padding?: CSSProperties["padding"];
|
|
23
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const FlexItem: import("react").ForwardRefExoticComponent<FlexItemProps & {
|
|
26
|
+
children?: import("react").ReactNode | undefined;
|
|
27
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export default FlexItem;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { getCssSizeValue } from "../utils/linaria.js";
|
|
2
|
+
import { AlignItems, JustifyContent } from "./FlexWrapper.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { styled } from "@linaria/react";
|
|
5
|
+
import { match } from "ts-pattern";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region src/containers/FlexItem.tsx
|
|
9
|
+
var _exp = () => ({ $position }) => $position ?? "static";
|
|
10
|
+
var _exp2 = () => ({ $display }) => $display ?? "flex";
|
|
11
|
+
var _exp3 = () => ({ $alignItems }) => {
|
|
12
|
+
return match($alignItems).with(AlignItems.START, () => "flex-start").with(AlignItems.CENTER, () => "center").with(AlignItems.END, () => "flex-end").with(AlignItems.BASELINE, () => "baseline").with(AlignItems.STRETCH, () => "stretch").otherwise(() => "inherit");
|
|
13
|
+
};
|
|
14
|
+
var _exp4 = () => ({ $justifyContent }) => {
|
|
15
|
+
return match($justifyContent).with(JustifyContent.START, () => "flex-start").with(JustifyContent.CENTER, () => "center").with(JustifyContent.END, () => "flex-end").otherwise(() => "flex-start");
|
|
16
|
+
};
|
|
17
|
+
var _exp5 = () => ({ $grow }) => $grow ?? 1;
|
|
18
|
+
var _exp6 = () => ({ $shrink }) => $shrink ?? 1;
|
|
19
|
+
var _exp7 = () => ({ $basis }) => $basis ?? "auto";
|
|
20
|
+
var _exp8 = () => ({ $width, $fillWidth }) => {
|
|
21
|
+
if ($fillWidth) return "100%";
|
|
22
|
+
if ($width) return getCssSizeValue($width, "0");
|
|
23
|
+
return "auto";
|
|
24
|
+
};
|
|
25
|
+
var _exp9 = () => ({ $height, $fillHeight }) => {
|
|
26
|
+
if ($fillHeight) return "100%";
|
|
27
|
+
if ($height) return getCssSizeValue($height);
|
|
28
|
+
return "auto";
|
|
29
|
+
};
|
|
30
|
+
var _exp0 = () => ({ $minWidth }) => $minWidth ? getCssSizeValue($minWidth) : "auto";
|
|
31
|
+
var _exp1 = () => ({ $maxWidth }) => $maxWidth ? getCssSizeValue($maxWidth) : "none";
|
|
32
|
+
var _exp10 = () => ({ $minHeight }) => $minHeight ? getCssSizeValue($minHeight) : "auto";
|
|
33
|
+
var _exp11 = () => ({ $maxHeight }) => $maxHeight ? getCssSizeValue($maxHeight) : "none";
|
|
34
|
+
var _exp12 = () => ({ $overflow }) => $overflow ?? "visible";
|
|
35
|
+
var _exp13 = () => ({ $whiteSpace }) => $whiteSpace ?? "normal";
|
|
36
|
+
var _exp14 = () => ({ $textOverflow }) => $textOverflow ?? "clip";
|
|
37
|
+
var _exp15 = () => ({ $padding }) => $padding ?? "0";
|
|
38
|
+
var _exp16 = () => ({ $onClick }) => $onClick ? "pointer" : "inherit";
|
|
39
|
+
var StyledFlexItem = /*#__PURE__*/ styled("div")({
|
|
40
|
+
name: "StyledFlexItem",
|
|
41
|
+
class: "s1he36jx",
|
|
42
|
+
propsAsIs: false,
|
|
43
|
+
vars: {
|
|
44
|
+
"s1he36jx-0": [_exp()],
|
|
45
|
+
"s1he36jx-1": [_exp2()],
|
|
46
|
+
"s1he36jx-2": [_exp3()],
|
|
47
|
+
"s1he36jx-3": [_exp4()],
|
|
48
|
+
"s1he36jx-4": [_exp5()],
|
|
49
|
+
"s1he36jx-5": [_exp6()],
|
|
50
|
+
"s1he36jx-6": [_exp7()],
|
|
51
|
+
"s1he36jx-7": [_exp8()],
|
|
52
|
+
"s1he36jx-8": [_exp9()],
|
|
53
|
+
"s1he36jx-9": [_exp0()],
|
|
54
|
+
"s1he36jx-10": [_exp1()],
|
|
55
|
+
"s1he36jx-11": [_exp10()],
|
|
56
|
+
"s1he36jx-12": [_exp11()],
|
|
57
|
+
"s1he36jx-13": [_exp12()],
|
|
58
|
+
"s1he36jx-14": [_exp13()],
|
|
59
|
+
"s1he36jx-15": [_exp14()],
|
|
60
|
+
"s1he36jx-16": [_exp15()],
|
|
61
|
+
"s1he36jx-17": [_exp16()]
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var FlexItem = forwardRef(({ children, position, grow, shrink, basis, overflow, whiteSpace, textOverflow, width, height, fillWidth, fillHeight, display, alignItems, justifyContent, minWidth, minHeight, maxWidth, maxHeight, padding, onClick }, ref) => {
|
|
65
|
+
return /* @__PURE__ */ jsx(StyledFlexItem, {
|
|
66
|
+
ref,
|
|
67
|
+
$position: position,
|
|
68
|
+
$grow: grow,
|
|
69
|
+
$shrink: shrink,
|
|
70
|
+
$basis: basis,
|
|
71
|
+
$overflow: overflow,
|
|
72
|
+
$whiteSpace: whiteSpace,
|
|
73
|
+
$textOverflow: textOverflow,
|
|
74
|
+
$width: width,
|
|
75
|
+
$height: height,
|
|
76
|
+
$fillWidth: fillWidth,
|
|
77
|
+
$fillHeight: fillHeight,
|
|
78
|
+
$display: display,
|
|
79
|
+
$alignItems: alignItems,
|
|
80
|
+
$justifyContent: justifyContent,
|
|
81
|
+
$minWidth: minWidth,
|
|
82
|
+
$minHeight: minHeight,
|
|
83
|
+
$maxWidth: maxWidth,
|
|
84
|
+
$maxHeight: maxHeight,
|
|
85
|
+
$padding: padding,
|
|
86
|
+
$onClick: onClick,
|
|
87
|
+
onClick,
|
|
88
|
+
children
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
FlexItem.displayName = "FlexItem";
|
|
92
|
+
//#endregion
|
|
93
|
+
export { FlexItem as default };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export declare enum FlexDirection {
|
|
2
|
+
ROW = "row",
|
|
3
|
+
COLUMN = "column",
|
|
4
|
+
ROW_REVERSE = "row-reverse",
|
|
5
|
+
COLUMN_REVERSE = "column-reverse"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AlignItems {
|
|
8
|
+
START = "start",
|
|
9
|
+
CENTER = "center",
|
|
10
|
+
END = "end",
|
|
11
|
+
BASELINE = "baseline",
|
|
12
|
+
STRETCH = "stretch"
|
|
13
|
+
}
|
|
14
|
+
export declare enum JustifyContent {
|
|
15
|
+
START = "start",
|
|
16
|
+
CENTER = "center",
|
|
17
|
+
END = "end",
|
|
18
|
+
SPACE_BETWEEN = "space-between",
|
|
19
|
+
SPACE_AROUND = "space-around",
|
|
20
|
+
SPACE_EVENLY = "space-evenly"
|
|
21
|
+
}
|
|
22
|
+
export declare enum FlexWrap {
|
|
23
|
+
NOWRAP = "nowrap",
|
|
24
|
+
WRAP = "wrap",
|
|
25
|
+
WRAP_REVERSE = "wrap-reverse"
|
|
26
|
+
}
|
|
27
|
+
export declare enum FlexGap {
|
|
28
|
+
NONE = "0",
|
|
29
|
+
XXSMALL = "2px",
|
|
30
|
+
XSMALL = "4px",
|
|
31
|
+
SMALL = "8px",
|
|
32
|
+
MEDIUM = "12px",
|
|
33
|
+
LARGE = "16px",
|
|
34
|
+
XLARGE = "24px",
|
|
35
|
+
XXLARGE = "32px"
|
|
36
|
+
}
|
|
37
|
+
interface FlexWrapperProps {
|
|
38
|
+
/**
|
|
39
|
+
* Sets the direction of the flex container
|
|
40
|
+
* - ROW: Items are placed in a row (default)
|
|
41
|
+
* - COLUMN: Items are placed in a column
|
|
42
|
+
* - ROW_REVERSE: Items are placed in a row, from right to left
|
|
43
|
+
* - COLUMN_REVERSE: Items are placed in a column, from bottom to top
|
|
44
|
+
*/
|
|
45
|
+
direction?: FlexDirection;
|
|
46
|
+
/**
|
|
47
|
+
* Defines how flex items are aligned along the cross axis
|
|
48
|
+
* - START: Items are aligned at the start (default)
|
|
49
|
+
* - CENTER: Items are centered
|
|
50
|
+
* - END: Items are aligned at the end
|
|
51
|
+
* - BASELINE: Items are aligned at their baselines
|
|
52
|
+
* - STRETCH: Items are stretched to fill the container
|
|
53
|
+
*/
|
|
54
|
+
alignItems?: AlignItems;
|
|
55
|
+
/**
|
|
56
|
+
* Defines how flex items are aligned along the main axis
|
|
57
|
+
* - START: Items are aligned at the start (default)
|
|
58
|
+
* - CENTER: Items are centered
|
|
59
|
+
* - END: Items are aligned at the end
|
|
60
|
+
* - SPACE_BETWEEN: Items are evenly distributed with equal space between them
|
|
61
|
+
* - SPACE_AROUND: Items are evenly distributed with equal space around them
|
|
62
|
+
* - SPACE_EVENLY: Items are evenly distributed with equal space between and around them
|
|
63
|
+
*/
|
|
64
|
+
justifyContent?: JustifyContent;
|
|
65
|
+
/**
|
|
66
|
+
* Controls whether flex items should wrap when there isn't enough space
|
|
67
|
+
* - NOWRAP: Items will not wrap (default)
|
|
68
|
+
* - WRAP: Items will wrap onto multiple lines if needed
|
|
69
|
+
* - WRAP_REVERSE: Items will wrap onto multiple lines in reverse order
|
|
70
|
+
*/
|
|
71
|
+
wrap?: FlexWrap;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the gap between flex items in pixels or string (for other units)
|
|
74
|
+
*/
|
|
75
|
+
gap?: number | string;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the width of the flex container in pixels
|
|
78
|
+
*/
|
|
79
|
+
width?: number | string;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the height of the flex container in pixels
|
|
82
|
+
*/
|
|
83
|
+
height?: number | string;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the minimum width of the flex container in pixels
|
|
86
|
+
*/
|
|
87
|
+
minWidth?: number | string;
|
|
88
|
+
/**
|
|
89
|
+
* Sets the maximum width of the flex container in pixels
|
|
90
|
+
*/
|
|
91
|
+
maxWidth?: number | string;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the minimum height of the flex container in pixels
|
|
94
|
+
*/
|
|
95
|
+
minHeight?: number | string;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the maximum height of the flex container in pixels
|
|
98
|
+
*/
|
|
99
|
+
maxHeight?: number | string;
|
|
100
|
+
/**
|
|
101
|
+
* When true, the container will fill its parent's width (equivalent to width: 100%)
|
|
102
|
+
*/
|
|
103
|
+
fillWidth?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* When true, the container will fill its parent's height (equivalent to height: 100%)
|
|
106
|
+
*/
|
|
107
|
+
fillHeight?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Controls how content that overflows the container should be handled
|
|
110
|
+
* Default is 'visible'
|
|
111
|
+
*/
|
|
112
|
+
overflow?: React.CSSProperties["overflow"];
|
|
113
|
+
/**
|
|
114
|
+
* Sets the padding inside the container
|
|
115
|
+
* Can be a number (for pixels) or a string (for other units)
|
|
116
|
+
*/
|
|
117
|
+
padding?: React.CSSProperties["padding"];
|
|
118
|
+
/**
|
|
119
|
+
* Sets the margin inside the container
|
|
120
|
+
* Can be a number (for pixels) or a string (for other units)
|
|
121
|
+
*/
|
|
122
|
+
margin?: React.CSSProperties["margin"];
|
|
123
|
+
/**
|
|
124
|
+
* Optional click handler for the flex container
|
|
125
|
+
*/
|
|
126
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
127
|
+
/**
|
|
128
|
+
* Optional mousedown handler for the flex container
|
|
129
|
+
*/
|
|
130
|
+
onMouseDown?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Optional mouseenter handler for the flex container
|
|
133
|
+
*/
|
|
134
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
135
|
+
/**
|
|
136
|
+
* Optional mouseleave handler for the flex container
|
|
137
|
+
*/
|
|
138
|
+
onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Optional scroll handler for the flex container
|
|
141
|
+
*/
|
|
142
|
+
onScroll?: (event: React.UIEvent<HTMLDivElement>) => void;
|
|
143
|
+
}
|
|
144
|
+
declare const FlexWrapper: import("react").ForwardRefExoticComponent<FlexWrapperProps & {
|
|
145
|
+
children?: import("react").ReactNode | undefined;
|
|
146
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
147
|
+
export default FlexWrapper;
|