@rebasepro/plugin-insights 0.0.1-canary.09e5ec5
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,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type IconButtonProps<C extends React.ElementType> = Omit<(C extends "button" ? React.ButtonHTMLAttributes<HTMLButtonElement> : React.ComponentProps<C>), "onClick"> & {
|
|
3
|
+
size?: "medium" | "small" | "smallest" | "large";
|
|
4
|
+
variant?: "ghost" | "filled";
|
|
5
|
+
shape?: "circular" | "square";
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
toggled?: boolean;
|
|
8
|
+
component?: C;
|
|
9
|
+
onClick?: React.MouseEventHandler<any>;
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const IconButton: React.ComponentType<IconButtonProps<any>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type InputLabelProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
shrink?: boolean;
|
|
6
|
+
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
7
|
+
export declare const InputLabel: React.ForwardRefExoticComponent<{
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
shrink?: boolean;
|
|
11
|
+
} & React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
4
|
+
border?: boolean;
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
|
6
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
export { Label };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonProps } from "./Button";
|
|
3
|
+
export type LoadingButtonProps<P extends React.ElementType> = ButtonProps<P> & {
|
|
4
|
+
startIcon?: React.ReactNode;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function LoadingButton<P extends React.ElementType = "button">({ children, loading, disabled, onClick, startIcon, ...props }: LoadingButtonProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface MarkdownProps {
|
|
3
|
+
source: string;
|
|
4
|
+
size?: "small" | "medium" | "large" | "xl" | "2xl";
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @group Preview components
|
|
9
|
+
*/
|
|
10
|
+
export declare const Markdown: React.FunctionComponent<MarkdownProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type MenuProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
trigger: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?(open: boolean): void;
|
|
8
|
+
portalContainer?: HTMLElement | null;
|
|
9
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
10
|
+
align?: "start" | "center" | "end";
|
|
11
|
+
sideOffset?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export { Menu };
|
|
16
|
+
export type MenuItemProps = {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
dense?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const MenuItem: React.MemoExoticComponent<({ children, dense, disabled, onClick, className }: MenuItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function Menubar({ children, onSelect, className }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function MenubarMenu({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function MenubarTrigger({ children, onSelect, className }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function MenubarPortal({ children, portalContainer }: {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
portalContainer?: HTMLElement | null;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function MenubarContent({ children, className, align, sideOffset, alignOffset, onSelect, ...rest }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
23
|
+
align?: "start" | "center" | "end";
|
|
24
|
+
sideOffset?: number;
|
|
25
|
+
alignOffset?: number;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function MenubarItem({ children, leftPadding, className, disabled, onSelect, ...rest }: {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
onSelect?: (event: Event) => void;
|
|
30
|
+
leftPadding?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function MenubarSeparator({ children, className, ...rest }: {
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
className?: string;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function MenubarSub({ children, ...rest }: {
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function MenubarSubTrigger({ children, className, onSelect, ...rest }: {
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
44
|
+
className?: string;
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare function MenubarSubContent({ children, alignOffset, className, onSelect, ...rest }: {
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
49
|
+
alignOffset?: number;
|
|
50
|
+
className?: string;
|
|
51
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare function MenubarCheckboxItem({ children, checked, onCheckedChange, className, onSelect, ...rest }: {
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
onSelect?: (event: Event) => void;
|
|
55
|
+
checked?: boolean;
|
|
56
|
+
onCheckedChange?: () => void;
|
|
57
|
+
className?: string;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare function MenubarItemIndicator({ children, className, ...rest }: {
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare function MenubarRadioGroup({ children, className, value, onValueChange, onSelect, ...rest }: {
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
|
66
|
+
value?: string;
|
|
67
|
+
onValueChange?: (value: string) => void;
|
|
68
|
+
className?: string;
|
|
69
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare function MenubarRadioItem({ children, className, value, onSelect, ...rest }: {
|
|
71
|
+
children?: React.ReactNode;
|
|
72
|
+
onSelect?: (event: Event) => void;
|
|
73
|
+
value: string;
|
|
74
|
+
className?: string;
|
|
75
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export declare function MenubarShortcut({ children, className, ...rest }: {
|
|
77
|
+
children?: React.ReactNode;
|
|
78
|
+
className?: string;
|
|
79
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare function MenubarSubTriggerIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ChangeEvent } from "react";
|
|
3
|
+
export type MultiSelectValue = string | number | boolean;
|
|
4
|
+
interface MultiSelectContextProps<T extends MultiSelectValue = string> {
|
|
5
|
+
fieldValue?: T[];
|
|
6
|
+
onItemClick: (v: T) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MultiSelectContext: React.Context<MultiSelectContextProps<MultiSelectValue>>;
|
|
9
|
+
/**
|
|
10
|
+
* Props for MultiSelect component
|
|
11
|
+
*/
|
|
12
|
+
interface MultiSelectProps<T extends MultiSelectValue = string> {
|
|
13
|
+
modalPopover?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
open?: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
value?: T[];
|
|
20
|
+
inputClassName?: string;
|
|
21
|
+
onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>;
|
|
22
|
+
onValueChange?: (updatedValue: T[]) => void;
|
|
23
|
+
placeholder?: React.ReactNode;
|
|
24
|
+
size?: "smallest" | "small" | "medium" | "large";
|
|
25
|
+
useChips?: boolean;
|
|
26
|
+
label?: React.ReactNode | string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
error?: boolean;
|
|
29
|
+
position?: "item-aligned" | "popper";
|
|
30
|
+
endAdornment?: React.ReactNode;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
includeSelectAll?: boolean;
|
|
33
|
+
includeClear?: boolean;
|
|
34
|
+
inputRef?: React.Ref<HTMLButtonElement>;
|
|
35
|
+
padding?: boolean;
|
|
36
|
+
invisible?: boolean;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
renderValues?: (values: T[]) => React.ReactNode;
|
|
39
|
+
portalContainer?: HTMLElement | null;
|
|
40
|
+
}
|
|
41
|
+
export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps<string> & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
export interface MultiSelectItemProps<T extends MultiSelectValue = string> {
|
|
43
|
+
value: T;
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const MultiSelectItem: React.MemoExoticComponent<(<T extends MultiSelectValue = string>({ children, value, className }: MultiSelectItemProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type PopoverSide = "top" | "right" | "bottom" | "left";
|
|
3
|
+
export type PopoverAlign = "start" | "center" | "end";
|
|
4
|
+
export interface PopoverProps {
|
|
5
|
+
trigger: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
side?: PopoverSide;
|
|
10
|
+
sideOffset?: number;
|
|
11
|
+
align?: PopoverAlign;
|
|
12
|
+
alignOffset?: number;
|
|
13
|
+
arrowPadding?: number;
|
|
14
|
+
sticky?: "partial" | "always";
|
|
15
|
+
hideWhenDetached?: boolean;
|
|
16
|
+
avoidCollisions?: boolean;
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
modal?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
portalContainer?: HTMLElement | null;
|
|
21
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
22
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
23
|
+
}
|
|
24
|
+
export declare function Popover({ trigger, children, open, onOpenChange, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, enabled, modal, portalContainer, className, onMouseEnter, onMouseLeave }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface RadioGroupProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
name?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether keyboard navigation should loop around
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?(value: string): void;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export interface RadioGroupItemProps {
|
|
20
|
+
id?: string;
|
|
21
|
+
value: string;
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ResizablePanelsProps = {
|
|
3
|
+
firstPanel: React.ReactNode;
|
|
4
|
+
secondPanel: React.ReactNode;
|
|
5
|
+
/** Whether the first panel is visible (e.g. Sidebar) */
|
|
6
|
+
showFirstPanel?: boolean;
|
|
7
|
+
/** Whether the second panel is visible (e.g. Results) */
|
|
8
|
+
showSecondPanel?: boolean;
|
|
9
|
+
/** 0-100 representing the width/height of the first panel */
|
|
10
|
+
panelSizePercent: number;
|
|
11
|
+
onPanelSizeChange: (sizePercent: number) => void;
|
|
12
|
+
minPanelSizePx?: number;
|
|
13
|
+
orientation?: "horizontal" | "vertical";
|
|
14
|
+
animateLayout?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
stacked?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function ResizablePanels({ firstPanel, secondPanel, showFirstPanel, showSecondPanel, panelSizePercent, onPanelSizeChange, minPanelSizePx, orientation, animateLayout, className, stacked }: ResizablePanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SearchBarProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
onTextSearch?: (searchString?: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
expandable?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Size of the search bar.
|
|
9
|
+
* - "small": 32px height (matches TextField small)
|
|
10
|
+
* - "medium": 44px height (matches TextField medium)
|
|
11
|
+
* @default "medium"
|
|
12
|
+
*/
|
|
13
|
+
size?: "smallest" | "small" | "medium";
|
|
14
|
+
innerClassName?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
20
|
+
}
|
|
21
|
+
export declare function SearchBar({ onClick, onTextSearch, placeholder, expandable, size, innerClassName, className, autoFocus, disabled, loading, inputRef }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { ChangeEvent } from "react";
|
|
2
|
+
export type SelectValue = string | number | boolean;
|
|
3
|
+
export type SelectProps<T extends SelectValue = string> = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
value?: T;
|
|
10
|
+
className?: string;
|
|
11
|
+
inputClassName?: string;
|
|
12
|
+
viewportClassName?: string;
|
|
13
|
+
onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>;
|
|
14
|
+
onValueChange?: (updatedValue: T) => void;
|
|
15
|
+
placeholder?: React.ReactNode;
|
|
16
|
+
renderValue?: (value: T) => React.ReactNode;
|
|
17
|
+
size?: "smallest" | "small" | "medium" | "large";
|
|
18
|
+
label?: React.ReactNode | string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
error?: boolean;
|
|
21
|
+
position?: "item-aligned" | "popper";
|
|
22
|
+
endAdornment?: React.ReactNode;
|
|
23
|
+
inputRef?: React.Ref<HTMLButtonElement>;
|
|
24
|
+
padding?: boolean;
|
|
25
|
+
invisible?: boolean;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
dataType?: "string" | "number" | "boolean";
|
|
28
|
+
portalContainer?: HTMLElement | null;
|
|
29
|
+
};
|
|
30
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps<string> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export type SelectItemProps<T extends SelectValue = string> = {
|
|
32
|
+
value: T;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const SelectItem: React.MemoExoticComponent<(<T extends SelectValue = string>({ value, children, disabled, className }: SelectItemProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
38
|
+
export type SelectGroupProps = {
|
|
39
|
+
label: React.ReactNode;
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
className?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const SelectGroup: React.NamedExoticComponent<SelectGroupProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SheetProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
open: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
includeBackgroundOverlay?: boolean;
|
|
8
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
9
|
+
darkBackground?: boolean;
|
|
10
|
+
transparent?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
onPointerDownOutside?: (e: Event) => void;
|
|
13
|
+
onInteractOutside?: (e: Event) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
overlayClassName?: string;
|
|
17
|
+
overlayZIndex?: string;
|
|
18
|
+
overlayStyle?: React.CSSProperties;
|
|
19
|
+
portalContainer?: HTMLElement | null;
|
|
20
|
+
}
|
|
21
|
+
export declare const Sheet: React.FC<SheetProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SliderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
orientation?: React.AriaAttributes["aria-orientation"];
|
|
7
|
+
dir?: "ltr" | "rtl";
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
minStepsBetweenThumbs?: number;
|
|
12
|
+
value?: number[];
|
|
13
|
+
defaultValue?: number[];
|
|
14
|
+
onValueChange?: (value: number[]) => void;
|
|
15
|
+
onValueCommit?: (value: number[]) => void;
|
|
16
|
+
inverted?: boolean;
|
|
17
|
+
form?: string;
|
|
18
|
+
size?: "small" | "regular";
|
|
19
|
+
}
|
|
20
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
export { Slider };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TableProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
} & React.TableHTMLAttributes<HTMLTableElement>;
|
|
7
|
+
export declare const Table: React.MemoExoticComponent<({ children, className, style, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export type TableBodyProps = {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
} & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
12
|
+
export declare const TableBody: React.MemoExoticComponent<({ children, className, ...rest }: TableBodyProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export type TableHeaderProps = {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
17
|
+
export declare const TableHeader: React.MemoExoticComponent<({ children, className, ...rest }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export type TableRowProps = {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
onClick?: React.MouseEventHandler<any>;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
} & React.HTMLAttributes<HTMLTableRowElement>;
|
|
24
|
+
export declare const TableRow: React.MemoExoticComponent<({ children, className, onClick, style, ...rest }: TableRowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
25
|
+
export type TableCellProps = {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
header?: boolean;
|
|
28
|
+
scope?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
align?: "left" | "center" | "right";
|
|
32
|
+
colspan?: number;
|
|
33
|
+
} & React.HTMLAttributes<HTMLTableCellElement>;
|
|
34
|
+
export declare const TableCell: React.MemoExoticComponent<({ children, header, scope, align, className, style, colspan, ...rest }: TableCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TabVariant = "standard" | "boxy" | "pill";
|
|
3
|
+
export type TabsProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
innerClassName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
variant?: TabVariant;
|
|
9
|
+
onValueChange: (value: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function Tabs({ value, onValueChange, className, innerClassName, variant, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type TabProps = {
|
|
13
|
+
value: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
innerClassName?: string;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type InputType = "text" | "number" | "phone" | "email" | "password" | "search" | "url" | "date" | "time" | "datetime-local" | "month" | "week" | "color";
|
|
3
|
+
export type TextFieldProps<T extends string | number> = {
|
|
4
|
+
type?: InputType;
|
|
5
|
+
value?: T;
|
|
6
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
multiline?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
invisible?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
endAdornment?: React.ReactNode;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
size?: "smallest" | "small" | "medium" | "large";
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
inputClassName?: string;
|
|
19
|
+
inputStyle?: React.CSSProperties;
|
|
20
|
+
inputRef?: React.ForwardedRef<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of rows to display.
|
|
23
|
+
*/
|
|
24
|
+
maxRows?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* Minimum number of rows to display.
|
|
27
|
+
* @default 1
|
|
28
|
+
*/
|
|
29
|
+
minRows?: number | string;
|
|
30
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">;
|
|
31
|
+
export declare const TextField: React.ForwardRefExoticComponent<{
|
|
32
|
+
type?: InputType;
|
|
33
|
+
value?: string | number | undefined;
|
|
34
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
35
|
+
label?: React.ReactNode;
|
|
36
|
+
multiline?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
invisible?: boolean;
|
|
39
|
+
error?: boolean;
|
|
40
|
+
endAdornment?: React.ReactNode;
|
|
41
|
+
autoFocus?: boolean;
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
size?: "smallest" | "small" | "medium" | "large";
|
|
44
|
+
className?: string;
|
|
45
|
+
style?: React.CSSProperties;
|
|
46
|
+
inputClassName?: string;
|
|
47
|
+
inputStyle?: React.CSSProperties;
|
|
48
|
+
inputRef?: React.ForwardedRef<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum number of rows to display.
|
|
51
|
+
*/
|
|
52
|
+
maxRows?: number | string;
|
|
53
|
+
/**
|
|
54
|
+
* Minimum number of rows to display.
|
|
55
|
+
* @default 1
|
|
56
|
+
*/
|
|
57
|
+
minRows?: number | string;
|
|
58
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type State = {
|
|
3
|
+
outerHeightStyle: number;
|
|
4
|
+
overflow?: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
export declare const TextareaAutosize: React.FC<TextareaAutosizeProps & {
|
|
7
|
+
ref?: React.ForwardedRef<Element>;
|
|
8
|
+
}>;
|
|
9
|
+
export type TextareaAutosizeProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
shadowClassName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of rows to display.
|
|
14
|
+
*/
|
|
15
|
+
maxRows?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* Minimum number of rows to display.
|
|
18
|
+
* @default 1
|
|
19
|
+
*/
|
|
20
|
+
minRows?: number | string;
|
|
21
|
+
/**
|
|
22
|
+
* @ignore
|
|
23
|
+
*/
|
|
24
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @ignore
|
|
27
|
+
*/
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @ignore
|
|
31
|
+
*/
|
|
32
|
+
style?: object;
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
value?: string[] | number | string;
|
|
37
|
+
sizeRef?: React.RefObject<HTMLDivElement>;
|
|
38
|
+
onScroll?: (event: React.UIEvent<HTMLTextAreaElement>) => void;
|
|
39
|
+
onResize?: (state: State) => void;
|
|
40
|
+
autoFocus?: boolean;
|
|
41
|
+
ignoreBoxSizing?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ToggleButtonOption<T extends string = string> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ToggleButtonGroupProps<T extends string = string> = {
|
|
9
|
+
/**
|
|
10
|
+
* Currently selected value
|
|
11
|
+
*/
|
|
12
|
+
value: T;
|
|
13
|
+
/**
|
|
14
|
+
* Callback when value changes
|
|
15
|
+
*/
|
|
16
|
+
onValueChange: (value: T) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Options to display
|
|
19
|
+
*/
|
|
20
|
+
options: ToggleButtonOption<T>[];
|
|
21
|
+
/**
|
|
22
|
+
* Additional class names for the container
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A toggle button group component for selecting one option from a set.
|
|
28
|
+
* Displays options as buttons in a horizontal row with active state styling.
|
|
29
|
+
*/
|
|
30
|
+
export declare function ToggleButtonGroup<T extends string = string>({ value, onValueChange, options, className }: ToggleButtonGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
align?: "start" | "center" | "end";
|
|
8
|
+
sideOffset?: number;
|
|
9
|
+
title?: string | React.ReactNode;
|
|
10
|
+
delayDuration?: number;
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
tooltipClassName?: string;
|
|
13
|
+
tooltipStyle?: React.CSSProperties;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
container?: HTMLElement;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
};
|
|
19
|
+
export declare const Tooltip: ({ open, defaultOpen, side, delayDuration, sideOffset, align, onOpenChange, title, tooltipClassName, tooltipStyle, children, asChild, container, className, style }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|