@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,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeVariant } from '../cards/types';
|
|
3
|
+
export type RecordListIconTone = "info" | "warning" | "success" | "neutral";
|
|
4
|
+
export type RecordListItemProps = {
|
|
5
|
+
id?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
iconTone?: RecordListIconTone;
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
subtitle?: ReactNode;
|
|
10
|
+
badge?: {
|
|
11
|
+
label: string;
|
|
12
|
+
variant?: BadgeVariant;
|
|
13
|
+
dot?: boolean;
|
|
14
|
+
};
|
|
15
|
+
actions?: ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export type RecordListProps = {
|
|
19
|
+
title?: ReactNode;
|
|
20
|
+
action?: ReactNode;
|
|
21
|
+
items: RecordListItemProps[];
|
|
22
|
+
className?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const RecordListItem: ({ icon, iconTone, title, subtitle, badge, actions, className, }: RecordListItemProps) => import("react").JSX.Element;
|
|
26
|
+
export declare const RecordList: ({ title, action, items, className, ariaLabel }: RecordListProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TimelineStatus = "default" | "success" | "warning" | "danger" | "info";
|
|
3
|
+
export type TimelineItem = {
|
|
4
|
+
id?: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
time?: ReactNode;
|
|
8
|
+
status?: TimelineStatus;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export type TimelineProps = {
|
|
12
|
+
items: TimelineItem[];
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const Timeline: ({ items, ariaLabel, emptyMessage, className }: TimelineProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Avatar, AvatarGroup } from './Avatar';
|
|
2
|
+
export type { AvatarProps, AvatarGroupProps, AvatarSize, AvatarVariant, AvatarShape } from './Avatar';
|
|
3
|
+
export { AuditTimeline } from './AuditTimeline';
|
|
4
|
+
export type { AuditEventType, AuditTimelineItem, AuditTimelineProps } from './AuditTimeline';
|
|
5
|
+
export { RecordList, RecordListItem } from './RecordList';
|
|
6
|
+
export type { RecordListIconTone, RecordListItemProps, RecordListProps } from './RecordList';
|
|
7
|
+
export { LiveChip } from './LiveChip';
|
|
8
|
+
export type { LiveChipProps } from './LiveChip';
|
|
9
|
+
export { LiveStatusBar } from './LiveStatusBar';
|
|
10
|
+
export type { LiveStatusBarProps, LiveStatusMetric } from './LiveStatusBar';
|
|
11
|
+
export { PassengerBoardCard } from './PassengerBoardCard';
|
|
12
|
+
export type { PassengerBoardCardProps } from './PassengerBoardCard';
|
|
13
|
+
export { Timeline } from './Timeline';
|
|
14
|
+
export type { TimelineItem, TimelineProps, TimelineStatus } from './Timeline';
|
|
15
|
+
export { Carousel } from './Carousel';
|
|
16
|
+
export type { CarouselProps } from './Carousel';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { CurrencyCode } from './documentUtils';
|
|
3
|
+
type CurrencyInputProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
small?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
currency?: CurrencyCode;
|
|
15
|
+
decimals?: number;
|
|
16
|
+
allowNegative?: boolean;
|
|
17
|
+
suffix?: string;
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const CurrencyInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, small, className, currency, decimals, allowNegative, suffix, onChange, }: CurrencyInputProps<TFormValues>) => import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type DniInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
small?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
validateOnComplete?: boolean;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const DniInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, small, className, validateOnComplete, onChange, }: DniInputProps<TFormValues>) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type OtpInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
small?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
length?: number;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const OtpInput: <TFormValues extends FieldValues>({ form, name, label, info, required, disabled, small, className, length, onChange, }: OtpInputProps<TFormValues>) => import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type PhoneInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
small?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
defaultCountry?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
onCountryChange?: (countryCode: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const PhoneInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, small, className, defaultCountry, onChange, onCountryChange, }: PhoneInputProps<TFormValues>) => import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type RucInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
small?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
validateOnComplete?: boolean;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const RucInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, small, className, validateOnComplete, onChange, }: RucInputProps<TFormValues>) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CurrencyCode = "PEN" | "USD" | "EUR" | "CLP";
|
|
2
|
+
export type CountryDialCode = {
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
prefix: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const CURRENCY_SYMBOLS: Record<CurrencyCode, string>;
|
|
8
|
+
export declare const COUNTRY_DIAL_CODES: CountryDialCode[];
|
|
9
|
+
export declare const sanitizeDigits: (value: string, maxLength?: number) => string;
|
|
10
|
+
export declare const validateRuc: (ruc: string) => string | null;
|
|
11
|
+
export declare const validateDni: (dni: string) => string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { RucInput } from './RucInput';
|
|
2
|
+
export { DniInput } from './DniInput';
|
|
3
|
+
export { PhoneInput } from './PhoneInput';
|
|
4
|
+
export { CurrencyInput } from './CurrencyInput';
|
|
5
|
+
export { OtpInput } from './OtpInput';
|
|
6
|
+
export { CURRENCY_SYMBOLS, COUNTRY_DIAL_CODES, sanitizeDigits, validateRuc, validateDni, } from './documentUtils';
|
|
7
|
+
export type { CurrencyCode, CountryDialCode } from './documentUtils';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type AccessDeniedProps = {
|
|
2
|
+
title?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
backLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const AccessDenied: ({ title, message, onBack, backLabel, className, }: AccessDeniedProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type AlertVariant = "info" | "success" | "warning" | "danger";
|
|
3
|
+
type AlertProps = {
|
|
4
|
+
variant?: AlertVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
message: ReactNode;
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
onDismiss?: () => void;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Alert: ({ variant, title, message, dismissible, onDismiss, icon, className, }: AlertProps) => import("react").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type EmptyStateProps = {
|
|
3
|
+
message?: string;
|
|
4
|
+
actionLabel?: string;
|
|
5
|
+
onAction?: () => void;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const EmptyState: ({ message, actionLabel, onAction, icon, }: EmptyStateProps) => import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type RetryBlockProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
isError?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
error?: Error | null;
|
|
7
|
+
onRetry?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const RetryBlock: ({ children, isError, isLoading, error, onRetry, className, }: RetryBlockProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type SkeletonVariant = "text" | "block" | "circle";
|
|
3
|
+
export type SkeletonProps = {
|
|
4
|
+
variant?: SkeletonVariant;
|
|
5
|
+
width?: CSSProperties["width"];
|
|
6
|
+
height?: CSSProperties["height"];
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Skeleton: ({ variant, width, height, className }: SkeletonProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ToastVariant = "default" | "info" | "success" | "warning" | "danger";
|
|
3
|
+
export type ToastPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
4
|
+
export type ToastAction = {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type ToastInput = {
|
|
9
|
+
id?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
message?: ReactNode;
|
|
12
|
+
variant?: ToastVariant;
|
|
13
|
+
duration?: number;
|
|
14
|
+
action?: ToastAction;
|
|
15
|
+
};
|
|
16
|
+
type ToastContextValue = {
|
|
17
|
+
toast: (input: ToastInput) => string;
|
|
18
|
+
dismiss: (id: string) => void;
|
|
19
|
+
dismissAll: () => void;
|
|
20
|
+
};
|
|
21
|
+
type ToastProviderProps = {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
position?: ToastPosition;
|
|
24
|
+
};
|
|
25
|
+
export declare const ToastProvider: ({ children, position }: ToastProviderProps) => import("react").JSX.Element;
|
|
26
|
+
export declare const useToast: () => ToastContextValue;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Alert } from './Alert';
|
|
2
|
+
export type { AlertVariant } from './Alert';
|
|
3
|
+
export { EmptyState } from './EmptyState';
|
|
4
|
+
export { ErrorView } from './ErrorView';
|
|
5
|
+
export { LoadingView } from './LoadingView';
|
|
6
|
+
export { RetryBlock } from './RetryBlock';
|
|
7
|
+
export { Spinner } from './Spinner';
|
|
8
|
+
export { AccessDenied } from './AccessDenied';
|
|
9
|
+
export type { AccessDeniedProps } from './AccessDenied';
|
|
10
|
+
export { Skeleton } from './Skeleton';
|
|
11
|
+
export type { SkeletonProps, SkeletonVariant } from './Skeleton';
|
|
12
|
+
export { ToastProvider, useToast } from './Toast';
|
|
13
|
+
export type { ToastAction, ToastInput, ToastPosition, ToastVariant, } from './Toast';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { SelectOption } from './SelectOption';
|
|
3
|
+
type AsyncCardSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
loadOptions: () => Promise<TOption[]>;
|
|
7
|
+
label?: string;
|
|
8
|
+
info?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
onChange?: (value: string | string[]) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
loadOnMount?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const AsyncCardSelect: <TFormValues extends FieldValues, TOption extends SelectOption = SelectOption>({ form, name, loadOptions, label, info, required, multiple, readOnly, onChange, className, loadOnMount, }: AsyncCardSelectProps<TFormValues, TOption>) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { SelectOption } from './SelectOption';
|
|
3
|
+
type AsyncSearchSelectProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
loadOptions: () => Promise<SelectOption[]>;
|
|
7
|
+
label?: string;
|
|
8
|
+
info?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
searchPlaceholder?: string;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
small?: boolean;
|
|
17
|
+
onChange?: (value: string | string[]) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const AsyncSearchSelect: <TFormValues extends FieldValues>({ form, name, loadOptions, label, info, required, multiple, className, placeholder, searchPlaceholder, emptyMessage, readOnly, small, onChange, }: AsyncSearchSelectProps<TFormValues>) => import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
import { SelectOption } from './SelectOption';
|
|
4
|
+
type AsyncSearchTableSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = {
|
|
5
|
+
form: UseFormReturn<TFormValues>;
|
|
6
|
+
name: Path<TFormValues>;
|
|
7
|
+
loadOptions: () => Promise<TOption[]>;
|
|
8
|
+
columns?: ColumnDef<TOption, unknown>[];
|
|
9
|
+
searchKeys?: readonly string[];
|
|
10
|
+
label?: string;
|
|
11
|
+
info?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
onChange?: (value: string | string[]) => void;
|
|
18
|
+
loadOnMount?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const AsyncSearchTableSelect: <TFormValues extends FieldValues, TOption extends SelectOption = SelectOption>({ form, name, loadOptions, columns, searchKeys, label, info, required, multiple, emptyMessage, readOnly, pageSize, onChange, loadOnMount, }: AsyncSearchTableSelectProps<TFormValues, TOption>) => import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type BooleanCheckboxProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
onChange?: (value: boolean) => void;
|
|
11
|
+
onRefresh?: () => Promise<void> | void;
|
|
12
|
+
};
|
|
13
|
+
export declare const BooleanCheckbox: <TFormValues extends FieldValues>({ form, name, label, info, required, readOnly, className, onChange, onRefresh, }: BooleanCheckboxProps<TFormValues>) => import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { SelectOption } from './SelectOption';
|
|
3
|
+
type CardSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
options: TOption[];
|
|
7
|
+
label?: string;
|
|
8
|
+
info?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onChange?: (value: string | string[]) => void;
|
|
14
|
+
onRefresh?: () => Promise<void> | void;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const CardSelect: <TFormValues extends FieldValues, TOption extends SelectOption = SelectOption>({ form, name, options, label, info, required, multiple, readOnly, loading, onChange, onRefresh, className, }: CardSelectProps<TFormValues, TOption>) => import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type CheckboxProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
checkboxLabel?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
onChange?: (value: boolean) => void;
|
|
13
|
+
onRefresh?: () => Promise<void> | void;
|
|
14
|
+
};
|
|
15
|
+
export declare const Checkbox: <TFormValues extends FieldValues>({ form, name, label, checkboxLabel, info, required, readOnly, disabled, className, onChange, onRefresh, }: CheckboxProps<TFormValues>) => import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { SelectOption } from './SelectOption';
|
|
3
|
+
type CheckboxGroupProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
small?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
onChange?: (values: string[]) => void;
|
|
15
|
+
onRefresh?: () => Promise<void> | void;
|
|
16
|
+
};
|
|
17
|
+
export declare const CheckboxGroup: <TFormValues extends FieldValues>({ form, name, label, info, required, options, readOnly, disabled, small, className, onChange, onRefresh, }: CheckboxGroupProps<TFormValues>) => import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type DateInputKind = "date" | "time" | "datetime-local" | "month";
|
|
3
|
+
type DateInputProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
kind?: DateInputKind;
|
|
10
|
+
min?: string;
|
|
11
|
+
max?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
small?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
onChange?: (value: string) => void;
|
|
17
|
+
onRefresh?: () => Promise<void> | void;
|
|
18
|
+
};
|
|
19
|
+
export declare const DateInput: <TFormValues extends FieldValues>({ form, name, label, info, required, kind, min, max, readOnly, disabled, small, className, onChange, onRefresh, }: DateInputProps<TFormValues>) => import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type DatePickerProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
small?: boolean;
|
|
13
|
+
min?: string;
|
|
14
|
+
max?: string;
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
onRefresh?: () => Promise<void> | void;
|
|
17
|
+
};
|
|
18
|
+
export declare const DatePicker: <TFormValues extends FieldValues>({ form, name, label, info, required, className, placeholder, readOnly, disabled, small, min, max, onChange, onRefresh, }: DatePickerProps<TFormValues>) => import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type DisplayFieldProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
format?: (value: unknown) => string;
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
small?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
onRefresh?: () => Promise<void> | void;
|
|
13
|
+
};
|
|
14
|
+
export declare const DisplayField: <TFormValues extends FieldValues>({ form, name, label, info, required, format, emptyText, small, className, onRefresh, }: DisplayFieldProps<TFormValues>) => import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type FieldLayoutProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
info?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
onRefresh?: () => Promise<void> | void;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const FieldLayout: ({ id, label, info, error, required, onRefresh, loading, children, }: FieldLayoutProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type FileInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
accept?: string;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
maxSizeMb?: number;
|
|
11
|
+
maxFiles?: number;
|
|
12
|
+
buttonLabel?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
small?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
onChange?: (files: File[]) => void;
|
|
18
|
+
onRefresh?: () => Promise<void> | void;
|
|
19
|
+
};
|
|
20
|
+
export declare const FileInput: <TFormValues extends FieldValues>({ form, name, label, info, required, accept, multiple, maxSizeMb, maxFiles, buttonLabel, readOnly, disabled, small, className, onChange, onRefresh, }: FileInputProps<TFormValues>) => import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import { IconType } from 'react-icons';
|
|
4
|
+
type InputProps<TFormValues extends FieldValues> = {
|
|
5
|
+
form: UseFormReturn<TFormValues>;
|
|
6
|
+
name: Path<TFormValues>;
|
|
7
|
+
label?: string;
|
|
8
|
+
info?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
type?: React.HTMLInputTypeAttribute;
|
|
11
|
+
className?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
icon?: IconType;
|
|
16
|
+
small?: boolean;
|
|
17
|
+
onIconClick?: () => Promise<void> | void;
|
|
18
|
+
onRefresh?: () => Promise<void> | void;
|
|
19
|
+
};
|
|
20
|
+
export declare const Input: <TFormValues extends FieldValues>({ form, name, label, info, required, type, className, placeholder, readOnly, onChange, icon, small, onIconClick, onRefresh, }: InputProps<TFormValues>) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type NumberInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
small?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
onRefresh?: () => Promise<void> | void;
|
|
19
|
+
};
|
|
20
|
+
export declare const NumberInput: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, min, max, step, suffix, small, className, onChange, onRefresh, }: NumberInputProps<TFormValues>) => import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type PasswordInputProps<TFormValues extends FieldValues> = {
|
|
3
|
+
form: UseFormReturn<TFormValues>;
|
|
4
|
+
name: Path<TFormValues>;
|
|
5
|
+
label?: string;
|
|
6
|
+
info?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
small?: boolean;
|
|
12
|
+
showStrength?: boolean;
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
onRefresh?: () => Promise<void> | void;
|
|
15
|
+
};
|
|
16
|
+
export declare const PasswordInput: <TFormValues extends FieldValues>({ form, name, label, info, required, className, placeholder, readOnly, small, showStrength, onChange, onRefresh, }: PasswordInputProps<TFormValues>) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { SelectOption } from './SelectOption';
|
|
3
|
+
type RadioGroupProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
small?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
onRefresh?: () => Promise<void> | void;
|
|
16
|
+
};
|
|
17
|
+
export declare const RadioGroup: <TFormValues extends FieldValues>({ form, name, label, info, required, options, readOnly, disabled, small, className, onChange, onRefresh, }: RadioGroupProps<TFormValues>) => import("react").JSX.Element;
|
|
18
|
+
export {};
|