@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,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SortableListItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type SortableListProps = {
|
|
8
|
+
items: SortableListItem[];
|
|
9
|
+
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const SortableList: ({ items, onReorder, className }: SortableListProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
export type TagsInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
maxItems?: number;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
onChange?: (value: string[]) => void;
|
|
14
|
+
onRefresh?: () => Promise<void> | void;
|
|
15
|
+
};
|
|
16
|
+
export declare const TagsInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, maxItems, readOnly, disabled, className, onChange, onRefresh, }: TagsInputProps<TFormValues>) => import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { SliderInput } from './SliderInput';
|
|
2
|
+
export type { SliderInputProps } from './SliderInput';
|
|
3
|
+
export { NumberStepper } from './NumberStepper';
|
|
4
|
+
export type { NumberStepperProps, NumberStepperSize, NumberStepperTone } from './NumberStepper';
|
|
5
|
+
export { RangeSliderInput } from './RangeSliderInput';
|
|
6
|
+
export type { RangeSliderInputProps } from './RangeSliderInput';
|
|
7
|
+
export { ProgressBar } from './ProgressBar';
|
|
8
|
+
export type { ProgressBarProps } from './ProgressBar';
|
|
9
|
+
export { ProgressBarReadonly } from './ProgressBarReadonly';
|
|
10
|
+
export type { ProgressBarReadonlyProps, ProgressBarReadonlySize, ProgressBarReadonlyTone, } from './ProgressBarReadonly';
|
|
11
|
+
export { RatingInput } from './RatingInput';
|
|
12
|
+
export type { RatingInputProps } from './RatingInput';
|
|
13
|
+
export { ColorInput } from './ColorInput';
|
|
14
|
+
export type { ColorInputProps } from './ColorInput';
|
|
15
|
+
export { TagsInput } from './TagsInput';
|
|
16
|
+
export type { TagsInputProps } from './TagsInput';
|
|
17
|
+
export { KeyValueInput } from './KeyValueInput';
|
|
18
|
+
export type { KeyValueInputProps } from './KeyValueInput';
|
|
19
|
+
export { SortableList } from './SortableList';
|
|
20
|
+
export type { SortableListItem, SortableListProps } from './SortableList';
|
|
21
|
+
export { CardRadioGroup } from './CardRadioGroup';
|
|
22
|
+
export type { CardRadioGroupProps, CardRadioOption } from './CardRadioGroup';
|
|
23
|
+
export { clampNumber, formatSliderLabel, emptyTags, normalizeTags, emptyKeyValuePairs, normalizeKeyValuePairs, emptyNumberRange, normalizeNumberRange, normalizeHexColor, progressPercent, } from './interactiveUtils';
|
|
24
|
+
export type { NumberRange, KeyValuePair } from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KeyValuePair, NumberRange } from './types';
|
|
2
|
+
export declare const clampNumber: (value: number, min: number, max: number) => number;
|
|
3
|
+
export declare const formatSliderLabel: (value: number, options?: {
|
|
4
|
+
suffix?: string;
|
|
5
|
+
formatValue?: (value: number) => string;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const emptyTags: () => string[];
|
|
8
|
+
export declare const normalizeTags: (value: unknown) => string[];
|
|
9
|
+
export declare const emptyKeyValuePairs: () => KeyValuePair[];
|
|
10
|
+
export declare const normalizeKeyValuePairs: (value: unknown) => KeyValuePair[];
|
|
11
|
+
export declare const emptyNumberRange: (min?: number, max?: number) => NumberRange;
|
|
12
|
+
export declare const normalizeNumberRange: (value: unknown, min?: number, max?: number) => NumberRange;
|
|
13
|
+
export declare const normalizeHexColor: (value: unknown, fallback?: string) => string;
|
|
14
|
+
export declare const progressPercent: (value: number, min: number, max: number) => number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type AccordionItemDef = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type AccordionType = "single" | "multiple";
|
|
9
|
+
export type AccordionProps = {
|
|
10
|
+
items: AccordionItemDef[];
|
|
11
|
+
type?: AccordionType;
|
|
12
|
+
defaultValue?: string[];
|
|
13
|
+
value?: string[];
|
|
14
|
+
onChange?: (openIds: string[]) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const Accordion: ({ items, type, defaultValue, value, onChange, className, }: AccordionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NotificationItem } from '../overlays';
|
|
3
|
+
export type AppShellNavItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
badge?: number | string;
|
|
8
|
+
};
|
|
9
|
+
export type AppShellCategory = {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
items: AppShellNavItem[];
|
|
14
|
+
};
|
|
15
|
+
export type AppShellTopBarContext = {
|
|
16
|
+
section?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export type AppShellBranchSelector = {
|
|
21
|
+
value: string;
|
|
22
|
+
options: {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
onChange: (value: string) => void;
|
|
27
|
+
};
|
|
28
|
+
export type AppShellThemeToggle = {
|
|
29
|
+
mode: "light" | "dark";
|
|
30
|
+
onToggle: () => void;
|
|
31
|
+
};
|
|
32
|
+
export type AppShellModuleLauncherItem = {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
icon?: ReactNode;
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
};
|
|
38
|
+
export type AppShellModuleLauncher = {
|
|
39
|
+
items: AppShellModuleLauncherItem[];
|
|
40
|
+
title?: string;
|
|
41
|
+
subtitle?: string;
|
|
42
|
+
};
|
|
43
|
+
export type AppShellUserMenu = {
|
|
44
|
+
fullName: string;
|
|
45
|
+
subtitle?: string;
|
|
46
|
+
initials?: string;
|
|
47
|
+
actions: {
|
|
48
|
+
label: string;
|
|
49
|
+
onClick: () => void;
|
|
50
|
+
icon?: ReactNode;
|
|
51
|
+
danger?: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export type AppShellHelpAction = {
|
|
55
|
+
ariaLabel?: string;
|
|
56
|
+
icon?: ReactNode;
|
|
57
|
+
onClick: () => void;
|
|
58
|
+
};
|
|
59
|
+
export type AppShellExitToModulesAction = {
|
|
60
|
+
onClick: () => void;
|
|
61
|
+
label?: string;
|
|
62
|
+
ariaLabel?: string;
|
|
63
|
+
icon?: ReactNode;
|
|
64
|
+
};
|
|
65
|
+
export type AppShellProps = {
|
|
66
|
+
categories: AppShellCategory[];
|
|
67
|
+
activeItemId: string;
|
|
68
|
+
onChange: (itemId: string) => void;
|
|
69
|
+
brand?: ReactNode;
|
|
70
|
+
topBar?: ReactNode;
|
|
71
|
+
children: ReactNode;
|
|
72
|
+
submenuCollapsed?: boolean;
|
|
73
|
+
onSubmenuCollapsedChange?: (collapsed: boolean) => void;
|
|
74
|
+
submenuFooter?: ReactNode;
|
|
75
|
+
showSubmenuHeader?: boolean;
|
|
76
|
+
showDefaultTopBar?: boolean;
|
|
77
|
+
topBarContext?: AppShellTopBarContext;
|
|
78
|
+
branchSelector?: AppShellBranchSelector;
|
|
79
|
+
themeToggle?: AppShellThemeToggle;
|
|
80
|
+
notifications?: {
|
|
81
|
+
items: NotificationItem[];
|
|
82
|
+
onItemClick?: (item: NotificationItem) => void;
|
|
83
|
+
};
|
|
84
|
+
moduleLauncher?: AppShellModuleLauncher;
|
|
85
|
+
userMenu?: AppShellUserMenu;
|
|
86
|
+
helpAction?: AppShellHelpAction;
|
|
87
|
+
exitToModulesAction?: AppShellExitToModulesAction;
|
|
88
|
+
className?: string;
|
|
89
|
+
contentClassName?: string;
|
|
90
|
+
};
|
|
91
|
+
export declare const AppShell: ({ categories, activeItemId, onChange, brand, topBar, children, submenuCollapsed, onSubmenuCollapsedChange, submenuFooter, showSubmenuHeader, showDefaultTopBar, topBarContext, branchSelector, themeToggle, notifications, moduleLauncher, userMenu, helpAction, exitToModulesAction, className, contentClassName, }: AppShellProps) => import("react").JSX.Element;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Use `AppShell` instead. `AppBarContainer` remains as temporary
|
|
94
|
+
* compatibility alias and is scheduled for removal in the next major release.
|
|
95
|
+
*/
|
|
96
|
+
export declare const AppBarContainer: ({ categories, activeItemId, onChange, brand, topBar, children, submenuCollapsed, onSubmenuCollapsedChange, submenuFooter, showSubmenuHeader, showDefaultTopBar, topBarContext, branchSelector, themeToggle, notifications, moduleLauncher, userMenu, helpAction, exitToModulesAction, className, contentClassName, }: AppShellProps) => import("react").JSX.Element;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Use `AppShellProps` instead.
|
|
99
|
+
*/
|
|
100
|
+
export type AppBarContainerProps = AppShellProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type BreadcrumbItem = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
current?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type BreadcrumbProps = {
|
|
9
|
+
items: BreadcrumbItem[];
|
|
10
|
+
separator?: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const Breadcrumb: ({ items, separator, className, ariaLabel, }: BreadcrumbProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const toIsoDate: (date: Date) => string;
|
|
2
|
+
export type DateWeekStripProps = {
|
|
3
|
+
selectedDate: string;
|
|
4
|
+
onSelectedDateChange: (iso: string) => void;
|
|
5
|
+
/** ISO de "hoy" (para marcar). Por defecto la fecha actual. */
|
|
6
|
+
todayIso?: string;
|
|
7
|
+
dayLabels?: string[];
|
|
8
|
+
monthLabels?: string[];
|
|
9
|
+
todayLabel?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const DateWeekStrip: ({ selectedDate, onSelectedDateChange, todayIso, dayLabels, monthLabels, todayLabel, className, }: DateWeekStripProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type FilterBarProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onApply?: () => void;
|
|
5
|
+
applyLabel?: string;
|
|
6
|
+
applyLoading?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FilterBar: ({ children, onApply, applyLabel, applyLoading, className, ariaLabel, }: FilterBarProps) => import("react").JSX.Element;
|
|
11
|
+
export type FilterBarFieldProps = {
|
|
12
|
+
label: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FilterBarField: ({ label, children, className }: FilterBarFieldProps) => import("react").JSX.Element;
|
|
17
|
+
export type FilterBarDateProps = {
|
|
18
|
+
value?: string;
|
|
19
|
+
defaultValue?: string;
|
|
20
|
+
onChange?: (value: string) => void;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
"aria-label"?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const FilterBarDate: ({ value, defaultValue, onChange, disabled, className, id, "aria-label": ariaLabel, }: FilterBarDateProps) => import("react").JSX.Element;
|
|
27
|
+
export type FilterBarSelectOption = {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type FilterBarSelectProps = {
|
|
33
|
+
value?: string;
|
|
34
|
+
defaultValue?: string;
|
|
35
|
+
onChange?: (value: string) => void;
|
|
36
|
+
options: FilterBarSelectOption[];
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
className?: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
"aria-label"?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const FilterBarSelect: ({ value, defaultValue, onChange, options, placeholder, disabled, className, id, "aria-label": ariaLabel, }: FilterBarSelectProps) => import("react").JSX.Element;
|
|
44
|
+
export type FilterBarTextProps = {
|
|
45
|
+
value?: string;
|
|
46
|
+
defaultValue?: string;
|
|
47
|
+
onChange?: (value: string) => void;
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
className?: string;
|
|
51
|
+
id?: string;
|
|
52
|
+
"aria-label"?: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const FilterBarText: ({ value, defaultValue, onChange, placeholder, disabled, className, id, "aria-label": ariaLabel, }: FilterBarTextProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useFormWizard, FormWizardFooterVariant, FormWizardStep, FormWizardShell, UseFormWizardOptions } from './useFormWizard';
|
|
2
|
+
export type { FormWizardFooterVariant, FormWizardShell, FormWizardStep, UseFormWizardOptions };
|
|
3
|
+
export type FormWizardProps = UseFormWizardOptions & {
|
|
4
|
+
/** Oculta el footer interno cuando las acciones van en Modal.footer. */
|
|
5
|
+
hideFooter?: boolean;
|
|
6
|
+
/** Sin borde en el panel de contenido (útil dentro de Modal). */
|
|
7
|
+
contentBorderless?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormWizard: ({ contentBorderless, hideFooter, className, ...options }: FormWizardProps) => import("react").JSX.Element;
|
|
11
|
+
export { useFormWizard };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type HeightProviderProps = {
|
|
3
|
+
height: number;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const HeightProvider: ({ height, children }: HeightProviderProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const useContainerHeight: () => number | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ItineraryStop = {
|
|
3
|
+
id: string;
|
|
4
|
+
order: number;
|
|
5
|
+
name: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
onGps?: () => void;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type ItineraryEditorProps = {
|
|
11
|
+
eyebrow?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
action?: ReactNode;
|
|
14
|
+
originLabel: string;
|
|
15
|
+
destinationLabel: string;
|
|
16
|
+
stops: ItineraryStop[];
|
|
17
|
+
mapSlot?: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const ItineraryEditor: ({ eyebrow, title, action, originLabel, destinationLabel, stops, mapSlot, className, }: ItineraryEditorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LiveRouteUnit = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
capacity: number;
|
|
7
|
+
onboardCount?: number;
|
|
8
|
+
};
|
|
9
|
+
export type LiveRoutePassenger = {
|
|
10
|
+
id: string;
|
|
11
|
+
initials: string;
|
|
12
|
+
name: string;
|
|
13
|
+
subtitle?: ReactNode;
|
|
14
|
+
onboard?: boolean;
|
|
15
|
+
unitId?: string | null;
|
|
16
|
+
avatarBg?: string;
|
|
17
|
+
avatarFg?: string;
|
|
18
|
+
};
|
|
19
|
+
export type LiveRoute = {
|
|
20
|
+
id: string;
|
|
21
|
+
route: ReactNode;
|
|
22
|
+
meta?: ReactNode;
|
|
23
|
+
plate?: ReactNode;
|
|
24
|
+
driver?: ReactNode;
|
|
25
|
+
departure?: ReactNode;
|
|
26
|
+
accentColor?: string;
|
|
27
|
+
statusColor?: string;
|
|
28
|
+
capacity?: number;
|
|
29
|
+
onboardCount?: number;
|
|
30
|
+
units: LiveRouteUnit[];
|
|
31
|
+
passengers: LiveRoutePassenger[];
|
|
32
|
+
defaultOpen?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type LiveRouteBoardProps = {
|
|
35
|
+
routes: LiveRoute[];
|
|
36
|
+
openRouteId?: string | null;
|
|
37
|
+
defaultOpenRouteId?: string | null;
|
|
38
|
+
onOpenRouteChange?: (routeId: string | null) => void;
|
|
39
|
+
/** Acciones por pasajero (modo torre/mockup). */
|
|
40
|
+
onPassengerRemove?: (routeId: string, passengerId: string) => void;
|
|
41
|
+
onPassengerBoard?: (routeId: string, passengerId: string) => void;
|
|
42
|
+
onPassengerAbsent?: (routeId: string, passengerId: string) => void;
|
|
43
|
+
/** Acciones de pie de tarjeta. */
|
|
44
|
+
onAddPassenger?: (routeId: string) => void;
|
|
45
|
+
onEvento?: (routeId: string) => void;
|
|
46
|
+
onCloseManifest?: (routeId: string) => void;
|
|
47
|
+
className?: string;
|
|
48
|
+
ariaLabel?: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const LiveRouteBoard: ({ routes, openRouteId, defaultOpenRouteId, onOpenRouteChange, onPassengerRemove, onPassengerBoard, onPassengerAbsent, onAddPassenger, onEvento, onCloseManifest, className, ariaLabel, }: LiveRouteBoardProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type MaestroLayoutProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
searchValue?: string;
|
|
5
|
+
onSearchChange?: (value: string) => void;
|
|
6
|
+
searchPlaceholder?: string;
|
|
7
|
+
onNew?: () => void;
|
|
8
|
+
newLabel?: string;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const MaestroLayout: ({ title, searchValue, onSearchChange, searchPlaceholder, onNew, newLabel, actions, children, footer, className, ariaLabel, }: MaestroLayoutProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type MasterDetailListItemProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
|
+
meta?: ReactNode;
|
|
6
|
+
status?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export type MasterDetailLayoutProps = {
|
|
13
|
+
listHeader?: ReactNode;
|
|
14
|
+
list: ReactNode;
|
|
15
|
+
detail: ReactNode;
|
|
16
|
+
listWidth?: number | string;
|
|
17
|
+
className?: string;
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const MasterDetailListItem: ({ title, subtitle, meta, status, icon, active, onClick, className, }: MasterDetailListItemProps) => import("react").JSX.Element;
|
|
21
|
+
export declare const MasterDetailLayout: ({ listHeader, list, detail, listWidth, className, ariaLabel, }: MasterDetailLayoutProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type PageContainerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
padded?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const PageContainer: ({ children, className, padded }: PageContainerProps) => import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type PageHeaderProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
eyebrow?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
tone?: "default" | "app";
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const PageHeader: ({ title, subtitle, eyebrow, icon, actions, className, tone, sticky, }: PageHeaderProps) => import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type ScrollAreaProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
maxHeight?: CSSProperties["maxHeight"];
|
|
5
|
+
maxWidth?: CSSProperties["maxWidth"];
|
|
6
|
+
className?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ScrollArea: ({ children, maxHeight, maxWidth, className, ariaLabel }: ScrollAreaProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type SeparatorOrientation = "horizontal" | "vertical";
|
|
2
|
+
export type SeparatorProps = {
|
|
3
|
+
orientation?: SeparatorOrientation;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Separator: ({ orientation, className }: SeparatorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type SidePanelSide = "left" | "right";
|
|
3
|
+
type SidePanelProps = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
width?: CSSProperties["width"];
|
|
9
|
+
side?: SidePanelSide;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SidePanel: ({ open, title, subtitle, onClose, width, side, children, footer, className, }: SidePanelProps) => import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type SidePanelHandle = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
openPanel: () => void;
|
|
5
|
+
closePanel: () => void;
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useSidePanelHandle: (initialOpen?: boolean) => SidePanelHandle;
|
|
9
|
+
type SidePanelContainerContextValue = Pick<SidePanelHandle, "openPanel" | "closePanel" | "toggle" | "isOpen">;
|
|
10
|
+
export declare const useSidePanelContainer: () => SidePanelContainerContextValue;
|
|
11
|
+
export type SidePanelContainerProps = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
panel: ReactNode | ((open: boolean) => ReactNode);
|
|
14
|
+
width?: CSSProperties["width"];
|
|
15
|
+
handle?: SidePanelHandle;
|
|
16
|
+
closeOnClickOutside?: boolean;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const SidePanelContainer: ({ children, panel, width, handle, closeOnClickOutside, ariaLabel, className, }: SidePanelContainerProps) => import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type TablePageLayoutProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
padded?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** Área de página para listados/tablas — fondo y padding consistentes. */
|
|
8
|
+
export declare const TablePageLayout: ({ children, className, padded }: TablePageLayoutProps) => import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TabItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
count?: number | string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type TabsProps = {
|
|
10
|
+
tabs: TabItem[];
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (id: string) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
variant?: "underline" | "segmented" | "accentUnderline";
|
|
15
|
+
};
|
|
16
|
+
export declare const Tabs: ({ tabs, value, onChange, className, variant }: TabsProps) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type UnitSelectorOption = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
detail?: string;
|
|
5
|
+
};
|
|
6
|
+
export type UnitSelectorProps = {
|
|
7
|
+
label?: string;
|
|
8
|
+
value: string;
|
|
9
|
+
options: UnitSelectorOption[];
|
|
10
|
+
onChange: (unitId: string) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const UnitSelector: ({ label, value, options, onChange, className, ariaLabel, }: UnitSelectorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type VisibilityProps = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Muestra u oculta hijos con `hidden` (mantiene montados). */
|
|
8
|
+
export declare const Visibility: ({ visible, children, className }: VisibilityProps) => import("react").JSX.Element;
|
|
9
|
+
/** Alias legacy sarkui (typo original). */
|
|
10
|
+
export declare const Visivility: ({ visible, children, className }: VisibilityProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type WeekdayOption = {
|
|
2
|
+
value: number;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export type WeekdayToggleStripProps = {
|
|
6
|
+
selected: Set<number>;
|
|
7
|
+
onChange: (next: Set<number>) => void;
|
|
8
|
+
label?: string;
|
|
9
|
+
days?: WeekdayOption[];
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const WeekdayToggleStrip: ({ selected, onChange, label, days, className, }: WeekdayToggleStripProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { PageContainer } from './PageContainer';
|
|
2
|
+
export { TablePageLayout } from './TablePageLayout';
|
|
3
|
+
export { PageHeader } from './PageHeader';
|
|
4
|
+
export { SidePanel } from './SidePanel';
|
|
5
|
+
export { Tabs } from './Tabs';
|
|
6
|
+
export type { TabItem } from './Tabs';
|
|
7
|
+
export { SidePanelContainer, useSidePanelHandle, useSidePanelContainer } from './SidePanelContainer';
|
|
8
|
+
export type { SidePanelContainerProps, SidePanelHandle } from './SidePanelContainer';
|
|
9
|
+
export { HeightProvider, useContainerHeight } from './HeightProvider';
|
|
10
|
+
export type { HeightProviderProps } from './HeightProvider';
|
|
11
|
+
export { Visibility, Visivility } from './Visibility';
|
|
12
|
+
export type { VisibilityProps } from './Visibility';
|
|
13
|
+
export { Separator } from './Separator';
|
|
14
|
+
export type { SeparatorOrientation, SeparatorProps } from './Separator';
|
|
15
|
+
export { Breadcrumb } from './Breadcrumb';
|
|
16
|
+
export type { BreadcrumbItem, BreadcrumbProps } from './Breadcrumb';
|
|
17
|
+
export { Accordion } from './Accordion';
|
|
18
|
+
export type { AccordionItemDef, AccordionProps, AccordionType } from './Accordion';
|
|
19
|
+
export { ScrollArea } from './ScrollArea';
|
|
20
|
+
export type { ScrollAreaProps } from './ScrollArea';
|
|
21
|
+
export type { FormWizardFooterVariant, FormWizardProps, FormWizardShell, FormWizardStep, UseFormWizardOptions, } from './FormWizard';
|
|
22
|
+
export { FormWizard, useFormWizard } from './FormWizard';
|
|
23
|
+
export { MasterDetailLayout, MasterDetailListItem } from './MasterDetailLayout';
|
|
24
|
+
export type { MasterDetailLayoutProps, MasterDetailListItemProps } from './MasterDetailLayout';
|
|
25
|
+
export { MaestroLayout } from './MaestroLayout';
|
|
26
|
+
export type { MaestroLayoutProps } from './MaestroLayout';
|
|
27
|
+
export { FilterBar, FilterBarField, FilterBarDate, FilterBarSelect, FilterBarText } from './FilterBar';
|
|
28
|
+
export type { FilterBarFieldProps, FilterBarProps, FilterBarDateProps, FilterBarSelectOption, FilterBarSelectProps, FilterBarTextProps, } from './FilterBar';
|
|
29
|
+
export { ItineraryEditor } from './ItineraryEditor';
|
|
30
|
+
export type { ItineraryEditorProps, ItineraryStop } from './ItineraryEditor';
|
|
31
|
+
export { LiveRouteBoard } from './LiveRouteBoard';
|
|
32
|
+
export type { LiveRoute, LiveRouteBoardProps, LiveRoutePassenger, LiveRouteUnit, } from './LiveRouteBoard';
|
|
33
|
+
export { UnitSelector } from './UnitSelector';
|
|
34
|
+
export { DateWeekStrip, toIsoDate } from './DateWeekStrip';
|
|
35
|
+
export type { DateWeekStripProps } from './DateWeekStrip';
|
|
36
|
+
export { WeekdayToggleStrip } from './WeekdayToggleStrip';
|
|
37
|
+
export type { WeekdayToggleStripProps, WeekdayOption } from './WeekdayToggleStrip';
|
|
38
|
+
export type { UnitSelectorOption, UnitSelectorProps } from './UnitSelector';
|
|
39
|
+
export { AppShell, AppBarContainer } from './AppShell';
|
|
40
|
+
export type { AppShellCategory, AppShellNavItem, AppShellProps, AppShellBranchSelector, AppShellExitToModulesAction, AppShellHelpAction, AppShellModuleLauncher, AppShellModuleLauncherItem, AppShellThemeToggle, AppShellTopBarContext, AppShellUserMenu, AppBarContainerProps, } from './AppShell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|