@sfperusacdev/sf-ui 0.2.9 → 0.3.1
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/dist/sf-ui.css +1 -1
- package/dist/sf-ui.js +5607 -2932
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +7 -7
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/theme/dark.css +13 -0
- package/dist/theme/densidad.css +291 -0
- package/dist/theme/neon.css +185 -0
- package/dist/theme/sf-tokens.css +18 -0
- package/dist/theme/temas.css +229 -0
- package/dist/types/src/components/advanced-inputs/CodeEditor.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapGeocoderBar.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapPicker.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapPickerMap.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/PhotoInput.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/RichTextEditor.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/SignaturePad.d.ts +1 -1
- package/dist/types/src/components/buttons/ActionButton.d.ts +1 -1
- package/dist/types/src/components/buttons/Button.d.ts +1 -1
- package/dist/types/src/components/buttons/ButtonGroup.d.ts +1 -1
- package/dist/types/src/components/buttons/FormActions.d.ts +1 -1
- package/dist/types/src/components/buttons/RowActions.d.ts +1 -1
- package/dist/types/src/components/buttons/ToolbarButton.d.ts +1 -1
- package/dist/types/src/components/cards/Badge.d.ts +7 -1
- package/dist/types/src/components/cards/EntityCard.d.ts +2 -2
- package/dist/types/src/components/cards/KPICard.d.ts +2 -2
- package/dist/types/src/components/cards/MetricBar.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/cards/MetricBar.d.ts +5 -3
- package/dist/types/src/components/cards/MetricBar.disposiciones.test.d.ts +1 -0
- package/dist/types/src/components/cards/ModuleCard.d.ts +2 -2
- package/dist/types/src/components/cards/ProfileCard.d.ts +27 -0
- package/dist/types/src/components/cards/ProfileCard.test.d.ts +1 -0
- package/dist/types/src/components/cards/QuickActionTile.d.ts +2 -2
- package/dist/types/src/components/cards/QuoteCard.d.ts +11 -0
- package/dist/types/src/components/cards/QuoteCard.test.d.ts +1 -0
- package/dist/types/src/components/cards/RecommendationCard.d.ts +1 -1
- package/dist/types/src/components/cards/SplitBar.d.ts +1 -1
- package/dist/types/src/components/cards/index.d.ts +6 -2
- package/dist/types/src/components/cards/types.d.ts +19 -0
- package/dist/types/src/components/charts/Chart.colores.test.d.ts +1 -0
- package/dist/types/src/components/charts/Chart.d.ts +1 -1
- package/dist/types/src/components/charts/ChartLegend.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/charts/ChartLegend.d.ts +22 -1
- package/dist/types/src/components/charts/DeviationBand.d.ts +1 -1
- package/dist/types/src/components/charts/DiagnosticRadar.d.ts +1 -1
- package/dist/types/src/components/charts/Sparkline.d.ts +1 -1
- package/dist/types/src/components/charts/chartUtils.d.ts +6 -0
- package/dist/types/src/components/charts/index.d.ts +2 -2
- package/dist/types/src/components/charts/types.d.ts +5 -0
- package/dist/types/src/components/dashboard/AlertSummaryList.d.ts +1 -1
- package/dist/types/src/components/dashboard/Calendar.d.ts +1 -1
- package/dist/types/src/components/dashboard/CardNote.d.ts +1 -1
- package/dist/types/src/components/dashboard/ComparisonTable.d.ts +1 -1
- package/dist/types/src/components/dashboard/DashboardBoard.d.ts +2 -2
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +5 -5
- package/dist/types/src/components/dashboard/DashboardPageFrame.d.ts +1 -1
- package/dist/types/src/components/dashboard/DashboardPlaceholder.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailPanel.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailSection.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailSidePanel.d.ts +1 -1
- package/dist/types/src/components/dashboard/DonutBreakdown.d.ts +1 -1
- package/dist/types/src/components/dashboard/DonutGauge.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/DonutGauge.d.ts +6 -2
- package/dist/types/src/components/dashboard/DonutGauge.degradado.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/DrilldownCards.d.ts +3 -3
- package/dist/types/src/components/dashboard/EventLog.d.ts +3 -3
- package/dist/types/src/components/dashboard/EvidenceFootnote.d.ts +1 -1
- package/dist/types/src/components/dashboard/MetricTile.d.ts +24 -0
- package/dist/types/src/components/dashboard/MetricTile.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Seleccion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StageFlow.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StageFlow.d.ts +43 -0
- package/dist/types/src/components/dashboard/StageFlow.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StatCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/StateChain.d.ts +28 -0
- package/dist/types/src/components/dashboard/StateChain.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StateChain.vertical.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Stepper.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Stepper.d.ts +3 -1
- package/dist/types/src/components/dashboard/Stepper.icono.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/TramoCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/index.d.ts +6 -0
- package/dist/types/src/components/dashboard/types.d.ts +4 -0
- package/dist/types/src/components/display/AuditTimeline.cadena.test.d.ts +1 -0
- package/dist/types/src/components/display/AuditTimeline.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/AuditTimeline.d.ts +7 -1
- package/dist/types/src/components/display/Avatar.d.ts +2 -2
- package/dist/types/src/components/display/Carousel.d.ts +1 -1
- package/dist/types/src/components/display/CheckList.d.ts +19 -0
- package/dist/types/src/components/display/CheckList.test.d.ts +1 -0
- package/dist/types/src/components/display/LiveChip.d.ts +1 -1
- package/dist/types/src/components/display/LiveStatusBar.d.ts +1 -1
- package/dist/types/src/components/display/MediaGallery.d.ts +41 -0
- package/dist/types/src/components/display/MediaGallery.test.d.ts +1 -0
- package/dist/types/src/components/display/MediaPanel.d.ts +4 -1
- package/dist/types/src/components/display/PassengerBoardCard.d.ts +1 -1
- package/dist/types/src/components/display/RecordList.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/RecordList.compacta.test.d.ts +1 -0
- package/dist/types/src/components/display/RecordList.d.ts +15 -2
- package/dist/types/src/components/display/Timeline.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/Timeline.columnas.test.d.ts +1 -0
- package/dist/types/src/components/display/Timeline.d.ts +22 -1
- package/dist/types/src/components/display/Timeline.horizontal.test.d.ts +1 -0
- package/dist/types/src/components/display/index.d.ts +8 -4
- package/dist/types/src/components/display/mediaGalleryFoco.d.ts +1 -0
- package/dist/types/src/components/display/mediaGalleryFoco.test.d.ts +1 -0
- package/dist/types/src/components/document-inputs/CurrencyInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/DniInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/OtpInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/PhoneInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/RucInput.d.ts +1 -1
- package/dist/types/src/components/feedback/AccessDenied.d.ts +1 -1
- package/dist/types/src/components/feedback/Alert.d.ts +1 -1
- package/dist/types/src/components/feedback/EmptyState.d.ts +1 -1
- package/dist/types/src/components/feedback/ErrorView.d.ts +1 -1
- package/dist/types/src/components/feedback/LoadingView.d.ts +1 -1
- package/dist/types/src/components/feedback/RetryBlock.d.ts +1 -1
- package/dist/types/src/components/feedback/Skeleton.d.ts +1 -1
- package/dist/types/src/components/feedback/Spinner.d.ts +1 -1
- package/dist/types/src/components/feedback/Toast.d.ts +1 -1
- package/dist/types/src/components/icons/AppsGridIcon.d.ts +1 -1
- package/dist/types/src/components/icons/SyncIcon.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncCardSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncSearchSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncSearchTableSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/BooleanCheckbox.d.ts +1 -1
- package/dist/types/src/components/inputs/CardSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/Checkbox.d.ts +1 -1
- package/dist/types/src/components/inputs/CheckboxGroup.d.ts +1 -1
- package/dist/types/src/components/inputs/DateInput.d.ts +1 -1
- package/dist/types/src/components/inputs/DatePicker.d.ts +1 -1
- package/dist/types/src/components/inputs/DisplayField.d.ts +1 -1
- package/dist/types/src/components/inputs/FieldLeadingIcon.d.ts +1 -1
- package/dist/types/src/components/inputs/FileInput.d.ts +1 -1
- package/dist/types/src/components/inputs/NumberInput.d.ts +1 -1
- package/dist/types/src/components/inputs/PasswordInput.d.ts +1 -1
- package/dist/types/src/components/inputs/RadioGroup.d.ts +1 -1
- package/dist/types/src/components/inputs/SearchSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/SearchTableSelect.bloqueadas.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.d.ts +19 -1
- package/dist/types/src/components/inputs/SearchTableSelect.seleccionPagina.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.soloSeleccionados.test.d.ts +1 -0
- package/dist/types/src/components/inputs/Select.d.ts +1 -1
- package/dist/types/src/components/inputs/SmartDateInput.d.ts +1 -1
- package/dist/types/src/components/inputs/SmartSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/TextArea.d.ts +1 -1
- package/dist/types/src/components/inputs/Toggle.d.ts +1 -1
- package/dist/types/src/components/inputs/ToggleCard.d.ts +1 -1
- package/dist/types/src/components/inputs/Transfer.d.ts +1 -1
- package/dist/types/src/components/inputs/TreeSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/YesNoSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/booleanControls.test.d.ts +1 -0
- package/dist/types/src/components/inputs/useBooleanField.d.ts +10 -0
- package/dist/types/src/components/interactive-inputs/AllocationBar.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/CardRadioGroup.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ColorInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/KeyValueInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/NumberStepper.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ProgressBar.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ProgressBarReadonly.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/RangeSliderInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/RatingInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SemanticSlider.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SliderInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SortableList.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/TagsInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/TemporalScrub.d.ts +1 -1
- package/dist/types/src/components/layout/Accordion.d.ts +1 -1
- package/dist/types/src/components/layout/AppShell.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/layout/AppShell.d.ts +8 -2
- package/dist/types/src/components/layout/Breadcrumb.d.ts +1 -1
- package/dist/types/src/components/layout/DateWeekStrip.d.ts +1 -1
- package/dist/types/src/components/layout/FilterBar.d.ts +5 -5
- package/dist/types/src/components/layout/FormWizard.d.ts +1 -1
- package/dist/types/src/components/layout/HeightProvider.d.ts +1 -1
- package/dist/types/src/components/layout/ItineraryEditor.d.ts +1 -1
- package/dist/types/src/components/layout/LiveRouteBoard.d.ts +1 -1
- package/dist/types/src/components/layout/MaestroLayout.d.ts +1 -1
- package/dist/types/src/components/layout/MasterDetailLayout.d.ts +2 -2
- package/dist/types/src/components/layout/PageContainer.d.ts +1 -1
- package/dist/types/src/components/layout/PageHeader.d.ts +1 -1
- package/dist/types/src/components/layout/ScrollArea.d.ts +1 -1
- package/dist/types/src/components/layout/Separator.d.ts +1 -1
- package/dist/types/src/components/layout/SidePanel.d.ts +1 -1
- package/dist/types/src/components/layout/SidePanelContainer.d.ts +1 -1
- package/dist/types/src/components/layout/SummaryItem.d.ts +1 -1
- package/dist/types/src/components/layout/TablePageLayout.d.ts +1 -1
- package/dist/types/src/components/layout/Tabs.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/layout/Tabs.d.ts +5 -2
- package/dist/types/src/components/layout/Tabs.test.d.ts +1 -0
- package/dist/types/src/components/layout/ThemePicker.d.ts +23 -0
- package/dist/types/src/components/layout/ThemePicker.test.d.ts +1 -0
- package/dist/types/src/components/layout/UnitSelector.d.ts +1 -1
- package/dist/types/src/components/layout/Visibility.d.ts +2 -2
- package/dist/types/src/components/layout/WeekdayToggleStrip.d.ts +1 -1
- package/dist/types/src/components/layout/WorkspaceHeader.d.ts +31 -0
- package/dist/types/src/components/layout/WorkspaceHeader.test.d.ts +1 -0
- package/dist/types/src/components/layout/index.d.ts +5 -1
- package/dist/types/src/components/maps/base/MapFrame.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapLegend.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapPointCard.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapStatus.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapToolbar.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapVehiclePopup.d.ts +1 -1
- package/dist/types/src/components/maps/forms/AddressSearchInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/AreaInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/CoordinatesInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/LocationPicker.d.ts +1 -1
- package/dist/types/src/components/maps/forms/RouteInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/ShapeInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/SmartMapInput.d.ts +1 -1
- package/dist/types/src/components/maps/renderers/google/GoogleMapRenderer.d.ts +1 -1
- package/dist/types/src/components/maps/renderers/leaflet/LeafletMapRenderer.d.ts +1 -1
- package/dist/types/src/components/maps/views/MapView.d.ts +1 -1
- package/dist/types/src/components/media-inputs/FileDropInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/MultiPhotoInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/PhotoCropEditor.d.ts +1 -1
- package/dist/types/src/components/media-inputs/PhotoCropInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/SmartMediaInput.d.ts +1 -1
- package/dist/types/src/components/overlays/ConfirmDialog.d.ts +1 -1
- package/dist/types/src/components/overlays/ContextMenu.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/overlays/ContextMenu.d.ts +26 -0
- package/dist/types/src/components/overlays/Drawer.d.ts +5 -2
- package/dist/types/src/components/overlays/DropdownMenu.d.ts +1 -1
- package/dist/types/src/components/overlays/DropdownMenu.estilos.test.d.ts +1 -0
- package/dist/types/src/components/overlays/Foco.test.d.ts +1 -0
- package/dist/types/src/components/overlays/MessageDialog.d.ts +1 -1
- package/dist/types/src/components/overlays/Modal.d.ts +4 -1
- package/dist/types/src/components/overlays/NotificationBell.d.ts +1 -1
- package/dist/types/src/components/overlays/OptionItem.d.ts +1 -1
- package/dist/types/src/components/overlays/Overlay.anidados.test.d.ts +1 -0
- package/dist/types/src/components/overlays/QRView.d.ts +1 -1
- package/dist/types/src/components/overlays/TabMenuOption.d.ts +1 -1
- package/dist/types/src/components/overlays/Tooltip.d.ts +1 -1
- package/dist/types/src/components/overlays/colorTexto.test.d.ts +1 -0
- package/dist/types/src/components/overlays/useFocoDeCapa.d.ts +8 -0
- package/dist/types/src/components/overlays/useOverlayStack.consulta.test.d.ts +1 -0
- package/dist/types/src/components/overlays/useOverlayStack.d.ts +13 -0
- package/dist/types/src/components/range-inputs/DateRangeFields.d.ts +1 -1
- package/dist/types/src/components/range-inputs/DateRangeInput.d.ts +1 -1
- package/dist/types/src/components/range-inputs/DateRangeUtcInput.d.ts +1 -1
- package/dist/types/src/components/range-inputs/TimeRangeInput.d.ts +1 -1
- package/dist/types/src/components/table/ActiveFiltersBar.d.ts +1 -1
- package/dist/types/src/components/table/AsyncCustomTable.d.ts +1 -1
- package/dist/types/src/components/table/CustomTable.ajuste.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.clavesHeredadas.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.columnasOcultas.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.d.ts +157 -1
- package/dist/types/src/components/table/CustomTable.defectosPublicados.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.densidad.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.densidad.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.dobleClic.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.estadoPorClave.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.exportacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.identidadRemoto.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.l3Regresiones.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.menuContextual.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.numeracion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.paginador.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.pie.test.d.ts +1 -0
- package/dist/types/src/components/table/EditableDataGrid.d.ts +1 -1
- package/dist/types/src/components/table/ExpandableTableSection.d.ts +1 -1
- package/dist/types/src/components/table/Pagination.d.ts +2 -0
- package/dist/types/src/components/table/RowActionsMenu.d.ts +1 -1
- package/dist/types/src/components/table/TableFiltersPanel.d.ts +1 -1
- package/dist/types/src/components/table/TableSortingPanel.d.ts +1 -1
- package/dist/types/src/components/table/customTableController.d.ts +20 -1
- package/dist/types/src/components/table/index.d.ts +2 -2
- package/dist/types/src/components/table/tableDevWarning.d.ts +2 -0
- package/dist/types/src/components/table/tableRowNumbers.d.ts +8 -0
- package/dist/types/src/components/visualization/DnaHelix.d.ts +33 -0
- package/dist/types/src/components/visualization/DnaHelix.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.d.ts +61 -0
- package/dist/types/src/components/visualization/IntegrationFlow.paneles.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.test.d.ts +1 -0
- package/dist/types/src/components/visualization/NetworkLegend.d.ts +1 -1
- package/dist/types/src/components/visualization/NetworkMap.d.ts +1 -1
- package/dist/types/src/components/visualization/OrgTree.d.ts +1 -1
- package/dist/types/src/components/visualization/RelationGraph.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/visualization/RelationGraph.d.ts +65 -0
- package/dist/types/src/components/visualization/RelationGraph.orbita.test.d.ts +1 -0
- package/dist/types/src/components/visualization/RelationGraph.test.d.ts +1 -0
- package/dist/types/src/components/visualization/SeleccionNodos.test.d.ts +1 -0
- package/dist/types/src/components/visualization/disponerOrbita.d.ts +29 -0
- package/dist/types/src/components/visualization/disponerRadial.d.ts +19 -0
- package/dist/types/src/components/visualization/index.d.ts +6 -0
- package/dist/types/src/providers/SfProvider.d.ts +1 -1
- package/dist/types/src/theme/paletaCategorias.test.d.ts +1 -0
- package/dist/types/src/theme/temas.test.d.ts +1 -0
- package/dist/types/src/utils/devWarning.d.ts +2 -0
- package/dist/types/src/utils/devWarning.test.d.ts +1 -0
- package/dist/types/src/utils/foco.d.ts +9 -0
- package/dist/types/src/utils/identidadColeccion.d.ts +11 -0
- package/dist/types/src/utils/identidadColeccion.test.d.ts +1 -0
- package/dist/types/src/utils/useAnchoContenedor.d.ts +22 -0
- package/dist/types/src/utils/useAnchoContenedor.test.d.ts +1 -0
- package/package.json +8 -5
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { ChartDataPoint, ChartSeries, ChartValueFormatter } from './types';
|
|
3
3
|
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)"];
|
|
4
|
+
/** Paleta de categorías (`--sf-cat-1` … `--sf-cat-10`): para distinguir dominios, etapas o dimensiones, que no
|
|
5
|
+
* son un estado. Se pasa como `color` de una serie, de un ítem de leyenda o de un acento; el valor lo decide el
|
|
6
|
+
* tema. No cambia el color por defecto de `Chart`, que sigue siendo `CHART_SERIES_COLORS`. */
|
|
7
|
+
export declare const CATEGORY_COLORS: readonly ["var(--sf-cat-1)", "var(--sf-cat-2)", "var(--sf-cat-3)", "var(--sf-cat-4)", "var(--sf-cat-5)", "var(--sf-cat-6)", "var(--sf-cat-7)", "var(--sf-cat-8)", "var(--sf-cat-9)", "var(--sf-cat-10)"];
|
|
8
|
+
/** Color de la categoría en la posición `index` (0-based); pasada la décima, la paleta vuelve a empezar. */
|
|
9
|
+
export declare const categoryColor: (index: number) => "var(--sf-cat-1)" | "var(--sf-cat-2)" | "var(--sf-cat-3)" | "var(--sf-cat-4)" | "var(--sf-cat-5)" | "var(--sf-cat-6)" | "var(--sf-cat-7)" | "var(--sf-cat-8)" | "var(--sf-cat-9)" | "var(--sf-cat-10)";
|
|
4
10
|
export declare const resolveSeriesColor: (series: {
|
|
5
11
|
color?: string;
|
|
6
12
|
}, index: number) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { Chart } from './Chart';
|
|
2
2
|
export type { ChartProps } from './Chart';
|
|
3
3
|
export { ChartLegend } from './ChartLegend';
|
|
4
|
-
export type { ChartLegendItem, ChartLegendProps } from './ChartLegend';
|
|
4
|
+
export type { ChartLegendItem, ChartLegendOrientation, ChartLegendProps } from './ChartLegend';
|
|
5
5
|
export { Sparkline } from './Sparkline';
|
|
6
6
|
export { DiagnosticRadar } from './DiagnosticRadar';
|
|
7
7
|
export { DeviationBand } from './DeviationBand';
|
|
8
|
-
export { CHART_SERIES_COLORS, resolveSeriesColor, buildDefaultFormatter, toStacked100Data, rawValueKey } from './chartUtils';
|
|
8
|
+
export { CHART_SERIES_COLORS, CATEGORY_COLORS, categoryColor, resolveSeriesColor, buildDefaultFormatter, toStacked100Data, rawValueKey } from './chartUtils';
|
|
9
9
|
export type { BaseChartProps, ChartDataPoint, ChartOrientation, ChartReferenceLine, ChartSeries, ChartStacking, ChartType, ChartValueFormatter, DiagnosticRadarProps, DeviationBandDirection, DeviationBandProps, RadarMetric, SparklineProps, } from './types';
|
|
@@ -16,6 +16,9 @@ export type ChartSeries = {
|
|
|
16
16
|
/** Id de grupo de apilado explícito, para mezclar series apiladas y sueltas en un mismo chart.
|
|
17
17
|
* Si se omite y `stacking` es "stacked"/"stacked-100", todas las series comparten un solo stack. */
|
|
18
18
|
stackId?: string;
|
|
19
|
+
/** Solo en `line`: un color por punto, en el orden de `data`. Los puntos toman su color y la línea pasa por ellos
|
|
20
|
+
* en degradado. */
|
|
21
|
+
pointColors?: string[];
|
|
19
22
|
};
|
|
20
23
|
export type ChartDataPoint = Record<string, string | number | null | undefined>;
|
|
21
24
|
/** Formatea un valor numérico de un chart (eje, tooltip o label de barra). `key` es la key de la
|
|
@@ -67,6 +70,8 @@ export type BaseChartProps = {
|
|
|
67
70
|
* (comportamiento de Recharts: no es un hit-test exacto de la barra/punto individual, es el punto
|
|
68
71
|
* activo del eje de categorías en esa posición). `series` es la primera serie definida, como referencia. */
|
|
69
72
|
onDataPointClick?: (point: ChartDataPoint, series: ChartSeries) => void;
|
|
73
|
+
/** Barras apiladas: "all" (por defecto) redondea cada tramo; "top" solo el extremo de la pila. */
|
|
74
|
+
stackRadius?: "all" | "top";
|
|
70
75
|
};
|
|
71
76
|
export type ChartProps = BaseChartProps & {
|
|
72
77
|
type: ChartType;
|
|
@@ -38,5 +38,5 @@ type AlertSummaryListProps = {
|
|
|
38
38
|
* Distinto de `AlertRowList`: esa es una bitácora de eventos (icono + hora + meta);
|
|
39
39
|
* esta es un resumen de conteos/alertas con el número como protagonista.
|
|
40
40
|
*/
|
|
41
|
-
export declare const AlertSummaryList: ({ items, className, density, emptyMessage, showIcon, showChevron, }: AlertSummaryListProps) => import(
|
|
41
|
+
export declare const AlertSummaryList: ({ items, className, density, emptyMessage, showIcon, showChevron, }: AlertSummaryListProps) => import('react').JSX.Element;
|
|
42
42
|
export {};
|
|
@@ -6,5 +6,5 @@ type CalendarProps = {
|
|
|
6
6
|
compact?: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const Calendar: ({ value, onChange, badges, compact, className }: CalendarProps) => import(
|
|
9
|
+
export declare const Calendar: ({ value, onChange, badges, compact, className }: CalendarProps) => import('react').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -10,4 +10,4 @@ export type CardNoteProps = {
|
|
|
10
10
|
* Nota al pie de una tarjeta o de un panel: explica cómo leer el dato con el mismo tintado que el pie de
|
|
11
11
|
* `MetricBarList`. Para procedencia de datos (período, fuentes, confianza) está `EvidenceFootnote`.
|
|
12
12
|
*/
|
|
13
|
-
export declare const CardNote: ({ text, tone, className }: CardNoteProps) => import(
|
|
13
|
+
export declare const CardNote: ({ text, tone, className }: CardNoteProps) => import('react').JSX.Element;
|
|
@@ -21,4 +21,4 @@ export type ComparisonTableProps = {
|
|
|
21
21
|
* Distinto de una tabla genérica: la columna de desviación es siempre calculada, nunca un dato que el
|
|
22
22
|
* consumidor tenga que traer aparte.
|
|
23
23
|
*/
|
|
24
|
-
export declare const ComparisonTable: ({ rows, planLabel, realLabel, className }: ComparisonTableProps) => import(
|
|
24
|
+
export declare const ComparisonTable: ({ rows, planLabel, realLabel, className }: ComparisonTableProps) => import('react').JSX.Element;
|
|
@@ -27,11 +27,11 @@ export type DashboardBoardProps = {
|
|
|
27
27
|
* (principal y secundario) con la proporción 2/3 · 1/3 cuando la fila tiene dos bloques. Va dentro de
|
|
28
28
|
* `DashboardLayout` o de `DashboardPageFrame`, que ponen el espacio vertical entre piezas.
|
|
29
29
|
*/
|
|
30
|
-
export declare const DashboardBoard: ({ kpis, notes, hidden, hiddenTitle, detail, primary, secondary, }: DashboardBoardProps) => import(
|
|
30
|
+
export declare const DashboardBoard: ({ kpis, notes, hidden, hiddenTitle, detail, primary, secondary, }: DashboardBoardProps) => import('react').JSX.Element;
|
|
31
31
|
export type DashboardCardRowProps = {
|
|
32
32
|
/** Tarjetas de la fila; los `null`/`false` se descartan. Con tres o más van a 3 columnas, si no a 2. */
|
|
33
33
|
children: ReactNode[];
|
|
34
34
|
className?: string;
|
|
35
35
|
};
|
|
36
36
|
/** Tarjetas del mismo alto dentro de una sección (p. ej. Sexo · Edad · Antigüedad). */
|
|
37
|
-
export declare const DashboardCardRow: ({ children, className }: DashboardCardRowProps) => import(
|
|
37
|
+
export declare const DashboardCardRow: ({ children, className }: DashboardCardRowProps) => import('react').JSX.Element;
|
|
@@ -39,7 +39,7 @@ export type DashboardCardProps = {
|
|
|
39
39
|
className?: string;
|
|
40
40
|
children?: ReactNode;
|
|
41
41
|
};
|
|
42
|
-
export declare const DashboardCard: ({ title, subtitle, icon, headerAction, variant, span, padding, look, headerSize, headerWrap, headerDivider, footer, state, loadingMessage, errorMessage, emptyMessage, onRetry, retryLabel, minHeight, bodyOverflow, className, children, }: DashboardCardProps) => import(
|
|
42
|
+
export declare const DashboardCard: ({ title, subtitle, icon, headerAction, variant, span, padding, look, headerSize, headerWrap, headerDivider, footer, state, loadingMessage, errorMessage, emptyMessage, onRetry, retryLabel, minHeight, bodyOverflow, className, children, }: DashboardCardProps) => import('react').JSX.Element;
|
|
43
43
|
type DashboardGridProps = {
|
|
44
44
|
cols?: 2 | 3 | 4 | 5 | 6;
|
|
45
45
|
gap?: "sm" | "md" | "lg";
|
|
@@ -53,7 +53,7 @@ type DashboardGridProps = {
|
|
|
53
53
|
className?: string;
|
|
54
54
|
children?: ReactNode;
|
|
55
55
|
};
|
|
56
|
-
export declare const DashboardGrid: ({ cols, gap, alignItems, minColWidth, className, children }: DashboardGridProps) => import(
|
|
56
|
+
export declare const DashboardGrid: ({ cols, gap, alignItems, minColWidth, className, children }: DashboardGridProps) => import('react').JSX.Element;
|
|
57
57
|
type DashboardSectionProps = {
|
|
58
58
|
title: string;
|
|
59
59
|
subtitle?: string;
|
|
@@ -69,12 +69,12 @@ type DashboardSectionProps = {
|
|
|
69
69
|
className?: string;
|
|
70
70
|
children?: ReactNode;
|
|
71
71
|
};
|
|
72
|
-
export declare const DashboardSection: ({ title, subtitle, action, icon, iconSize, variant, className, children, }: DashboardSectionProps) => import(
|
|
72
|
+
export declare const DashboardSection: ({ title, subtitle, action, icon, iconSize, variant, className, children, }: DashboardSectionProps) => import('react').JSX.Element;
|
|
73
73
|
type DashboardStatBarProps = {
|
|
74
74
|
items: StatBarItem[];
|
|
75
75
|
className?: string;
|
|
76
76
|
};
|
|
77
|
-
export declare const DashboardStatBar: ({ items, className }: DashboardStatBarProps) => import(
|
|
77
|
+
export declare const DashboardStatBar: ({ items, className }: DashboardStatBarProps) => import('react').JSX.Element;
|
|
78
78
|
type DashboardLayoutProps = {
|
|
79
79
|
header?: ReactNode;
|
|
80
80
|
sidebar?: ReactNode;
|
|
@@ -82,5 +82,5 @@ type DashboardLayoutProps = {
|
|
|
82
82
|
className?: string;
|
|
83
83
|
children?: ReactNode;
|
|
84
84
|
};
|
|
85
|
-
export declare const DashboardLayout: ({ header, sidebar, statBar, className, children }: DashboardLayoutProps) => import(
|
|
85
|
+
export declare const DashboardLayout: ({ header, sidebar, statBar, className, children }: DashboardLayoutProps) => import('react').JSX.Element;
|
|
86
86
|
export {};
|
|
@@ -58,4 +58,4 @@ export type DashboardPageFrameProps = {
|
|
|
58
58
|
* botón de actualizar y el filtro de rango de fechas con borrador y validación. Los hijos van dentro de
|
|
59
59
|
* `DashboardLayout`, así que `DashboardBoard` encaja directamente.
|
|
60
60
|
*/
|
|
61
|
-
export declare const DashboardPageFrame: ({ title, subtitle, mode, range, onApply, fromLabel, toLabel, dayLabel, compareFieldLabel, validate, error, loading, stale, updatedAt, live, cutoffLabel, onRefresh, refreshLabel, compareLabel, pendingLabel, applyLabel, filterAriaLabel, slowAfterSeconds, className, children, }: DashboardPageFrameProps) => import(
|
|
61
|
+
export declare const DashboardPageFrame: ({ title, subtitle, mode, range, onApply, fromLabel, toLabel, dayLabel, compareFieldLabel, validate, error, loading, stale, updatedAt, live, cutoffLabel, onRefresh, refreshLabel, compareLabel, pendingLabel, applyLabel, filterAriaLabel, slowAfterSeconds, className, children, }: DashboardPageFrameProps) => import('react').JSX.Element;
|
|
@@ -15,4 +15,4 @@ export type DashboardPlaceholderProps = {
|
|
|
15
15
|
* pieza (la de `shape="kpi"` mide lo mismo que `KPICard size="lg"`); en error muestra el mensaje y el botón de
|
|
16
16
|
* reintento de `DashboardCard`.
|
|
17
17
|
*/
|
|
18
|
-
export declare const DashboardPlaceholder: ({ title, shape, state, errorMessage, onRetry, className, }: DashboardPlaceholderProps) => import(
|
|
18
|
+
export declare const DashboardPlaceholder: ({ title, shape, state, errorMessage, onRetry, className, }: DashboardPlaceholderProps) => import('react').JSX.Element;
|
|
@@ -35,4 +35,4 @@ export type DetailPanelProps<Row> = {
|
|
|
35
35
|
* con su acción, las primeras filas en una `CustomTable` y la exportación completa a Excel. Se abre desde
|
|
36
36
|
* `DrilldownKPICard`, `DrilldownAlertList` o cualquier pieza que llame a `detail.toggle(spec)`.
|
|
37
37
|
*/
|
|
38
|
-
export declare const DetailPanel: <Row>({ detail, rowMapper, subtitle, countLabel, previewRows, previewNote, totalNote, emptyMessage, closeLabel, exportLabel, exportFilename, actions, }: DetailPanelProps<Row>) => import(
|
|
38
|
+
export declare const DetailPanel: <Row>({ detail, rowMapper, subtitle, countLabel, previewRows, previewNote, totalNote, emptyMessage, closeLabel, exportLabel, exportFilename, actions, }: DetailPanelProps<Row>) => import('react').JSX.Element | null;
|
|
@@ -23,4 +23,4 @@ export type DetailSectionProps = {
|
|
|
23
23
|
/** "md" (por defecto) o "sm" = padding y fuente menores para paneles laterales de 380px. */
|
|
24
24
|
density?: DetailSectionDensity;
|
|
25
25
|
};
|
|
26
|
-
export declare const DetailSection: ({ title, icon, tone, rows, children, className, density }: DetailSectionProps) => import(
|
|
26
|
+
export declare const DetailSection: ({ title, icon, tone, rows, children, className, density }: DetailSectionProps) => import('react').JSX.Element;
|
|
@@ -35,4 +35,4 @@ export type DetailSidePanelProps = {
|
|
|
35
35
|
width?: number | string;
|
|
36
36
|
className?: string;
|
|
37
37
|
};
|
|
38
|
-
export declare const DetailSidePanel: ({ title, onClose, headerAction, icon, iconSize, heading, badge, rows, align, actions, sectionTitle, items, width, className, }: DetailSidePanelProps) => import(
|
|
38
|
+
export declare const DetailSidePanel: ({ title, onClose, headerAction, icon, iconSize, heading, badge, rows, align, actions, sectionTitle, items, width, className, }: DetailSidePanelProps) => import('react').JSX.Element;
|
|
@@ -31,4 +31,4 @@ export type DonutBreakdownProps = {
|
|
|
31
31
|
* cómo se reparte un total entre categorías. SVG puro, mismo patrón de arcos que `DonutGauge`,
|
|
32
32
|
* sin dependencia nueva.
|
|
33
33
|
*/
|
|
34
|
-
export declare const DonutBreakdown: ({ segments, centerValue, centerLabel, size, strokeWidth, showLegend, legendVariant, formatPct, className, }: DonutBreakdownProps) => import(
|
|
34
|
+
export declare const DonutBreakdown: ({ segments, centerValue, centerLabel, size, strokeWidth, showLegend, legendVariant, formatPct, className, }: DonutBreakdownProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,14 +14,18 @@ export type DonutGaugeProps = {
|
|
|
14
14
|
showValue?: boolean;
|
|
15
15
|
/** Grosor del anillo. Se acota a un quinto del diámetro para que el centro siempre tenga hueco. */
|
|
16
16
|
strokeWidth?: number;
|
|
17
|
+
/** Trazo en degradado del primer color al segundo (gana sobre `color` y los umbrales). */
|
|
18
|
+
gradient?: [string, string];
|
|
19
|
+
/** Color de la etiqueta bajo la dona (ej. una calificación en verde). */
|
|
20
|
+
labelColor?: string;
|
|
17
21
|
className?: string;
|
|
18
22
|
};
|
|
19
|
-
export declare const DonutGauge: ({ value, label, sublabel, size, color, thresholds, inverse, showValue, strokeWidth, className, }: DonutGaugeProps) => import(
|
|
23
|
+
export declare const DonutGauge: ({ value, label, sublabel, size, color, thresholds, inverse, showValue, strokeWidth, gradient, labelColor, className, }: DonutGaugeProps) => import('react').JSX.Element;
|
|
20
24
|
export type DonutGaugeRowItem = Omit<DonutGaugeProps, "className">;
|
|
21
25
|
type DonutGaugeRowProps = {
|
|
22
26
|
gauges: DonutGaugeRowItem[];
|
|
23
27
|
size?: DonutGaugeSize;
|
|
24
28
|
className?: string;
|
|
25
29
|
};
|
|
26
|
-
export declare const DonutGaugeRow: ({ gauges, size, className }: DonutGaugeRowProps) => import(
|
|
30
|
+
export declare const DonutGaugeRow: ({ gauges, size, className }: DonutGaugeRowProps) => import('react').JSX.Element;
|
|
27
31
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -22,7 +22,7 @@ export type DrilldownKPICardProps<Row> = {
|
|
|
22
22
|
spec?: DetailSpec<Row> | null;
|
|
23
23
|
};
|
|
24
24
|
/** `KPICard` de tablero que abre su detalle en el `DetailPanel` compartido y se marca cuando está abierto. */
|
|
25
|
-
export declare const DrilldownKPICard: <Row>({ label, value, sublabel, icon, accentTone, primary, trend, trendDirection, trendLabel, detail, spec, }: DrilldownKPICardProps<Row>) => import(
|
|
25
|
+
export declare const DrilldownKPICard: <Row>({ label, value, sublabel, icon, accentTone, primary, trend, trendDirection, trendLabel, detail, spec, }: DrilldownKPICardProps<Row>) => import('react').JSX.Element;
|
|
26
26
|
export type DrilldownAlertItem<Row> = {
|
|
27
27
|
label: string;
|
|
28
28
|
/** Valor ya formateado; con `count` en 0 la fila toma `zeroTone`. */
|
|
@@ -40,7 +40,7 @@ export type DrilldownAlertListProps<Row> = {
|
|
|
40
40
|
emptyMessage?: ReactNode;
|
|
41
41
|
};
|
|
42
42
|
/** Lista de pendientes en una tarjeta: cada fila abre su detalle en el `DetailPanel` compartido. */
|
|
43
|
-
export declare const DrilldownAlertList: <Row>({ items, detail, zeroTone, emptyMessage, }: DrilldownAlertListProps<Row>) => import(
|
|
43
|
+
export declare const DrilldownAlertList: <Row>({ items, detail, zeroTone, emptyMessage, }: DrilldownAlertListProps<Row>) => import('react').JSX.Element;
|
|
44
44
|
export type DetailPreviewItem = {
|
|
45
45
|
key: string;
|
|
46
46
|
/** Código o documento, en monoespaciada delante del texto principal. */
|
|
@@ -65,4 +65,4 @@ export type DetailPreviewListProps = {
|
|
|
65
65
|
openLabel?: string;
|
|
66
66
|
};
|
|
67
67
|
/** Las primeras filas de una lista con su total y el acceso al detalle completo. */
|
|
68
|
-
export declare const DetailPreviewList: ({ items, total, totalLabel, unit, previewCount, emptyText, onOpen, openLabel, }: DetailPreviewListProps) => import(
|
|
68
|
+
export declare const DetailPreviewList: ({ items, total, totalLabel, unit, previewCount, emptyText, onOpen, openLabel, }: DetailPreviewListProps) => import('react').JSX.Element;
|
|
@@ -10,7 +10,7 @@ type EventLogProps = {
|
|
|
10
10
|
onViewAll?: () => void;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const EventLog: ({ events, title, maxHeight, compact, showTimeline, viewAllLabel, onViewAll, className, }: EventLogProps) => import(
|
|
13
|
+
export declare const EventLog: ({ events, title, maxHeight, compact, showTimeline, viewAllLabel, onViewAll, className, }: EventLogProps) => import('react').JSX.Element;
|
|
14
14
|
type AlertRowListProps = {
|
|
15
15
|
items: AlertRowItem[];
|
|
16
16
|
maxHeight?: number;
|
|
@@ -25,7 +25,7 @@ type AlertRowListProps = {
|
|
|
25
25
|
/** Contenido cuando `items` está vacío. Por defecto "Sin alertas" (acabado actual). */
|
|
26
26
|
emptyMessage?: ReactNode;
|
|
27
27
|
};
|
|
28
|
-
export declare const AlertRowList: ({ items, maxHeight, className, columns, headerLabels, density, emptyMessage, }: AlertRowListProps) => import(
|
|
28
|
+
export declare const AlertRowList: ({ items, maxHeight, className, columns, headerLabels, density, emptyMessage, }: AlertRowListProps) => import('react').JSX.Element;
|
|
29
29
|
export type AlertLaneItem = {
|
|
30
30
|
id?: string;
|
|
31
31
|
title: ReactNode;
|
|
@@ -42,5 +42,5 @@ type AlertLaneProps = {
|
|
|
42
42
|
className?: string;
|
|
43
43
|
};
|
|
44
44
|
/** Alertas como tarjetas horizontales con ícono + CTA (diseño torre/mockup). */
|
|
45
|
-
export declare const AlertLane: ({ items, className }: AlertLaneProps) => import(
|
|
45
|
+
export declare const AlertLane: ({ items, className }: AlertLaneProps) => import('react').JSX.Element;
|
|
46
46
|
export {};
|
|
@@ -16,4 +16,4 @@ export type EvidenceFootnoteProps = {
|
|
|
16
16
|
* fuentes, confianza, última actualización). Pensado como `footer` de `DashboardCard`/`KPICard` o
|
|
17
17
|
* suelto al pie de cualquier tarjeta analítica, para no improvisar este patrón cada vez.
|
|
18
18
|
*/
|
|
19
|
-
export declare const EvidenceFootnote: ({ items, confidence, updatedAt, className }: EvidenceFootnoteProps) => import(
|
|
19
|
+
export declare const EvidenceFootnote: ({ items, confidence, updatedAt, className }: EvidenceFootnoteProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type MetricTileLayout = "leading" | "centered";
|
|
3
|
+
export type MetricTileProps = {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
sublabel?: ReactNode;
|
|
7
|
+
/** Rótulo pequeño encima de todo (ej. «Estado actual»). */
|
|
8
|
+
eyebrow?: ReactNode;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
/** Color de categoría o de tono: tiñe el fondo, el borde y el ícono. Por defecto `--sf-accent`. */
|
|
11
|
+
color?: string;
|
|
12
|
+
/** Color de la cifra. Por defecto, en `leading` el mismo `color`; en `centered`, `--sf-success`. */
|
|
13
|
+
valueColor?: string;
|
|
14
|
+
/** `leading`: ícono a la izquierda, cifra arriba y etiqueta debajo. `centered`: ícono arriba, etiqueta y cifra
|
|
15
|
+
* centradas. */
|
|
16
|
+
layout?: MetricTileLayout;
|
|
17
|
+
/** Solo en `centered`: "value-first" pone la cifra antes de la etiqueta (ej. tipos de archivo). */
|
|
18
|
+
order?: "label-first" | "value-first";
|
|
19
|
+
/** Con `onClick` la baldosa es un botón (aria-pressed según `selected`). */
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const MetricTile: ({ label, value, sublabel, eyebrow, icon, color, valueColor, layout, order, onClick, selected, className, }: MetricTileProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeVariant } from '../cards/types';
|
|
3
|
+
export type StageFlowEffect = {
|
|
4
|
+
label: string;
|
|
5
|
+
variant?: BadgeVariant;
|
|
6
|
+
};
|
|
7
|
+
export type StageFlowItem = {
|
|
8
|
+
/** Identidad de la etapa, única en `items`. Es la que recibe `onSelect`. */
|
|
9
|
+
key: string;
|
|
10
|
+
title: string;
|
|
11
|
+
/** Rótulo superior (ej. una fecha). */
|
|
12
|
+
eyebrow?: string;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
/** Cifra grande de la etapa (ej. un conteo de un embudo). */
|
|
15
|
+
value?: string | number;
|
|
16
|
+
note?: string;
|
|
17
|
+
/** Efecto de la etapa (ej. "+ Competencia"), pintado con `Badge`. */
|
|
18
|
+
effect?: StageFlowEffect;
|
|
19
|
+
/** Color de categoría de la etapa (borde y ícono). Por defecto, la paleta de categorías en orden. */
|
|
20
|
+
color?: string;
|
|
21
|
+
};
|
|
22
|
+
export type StageFlowProps = {
|
|
23
|
+
items: StageFlowItem[];
|
|
24
|
+
/** Etapa seleccionada, controlada por el host. Una clave que no existe no marca nada. */
|
|
25
|
+
selectedKey?: string;
|
|
26
|
+
/** Pide seleccionar una etapa (no significa abrirla). Sin él no hay controles. */
|
|
27
|
+
onSelect?: (key: string) => void;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
emptyMessage?: string;
|
|
30
|
+
/** `card` (por defecto): tarjetas con borde superior del color. `ring`: sin tarjeta; ícono en anillo grande con halo,
|
|
31
|
+
* rótulo en el color, título centrado y el efecto como pastilla rellena del color (su `variant` no se usa). */
|
|
32
|
+
variant?: StageFlowVariant;
|
|
33
|
+
/** Ancho mínimo por etapa, en rem, para ir en fila. Por defecto 10 en `card` y 6.5 en `ring`. */
|
|
34
|
+
minStageWidth?: number;
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
export type StageFlowVariant = "card" | "ring";
|
|
38
|
+
/**
|
|
39
|
+
* Etapas en tarjetas unidas por flechas, en el orden recibido. La flecha es decorativa y solo dice «la siguiente en
|
|
40
|
+
* este orden»: no es tiempo, causa ni avance (eso es `Stepper`). En fila si el contenedor da al menos 10rem por etapa;
|
|
41
|
+
* si no, en columna.
|
|
42
|
+
*/
|
|
43
|
+
export declare const StageFlow: ({ items, selectedKey, onSelect, ariaLabel, emptyMessage, variant, minStageWidth, className, }: StageFlowProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,5 +17,5 @@ type StatCardProps = {
|
|
|
17
17
|
* icono con halo, valor grande y label. El halo se deriva del acento con
|
|
18
18
|
* color-mix para no pedir dos colores.
|
|
19
19
|
*/
|
|
20
|
-
export declare const StatCard: ({ value, label, accent, icon, size, className }: StatCardProps) => import(
|
|
20
|
+
export declare const StatCard: ({ value, label, accent, icon, size, className }: StatCardProps) => import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type StateChainItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
/** Color propio del estado. Por defecto, la paleta de categorías en orden. */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** Texto bajo el estado (ej. «Desde 12 Mar 2021»). */
|
|
9
|
+
caption?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/** `dot`: círculo relleno con el nombre debajo. `ring`: anillo grande con ícono y nombre dentro. */
|
|
12
|
+
export type StateChainVariant = "dot" | "ring";
|
|
13
|
+
export type StateChainProps = {
|
|
14
|
+
items: StateChainItem[];
|
|
15
|
+
/** Estado actual: se marca con `aria-current` y, en `ring`, con una insignia de verificación. */
|
|
16
|
+
currentKey?: string;
|
|
17
|
+
variant?: StateChainVariant;
|
|
18
|
+
/** Con `onSelect` cada estado es un botón (aria-pressed según `selectedKey`). */
|
|
19
|
+
onSelect?: (key: string) => void;
|
|
20
|
+
selectedKey?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Cadena de estados (máquina de estados): cada estado con su color y una flecha hacia el siguiente. No es
|
|
26
|
+
* un proceso con pasos completados (para eso, `Stepper`).
|
|
27
|
+
*/
|
|
28
|
+
export declare const StateChain: ({ items, currentKey, variant, onSelect, selectedKey, ariaLabel, className, }: StateChainProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,7 +8,9 @@ type StepperProps = {
|
|
|
8
8
|
/** Subrayado de acento en el paso activo (wizard CEO / transporte). */
|
|
9
9
|
variant?: StepperVariant;
|
|
10
10
|
onStepClick?: (key: string) => void;
|
|
11
|
+
/** Nombre accesible de la lista de pasos. Por defecto "Progreso". */
|
|
12
|
+
ariaLabel?: string;
|
|
11
13
|
className?: string;
|
|
12
14
|
};
|
|
13
|
-
export declare const Stepper: ({ steps, activeKey, orientation, size, variant, onStepClick, className, }: StepperProps) => import(
|
|
15
|
+
export declare const Stepper: ({ steps, activeKey, orientation, size, variant, onStepClick, ariaLabel, className, }: StepperProps) => import('react').JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,5 +17,5 @@ type TramoCardProps = {
|
|
|
17
17
|
* header gris con icono direccional, título, hora y cupos; cuerpo libre.
|
|
18
18
|
* Estilos en sf-dashboard.css — sin clases arbitrarias de Tailwind.
|
|
19
19
|
*/
|
|
20
|
-
export declare const TramoCard: ({ tipo, hora, cupos, apto, aptoLabel, children, }: TramoCardProps) => import(
|
|
20
|
+
export declare const TramoCard: ({ tipo, hora, cupos, apto, aptoLabel, children, }: TramoCardProps) => import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -4,6 +4,10 @@ export { TramoCard } from './TramoCard';
|
|
|
4
4
|
export type { TramoCardTipo } from './TramoCard';
|
|
5
5
|
export { StatCard } from './StatCard';
|
|
6
6
|
export type { StatCardSize } from './StatCard';
|
|
7
|
+
export { StateChain } from './StateChain';
|
|
8
|
+
export type { StateChainItem, StateChainProps, StateChainVariant } from './StateChain';
|
|
9
|
+
export { MetricTile } from './MetricTile';
|
|
10
|
+
export type { MetricTileLayout, MetricTileProps } from './MetricTile';
|
|
7
11
|
export { Calendar } from './Calendar';
|
|
8
12
|
export { MONTH_NAMES, WEEKDAY_LABELS, toLocalYMD, parseYMD, buildMonthGrid } from './calendarUtils';
|
|
9
13
|
export { DonutGauge, DonutGaugeRow } from './DonutGauge';
|
|
@@ -37,3 +41,5 @@ export type { DrilldownKPICardProps, DrilldownAlertItem, DrilldownAlertListProps
|
|
|
37
41
|
export { DetailSection } from './DetailSection';
|
|
38
42
|
export type { DetailSectionProps, DetailSectionRow, DetailSectionTone, DetailSectionDensity } from './DetailSection';
|
|
39
43
|
export type { StepStatus, StepItem, CalendarBadgeVariant, CalendarDayBadge, DonutGaugeSize, DashboardCardVariant, DashboardCardState, EventStatus, EventItem, AlertRowItem, AlertRowSeverity, AlertRowListHeaderLabels, AlertActionItem, AlertDensity, StatBarItem, } from './types';
|
|
44
|
+
export { StageFlow } from './StageFlow';
|
|
45
|
+
export type { StageFlowEffect, StageFlowItem, StageFlowProps, StageFlowVariant } from './StageFlow';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
/** "warning" y "opportunity" son aditivos (ej. cadena de decisiones tipo Domino Flow: un paso puede
|
|
2
3
|
* señalar un riesgo detectado o una oportunidad, no solo "hecho/pendiente/error"). */
|
|
3
4
|
export type StepStatus = "completed" | "active" | "pending" | "error" | "warning" | "opportunity";
|
|
@@ -9,6 +10,9 @@ export type StepItem = {
|
|
|
9
10
|
/** Valor o consecuencia de este paso (ej. "EXCEL", "+20 usuarios") — se pinta junto al label cuando
|
|
10
11
|
* viene. Sin `value`, el render es idéntico al de antes. */
|
|
11
12
|
value?: string;
|
|
13
|
+
/** Ícono decorativo en lugar del número. El estado se mantiene visible (marca en la esquina para completado, error,
|
|
14
|
+
* advertencia y oportunidad; anillo para el activo) y se agrega al nombre accesible del paso. */
|
|
15
|
+
icon?: ReactNode;
|
|
12
16
|
};
|
|
13
17
|
export type CalendarBadgeVariant = "primary" | "warning" | "danger" | "success" | "neutral";
|
|
14
18
|
export type CalendarDayBadge = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,13 +8,19 @@ export type AuditTimelineItem = {
|
|
|
8
8
|
detail?: ReactNode;
|
|
9
9
|
eventType?: AuditEventType;
|
|
10
10
|
icon?: ReactNode;
|
|
11
|
+
/** Solo en `variant="chain"`: color del paso. Por defecto, la paleta de categorías en orden. */
|
|
12
|
+
color?: string;
|
|
11
13
|
};
|
|
14
|
+
/** `default`: historial de movimientos (publicado). `chain`: cadena de pasos con ícono grande en círculo de color,
|
|
15
|
+
* `actor` como título del paso, `action` y `detail` debajo, la hora a la derecha y una flecha de color entre pasos. */
|
|
16
|
+
export type AuditTimelineVariant = "default" | "chain";
|
|
12
17
|
export type AuditTimelineProps = {
|
|
13
18
|
items: AuditTimelineItem[];
|
|
14
19
|
sectionTitle?: string;
|
|
15
20
|
eventCountLabel?: string;
|
|
16
21
|
ariaLabel?: string;
|
|
17
22
|
emptyMessage?: string;
|
|
23
|
+
variant?: AuditTimelineVariant;
|
|
18
24
|
className?: string;
|
|
19
25
|
};
|
|
20
|
-
export declare const AuditTimeline: ({ items, sectionTitle, eventCountLabel, ariaLabel, emptyMessage, className, }: AuditTimelineProps) => import(
|
|
26
|
+
export declare const AuditTimeline: ({ items, sectionTitle, eventCountLabel, ariaLabel, emptyMessage, variant, className, }: AuditTimelineProps) => import('react').JSX.Element;
|
|
@@ -12,11 +12,11 @@ export type AvatarProps = {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
imgProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt">;
|
|
14
14
|
};
|
|
15
|
-
export declare const Avatar: ({ src, alt, fallback, size, variant, shape, className, imgProps, }: AvatarProps) => import(
|
|
15
|
+
export declare const Avatar: ({ src, alt, fallback, size, variant, shape, className, imgProps, }: AvatarProps) => import('react').JSX.Element;
|
|
16
16
|
export type AvatarGroupProps = {
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
max?: number;
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
className?: string;
|
|
21
21
|
};
|
|
22
|
-
export declare const AvatarGroup: ({ children, max, size, className }: AvatarGroupProps) => import(
|
|
22
|
+
export declare const AvatarGroup: ({ children, max, size, className }: AvatarGroupProps) => import('react').JSX.Element;
|
|
@@ -7,4 +7,4 @@ export type CarouselProps = {
|
|
|
7
7
|
showArrows?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const Carousel: ({ items, autoPlay, intervalMs, showDots, showArrows, className, }: CarouselProps) => import(
|
|
10
|
+
export declare const Carousel: ({ items, autoPlay, intervalMs, showDots, showArrows, className, }: CarouselProps) => import('react').JSX.Element | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CheckListItem = {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
checked: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type CheckListProps = {
|
|
7
|
+
items: CheckListItem[];
|
|
8
|
+
/** `inline` (por defecto): en una fila que pasa de línea si no cabe. `stacked`: una debajo de otra. */
|
|
9
|
+
layout?: "inline" | "stacked";
|
|
10
|
+
checkedLabel?: string;
|
|
11
|
+
uncheckedLabel?: string;
|
|
12
|
+
/** Con `onSelect` cada condición es un botón (aria-pressed según `selectedKey`). */
|
|
13
|
+
onSelect?: (key: string) => void;
|
|
14
|
+
selectedKey?: string;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
/** Lista de solo lectura de condiciones cumplidas o pendientes (no es un control de formulario). */
|
|
19
|
+
export declare const CheckList: ({ items, layout, checkedLabel, uncheckedLabel, onSelect, selectedKey, ariaLabel, className, }: CheckListProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,4 +3,4 @@ export type LiveChipProps = {
|
|
|
3
3
|
pulse?: boolean;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const LiveChip: ({ label, pulse, className }: LiveChipProps) => import(
|
|
6
|
+
export declare const LiveChip: ({ label, pulse, className }: LiveChipProps) => import('react').JSX.Element;
|
|
@@ -20,4 +20,4 @@ export type LiveStatusBarProps = {
|
|
|
20
20
|
className?: string;
|
|
21
21
|
ariaLabel?: string;
|
|
22
22
|
};
|
|
23
|
-
export declare const LiveStatusBar: ({ liveLabel, metrics, nextDeparture, className, ariaLabel, }: LiveStatusBarProps) => import(
|
|
23
|
+
export declare const LiveStatusBar: ({ liveLabel, metrics, nextDeparture, className, ariaLabel, }: LiveStatusBarProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type MediaGalleryKind = "image" | "pdf" | "video" | "other";
|
|
2
|
+
export type MediaGalleryItem = {
|
|
3
|
+
/** Identidad del archivo, única en `items`. El visor la sigue al cambiar `items`. */
|
|
4
|
+
key: string;
|
|
5
|
+
kind: MediaGalleryKind;
|
|
6
|
+
/** Texto alternativo de la imagen (o nombre del archivo si no es imagen). */
|
|
7
|
+
alt: string;
|
|
8
|
+
/** Archivo completo. Solo una imagen con `src` se abre en el visor interno. */
|
|
9
|
+
src?: string;
|
|
10
|
+
/** Miniatura propia (ej. la primera página de un PDF). Por defecto, el `src` de una imagen. */
|
|
11
|
+
thumbnailSrc?: string;
|
|
12
|
+
caption?: string;
|
|
13
|
+
sublabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export type MediaGalleryProps = {
|
|
16
|
+
items: MediaGalleryItem[];
|
|
17
|
+
/** Abre las imágenes con `src` en el visor interno. Por defecto `true`. */
|
|
18
|
+
viewer?: boolean;
|
|
19
|
+
/** Abre todo lo que el visor no abre (PDF, vídeo, otros, imágenes sin `src` o todo si `viewer` es `false`). Lo
|
|
20
|
+
* reemplaza: la galería no hace nada más. Sin él, esos elementos no son accionables. */
|
|
21
|
+
onItemOpen?: (item: MediaGalleryItem) => void;
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
viewerTitle?: string;
|
|
24
|
+
emptyMessage?: string;
|
|
25
|
+
/** Ancho mínimo de cada miniatura antes de pasar a menos columnas (longitud CSS). Por defecto 8rem. */
|
|
26
|
+
minThumbnailWidth?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
type Devolucion = {
|
|
30
|
+
clave: string;
|
|
31
|
+
generacion: number;
|
|
32
|
+
};
|
|
33
|
+
/** Una devolución de foco solo se evalúa con el visor cerrado y si es de la última apertura: una reapertura la descarta. */
|
|
34
|
+
export declare const devolucionVigente: (devolucion: Devolucion | null, generacionVigente: number, visorAbierto: boolean) => devolucion is Devolucion;
|
|
35
|
+
/**
|
|
36
|
+
* Cuadrícula de miniaturas con visor de imágenes. La galería no descarga ni llama servicios: lo que no abre el visor lo
|
|
37
|
+
* abre el host con `onItemOpen`. El visor usa `Modal` y su pila (Escape, capas, scroll); el foco lo gestiona la galería.
|
|
38
|
+
* Contrato completo: doc 184, Anexo B.3.
|
|
39
|
+
*/
|
|
40
|
+
export declare const MediaGallery: ({ items, viewer, onItemOpen, ariaLabel, viewerTitle, emptyMessage, minThumbnailWidth, className, }: MediaGalleryProps) => import('react').JSX.Element;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|