@sfperusacdev/sf-ui 0.1.11
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 +116 -0
- package/dist/sf-ui.css +2 -0
- package/dist/sf-ui.js +13228 -0
- package/dist/sf-ui.js.map +1 -0
- package/dist/sf-ui.umd.cjs +21 -0
- package/dist/sf-ui.umd.cjs.map +1 -0
- package/dist/theme/dark.css +156 -0
- package/dist/theme/erp.css +84 -0
- package/dist/theme/sark.css +117 -0
- package/dist/theme/sf-tokens.css +474 -0
- package/dist/types/src/adapters/maps/google/index.d.ts +18 -0
- package/dist/types/src/adapters/maps/index.d.ts +2 -0
- package/dist/types/src/adapters/maps/leaflet/index.d.ts +10 -0
- package/dist/types/src/components/advanced-inputs/CodeEditor.d.ts +20 -0
- package/dist/types/src/components/advanced-inputs/MapFlyTo.d.ts +9 -0
- package/dist/types/src/components/advanced-inputs/MapGeocoderBar.d.ts +8 -0
- package/dist/types/src/components/advanced-inputs/MapPicker.d.ts +22 -0
- package/dist/types/src/components/advanced-inputs/MapPickerMap.d.ts +10 -0
- package/dist/types/src/components/advanced-inputs/PhotoInput.d.ts +18 -0
- package/dist/types/src/components/advanced-inputs/RichTextEditor.d.ts +16 -0
- package/dist/types/src/components/advanced-inputs/SignaturePad.d.ts +17 -0
- package/dist/types/src/components/advanced-inputs/codeEditorClassName.d.ts +7 -0
- package/dist/types/src/components/advanced-inputs/codeEditorExtensions.d.ts +3 -0
- package/dist/types/src/components/advanced-inputs/index.d.ts +8 -0
- package/dist/types/src/components/advanced-inputs/mapPickerUtils.d.ts +19 -0
- package/dist/types/src/components/advanced-inputs/types.d.ts +5 -0
- package/dist/types/src/components/buttons/ActionButton.d.ts +11 -0
- package/dist/types/src/components/buttons/Button.d.ts +12 -0
- package/dist/types/src/components/buttons/ButtonGroup.d.ts +7 -0
- package/dist/types/src/components/buttons/FormActions.d.ts +12 -0
- package/dist/types/src/components/buttons/RowActions.d.ts +10 -0
- package/dist/types/src/components/buttons/ToolbarButton.d.ts +10 -0
- package/dist/types/src/components/buttons/buttonClassName.d.ts +9 -0
- package/dist/types/src/components/buttons/index.d.ts +9 -0
- package/dist/types/src/components/cards/Badge.d.ts +11 -0
- package/dist/types/src/components/cards/EntityCard.d.ts +28 -0
- package/dist/types/src/components/cards/KPICard.d.ts +22 -0
- package/dist/types/src/components/cards/MetricBar.d.ts +13 -0
- package/dist/types/src/components/cards/ModuleCard.d.ts +34 -0
- package/dist/types/src/components/cards/RecommendationCard.d.ts +13 -0
- package/dist/types/src/components/cards/badgeClassName.d.ts +8 -0
- package/dist/types/src/components/cards/index.d.ts +12 -0
- package/dist/types/src/components/cards/types.d.ts +16 -0
- package/dist/types/src/components/charts/Chart.d.ts +3 -0
- package/dist/types/src/components/charts/Sparkline.d.ts +2 -0
- package/dist/types/src/components/charts/chartUtils.d.ts +14 -0
- package/dist/types/src/components/charts/index.d.ts +5 -0
- package/dist/types/src/components/charts/types.d.ts +32 -0
- package/dist/types/src/components/dashboard/Calendar.d.ts +10 -0
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +43 -0
- package/dist/types/src/components/dashboard/DonutGauge.d.ts +25 -0
- package/dist/types/src/components/dashboard/EventLog.d.ts +37 -0
- package/dist/types/src/components/dashboard/Stepper.d.ts +14 -0
- package/dist/types/src/components/dashboard/calendarUtils.d.ts +5 -0
- package/dist/types/src/components/dashboard/index.d.ts +11 -0
- package/dist/types/src/components/dashboard/types.d.ts +39 -0
- package/dist/types/src/components/display/AuditTimeline.d.ts +20 -0
- package/dist/types/src/components/display/Avatar.d.ts +22 -0
- package/dist/types/src/components/display/Carousel.d.ts +10 -0
- package/dist/types/src/components/display/LiveChip.d.ts +6 -0
- package/dist/types/src/components/display/LiveStatusBar.d.ts +23 -0
- package/dist/types/src/components/display/PassengerBoardCard.d.ts +22 -0
- package/dist/types/src/components/display/RecordList.d.ts +26 -0
- package/dist/types/src/components/display/Timeline.d.ts +17 -0
- package/dist/types/src/components/display/index.d.ts +16 -0
- package/dist/types/src/components/document-inputs/CurrencyInput.d.ts +21 -0
- package/dist/types/src/components/document-inputs/DniInput.d.ts +17 -0
- package/dist/types/src/components/document-inputs/DocumentInputs.fuzz.test.d.ts +1 -0
- package/dist/types/src/components/document-inputs/OtpInput.d.ts +15 -0
- package/dist/types/src/components/document-inputs/PhoneInput.d.ts +18 -0
- package/dist/types/src/components/document-inputs/RucInput.d.ts +17 -0
- package/dist/types/src/components/document-inputs/documentUtils.d.ts +11 -0
- package/dist/types/src/components/document-inputs/index.d.ts +7 -0
- package/dist/types/src/components/feedback/AccessDenied.d.ts +8 -0
- package/dist/types/src/components/feedback/Alert.d.ts +13 -0
- package/dist/types/src/components/feedback/EmptyState.d.ts +9 -0
- package/dist/types/src/components/feedback/ErrorView.d.ts +8 -0
- package/dist/types/src/components/feedback/LoadingView.d.ts +5 -0
- package/dist/types/src/components/feedback/RetryBlock.d.ts +11 -0
- package/dist/types/src/components/feedback/Skeleton.d.ts +9 -0
- package/dist/types/src/components/feedback/Spinner.d.ts +6 -0
- package/dist/types/src/components/feedback/Toast.d.ts +27 -0
- package/dist/types/src/components/feedback/index.d.ts +13 -0
- package/dist/types/src/components/icons/SyncIcon.d.ts +4 -0
- package/dist/types/src/components/icons/index.d.ts +2 -0
- package/dist/types/src/components/inputs/AsyncCardSelect.d.ts +17 -0
- package/dist/types/src/components/inputs/AsyncSearchSelect.d.ts +20 -0
- package/dist/types/src/components/inputs/AsyncSearchTableSelect.d.ts +21 -0
- package/dist/types/src/components/inputs/BooleanCheckbox.d.ts +14 -0
- package/dist/types/src/components/inputs/CardSelect.d.ts +18 -0
- package/dist/types/src/components/inputs/Checkbox.d.ts +16 -0
- package/dist/types/src/components/inputs/CheckboxGroup.d.ts +18 -0
- package/dist/types/src/components/inputs/DateInput.d.ts +20 -0
- package/dist/types/src/components/inputs/DatePicker.d.ts +19 -0
- package/dist/types/src/components/inputs/DisplayField.d.ts +15 -0
- package/dist/types/src/components/inputs/FieldLayout.d.ts +13 -0
- package/dist/types/src/components/inputs/FileInput.d.ts +21 -0
- package/dist/types/src/components/inputs/FileInput.security.test.d.ts +1 -0
- package/dist/types/src/components/inputs/Input.d.ts +21 -0
- package/dist/types/src/components/inputs/NumberInput.d.ts +21 -0
- package/dist/types/src/components/inputs/PasswordInput.d.ts +17 -0
- package/dist/types/src/components/inputs/RadioGroup.d.ts +18 -0
- package/dist/types/src/components/inputs/SearchSelect.d.ts +24 -0
- package/dist/types/src/components/inputs/SearchTableSelect.d.ts +22 -0
- package/dist/types/src/components/inputs/Select.d.ts +18 -0
- package/dist/types/src/components/inputs/SelectOption.d.ts +4 -0
- package/dist/types/src/components/inputs/SmartDateInput.d.ts +35 -0
- package/dist/types/src/components/inputs/SmartDateInput.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SmartInput.d.ts +84 -0
- package/dist/types/src/components/inputs/SmartInput.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SmartSelect.d.ts +77 -0
- package/dist/types/src/components/inputs/SmartSelect.test.d.ts +1 -0
- package/dist/types/src/components/inputs/TextArea.d.ts +19 -0
- package/dist/types/src/components/inputs/Toggle.d.ts +18 -0
- package/dist/types/src/components/inputs/Transfer.d.ts +10 -0
- package/dist/types/src/components/inputs/TreeSelect.d.ts +21 -0
- package/dist/types/src/components/inputs/YesNoSelect.d.ts +17 -0
- package/dist/types/src/components/inputs/fieldClassName.d.ts +8 -0
- package/dist/types/src/components/inputs/index.d.ts +37 -0
- package/dist/types/src/components/inputs/inputFocusTransition.d.ts +2 -0
- package/dist/types/src/components/inputs/passwordStrength.d.ts +7 -0
- package/dist/types/src/components/inputs/textareaClassName.d.ts +7 -0
- package/dist/types/src/components/inputs/treeSelectUtils.d.ts +9 -0
- package/dist/types/src/components/inputs/types-form.d.ts +12 -0
- package/dist/types/src/components/inputs/useAsyncOptions.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/CardRadioGroup.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/ColorInput.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/KeyValueInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/NumberStepper.d.ts +17 -0
- package/dist/types/src/components/interactive-inputs/ProgressBar.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/ProgressBarReadonly.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/RangeSliderInput.d.ts +20 -0
- package/dist/types/src/components/interactive-inputs/RatingInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/SliderInput.d.ts +19 -0
- package/dist/types/src/components/interactive-inputs/SortableList.d.ts +12 -0
- package/dist/types/src/components/interactive-inputs/TagsInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/index.d.ts +24 -0
- package/dist/types/src/components/interactive-inputs/interactiveUtils.d.ts +14 -0
- package/dist/types/src/components/interactive-inputs/types.d.ts +8 -0
- package/dist/types/src/components/layout/Accordion.d.ts +17 -0
- package/dist/types/src/components/layout/AppShell.d.ts +100 -0
- package/dist/types/src/components/layout/AppShell.test.d.ts +1 -0
- package/dist/types/src/components/layout/Breadcrumb.d.ts +14 -0
- package/dist/types/src/components/layout/DateWeekStrip.d.ts +12 -0
- package/dist/types/src/components/layout/FilterBar.d.ts +54 -0
- package/dist/types/src/components/layout/FormWizard.d.ts +11 -0
- package/dist/types/src/components/layout/HeightProvider.d.ts +7 -0
- package/dist/types/src/components/layout/ItineraryEditor.d.ts +20 -0
- package/dist/types/src/components/layout/LiveRouteBoard.d.ts +50 -0
- package/dist/types/src/components/layout/MaestroLayout.d.ts +15 -0
- package/dist/types/src/components/layout/MasterDetailLayout.d.ts +21 -0
- package/dist/types/src/components/layout/PageContainer.d.ts +8 -0
- package/dist/types/src/components/layout/PageHeader.d.ts +13 -0
- package/dist/types/src/components/layout/ScrollArea.d.ts +9 -0
- package/dist/types/src/components/layout/Separator.d.ts +6 -0
- package/dist/types/src/components/layout/SidePanel.d.ts +15 -0
- package/dist/types/src/components/layout/SidePanelContainer.d.ts +21 -0
- package/dist/types/src/components/layout/TablePageLayout.d.ts +9 -0
- package/dist/types/src/components/layout/Tabs.d.ts +17 -0
- package/dist/types/src/components/layout/UnitSelector.d.ts +14 -0
- package/dist/types/src/components/layout/Visibility.d.ts +10 -0
- package/dist/types/src/components/layout/WeekdayToggleStrip.d.ts +12 -0
- package/dist/types/src/components/layout/flotaLayout.test.d.ts +1 -0
- package/dist/types/src/components/layout/index.d.ts +40 -0
- package/dist/types/src/components/layout/transportApi.test.d.ts +1 -0
- package/dist/types/src/components/layout/useFormWizard.d.ts +40 -0
- package/dist/types/src/components/maps/base/MapFrame.d.ts +8 -0
- package/dist/types/src/components/maps/base/MapStatus.d.ts +5 -0
- package/dist/types/src/components/maps/base/index.d.ts +4 -0
- package/dist/types/src/components/maps/forms/AddressSearchInput.d.ts +16 -0
- package/dist/types/src/components/maps/forms/AreaInput.d.ts +7 -0
- package/dist/types/src/components/maps/forms/CoordinatesInput.d.ts +6 -0
- package/dist/types/src/components/maps/forms/LocationPicker.d.ts +16 -0
- package/dist/types/src/components/maps/forms/LocationPicker.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/RouteInput.d.ts +7 -0
- package/dist/types/src/components/maps/forms/ShapeInput.d.ts +19 -0
- package/dist/types/src/components/maps/forms/ShapeInput.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/SmartMapInput.d.ts +39 -0
- package/dist/types/src/components/maps/forms/SmartMapInput.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/index.d.ts +12 -0
- package/dist/types/src/components/maps/index.d.ts +3 -0
- package/dist/types/src/components/maps/renderers/google/GoogleMapRenderer.d.ts +6 -0
- package/dist/types/src/components/maps/renderers/google/index.d.ts +1 -0
- package/dist/types/src/components/maps/renderers/index.d.ts +2 -0
- package/dist/types/src/components/maps/renderers/leaflet/LeafletMapRenderer.d.ts +7 -0
- package/dist/types/src/components/maps/renderers/leaflet/index.d.ts +1 -0
- package/dist/types/src/components/maps/views/MapView.d.ts +9 -0
- package/dist/types/src/components/maps/views/index.d.ts +2 -0
- package/dist/types/src/components/media-inputs/FileDropInput.d.ts +21 -0
- package/dist/types/src/components/media-inputs/MultiPhotoInput.d.ts +20 -0
- package/dist/types/src/components/media-inputs/MultiPhotoInput.security.test.d.ts +1 -0
- package/dist/types/src/components/media-inputs/PhotoCropEditor.d.ts +9 -0
- package/dist/types/src/components/media-inputs/PhotoCropInput.d.ts +19 -0
- package/dist/types/src/components/media-inputs/PhotoInput.d.ts +1 -0
- package/dist/types/src/components/media-inputs/SignaturePad.d.ts +1 -0
- package/dist/types/src/components/media-inputs/SmartMediaInput.d.ts +43 -0
- package/dist/types/src/components/media-inputs/SmartMediaInput.test.d.ts +1 -0
- package/dist/types/src/components/media-inputs/cropImageFromArea.d.ts +7 -0
- package/dist/types/src/components/media-inputs/index.d.ts +13 -0
- package/dist/types/src/components/media-inputs/mediaUtils.d.ts +9 -0
- package/dist/types/src/components/media-inputs/types.d.ts +6 -0
- package/dist/types/src/components/overlays/CommandPalette.d.ts +17 -0
- package/dist/types/src/components/overlays/ConfirmDialog.d.ts +14 -0
- package/dist/types/src/components/overlays/ContextMenu.d.ts +15 -0
- package/dist/types/src/components/overlays/Drawer.d.ts +23 -0
- package/dist/types/src/components/overlays/DropdownMenu.d.ts +21 -0
- package/dist/types/src/components/overlays/MessageDialog.d.ts +11 -0
- package/dist/types/src/components/overlays/Modal.d.ts +31 -0
- package/dist/types/src/components/overlays/NotificationBell.d.ts +12 -0
- package/dist/types/src/components/overlays/OptionItem.d.ts +11 -0
- package/dist/types/src/components/overlays/Popover.d.ts +18 -0
- package/dist/types/src/components/overlays/ProductTour.d.ts +15 -0
- package/dist/types/src/components/overlays/QRView.d.ts +9 -0
- package/dist/types/src/components/overlays/TabMenuOption.d.ts +9 -0
- package/dist/types/src/components/overlays/Tooltip.d.ts +10 -0
- package/dist/types/src/components/overlays/index.d.ts +27 -0
- package/dist/types/src/components/range-inputs/DateRangeInput.d.ts +19 -0
- package/dist/types/src/components/range-inputs/DateRangeUtcInput.d.ts +3 -0
- package/dist/types/src/components/range-inputs/TimeRangeInput.d.ts +18 -0
- package/dist/types/src/components/range-inputs/index.d.ts +8 -0
- package/dist/types/src/components/range-inputs/rangeUtils.d.ts +8 -0
- package/dist/types/src/components/range-inputs/types.d.ts +10 -0
- package/dist/types/src/components/table/ActiveFiltersBar.d.ts +10 -0
- package/dist/types/src/components/table/AsyncCustomTable.d.ts +13 -0
- package/dist/types/src/components/table/CustomTable.d.ts +83 -0
- package/dist/types/src/components/table/EditableDataGrid.d.ts +15 -0
- package/dist/types/src/components/table/EditableDataGrid.test.d.ts +1 -0
- package/dist/types/src/components/table/ExpandableTableSection.d.ts +26 -0
- package/dist/types/src/components/table/PaginationRangeInput.d.ts +14 -0
- package/dist/types/src/components/table/TableColumnSettings.d.ts +13 -0
- package/dist/types/src/components/table/TableFiltersPanel.d.ts +17 -0
- package/dist/types/src/components/table/TableSortingPanel.d.ts +16 -0
- package/dist/types/src/components/table/activeFilterUtils.d.ts +9 -0
- package/dist/types/src/components/table/asyncStateStore.d.ts +6 -0
- package/dist/types/src/components/table/customTableController.d.ts +51 -0
- package/dist/types/src/components/table/index.d.ts +26 -0
- package/dist/types/src/components/table/tableFilters.d.ts +21 -0
- package/dist/types/src/components/table/useTableColumnSettings.d.ts +29 -0
- package/dist/types/src/components/visualization/NetworkLegend.d.ts +8 -0
- package/dist/types/src/components/visualization/NetworkMap.d.ts +19 -0
- package/dist/types/src/components/visualization/OrgTree.d.ts +20 -0
- package/dist/types/src/components/visualization/index.d.ts +9 -0
- package/dist/types/src/components/visualization/networkMapUtils.d.ts +32 -0
- package/dist/types/src/components/visualization/orgTreeUtils.d.ts +6 -0
- package/dist/types/src/components/visualization/types.d.ts +38 -0
- package/dist/types/src/constants/index.d.ts +1 -0
- package/dist/types/src/constants/maps/index.d.ts +8 -0
- package/dist/types/src/contracts/maps/index.d.ts +27 -0
- package/dist/types/src/engines/maps/google/googleMapEngine.d.ts +3 -0
- package/dist/types/src/engines/maps/google/index.d.ts +1 -0
- package/dist/types/src/engines/maps/index.d.ts +2 -0
- package/dist/types/src/engines/maps/leaflet/index.d.ts +1 -0
- package/dist/types/src/engines/maps/leaflet/leafletMapEngine.d.ts +3 -0
- package/dist/types/src/hooks/index.d.ts +11 -0
- package/dist/types/src/hooks/maps/index.d.ts +3 -0
- package/dist/types/src/hooks/maps/useAddressSearch.d.ts +7 -0
- package/dist/types/src/hooks/maps/useAddressSearch.test.d.ts +1 -0
- package/dist/types/src/hooks/maps/useMapEngine.d.ts +5 -0
- package/dist/types/src/hooks/maps/useMapsConfig.d.ts +1 -0
- package/dist/types/src/hooks/useArrayPaginator.d.ts +21 -0
- package/dist/types/src/hooks/useClickAway.d.ts +2 -0
- package/dist/types/src/hooks/useCustomForm.d.ts +26 -0
- package/dist/types/src/hooks/useFilterData.d.ts +10 -0
- package/dist/types/src/hooks/useIsClient.d.ts +2 -0
- package/dist/types/src/hooks/useMaestroFilter.d.ts +15 -0
- package/dist/types/src/hooks/useMaestroFilter.test.d.ts +1 -0
- package/dist/types/src/hooks/useQueryStringState.d.ts +2 -0
- package/dist/types/src/hooks/useStoredState.d.ts +2 -0
- package/dist/types/src/index.d.ts +24 -0
- package/dist/types/src/performance/catalogPhases.performance.test.d.ts +1 -0
- package/dist/types/src/performance/componentRender.performance.test.d.ts +1 -0
- package/dist/types/src/providers/SfProvider.d.ts +21 -0
- package/dist/types/src/providers/SfProvider.maps.test.d.ts +1 -0
- package/dist/types/src/providers/index.d.ts +2 -0
- package/dist/types/src/services/maps/distance/basicDistanceService.d.ts +2 -0
- package/dist/types/src/services/maps/distance/basicDistanceService.test.d.ts +1 -0
- package/dist/types/src/services/maps/distance/index.d.ts +1 -0
- package/dist/types/src/services/maps/geocoding/googleGeocodingService.d.ts +3 -0
- package/dist/types/src/services/maps/geocoding/index.d.ts +2 -0
- package/dist/types/src/services/maps/geocoding/nominatimGeocodingService.d.ts +2 -0
- package/dist/types/src/services/maps/googleMapsLoader.d.ts +66 -0
- package/dist/types/src/services/maps/index.d.ts +5 -0
- package/dist/types/src/services/maps/places/index.d.ts +1 -0
- package/dist/types/src/services/maps/places/mapsPlacesService.d.ts +2 -0
- package/dist/types/src/services/maps/routing/basicRouteService.d.ts +2 -0
- package/dist/types/src/services/maps/routing/basicRouteService.test.d.ts +1 -0
- package/dist/types/src/services/maps/routing/index.d.ts +1 -0
- package/dist/types/src/types/maps/index.d.ts +155 -0
- package/dist/types/src/utils/exportTableCsv.d.ts +11 -0
- package/dist/types/src/utils/exportTableXlsx.d.ts +5 -0
- package/dist/types/src/utils/index.d.ts +9 -0
- package/dist/types/src/utils/maps/geocoder.d.ts +8 -0
- package/dist/types/src/utils/maps/index.d.ts +10 -0
- package/dist/types/src/utils/maps/index.test.d.ts +1 -0
- package/dist/types/src/utils/queryParams.d.ts +3 -0
- package/dist/types/src/utils/resolveCssVar.d.ts +2 -0
- package/dist/types/src/utils/sanitizeRichHtml.d.ts +1 -0
- package/dist/types/src/utils/sanitizeRichHtml.test.d.ts +1 -0
- package/dist/types/src/utils/spreadsheetSanitizer.d.ts +1 -0
- package/dist/types/src/utils/spreadsheetSanitizer.test.d.ts +1 -0
- package/dist/types/src/utils/toStringArray.d.ts +1 -0
- package/dist/types/src/utils/validators.d.ts +52 -0
- package/package.json +128 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ButtonVariant } from './buttonClassName';
|
|
3
|
+
export type ActionButtonVariant = ButtonVariant | "success" | "warning" | "info";
|
|
4
|
+
type ActionButtonProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
variant?: ActionButtonVariant;
|
|
9
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
|
|
10
|
+
export declare const ActionButton: ({ children, loading, disabled, icon, variant, className, type, ...rest }: ActionButtonProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ButtonSize, ButtonVariant } from './buttonClassName';
|
|
3
|
+
type ButtonProps = {
|
|
4
|
+
variant?: ButtonVariant;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconPosition?: "start" | "end";
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
|
|
11
|
+
export declare const Button: ({ variant, size, loading, disabled, icon, iconPosition, children, className, type, ...rest }: ButtonProps) => import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type FormActionsProps = {
|
|
2
|
+
cancelLabel?: string;
|
|
3
|
+
saveLabel?: string;
|
|
4
|
+
onCancel?: () => void;
|
|
5
|
+
onSave?: () => void;
|
|
6
|
+
cancelLoading?: boolean;
|
|
7
|
+
saveLoading?: boolean;
|
|
8
|
+
hideSave?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const FormActions: import('react').MemoExoticComponent<({ cancelLabel, saveLabel, onCancel, onSave, cancelLoading, saveLoading, hideSave, className, }: FormActionsProps) => import("react").JSX.Element>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type RowActionsProps = {
|
|
2
|
+
onEdit?: () => void;
|
|
3
|
+
onDelete?: () => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
editLabel?: string;
|
|
6
|
+
deleteLabel?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const RowActions: ({ onEdit, onDelete, disabled, editLabel, deleteLabel, className, }: RowActionsProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type ToolbarButtonProps = {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
small?: boolean;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
label?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
|
|
9
|
+
export declare const ToolbarButton: ({ selected, small, icon, label, loading, disabled, className, type, ...rest }: ToolbarButtonProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ButtonVariant = "primary" | "secondary" | "outline" | "danger" | "ghost" | "accent";
|
|
2
|
+
export type ButtonSize = "sm" | "md";
|
|
3
|
+
type Options = {
|
|
4
|
+
variant?: ButtonVariant;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const buttonClassName: ({ variant, size, className }: Options) => string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Button } from './Button';
|
|
2
|
+
export { ButtonGroup } from './ButtonGroup';
|
|
3
|
+
export { ToolbarButton } from './ToolbarButton';
|
|
4
|
+
export { RowActions } from './RowActions';
|
|
5
|
+
export { FormActions } from './FormActions';
|
|
6
|
+
export { ActionButton } from './ActionButton';
|
|
7
|
+
export type { ActionButtonVariant } from './ActionButton';
|
|
8
|
+
export { buttonClassName } from './buttonClassName';
|
|
9
|
+
export type { ButtonVariant, ButtonSize } from './buttonClassName';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BadgeShape, BadgeSize, BadgeVariant } from './types';
|
|
2
|
+
type BadgeProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
size?: BadgeSize;
|
|
7
|
+
shape?: BadgeShape;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Badge: ({ label, variant, dot, size, shape, className, }: BadgeProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EntityCardStatus, EntityCardVariant, MetricBarItem } from './types';
|
|
3
|
+
export type EntityCardProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
sublabel?: string;
|
|
7
|
+
photo?: string;
|
|
8
|
+
photoIcon?: ReactNode;
|
|
9
|
+
status?: EntityCardStatus;
|
|
10
|
+
metrics?: MetricBarItem[];
|
|
11
|
+
actionLabel?: string;
|
|
12
|
+
onAction?: () => void;
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
score?: number;
|
|
15
|
+
variant?: EntityCardVariant;
|
|
16
|
+
groupIcon?: ReactNode;
|
|
17
|
+
groupIconClassName?: string;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const EntityCard: (props: EntityCardProps) => import("react").JSX.Element;
|
|
22
|
+
type EntityCardGridProps = {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
cols?: 2 | 3 | 4 | 5;
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const EntityCardGrid: ({ children, cols, className }: EntityCardGridProps) => import("react").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type KPICardAccentTone = "emerald" | "blue" | "amber" | "red" | "teal" | "slate";
|
|
3
|
+
type KPICardProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
sublabel?: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconClassName?: string;
|
|
9
|
+
trend?: number;
|
|
10
|
+
trendLabel?: string;
|
|
11
|
+
accentTone?: KPICardAccentTone;
|
|
12
|
+
className?: string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const KPICard: ({ label, value, sublabel, icon, iconClassName, trend, trendLabel, accentTone, className, onClick, }: KPICardProps) => import("react").JSX.Element;
|
|
16
|
+
type KPIGridProps = {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
cols?: 2 | 3 | 4 | 5;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const KPIGrid: ({ children, cols, className }: KPIGridProps) => import("react").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MetricBarItem } from './types';
|
|
2
|
+
type MetricBarRowProps = {
|
|
3
|
+
item: MetricBarItem;
|
|
4
|
+
small?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const MetricBarRow: ({ item, small }: MetricBarRowProps) => import("react").JSX.Element;
|
|
7
|
+
type MetricBarListProps = {
|
|
8
|
+
metrics: MetricBarItem[];
|
|
9
|
+
small?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const MetricBarList: ({ metrics, small, className }: MetricBarListProps) => import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ModuleCardDensity, ModuleCardVariant } from './types';
|
|
3
|
+
export type ModuleCardProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
logoUrl?: string;
|
|
8
|
+
/** Sets `--sf-module-accent` for the icon radial gradient. */
|
|
9
|
+
iconAccent?: string;
|
|
10
|
+
badge?: number;
|
|
11
|
+
isNew?: boolean;
|
|
12
|
+
favorite?: boolean;
|
|
13
|
+
onFavoriteToggle?: () => void;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
variant?: ModuleCardVariant;
|
|
16
|
+
density?: ModuleCardDensity;
|
|
17
|
+
/** Staggered mount animation (SARK fadeUp). */
|
|
18
|
+
enterAnimation?: boolean;
|
|
19
|
+
/** Runs the enter animation only once after mount. */
|
|
20
|
+
enterAnimationOnce?: boolean;
|
|
21
|
+
/** Seconds — e.g. index * 0.03 */
|
|
22
|
+
enterDelay?: number;
|
|
23
|
+
className?: string;
|
|
24
|
+
"aria-label"?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ModuleCard: ({ title, subtitle, icon, logoUrl, iconAccent, badge, isNew, favorite, onFavoriteToggle, onClick, variant, density, enterAnimation, enterAnimationOnce, enterDelay, className, "aria-label": ariaLabel, }: ModuleCardProps) => import("react").JSX.Element;
|
|
27
|
+
type ModuleCardGridProps = {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
variant?: ModuleCardVariant;
|
|
30
|
+
density?: ModuleCardDensity;
|
|
31
|
+
className?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const ModuleCardGrid: ({ children, variant, density, className, }: ModuleCardGridProps) => import("react").JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RecommendationImpact, RecommendationPriority } from './types';
|
|
2
|
+
export type RecommendationCardProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
tags?: string[];
|
|
6
|
+
priority?: RecommendationPriority;
|
|
7
|
+
impact?: RecommendationImpact;
|
|
8
|
+
confidence?: number;
|
|
9
|
+
actionLabel?: string;
|
|
10
|
+
onAction?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const RecommendationCard: ({ title, description, tags, priority, impact, confidence, actionLabel, onAction, className, }: RecommendationCardProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BadgeSize, BadgeVariant } from './types';
|
|
2
|
+
export declare const badgeClassName: ({ variant, size, shape, className, }: {
|
|
3
|
+
variant?: BadgeVariant;
|
|
4
|
+
size?: BadgeSize;
|
|
5
|
+
shape?: "pill" | "circle";
|
|
6
|
+
className?: string;
|
|
7
|
+
}) => string;
|
|
8
|
+
export declare const badgeDotClassName: (variant: BadgeVariant) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Badge } from './Badge';
|
|
2
|
+
export { badgeClassName, badgeDotClassName } from './badgeClassName';
|
|
3
|
+
export { KPICard, KPIGrid } from './KPICard';
|
|
4
|
+
export type { KPICardAccentTone } from './KPICard';
|
|
5
|
+
export { MetricBarRow, MetricBarList } from './MetricBar';
|
|
6
|
+
export { EntityCard, EntityCardGrid } from './EntityCard';
|
|
7
|
+
export type { EntityCardProps } from './EntityCard';
|
|
8
|
+
export { RecommendationCard } from './RecommendationCard';
|
|
9
|
+
export type { RecommendationCardProps } from './RecommendationCard';
|
|
10
|
+
export { ModuleCard, ModuleCardGrid } from './ModuleCard';
|
|
11
|
+
export type { ModuleCardProps } from './ModuleCard';
|
|
12
|
+
export type { BadgeVariant, BadgeSize, BadgeShape, MetricBarTone, MetricBarItem, EntityCardStatus, EntityCardVariant, RecommendationPriority, RecommendationImpact, ModuleCardVariant, ModuleCardDensity, } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type BadgeVariant = "neutral" | "primary" | "success" | "warning" | "danger" | "info";
|
|
2
|
+
export type BadgeSize = "sm" | "md";
|
|
3
|
+
export type BadgeShape = "pill" | "circle";
|
|
4
|
+
export type MetricBarTone = "slate" | "emerald" | "amber" | "red" | "blue";
|
|
5
|
+
export type MetricBarItem = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
tone?: MetricBarTone;
|
|
9
|
+
inverse?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type EntityCardStatus = "default" | "featured" | "warning";
|
|
12
|
+
export type EntityCardVariant = "entity" | "group";
|
|
13
|
+
export type RecommendationPriority = "alta" | "media" | "baja";
|
|
14
|
+
export type RecommendationImpact = "alto" | "medio" | "bajo";
|
|
15
|
+
export type ModuleCardVariant = "tile" | "row";
|
|
16
|
+
export type ModuleCardDensity = "comfortable" | "compact";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const CHART_SERIES_COLORS: readonly ["var(--sf-chart-1)", "var(--sf-chart-2)", "var(--sf-chart-3)", "var(--sf-chart-4)", "var(--sf-chart-5)"];
|
|
3
|
+
export declare const resolveSeriesColor: (series: {
|
|
4
|
+
color?: string;
|
|
5
|
+
}, index: number) => string;
|
|
6
|
+
export declare const chartTooltipStyle: CSSProperties;
|
|
7
|
+
export declare const chartAxisTick: {
|
|
8
|
+
fill: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const chartLegendStyle: {
|
|
12
|
+
fontSize: string;
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Chart } from './Chart';
|
|
2
|
+
export type { ChartProps } from './Chart';
|
|
3
|
+
export { Sparkline } from './Sparkline';
|
|
4
|
+
export { CHART_SERIES_COLORS, resolveSeriesColor } from './chartUtils';
|
|
5
|
+
export type { BaseChartProps, ChartDataPoint, ChartSeries, ChartType, SparklineProps } from './types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ChartType = "bar" | "line" | "area";
|
|
2
|
+
export type ChartSeries = {
|
|
3
|
+
key: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export type ChartDataPoint = Record<string, string | number | null | undefined>;
|
|
8
|
+
export type BaseChartProps = {
|
|
9
|
+
data: ChartDataPoint[];
|
|
10
|
+
xKey: string;
|
|
11
|
+
series: ChartSeries[];
|
|
12
|
+
height?: number;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
showGrid?: boolean;
|
|
17
|
+
showTooltip?: boolean;
|
|
18
|
+
showLegend?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type ChartProps = BaseChartProps & {
|
|
21
|
+
type: ChartType;
|
|
22
|
+
};
|
|
23
|
+
export type SparklineProps = {
|
|
24
|
+
data: ChartDataPoint[];
|
|
25
|
+
dataKey: string;
|
|
26
|
+
height?: number;
|
|
27
|
+
width?: number | string;
|
|
28
|
+
color?: string;
|
|
29
|
+
ariaLabel?: string;
|
|
30
|
+
emptyMessage?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CalendarDayBadge } from './types';
|
|
2
|
+
type CalendarProps = {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (date: string) => void;
|
|
5
|
+
badges?: CalendarDayBadge[];
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Calendar: ({ value, onChange, badges, compact, className }: CalendarProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DashboardCardVariant, StatBarItem } from './types';
|
|
3
|
+
export type DashboardCardProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
headerAction?: ReactNode;
|
|
8
|
+
variant?: DashboardCardVariant;
|
|
9
|
+
span?: 1 | 2 | 3 | 4;
|
|
10
|
+
padding?: "sm" | "md" | "lg" | "none";
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare const DashboardCard: ({ title, subtitle, icon, headerAction, variant, span, padding, className, children, }: DashboardCardProps) => import("react").JSX.Element;
|
|
15
|
+
type DashboardGridProps = {
|
|
16
|
+
cols?: 2 | 3 | 4 | 5 | 6;
|
|
17
|
+
gap?: "sm" | "md" | "lg";
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export declare const DashboardGrid: ({ cols, gap, className, children }: DashboardGridProps) => import("react").JSX.Element;
|
|
22
|
+
type DashboardSectionProps = {
|
|
23
|
+
title: string;
|
|
24
|
+
subtitle?: string;
|
|
25
|
+
action?: ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
export declare const DashboardSection: ({ title, subtitle, action, className, children }: DashboardSectionProps) => import("react").JSX.Element;
|
|
30
|
+
type DashboardStatBarProps = {
|
|
31
|
+
items: StatBarItem[];
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const DashboardStatBar: ({ items, className }: DashboardStatBarProps) => import("react").JSX.Element;
|
|
35
|
+
type DashboardLayoutProps = {
|
|
36
|
+
header?: ReactNode;
|
|
37
|
+
sidebar?: ReactNode;
|
|
38
|
+
statBar?: ReactNode;
|
|
39
|
+
className?: string;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
};
|
|
42
|
+
export declare const DashboardLayout: ({ header, sidebar, statBar, className, children }: DashboardLayoutProps) => import("react").JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DonutGaugeSize } from './types';
|
|
2
|
+
export type DonutGaugeProps = {
|
|
3
|
+
value: number;
|
|
4
|
+
label?: string;
|
|
5
|
+
sublabel?: string;
|
|
6
|
+
size?: DonutGaugeSize;
|
|
7
|
+
color?: string;
|
|
8
|
+
thresholds?: {
|
|
9
|
+
warning: number;
|
|
10
|
+
critical: number;
|
|
11
|
+
};
|
|
12
|
+
inverse?: boolean;
|
|
13
|
+
showValue?: boolean;
|
|
14
|
+
strokeWidth?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const DonutGauge: ({ value, label, sublabel, size, color, thresholds, inverse, showValue, strokeWidth, className, }: DonutGaugeProps) => import("react").JSX.Element;
|
|
18
|
+
export type DonutGaugeRowItem = Omit<DonutGaugeProps, "className">;
|
|
19
|
+
type DonutGaugeRowProps = {
|
|
20
|
+
gauges: DonutGaugeRowItem[];
|
|
21
|
+
size?: DonutGaugeSize;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const DonutGaugeRow: ({ gauges, size, className }: DonutGaugeRowProps) => import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlertRowItem, EventItem, EventStatus } from './types';
|
|
3
|
+
type EventLogProps = {
|
|
4
|
+
events: EventItem[];
|
|
5
|
+
title?: string;
|
|
6
|
+
maxHeight?: number;
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
showTimeline?: boolean;
|
|
9
|
+
viewAllLabel?: string;
|
|
10
|
+
onViewAll?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const EventLog: ({ events, title, maxHeight, compact, showTimeline, viewAllLabel, onViewAll, className, }: EventLogProps) => import("react").JSX.Element;
|
|
14
|
+
type AlertRowListProps = {
|
|
15
|
+
items: AlertRowItem[];
|
|
16
|
+
maxHeight?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const AlertRowList: ({ items, maxHeight, className }: AlertRowListProps) => import("react").JSX.Element;
|
|
20
|
+
export type AlertLaneItem = {
|
|
21
|
+
id?: string;
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
detail?: ReactNode;
|
|
24
|
+
cta?: ReactNode;
|
|
25
|
+
onCta?: () => void;
|
|
26
|
+
icon?: ReactNode;
|
|
27
|
+
color?: string;
|
|
28
|
+
halo?: string;
|
|
29
|
+
status?: EventStatus;
|
|
30
|
+
};
|
|
31
|
+
type AlertLaneProps = {
|
|
32
|
+
items: AlertLaneItem[];
|
|
33
|
+
className?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Alertas como tarjetas horizontales con ícono + CTA (diseño torre/mockup). */
|
|
36
|
+
export declare const AlertLane: ({ items, className }: AlertLaneProps) => import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StepItem } from './types';
|
|
2
|
+
export type StepperVariant = "default" | "accentUnderline";
|
|
3
|
+
type StepperProps = {
|
|
4
|
+
steps: StepItem[];
|
|
5
|
+
activeKey?: string;
|
|
6
|
+
orientation?: "horizontal" | "vertical";
|
|
7
|
+
size?: "sm" | "md";
|
|
8
|
+
/** Subrayado de acento en el paso activo (wizard CEO / transporte). */
|
|
9
|
+
variant?: StepperVariant;
|
|
10
|
+
onStepClick?: (key: string) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Stepper: ({ steps, activeKey, orientation, size, variant, onStepClick, className, }: StepperProps) => import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MONTH_NAMES: string[];
|
|
2
|
+
export declare const WEEKDAY_LABELS: string[];
|
|
3
|
+
export declare const toLocalYMD: (date: Date) => string;
|
|
4
|
+
export declare const parseYMD: (value: string) => Date;
|
|
5
|
+
export declare const buildMonthGrid: (year: number, month: number) => (Date | null)[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Stepper } from './Stepper';
|
|
2
|
+
export type { StepperVariant } from './Stepper';
|
|
3
|
+
export { Calendar } from './Calendar';
|
|
4
|
+
export { MONTH_NAMES, WEEKDAY_LABELS, toLocalYMD, parseYMD, buildMonthGrid } from './calendarUtils';
|
|
5
|
+
export { DonutGauge, DonutGaugeRow } from './DonutGauge';
|
|
6
|
+
export type { DonutGaugeProps, DonutGaugeRowItem } from './DonutGauge';
|
|
7
|
+
export { EventLog, AlertRowList, AlertLane } from './EventLog';
|
|
8
|
+
export type { AlertLaneItem } from './EventLog';
|
|
9
|
+
export { DashboardCard, DashboardGrid, DashboardSection, DashboardStatBar, DashboardLayout, } from './DashboardCard';
|
|
10
|
+
export type { DashboardCardProps } from './DashboardCard';
|
|
11
|
+
export type { StepStatus, StepItem, CalendarBadgeVariant, CalendarDayBadge, DonutGaugeSize, DashboardCardVariant, EventStatus, EventItem, AlertRowItem, StatBarItem, } from './types';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type StepStatus = "completed" | "active" | "pending" | "error";
|
|
2
|
+
export type StepItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
sublabel?: string;
|
|
6
|
+
status?: StepStatus;
|
|
7
|
+
};
|
|
8
|
+
export type CalendarBadgeVariant = "primary" | "warning" | "danger" | "success" | "neutral";
|
|
9
|
+
export type CalendarDayBadge = {
|
|
10
|
+
date: string;
|
|
11
|
+
count: number;
|
|
12
|
+
variant?: CalendarBadgeVariant;
|
|
13
|
+
};
|
|
14
|
+
export type DonutGaugeSize = "xs" | "sm" | "md" | "lg";
|
|
15
|
+
export type DashboardCardVariant = "default" | "accent" | "critical" | "warning" | "success";
|
|
16
|
+
export type EventStatus = "success" | "warning" | "danger" | "info" | "default";
|
|
17
|
+
export type EventItem = {
|
|
18
|
+
id?: string;
|
|
19
|
+
time: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
status?: EventStatus;
|
|
23
|
+
icon?: string;
|
|
24
|
+
actionLabel?: string;
|
|
25
|
+
onAction?: () => void;
|
|
26
|
+
};
|
|
27
|
+
export type AlertRowItem = {
|
|
28
|
+
label: string;
|
|
29
|
+
status?: EventStatus;
|
|
30
|
+
meta?: string;
|
|
31
|
+
time?: string;
|
|
32
|
+
icon?: string;
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
};
|
|
35
|
+
export type StatBarItem = {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string | number;
|
|
38
|
+
tone?: "slate" | "emerald" | "amber" | "red" | "blue";
|
|
39
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type AuditEventType = "edit" | "sync" | "create";
|
|
3
|
+
export type AuditTimelineItem = {
|
|
4
|
+
id?: string;
|
|
5
|
+
actor: string;
|
|
6
|
+
action: string;
|
|
7
|
+
time?: ReactNode;
|
|
8
|
+
detail?: ReactNode;
|
|
9
|
+
eventType?: AuditEventType;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export type AuditTimelineProps = {
|
|
13
|
+
items: AuditTimelineItem[];
|
|
14
|
+
sectionTitle?: string;
|
|
15
|
+
eventCountLabel?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
emptyMessage?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const AuditTimeline: ({ items, sectionTitle, eventCountLabel, ariaLabel, emptyMessage, className, }: AuditTimelineProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg";
|
|
3
|
+
export type AvatarVariant = "default" | "accent";
|
|
4
|
+
export type AvatarShape = "circle" | "rounded";
|
|
5
|
+
export type AvatarProps = {
|
|
6
|
+
src?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
fallback?: ReactNode;
|
|
9
|
+
size?: AvatarSize;
|
|
10
|
+
variant?: AvatarVariant;
|
|
11
|
+
shape?: AvatarShape;
|
|
12
|
+
className?: string;
|
|
13
|
+
imgProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt">;
|
|
14
|
+
};
|
|
15
|
+
export declare const Avatar: ({ src, alt, fallback, size, variant, shape, className, imgProps, }: AvatarProps) => import("react").JSX.Element;
|
|
16
|
+
export type AvatarGroupProps = {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
max?: number;
|
|
19
|
+
size?: AvatarSize;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const AvatarGroup: ({ children, max, size, className }: AvatarGroupProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CarouselProps = {
|
|
3
|
+
items: ReactNode[];
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
intervalMs?: number;
|
|
6
|
+
showDots?: boolean;
|
|
7
|
+
showArrows?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Carousel: ({ items, autoPlay, intervalMs, showDots, showArrows, className, }: CarouselProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LiveStatusMetricAccent = "default" | "success" | "warning" | "danger";
|
|
3
|
+
export type LiveStatusMetric = {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
/** Color del número. success = verde, warning = naranja, danger = rojo. */
|
|
8
|
+
accent?: LiveStatusMetricAccent;
|
|
9
|
+
};
|
|
10
|
+
export type LiveStatusNextDeparture = {
|
|
11
|
+
label?: string;
|
|
12
|
+
time: ReactNode;
|
|
13
|
+
countdown?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export type LiveStatusBarProps = {
|
|
16
|
+
liveLabel: string;
|
|
17
|
+
metrics: LiveStatusMetric[];
|
|
18
|
+
/** Bloque "Próxima salida · 06:00 · en 18 min" (opcional). */
|
|
19
|
+
nextDeparture?: LiveStatusNextDeparture;
|
|
20
|
+
className?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const LiveStatusBar: ({ liveLabel, metrics, nextDeparture, className, ariaLabel, }: LiveStatusBarProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type PassengerBoardCardProps = {
|
|
3
|
+
initials: string;
|
|
4
|
+
name: string;
|
|
5
|
+
subtitle?: ReactNode;
|
|
6
|
+
onboard?: boolean;
|
|
7
|
+
badge?: ReactNode;
|
|
8
|
+
/** Colores del avatar (mockup usa colores por persona). */
|
|
9
|
+
avatarBg?: string;
|
|
10
|
+
avatarFg?: string;
|
|
11
|
+
/** Toggle simple (modo legacy). */
|
|
12
|
+
onToggle?: () => void;
|
|
13
|
+
/** Quitar de la unidad (fila a bordo). */
|
|
14
|
+
onRemove?: () => void;
|
|
15
|
+
/** Subir a la unidad (fila pendiente). */
|
|
16
|
+
onBoard?: () => void;
|
|
17
|
+
/** Marcar ausente (fila pendiente). */
|
|
18
|
+
onAbsent?: () => void;
|
|
19
|
+
boardLabel?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const PassengerBoardCard: (props: PassengerBoardCardProps) => import("react").JSX.Element;
|