@rebasepro/plugin-insights 0.0.1-canary.4f204c2
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/LICENSE +6 -0
- package/dist/common/src/collections/CollectionRegistry.d.ts +56 -0
- package/dist/common/src/collections/index.d.ts +1 -0
- package/dist/common/src/data/buildRebaseData.d.ts +14 -0
- package/dist/common/src/index.d.ts +3 -0
- package/dist/common/src/util/builders.d.ts +57 -0
- package/dist/common/src/util/callbacks.d.ts +6 -0
- package/dist/common/src/util/collections.d.ts +11 -0
- package/dist/common/src/util/common.d.ts +2 -0
- package/dist/common/src/util/conditions.d.ts +26 -0
- package/dist/common/src/util/entities.d.ts +58 -0
- package/dist/common/src/util/enums.d.ts +3 -0
- package/dist/common/src/util/index.d.ts +16 -0
- package/dist/common/src/util/navigation_from_path.d.ts +34 -0
- package/dist/common/src/util/navigation_utils.d.ts +20 -0
- package/dist/common/src/util/parent_references_from_path.d.ts +6 -0
- package/dist/common/src/util/paths.d.ts +14 -0
- package/dist/common/src/util/permissions.d.ts +5 -0
- package/dist/common/src/util/references.d.ts +2 -0
- package/dist/common/src/util/relations.d.ts +22 -0
- package/dist/common/src/util/resolutions.d.ts +72 -0
- package/dist/common/src/util/storage.d.ts +24 -0
- package/dist/core/src/components/AIIcon.d.ts +16 -0
- package/dist/core/src/components/ConfirmationDialog.d.ts +9 -0
- package/dist/core/src/components/Debug/UIReferenceView.d.ts +1 -0
- package/dist/core/src/components/Debug/UIStyleGuide.d.ts +1 -0
- package/dist/core/src/components/ErrorTooltip.d.ts +2 -0
- package/dist/core/src/components/ErrorView.d.ts +21 -0
- package/dist/core/src/components/LanguageToggle.d.ts +1 -0
- package/dist/core/src/components/LoginView/LoginView.d.ts +68 -0
- package/dist/core/src/components/LoginView/index.d.ts +2 -0
- package/dist/core/src/components/NotFoundPage.d.ts +1 -0
- package/dist/core/src/components/RebaseAuth.d.ts +10 -0
- package/dist/core/src/components/RebaseLogo.d.ts +7 -0
- package/dist/core/src/components/UnsavedChangesDialog.d.ts +9 -0
- package/dist/core/src/components/UserDisplay.d.ts +7 -0
- package/dist/core/src/components/UserSelectPopover.d.ts +62 -0
- package/dist/core/src/components/UserSettingsView.d.ts +1 -0
- package/dist/core/src/components/common/index.d.ts +6 -0
- package/dist/core/src/components/common/table_height.d.ts +5 -0
- package/dist/core/src/components/common/types.d.ts +63 -0
- package/dist/core/src/components/common/useColumnsIds.d.ts +9 -0
- package/dist/core/src/components/common/useDataTableController.d.ts +45 -0
- package/dist/core/src/components/common/useDebouncedData.d.ts +9 -0
- package/dist/core/src/components/common/useScrollRestoration.d.ts +14 -0
- package/dist/core/src/components/index.d.ts +16 -0
- package/dist/core/src/contexts/AdminModeController.d.ts +4 -0
- package/dist/core/src/contexts/AnalyticsContext.d.ts +3 -0
- package/dist/core/src/contexts/AuthControllerContext.d.ts +3 -0
- package/dist/core/src/contexts/CustomizationControllerContext.d.ts +3 -0
- package/dist/core/src/contexts/DataDriverContext.d.ts +3 -0
- package/dist/core/src/contexts/DatabaseAdminContext.d.ts +3 -0
- package/dist/core/src/contexts/DialogsProvider.d.ts +4 -0
- package/dist/core/src/contexts/EffectiveRoleController.d.ts +4 -0
- package/dist/core/src/contexts/InternalUserManagementContext.d.ts +3 -0
- package/dist/core/src/contexts/ModeController.d.ts +4 -0
- package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +6 -0
- package/dist/core/src/contexts/RebaseDataContext.d.ts +3 -0
- package/dist/core/src/contexts/SnackbarProvider.d.ts +2 -0
- package/dist/core/src/contexts/StorageSourceContext.d.ts +3 -0
- package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +3 -0
- package/dist/core/src/contexts/index.d.ts +13 -0
- package/dist/core/src/core/PluginLifecycleManager.d.ts +17 -0
- package/dist/core/src/core/PluginProviderStack.d.ts +21 -0
- package/dist/core/src/core/Rebase.d.ts +14 -0
- package/dist/core/src/core/RebaseProps.d.ts +136 -0
- package/dist/core/src/core/RebaseRouter.d.ts +4 -0
- package/dist/core/src/core/RebaseRoutes.d.ts +17 -0
- package/dist/core/src/core/index.d.ts +4 -0
- package/dist/core/src/hooks/ApiConfigContext.d.ts +24 -0
- package/dist/core/src/hooks/data/delete.d.ts +31 -0
- package/dist/core/src/hooks/data/save.d.ts +34 -0
- package/dist/core/src/hooks/data/useCollectionFetch.d.ts +51 -0
- package/dist/core/src/hooks/data/useData.d.ts +13 -0
- package/dist/core/src/hooks/data/useDataOrder.d.ts +12 -0
- package/dist/core/src/hooks/data/useEntityFetch.d.ts +38 -0
- package/dist/core/src/hooks/data/useRelationSelector.d.ts +52 -0
- package/dist/core/src/hooks/data/useUserSelector.d.ts +31 -0
- package/dist/core/src/hooks/index.d.ts +37 -0
- package/dist/core/src/hooks/useAdminModeController.d.ts +19 -0
- package/dist/core/src/hooks/useAnalyticsController.d.ts +5 -0
- package/dist/core/src/hooks/useAuthController.d.ts +11 -0
- package/dist/core/src/hooks/useAuthSubscription.d.ts +2 -0
- package/dist/core/src/hooks/useBackendStorageSource.d.ts +30 -0
- package/dist/core/src/hooks/useBridgeRegistration.d.ts +18 -0
- package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +6 -0
- package/dist/core/src/hooks/useBuildAdminModeController.d.ts +6 -0
- package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +8 -0
- package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +2 -0
- package/dist/core/src/hooks/useBuildModeController.d.ts +6 -0
- package/dist/core/src/hooks/useClipboard.d.ts +57 -0
- package/dist/core/src/hooks/useCollapsedGroups.d.ts +12 -0
- package/dist/core/src/hooks/useCustomizationController.d.ts +11 -0
- package/dist/core/src/hooks/useDialogsController.d.ts +11 -0
- package/dist/core/src/hooks/useEffectiveRoleController.d.ts +7 -0
- package/dist/core/src/hooks/useInternalUserManagementController.d.ts +12 -0
- package/dist/core/src/hooks/useLargeLayout.d.ts +1 -0
- package/dist/core/src/hooks/useModeController.d.ts +19 -0
- package/dist/core/src/hooks/usePermissions.d.ts +12 -0
- package/dist/core/src/hooks/useRebaseClient.d.ts +5 -0
- package/dist/core/src/hooks/useRebaseContext.d.ts +11 -0
- package/dist/core/src/hooks/useRebaseRegistry.d.ts +34 -0
- package/dist/core/src/hooks/useSlot.d.ts +18 -0
- package/dist/core/src/hooks/useSnackbarController.d.ts +20 -0
- package/dist/core/src/hooks/useStorageSource.d.ts +7 -0
- package/dist/core/src/hooks/useStudioBridge.d.ts +91 -0
- package/dist/core/src/hooks/useTranslation.d.ts +17 -0
- package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +12 -0
- package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +8 -0
- package/dist/core/src/hooks/useValidateAuthenticator.d.ts +21 -0
- package/dist/core/src/i18n/RebaseI18nProvider.d.ts +33 -0
- package/dist/core/src/index.d.ts +15 -0
- package/dist/core/src/internal/common.d.ts +3 -0
- package/dist/core/src/internal/useRestoreScroll.d.ts +6 -0
- package/dist/core/src/locales/de.d.ts +2 -0
- package/dist/core/src/locales/en.d.ts +10 -0
- package/dist/core/src/locales/es.d.ts +10 -0
- package/dist/core/src/locales/fr.d.ts +2 -0
- package/dist/core/src/locales/hi.d.ts +2 -0
- package/dist/core/src/locales/it.d.ts +2 -0
- package/dist/core/src/locales/pt.d.ts +7 -0
- package/dist/core/src/util/constants.d.ts +1 -0
- package/dist/core/src/util/createFormexStub.d.ts +2 -0
- package/dist/core/src/util/entity_cache.d.ts +27 -0
- package/dist/core/src/util/enums.d.ts +5 -0
- package/dist/core/src/util/icon_list.d.ts +5 -0
- package/dist/core/src/util/icon_synonyms.d.ts +1 -0
- package/dist/core/src/util/icons.d.ts +20 -0
- package/dist/core/src/util/index.d.ts +10 -0
- package/dist/core/src/util/previews.d.ts +4 -0
- package/dist/core/src/util/useStorageUploadController.d.ts +38 -0
- package/dist/core/src/util/useTraceUpdate.d.ts +2 -0
- package/dist/formex/src/Field.d.ts +52 -0
- package/dist/formex/src/Formex.d.ts +7 -0
- package/dist/formex/src/index.d.ts +5 -0
- package/dist/formex/src/types.d.ts +40 -0
- package/dist/formex/src/useCreateFormex.d.ts +14 -0
- package/dist/formex/src/utils.d.ts +16 -0
- package/dist/index.es.js +945 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +944 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/plugin-insights/src/components/CollectionInsightsInline.d.ts +16 -0
- package/dist/plugin-insights/src/components/HomeCardInsightSlot.d.ts +16 -0
- package/dist/plugin-insights/src/components/HomeInsightsSlot.d.ts +13 -0
- package/dist/plugin-insights/src/components/InsightWidget.d.ts +19 -0
- package/dist/plugin-insights/src/components/InsightWidgetSkeleton.d.ts +20 -0
- package/dist/plugin-insights/src/components/InsightsScorecardView.d.ts +19 -0
- package/dist/plugin-insights/src/engine/InsightsCache.d.ts +18 -0
- package/dist/plugin-insights/src/engine/InsightsProvider.d.ts +22 -0
- package/dist/plugin-insights/src/engine/useInsightsData.d.ts +17 -0
- package/dist/plugin-insights/src/index.d.ts +8 -0
- package/dist/plugin-insights/src/types/engine.d.ts +79 -0
- package/dist/plugin-insights/src/types/index.d.ts +2 -0
- package/dist/plugin-insights/src/types/widgets.d.ts +59 -0
- package/dist/plugin-insights/src/useInsightsPlugin.d.ts +37 -0
- package/dist/types/src/controllers/analytics_controller.d.ts +7 -0
- package/dist/types/src/controllers/auth.d.ts +119 -0
- package/dist/types/src/controllers/client.d.ts +170 -0
- package/dist/types/src/controllers/collection_registry.d.ts +45 -0
- package/dist/types/src/controllers/customization_controller.d.ts +60 -0
- package/dist/types/src/controllers/data.d.ts +168 -0
- package/dist/types/src/controllers/data_driver.d.ts +160 -0
- package/dist/types/src/controllers/database_admin.d.ts +11 -0
- package/dist/types/src/controllers/dialogs_controller.d.ts +36 -0
- package/dist/types/src/controllers/effective_role.d.ts +4 -0
- package/dist/types/src/controllers/email.d.ts +34 -0
- package/dist/types/src/controllers/index.d.ts +18 -0
- package/dist/types/src/controllers/local_config_persistence.d.ts +20 -0
- package/dist/types/src/controllers/navigation.d.ts +213 -0
- package/dist/types/src/controllers/registry.d.ts +54 -0
- package/dist/types/src/controllers/side_dialogs_controller.d.ts +67 -0
- package/dist/types/src/controllers/side_entity_controller.d.ts +90 -0
- package/dist/types/src/controllers/snackbar.d.ts +24 -0
- package/dist/types/src/controllers/storage.d.ts +171 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/rebase_context.d.ts +105 -0
- package/dist/types/src/types/backend.d.ts +536 -0
- package/dist/types/src/types/builders.d.ts +15 -0
- package/dist/types/src/types/chips.d.ts +5 -0
- package/dist/types/src/types/collections.d.ts +856 -0
- package/dist/types/src/types/cron.d.ts +102 -0
- package/dist/types/src/types/data_source.d.ts +64 -0
- package/dist/types/src/types/entities.d.ts +145 -0
- package/dist/types/src/types/entity_actions.d.ts +98 -0
- package/dist/types/src/types/entity_callbacks.d.ts +173 -0
- package/dist/types/src/types/entity_link_builder.d.ts +7 -0
- package/dist/types/src/types/entity_overrides.d.ts +10 -0
- package/dist/types/src/types/entity_views.d.ts +61 -0
- package/dist/types/src/types/export_import.d.ts +21 -0
- package/dist/types/src/types/index.d.ts +23 -0
- package/dist/types/src/types/locales.d.ts +4 -0
- package/dist/types/src/types/modify_collections.d.ts +5 -0
- package/dist/types/src/types/plugins.d.ts +279 -0
- package/dist/types/src/types/properties.d.ts +1176 -0
- package/dist/types/src/types/property_config.d.ts +70 -0
- package/dist/types/src/types/relations.d.ts +336 -0
- package/dist/types/src/types/slots.d.ts +252 -0
- package/dist/types/src/types/translations.d.ts +870 -0
- package/dist/types/src/types/user_management_delegate.d.ts +121 -0
- package/dist/types/src/types/websockets.d.ts +78 -0
- package/dist/types/src/users/index.d.ts +2 -0
- package/dist/types/src/users/roles.d.ts +22 -0
- package/dist/types/src/users/user.d.ts +46 -0
- package/dist/ui/src/components/Alert.d.ts +12 -0
- package/dist/ui/src/components/Autocomplete.d.ts +21 -0
- package/dist/ui/src/components/Avatar.d.ts +11 -0
- package/dist/ui/src/components/Badge.d.ts +8 -0
- package/dist/ui/src/components/BooleanSwitch.d.ts +14 -0
- package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +17 -0
- package/dist/ui/src/components/Button.d.ts +14 -0
- package/dist/ui/src/components/Card.d.ts +9 -0
- package/dist/ui/src/components/CenteredView.d.ts +9 -0
- package/dist/ui/src/components/Checkbox.d.ts +13 -0
- package/dist/ui/src/components/Chip.d.ts +26 -0
- package/dist/ui/src/components/CircularProgress.d.ts +5 -0
- package/dist/ui/src/components/CircularProgressCenter.d.ts +11 -0
- package/dist/ui/src/components/Collapse.d.ts +9 -0
- package/dist/ui/src/components/ColorPicker.d.ts +30 -0
- package/dist/ui/src/components/Container.d.ts +8 -0
- package/dist/ui/src/components/DateTimeField.d.ts +24 -0
- package/dist/ui/src/components/DebouncedTextField.d.ts +2 -0
- package/dist/ui/src/components/Dialog.d.ts +39 -0
- package/dist/ui/src/components/DialogActions.d.ts +7 -0
- package/dist/ui/src/components/DialogContent.d.ts +7 -0
- package/dist/ui/src/components/DialogTitle.d.ts +10 -0
- package/dist/ui/src/components/ErrorBoundary.d.ts +11 -0
- package/dist/ui/src/components/ExpandablePanel.d.ts +12 -0
- package/dist/ui/src/components/FileUpload.d.ts +23 -0
- package/dist/ui/src/components/IconButton.d.ts +12 -0
- package/dist/ui/src/components/InfoLabel.d.ts +5 -0
- package/dist/ui/src/components/InputLabel.d.ts +11 -0
- package/dist/ui/src/components/Label.d.ts +7 -0
- package/dist/ui/src/components/LoadingButton.d.ts +7 -0
- package/dist/ui/src/components/Markdown.d.ts +10 -0
- package/dist/ui/src/components/Menu.d.ts +23 -0
- package/dist/ui/src/components/Menubar.d.ts +80 -0
- package/dist/ui/src/components/MultiSelect.d.ts +48 -0
- package/dist/ui/src/components/Paper.d.ts +6 -0
- package/dist/ui/src/components/Popover.d.ts +24 -0
- package/dist/ui/src/components/RadioGroup.d.ts +28 -0
- package/dist/ui/src/components/ResizablePanels.d.ts +18 -0
- package/dist/ui/src/components/SearchBar.d.ts +22 -0
- package/dist/ui/src/components/Select.d.ts +43 -0
- package/dist/ui/src/components/Separator.d.ts +5 -0
- package/dist/ui/src/components/Sheet.d.ts +22 -0
- package/dist/ui/src/components/Skeleton.d.ts +6 -0
- package/dist/ui/src/components/Slider.d.ts +21 -0
- package/dist/ui/src/components/Table.d.ts +34 -0
- package/dist/ui/src/components/Tabs.d.ts +19 -0
- package/dist/ui/src/components/TextField.d.ts +58 -0
- package/dist/ui/src/components/TextareaAutosize.d.ts +43 -0
- package/dist/ui/src/components/ToggleButtonGroup.d.ts +30 -0
- package/dist/ui/src/components/Tooltip.d.ts +19 -0
- package/dist/ui/src/components/Typography.d.ts +36 -0
- package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +11 -0
- package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +21 -0
- package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +29 -0
- package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +2 -0
- package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +243 -0
- package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +3 -0
- package/dist/ui/src/components/VirtualTable/index.d.ts +3 -0
- package/dist/ui/src/components/VirtualTable/types.d.ts +38 -0
- package/dist/ui/src/components/common/SelectInputLabel.d.ts +5 -0
- package/dist/ui/src/components/index.d.ts +53 -0
- package/dist/ui/src/hooks/PortalContainerContext.d.ts +31 -0
- package/dist/ui/src/hooks/index.d.ts +6 -0
- package/dist/ui/src/hooks/useDebounceCallback.d.ts +1 -0
- package/dist/ui/src/hooks/useDebounceValue.d.ts +1 -0
- package/dist/ui/src/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/ui/src/hooks/useInjectStyles.d.ts +7 -0
- package/dist/ui/src/hooks/useOutsideAlerter.d.ts +5 -0
- package/dist/ui/src/icons/GitHubIcon.d.ts +2 -0
- package/dist/ui/src/icons/HandleIcon.d.ts +1 -0
- package/dist/ui/src/icons/Icon.d.ts +20 -0
- package/dist/ui/src/icons/cool_icon_keys.d.ts +1 -0
- package/dist/ui/src/icons/icon_keys.d.ts +1 -0
- package/dist/ui/src/icons/index.d.ts +6 -0
- package/dist/ui/src/index.d.ts +5 -0
- package/dist/ui/src/styles.d.ts +12 -0
- package/dist/ui/src/util/chip_colors.d.ts +4 -0
- package/dist/ui/src/util/cls.d.ts +2 -0
- package/dist/ui/src/util/debounce.d.ts +10 -0
- package/dist/ui/src/util/hash.d.ts +1 -0
- package/dist/ui/src/util/index.d.ts +4 -0
- package/dist/ui/src/util/key_to_icon_component.d.ts +1 -0
- package/package.json +80 -0
- package/src/components/CollectionInsightsInline.tsx +30 -0
- package/src/components/HomeCardInsightSlot.tsx +36 -0
- package/src/components/HomeInsightsSlot.tsx +30 -0
- package/src/components/InsightWidget.tsx +65 -0
- package/src/components/InsightWidgetSkeleton.tsx +122 -0
- package/src/components/InsightsScorecardView.tsx +160 -0
- package/src/engine/InsightsCache.ts +52 -0
- package/src/engine/InsightsProvider.tsx +38 -0
- package/src/engine/useInsightsData.ts +100 -0
- package/src/index.ts +22 -0
- package/src/types/engine.ts +85 -0
- package/src/types/index.ts +5 -0
- package/src/types/widgets.ts +66 -0
- package/src/useInsightsPlugin.tsx +117 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { ReactEventHandler } from "react";
|
|
2
|
+
export type TypographyVariant = keyof typeof typographyVariants;
|
|
3
|
+
export type TypographyProps<C extends React.ElementType = "span"> = {
|
|
4
|
+
align?: "center" | "inherit" | "justify" | "left" | "right";
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
component?: C;
|
|
8
|
+
gutterBottom?: boolean;
|
|
9
|
+
noWrap?: boolean;
|
|
10
|
+
paragraph?: boolean;
|
|
11
|
+
variant?: TypographyVariant;
|
|
12
|
+
variantMapping?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "disabled" | "error";
|
|
16
|
+
onClick?: ReactEventHandler<HTMLElement>;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
} & React.ComponentPropsWithoutRef<C>;
|
|
19
|
+
declare const typographyVariants: {
|
|
20
|
+
h1: string;
|
|
21
|
+
h2: string;
|
|
22
|
+
h3: string;
|
|
23
|
+
h4: string;
|
|
24
|
+
h5: string;
|
|
25
|
+
h6: string;
|
|
26
|
+
subtitle1: string;
|
|
27
|
+
subtitle2: string;
|
|
28
|
+
label: string;
|
|
29
|
+
body1: string;
|
|
30
|
+
body2: string;
|
|
31
|
+
inherit: string;
|
|
32
|
+
caption: string;
|
|
33
|
+
button: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function Typography<C extends React.ElementType = "span">({ align, color, children, className, component, gutterBottom, noWrap, paragraph, variant, variantMapping, style, onClick, ...other }: TypographyProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VirtualTableProps } from "./VirtualTableProps";
|
|
3
|
+
/**
|
|
4
|
+
* This is a Table component that allows displaying arbitrary data, not
|
|
5
|
+
* necessarily related to entities or properties. It is the component
|
|
6
|
+
* that powers the entity collections but has a generic API, so it
|
|
7
|
+
* can be reused.
|
|
8
|
+
*
|
|
9
|
+
* @group Components
|
|
10
|
+
*/
|
|
11
|
+
export declare const VirtualTable: React.NamedExoticComponent<VirtualTableProps<any>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CellRendererParams, VirtualTableColumn } from "./VirtualTableProps";
|
|
3
|
+
type VirtualTableCellProps<T> = {
|
|
4
|
+
dataKey: string;
|
|
5
|
+
column: VirtualTableColumn;
|
|
6
|
+
columns: VirtualTableColumn[];
|
|
7
|
+
rowData: any;
|
|
8
|
+
cellData: any;
|
|
9
|
+
rowIndex: any;
|
|
10
|
+
columnIndex: number;
|
|
11
|
+
cellRenderer: (props: CellRendererParams<T>) => React.ReactNode;
|
|
12
|
+
sortableNodeRef?: (node: HTMLElement | null) => void;
|
|
13
|
+
sortableStyle?: React.CSSProperties;
|
|
14
|
+
sortableAttributes?: Record<string, any>;
|
|
15
|
+
isDragging?: boolean;
|
|
16
|
+
isDraggable?: boolean;
|
|
17
|
+
frozen?: boolean;
|
|
18
|
+
extraData?: any;
|
|
19
|
+
};
|
|
20
|
+
export declare const VirtualTableCell: React.NamedExoticComponent<VirtualTableCellProps<any>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VirtualTableColumn, VirtualTableSort, VirtualTableWhereFilterOp } from "./VirtualTableProps";
|
|
3
|
+
export type FilterFormFieldProps<CustomProps> = {
|
|
4
|
+
id: React.Key;
|
|
5
|
+
filterValue: [VirtualTableWhereFilterOp, any] | undefined;
|
|
6
|
+
setFilterValue: (filterValue?: [VirtualTableWhereFilterOp, any]) => void;
|
|
7
|
+
column: VirtualTableColumn<CustomProps>;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
setHidden: (hidden: boolean) => void;
|
|
10
|
+
};
|
|
11
|
+
type VirtualTableHeaderProps<M extends Record<string, any>> = {
|
|
12
|
+
resizeHandleRef: React.Ref<HTMLDivElement>;
|
|
13
|
+
columnIndex: number;
|
|
14
|
+
isResizingIndex: number;
|
|
15
|
+
column: VirtualTableColumn<any>;
|
|
16
|
+
onColumnSort: (key: Extract<keyof M, string>) => void;
|
|
17
|
+
filter?: [VirtualTableWhereFilterOp, any];
|
|
18
|
+
sort: VirtualTableSort;
|
|
19
|
+
onFilterUpdate: (column: VirtualTableColumn, filterForProperty?: [VirtualTableWhereFilterOp, any]) => void;
|
|
20
|
+
onClickResizeColumn?: (columnIndex: number, column: VirtualTableColumn) => void;
|
|
21
|
+
createFilterField?: (props: FilterFormFieldProps<any>) => React.ReactNode;
|
|
22
|
+
AdditionalHeaderWidget?: (props: {
|
|
23
|
+
onHover: boolean;
|
|
24
|
+
}) => React.ReactNode;
|
|
25
|
+
isDragging?: boolean;
|
|
26
|
+
isDraggable?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare const VirtualTableHeader: React.FunctionComponent<VirtualTableHeaderProps<any>>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { VirtualTableContextProps } from "./types";
|
|
2
|
+
export declare const VirtualTableHeaderRow: ({ columns, currentSort, onColumnSort, onFilterUpdate, sortByProperty, filter, onColumnResize, onColumnResizeEnd, createFilterField, AddColumnComponent, onColumnsOrderChange, data, cellRenderer: CellRenderer, rowHeight, draggingColumnId, headerHeight }: VirtualTableContextProps<any>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterFormFieldProps } from "./VirtualTableHeader";
|
|
3
|
+
export type OnRowClickParams<T extends Record<string, any>> = {
|
|
4
|
+
rowData: T;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
event: React.SyntheticEvent;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @see Table
|
|
10
|
+
* @group Components
|
|
11
|
+
*/
|
|
12
|
+
export interface VirtualTableProps<T extends Record<string, any>> {
|
|
13
|
+
/**
|
|
14
|
+
* Array of arbitrary data
|
|
15
|
+
*/
|
|
16
|
+
data?: T[];
|
|
17
|
+
/**
|
|
18
|
+
* Properties displayed in this collection. If this property is not set
|
|
19
|
+
* every property is displayed, you can filter
|
|
20
|
+
*/
|
|
21
|
+
columns: VirtualTableColumn[];
|
|
22
|
+
/**
|
|
23
|
+
* Custom cell renderer
|
|
24
|
+
* The renderer receives props `{ cellData, columns, column, columnIndex, rowData, rowIndex, container, isScrolling }`
|
|
25
|
+
*/
|
|
26
|
+
cellRenderer: (props: CellRendererParams<T>) => React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Set this callback if you want to support some combinations
|
|
29
|
+
* of filter combinations only.
|
|
30
|
+
* @param filterValues
|
|
31
|
+
* @param sortBy
|
|
32
|
+
*/
|
|
33
|
+
checkFilterCombination?: (filterValues: VirtualTableFilterValues<Extract<keyof T, string>>, sortBy?: [string, "asc" | "desc"]) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* A callback function when scrolling the table to near the end
|
|
36
|
+
*/
|
|
37
|
+
onEndReached?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Offset in pixels where the onEndReached callback is triggered
|
|
40
|
+
*/
|
|
41
|
+
endOffset?: number;
|
|
42
|
+
/**
|
|
43
|
+
* When the pagination should be reset. E.g. the filters or sorting
|
|
44
|
+
* has been reset.
|
|
45
|
+
*/
|
|
46
|
+
onResetPagination?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Callback when a row is clicked
|
|
49
|
+
*/
|
|
50
|
+
onRowClick?: (props: OnRowClickParams<T>) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Callback when a column is resized
|
|
53
|
+
*/
|
|
54
|
+
onColumnResize?: (params: OnVirtualTableColumnResizeParams) => void;
|
|
55
|
+
onColumnResizeEnd?: (params: OnVirtualTableColumnResizeParams) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Size of the table
|
|
58
|
+
*/
|
|
59
|
+
rowHeight?: number;
|
|
60
|
+
headerHeight?: number;
|
|
61
|
+
/**
|
|
62
|
+
* In case this table should have some filters set by default
|
|
63
|
+
*/
|
|
64
|
+
filter?: VirtualTableFilterValues<any>;
|
|
65
|
+
/**
|
|
66
|
+
* Callback used when filters are updated
|
|
67
|
+
* @param filter
|
|
68
|
+
*/
|
|
69
|
+
onFilterUpdate?: (filter?: VirtualTableFilterValues<any> | undefined) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Callback when the table is scrolled
|
|
72
|
+
* @param props
|
|
73
|
+
*/
|
|
74
|
+
onScroll?: (props: {
|
|
75
|
+
scrollDirection: "forward" | "backward";
|
|
76
|
+
scrollOffset: number;
|
|
77
|
+
scrollUpdateWasRequested: boolean;
|
|
78
|
+
}) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Default sort applied to this collection
|
|
81
|
+
*/
|
|
82
|
+
sortBy?: [string, "asc" | "desc"];
|
|
83
|
+
/**
|
|
84
|
+
* Callback used when sorting is updated
|
|
85
|
+
* @param sortBy
|
|
86
|
+
*/
|
|
87
|
+
onSortByUpdate?: (sortBy?: [string, "asc" | "desc"]) => void;
|
|
88
|
+
/**
|
|
89
|
+
* If there is an error loading data you can pass it here, so it gets
|
|
90
|
+
* displayed instead of the content
|
|
91
|
+
*/
|
|
92
|
+
error?: Error;
|
|
93
|
+
/**
|
|
94
|
+
* Message displayed when there is no data
|
|
95
|
+
*/
|
|
96
|
+
emptyComponent?: React.ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* Is the table in a loading state
|
|
99
|
+
*/
|
|
100
|
+
loading?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Should apply a different style when hovering
|
|
103
|
+
*/
|
|
104
|
+
hoverRow?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Apply a custom class name to the row
|
|
107
|
+
* @param rowData
|
|
108
|
+
*/
|
|
109
|
+
rowClassName?: (rowData: T) => string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Callback to create a filter field, displayed in the header as a dropdown
|
|
112
|
+
* @param props
|
|
113
|
+
*/
|
|
114
|
+
createFilterField?: (props: FilterFormFieldProps<any>) => React.ReactNode;
|
|
115
|
+
/**
|
|
116
|
+
* Class name applied to the table
|
|
117
|
+
*/
|
|
118
|
+
className?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Style applied to the table
|
|
121
|
+
*/
|
|
122
|
+
style?: React.CSSProperties;
|
|
123
|
+
/**
|
|
124
|
+
* Component rendered at the end of the table, after scroll
|
|
125
|
+
*/
|
|
126
|
+
endAdornment?: React.ReactNode;
|
|
127
|
+
/**
|
|
128
|
+
* If adding this callback, a button to add a new column is displayed.
|
|
129
|
+
* @param column
|
|
130
|
+
*/
|
|
131
|
+
AddColumnComponent?: React.ComponentType;
|
|
132
|
+
/**
|
|
133
|
+
* Initial scroll position
|
|
134
|
+
*/
|
|
135
|
+
initialScroll?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Callback when columns are reordered via drag-and-drop.
|
|
138
|
+
* @param columns The new column order
|
|
139
|
+
*/
|
|
140
|
+
onColumnsOrderChange?: (columns: VirtualTableColumn[]) => void;
|
|
141
|
+
/**
|
|
142
|
+
* Extra data passed to the cell renderer
|
|
143
|
+
*/
|
|
144
|
+
extraData?: any;
|
|
145
|
+
}
|
|
146
|
+
export type CellRendererParams<T = any> = {
|
|
147
|
+
column: VirtualTableColumn;
|
|
148
|
+
columns: VirtualTableColumn[];
|
|
149
|
+
columnIndex: number;
|
|
150
|
+
rowData?: T;
|
|
151
|
+
rowIndex: number;
|
|
152
|
+
width: number;
|
|
153
|
+
isScrolling?: boolean;
|
|
154
|
+
sortableNodeRef?: (node: HTMLElement | null) => void;
|
|
155
|
+
sortableStyle?: React.CSSProperties;
|
|
156
|
+
sortableAttributes?: Record<string, any>;
|
|
157
|
+
isDragging?: boolean;
|
|
158
|
+
isDraggable?: boolean;
|
|
159
|
+
frozen?: boolean;
|
|
160
|
+
extraData?: any;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* @see Table
|
|
164
|
+
* @group Components
|
|
165
|
+
*/
|
|
166
|
+
export interface VirtualTableColumn<CustomProps = any> {
|
|
167
|
+
/**
|
|
168
|
+
* Data key for the cell value, could be "a.b.c"
|
|
169
|
+
*/
|
|
170
|
+
key: string;
|
|
171
|
+
/**
|
|
172
|
+
* The width of the column, gutter width is not included
|
|
173
|
+
*/
|
|
174
|
+
width: number;
|
|
175
|
+
/**
|
|
176
|
+
* Label displayed in the header
|
|
177
|
+
*/
|
|
178
|
+
title?: string;
|
|
179
|
+
/**
|
|
180
|
+
* This column is frozen to the left
|
|
181
|
+
*/
|
|
182
|
+
frozen?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* How is the
|
|
185
|
+
*/
|
|
186
|
+
headerAlign?: "left" | "center" | "right";
|
|
187
|
+
/**
|
|
188
|
+
* Icon displayed in the header
|
|
189
|
+
*/
|
|
190
|
+
icon?: React.ReactNode;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
filter?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Alignment of the column cell
|
|
197
|
+
*/
|
|
198
|
+
align?: "left" | "right" | "center";
|
|
199
|
+
/**
|
|
200
|
+
* Whether the column is sortable, defaults to false
|
|
201
|
+
*/
|
|
202
|
+
sortable?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Can it be resized
|
|
205
|
+
*/
|
|
206
|
+
resizable?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Custom props passed to the cell renderer
|
|
209
|
+
*/
|
|
210
|
+
custom?: CustomProps;
|
|
211
|
+
/**
|
|
212
|
+
* Additional children to be rendered in the header when hovering
|
|
213
|
+
*/
|
|
214
|
+
AdditionalHeaderWidget?: (props: {
|
|
215
|
+
onHover: boolean;
|
|
216
|
+
}) => React.ReactNode;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @see Table
|
|
220
|
+
* @group Collection components
|
|
221
|
+
*/
|
|
222
|
+
export type OnVirtualTableColumnResizeParams = {
|
|
223
|
+
width: number;
|
|
224
|
+
key: string;
|
|
225
|
+
column: VirtualTableColumn;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* @see Table
|
|
229
|
+
* @group Components
|
|
230
|
+
*/
|
|
231
|
+
export type VirtualTableSort = "asc" | "desc" | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* @see Table
|
|
234
|
+
* @group Components
|
|
235
|
+
*/
|
|
236
|
+
export type VirtualTableFilterValues<Key extends string> = Partial<Record<Key, [VirtualTableWhereFilterOp, any]>>;
|
|
237
|
+
/**
|
|
238
|
+
* Filter conditions in a `Query.where()` clause are specified using the
|
|
239
|
+
* strings `<`, `<=`, `==`, `>=`, `>`, `array-contains`, `in`, and `array-contains-any`.
|
|
240
|
+
* @see Table
|
|
241
|
+
* @group Models
|
|
242
|
+
*/
|
|
243
|
+
export type VirtualTableWhereFilterOp = "<" | "<=" | "==" | "!=" | ">=" | ">" | "array-contains" | "in" | "not-in" | "array-contains-any";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CellRendererParams, OnRowClickParams, OnVirtualTableColumnResizeParams, VirtualTableColumn, VirtualTableFilterValues, VirtualTableWhereFilterOp } from "./VirtualTableProps";
|
|
3
|
+
import { FilterFormFieldProps } from "./VirtualTableHeader";
|
|
4
|
+
export type VirtualTableRowProps<T> = {
|
|
5
|
+
style: any;
|
|
6
|
+
rowHeight: number;
|
|
7
|
+
rowData: T;
|
|
8
|
+
rowIndex: number;
|
|
9
|
+
onRowClick?: (props: OnRowClickParams<any>) => void;
|
|
10
|
+
children: React.ReactNode[];
|
|
11
|
+
columns: VirtualTableColumn[];
|
|
12
|
+
hoverRow?: boolean;
|
|
13
|
+
rowClassName?: (rowData: T) => string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type VirtualTableContextProps<T> = {
|
|
16
|
+
data?: T[];
|
|
17
|
+
rowHeight?: number;
|
|
18
|
+
headerHeight?: number;
|
|
19
|
+
columns: VirtualTableColumn[];
|
|
20
|
+
cellRenderer: React.ComponentType<CellRendererParams<T>>;
|
|
21
|
+
currentSort: "asc" | "desc" | undefined;
|
|
22
|
+
filter?: VirtualTableFilterValues<any>;
|
|
23
|
+
onRowClick?: (props: OnRowClickParams<any>) => void;
|
|
24
|
+
onColumnSort: (key: string) => any;
|
|
25
|
+
onColumnResize: (params: OnVirtualTableColumnResizeParams) => void;
|
|
26
|
+
onColumnResizeEnd: (params: OnVirtualTableColumnResizeParams) => void;
|
|
27
|
+
onFilterUpdate: (column: VirtualTableColumn, filterForProperty?: [VirtualTableWhereFilterOp, any]) => void;
|
|
28
|
+
sortByProperty?: string;
|
|
29
|
+
customView?: React.ReactNode;
|
|
30
|
+
hoverRow: boolean;
|
|
31
|
+
createFilterField?: (props: FilterFormFieldProps<any>) => React.ReactNode;
|
|
32
|
+
rowClassName?: (rowData: T) => string | undefined;
|
|
33
|
+
endAdornment?: React.ReactNode;
|
|
34
|
+
AddColumnComponent?: React.ComponentType;
|
|
35
|
+
onColumnsOrderChange?: (columns: VirtualTableColumn[]) => void;
|
|
36
|
+
draggingColumnId?: string | null;
|
|
37
|
+
extraData?: Record<string, any>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from "./common/SelectInputLabel";
|
|
2
|
+
export * from "./Autocomplete";
|
|
3
|
+
export * from "./Alert";
|
|
4
|
+
export * from "./Avatar";
|
|
5
|
+
export * from "./BooleanSwitch";
|
|
6
|
+
export * from "./BooleanSwitchWithLabel";
|
|
7
|
+
export * from "./Button";
|
|
8
|
+
export * from "./Card";
|
|
9
|
+
export * from "./CenteredView";
|
|
10
|
+
export * from "./Container";
|
|
11
|
+
export * from "./Collapse";
|
|
12
|
+
export * from "./CircularProgress";
|
|
13
|
+
export * from "./CircularProgressCenter";
|
|
14
|
+
export * from "./ErrorBoundary";
|
|
15
|
+
export * from "./Checkbox";
|
|
16
|
+
export * from "./Chip";
|
|
17
|
+
export * from "./ColorPicker";
|
|
18
|
+
export * from "./DateTimeField";
|
|
19
|
+
export * from "./Dialog";
|
|
20
|
+
export * from "./DialogActions";
|
|
21
|
+
export * from "./DialogContent";
|
|
22
|
+
export * from "./DialogTitle";
|
|
23
|
+
export * from "./ExpandablePanel";
|
|
24
|
+
export * from "./FileUpload";
|
|
25
|
+
export * from "./IconButton";
|
|
26
|
+
export * from "./InputLabel";
|
|
27
|
+
export * from "./InfoLabel";
|
|
28
|
+
export * from "./Label";
|
|
29
|
+
export * from "./LoadingButton";
|
|
30
|
+
export * from "./Markdown";
|
|
31
|
+
export * from "./Menu";
|
|
32
|
+
export * from "./Menubar";
|
|
33
|
+
export * from "./MultiSelect";
|
|
34
|
+
export * from "./Paper";
|
|
35
|
+
export * from "./RadioGroup";
|
|
36
|
+
export * from "./ResizablePanels";
|
|
37
|
+
export * from "./SearchBar";
|
|
38
|
+
export * from "./Select";
|
|
39
|
+
export * from "./Separator";
|
|
40
|
+
export * from "./Slider";
|
|
41
|
+
export * from "./Sheet";
|
|
42
|
+
export * from "./TextareaAutosize";
|
|
43
|
+
export * from "./TextField";
|
|
44
|
+
export * from "./Tooltip";
|
|
45
|
+
export * from "./Typography";
|
|
46
|
+
export * from "./Tabs";
|
|
47
|
+
export * from "./Table";
|
|
48
|
+
export * from "./Popover";
|
|
49
|
+
export * from "./Badge";
|
|
50
|
+
export * from "./DebouncedTextField";
|
|
51
|
+
export * from "./Skeleton";
|
|
52
|
+
export * from "./ToggleButtonGroup";
|
|
53
|
+
export * from "./VirtualTable";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PortalContainerContextType {
|
|
3
|
+
container: HTMLElement | null;
|
|
4
|
+
}
|
|
5
|
+
export interface PortalContainerProviderProps {
|
|
6
|
+
container: HTMLElement | null;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provider component that sets the portal container for all descendants.
|
|
11
|
+
* This can be used at any level of the tree to specify where portals should be attached.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const containerRef = useRef<HTMLDivElement>(null);
|
|
16
|
+
*
|
|
17
|
+
* <div ref={containerRef}>
|
|
18
|
+
* <PortalContainerProvider container={containerRef.current}>
|
|
19
|
+
* <YourComponents />
|
|
20
|
+
* </PortalContainerProvider>
|
|
21
|
+
* </div>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function PortalContainerProvider({ container, children }: PortalContainerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* Hook to access the portal container from context.
|
|
27
|
+
* Returns null if no provider is found in the tree.
|
|
28
|
+
*
|
|
29
|
+
* @returns The portal container element or null
|
|
30
|
+
*/
|
|
31
|
+
export declare function usePortalContainer(): HTMLElement | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounceCallback<T extends (...args: any[]) => any>(callback?: T, delay?: number): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounceValue<T>(value: T, delay?: number): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebouncedCallback<T>(value: T, callback: () => void, immediate: boolean, timeoutMs?: number): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use this hook to create a `<style>` element and inject it into the DOM.
|
|
3
|
+
* It checks if the style already exists, and if it does, it does not inject it again.
|
|
4
|
+
* @param key
|
|
5
|
+
* @param styles
|
|
6
|
+
*/
|
|
7
|
+
export declare function useInjectStyles(key: string, styles: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function HandleIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type IconColor = "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning";
|
|
2
|
+
export type IconSize = "smallest" | "small" | "medium" | "large";
|
|
3
|
+
/**
|
|
4
|
+
* Standardized icon size map in px.
|
|
5
|
+
* Use with direct Lucide imports: `<Database size={iconSize.small} />`
|
|
6
|
+
*/
|
|
7
|
+
export declare const iconSize: {
|
|
8
|
+
readonly smallest: 16;
|
|
9
|
+
readonly small: 20;
|
|
10
|
+
readonly medium: 24;
|
|
11
|
+
readonly large: 28;
|
|
12
|
+
};
|
|
13
|
+
export type IconProps = {
|
|
14
|
+
size?: IconSize | number;
|
|
15
|
+
color?: IconColor;
|
|
16
|
+
className?: string;
|
|
17
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
};
|
|
20
|
+
export declare const colorClassesMapping: Record<IconColor, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const coolIconKeys: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconKeys: string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
2
|
+
export declare const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-900 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-900/60";
|
|
3
|
+
export declare const focusedClasses = "z-30 outline-hidden outline-none ring-2 ring-primary ring-opacity-75 ring-primary/75 ring-offset-0 ring-offset-transparent ";
|
|
4
|
+
export declare const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-900 dark:bg-opacity-100 dark:bg-surface-900/100";
|
|
5
|
+
export declare const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-900 dark:bg-opacity-0 bg-surface-accent-200/0 dark:bg-surface-900/0";
|
|
6
|
+
export declare const fieldBackgroundDisabledMixin = "dark:bg-surface-900 bg-opacity-50 dark:bg-opacity-90 bg-surface-accent-200/50 dark:bg-surface-900/90";
|
|
7
|
+
export declare const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40 hover:bg-surface-accent-200/70 hover:dark:bg-surface-700/40";
|
|
8
|
+
export declare const defaultBorderMixin = "border-surface-200/60 dark:border-surface-700/60 ";
|
|
9
|
+
export declare const paperMixin = "bg-white rounded-md dark:bg-surface-800 border border-surface-200/60 dark:border-surface-700/60";
|
|
10
|
+
export declare const cardMixin = "bg-white dark:bg-surface-800 rounded-md border border-surface-200/60 dark:border-surface-700/60 m-1 -p-1";
|
|
11
|
+
export declare const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-800 hover:ring-2 hover:ring-primary cursor-pointer hover:bg-primary/20 dark:hover:bg-primary/10 ";
|
|
12
|
+
export declare const cardSelectedMixin = "bg-primary-bg/30 dark:bg-primary-bg/10 ring-1 ring-primary/75";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChipColorKey, ChipColorScheme } from "../components";
|
|
2
|
+
export declare const CHIP_COLORS: Record<string, ChipColorScheme>;
|
|
3
|
+
export declare function getColorSchemeForKey(key: ChipColorKey): ChipColorScheme;
|
|
4
|
+
export declare function getColorSchemeForSeed(seed: string): ChipColorScheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hashString(str: string): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function keyToIconComponent(key: string): string;
|