@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.
Files changed (303) hide show
  1. package/README.md +116 -0
  2. package/dist/sf-ui.css +2 -0
  3. package/dist/sf-ui.js +13228 -0
  4. package/dist/sf-ui.js.map +1 -0
  5. package/dist/sf-ui.umd.cjs +21 -0
  6. package/dist/sf-ui.umd.cjs.map +1 -0
  7. package/dist/theme/dark.css +156 -0
  8. package/dist/theme/erp.css +84 -0
  9. package/dist/theme/sark.css +117 -0
  10. package/dist/theme/sf-tokens.css +474 -0
  11. package/dist/types/src/adapters/maps/google/index.d.ts +18 -0
  12. package/dist/types/src/adapters/maps/index.d.ts +2 -0
  13. package/dist/types/src/adapters/maps/leaflet/index.d.ts +10 -0
  14. package/dist/types/src/components/advanced-inputs/CodeEditor.d.ts +20 -0
  15. package/dist/types/src/components/advanced-inputs/MapFlyTo.d.ts +9 -0
  16. package/dist/types/src/components/advanced-inputs/MapGeocoderBar.d.ts +8 -0
  17. package/dist/types/src/components/advanced-inputs/MapPicker.d.ts +22 -0
  18. package/dist/types/src/components/advanced-inputs/MapPickerMap.d.ts +10 -0
  19. package/dist/types/src/components/advanced-inputs/PhotoInput.d.ts +18 -0
  20. package/dist/types/src/components/advanced-inputs/RichTextEditor.d.ts +16 -0
  21. package/dist/types/src/components/advanced-inputs/SignaturePad.d.ts +17 -0
  22. package/dist/types/src/components/advanced-inputs/codeEditorClassName.d.ts +7 -0
  23. package/dist/types/src/components/advanced-inputs/codeEditorExtensions.d.ts +3 -0
  24. package/dist/types/src/components/advanced-inputs/index.d.ts +8 -0
  25. package/dist/types/src/components/advanced-inputs/mapPickerUtils.d.ts +19 -0
  26. package/dist/types/src/components/advanced-inputs/types.d.ts +5 -0
  27. package/dist/types/src/components/buttons/ActionButton.d.ts +11 -0
  28. package/dist/types/src/components/buttons/Button.d.ts +12 -0
  29. package/dist/types/src/components/buttons/ButtonGroup.d.ts +7 -0
  30. package/dist/types/src/components/buttons/FormActions.d.ts +12 -0
  31. package/dist/types/src/components/buttons/RowActions.d.ts +10 -0
  32. package/dist/types/src/components/buttons/ToolbarButton.d.ts +10 -0
  33. package/dist/types/src/components/buttons/buttonClassName.d.ts +9 -0
  34. package/dist/types/src/components/buttons/index.d.ts +9 -0
  35. package/dist/types/src/components/cards/Badge.d.ts +11 -0
  36. package/dist/types/src/components/cards/EntityCard.d.ts +28 -0
  37. package/dist/types/src/components/cards/KPICard.d.ts +22 -0
  38. package/dist/types/src/components/cards/MetricBar.d.ts +13 -0
  39. package/dist/types/src/components/cards/ModuleCard.d.ts +34 -0
  40. package/dist/types/src/components/cards/RecommendationCard.d.ts +13 -0
  41. package/dist/types/src/components/cards/badgeClassName.d.ts +8 -0
  42. package/dist/types/src/components/cards/index.d.ts +12 -0
  43. package/dist/types/src/components/cards/types.d.ts +16 -0
  44. package/dist/types/src/components/charts/Chart.d.ts +3 -0
  45. package/dist/types/src/components/charts/Sparkline.d.ts +2 -0
  46. package/dist/types/src/components/charts/chartUtils.d.ts +14 -0
  47. package/dist/types/src/components/charts/index.d.ts +5 -0
  48. package/dist/types/src/components/charts/types.d.ts +32 -0
  49. package/dist/types/src/components/dashboard/Calendar.d.ts +10 -0
  50. package/dist/types/src/components/dashboard/DashboardCard.d.ts +43 -0
  51. package/dist/types/src/components/dashboard/DonutGauge.d.ts +25 -0
  52. package/dist/types/src/components/dashboard/EventLog.d.ts +37 -0
  53. package/dist/types/src/components/dashboard/Stepper.d.ts +14 -0
  54. package/dist/types/src/components/dashboard/calendarUtils.d.ts +5 -0
  55. package/dist/types/src/components/dashboard/index.d.ts +11 -0
  56. package/dist/types/src/components/dashboard/types.d.ts +39 -0
  57. package/dist/types/src/components/display/AuditTimeline.d.ts +20 -0
  58. package/dist/types/src/components/display/Avatar.d.ts +22 -0
  59. package/dist/types/src/components/display/Carousel.d.ts +10 -0
  60. package/dist/types/src/components/display/LiveChip.d.ts +6 -0
  61. package/dist/types/src/components/display/LiveStatusBar.d.ts +23 -0
  62. package/dist/types/src/components/display/PassengerBoardCard.d.ts +22 -0
  63. package/dist/types/src/components/display/RecordList.d.ts +26 -0
  64. package/dist/types/src/components/display/Timeline.d.ts +17 -0
  65. package/dist/types/src/components/display/index.d.ts +16 -0
  66. package/dist/types/src/components/document-inputs/CurrencyInput.d.ts +21 -0
  67. package/dist/types/src/components/document-inputs/DniInput.d.ts +17 -0
  68. package/dist/types/src/components/document-inputs/DocumentInputs.fuzz.test.d.ts +1 -0
  69. package/dist/types/src/components/document-inputs/OtpInput.d.ts +15 -0
  70. package/dist/types/src/components/document-inputs/PhoneInput.d.ts +18 -0
  71. package/dist/types/src/components/document-inputs/RucInput.d.ts +17 -0
  72. package/dist/types/src/components/document-inputs/documentUtils.d.ts +11 -0
  73. package/dist/types/src/components/document-inputs/index.d.ts +7 -0
  74. package/dist/types/src/components/feedback/AccessDenied.d.ts +8 -0
  75. package/dist/types/src/components/feedback/Alert.d.ts +13 -0
  76. package/dist/types/src/components/feedback/EmptyState.d.ts +9 -0
  77. package/dist/types/src/components/feedback/ErrorView.d.ts +8 -0
  78. package/dist/types/src/components/feedback/LoadingView.d.ts +5 -0
  79. package/dist/types/src/components/feedback/RetryBlock.d.ts +11 -0
  80. package/dist/types/src/components/feedback/Skeleton.d.ts +9 -0
  81. package/dist/types/src/components/feedback/Spinner.d.ts +6 -0
  82. package/dist/types/src/components/feedback/Toast.d.ts +27 -0
  83. package/dist/types/src/components/feedback/index.d.ts +13 -0
  84. package/dist/types/src/components/icons/SyncIcon.d.ts +4 -0
  85. package/dist/types/src/components/icons/index.d.ts +2 -0
  86. package/dist/types/src/components/inputs/AsyncCardSelect.d.ts +17 -0
  87. package/dist/types/src/components/inputs/AsyncSearchSelect.d.ts +20 -0
  88. package/dist/types/src/components/inputs/AsyncSearchTableSelect.d.ts +21 -0
  89. package/dist/types/src/components/inputs/BooleanCheckbox.d.ts +14 -0
  90. package/dist/types/src/components/inputs/CardSelect.d.ts +18 -0
  91. package/dist/types/src/components/inputs/Checkbox.d.ts +16 -0
  92. package/dist/types/src/components/inputs/CheckboxGroup.d.ts +18 -0
  93. package/dist/types/src/components/inputs/DateInput.d.ts +20 -0
  94. package/dist/types/src/components/inputs/DatePicker.d.ts +19 -0
  95. package/dist/types/src/components/inputs/DisplayField.d.ts +15 -0
  96. package/dist/types/src/components/inputs/FieldLayout.d.ts +13 -0
  97. package/dist/types/src/components/inputs/FileInput.d.ts +21 -0
  98. package/dist/types/src/components/inputs/FileInput.security.test.d.ts +1 -0
  99. package/dist/types/src/components/inputs/Input.d.ts +21 -0
  100. package/dist/types/src/components/inputs/NumberInput.d.ts +21 -0
  101. package/dist/types/src/components/inputs/PasswordInput.d.ts +17 -0
  102. package/dist/types/src/components/inputs/RadioGroup.d.ts +18 -0
  103. package/dist/types/src/components/inputs/SearchSelect.d.ts +24 -0
  104. package/dist/types/src/components/inputs/SearchTableSelect.d.ts +22 -0
  105. package/dist/types/src/components/inputs/Select.d.ts +18 -0
  106. package/dist/types/src/components/inputs/SelectOption.d.ts +4 -0
  107. package/dist/types/src/components/inputs/SmartDateInput.d.ts +35 -0
  108. package/dist/types/src/components/inputs/SmartDateInput.test.d.ts +1 -0
  109. package/dist/types/src/components/inputs/SmartInput.d.ts +84 -0
  110. package/dist/types/src/components/inputs/SmartInput.test.d.ts +1 -0
  111. package/dist/types/src/components/inputs/SmartSelect.d.ts +77 -0
  112. package/dist/types/src/components/inputs/SmartSelect.test.d.ts +1 -0
  113. package/dist/types/src/components/inputs/TextArea.d.ts +19 -0
  114. package/dist/types/src/components/inputs/Toggle.d.ts +18 -0
  115. package/dist/types/src/components/inputs/Transfer.d.ts +10 -0
  116. package/dist/types/src/components/inputs/TreeSelect.d.ts +21 -0
  117. package/dist/types/src/components/inputs/YesNoSelect.d.ts +17 -0
  118. package/dist/types/src/components/inputs/fieldClassName.d.ts +8 -0
  119. package/dist/types/src/components/inputs/index.d.ts +37 -0
  120. package/dist/types/src/components/inputs/inputFocusTransition.d.ts +2 -0
  121. package/dist/types/src/components/inputs/passwordStrength.d.ts +7 -0
  122. package/dist/types/src/components/inputs/textareaClassName.d.ts +7 -0
  123. package/dist/types/src/components/inputs/treeSelectUtils.d.ts +9 -0
  124. package/dist/types/src/components/inputs/types-form.d.ts +12 -0
  125. package/dist/types/src/components/inputs/useAsyncOptions.d.ts +15 -0
  126. package/dist/types/src/components/interactive-inputs/CardRadioGroup.d.ts +15 -0
  127. package/dist/types/src/components/interactive-inputs/ColorInput.d.ts +15 -0
  128. package/dist/types/src/components/interactive-inputs/KeyValueInput.d.ts +16 -0
  129. package/dist/types/src/components/interactive-inputs/NumberStepper.d.ts +17 -0
  130. package/dist/types/src/components/interactive-inputs/ProgressBar.d.ts +15 -0
  131. package/dist/types/src/components/interactive-inputs/ProgressBarReadonly.d.ts +15 -0
  132. package/dist/types/src/components/interactive-inputs/RangeSliderInput.d.ts +20 -0
  133. package/dist/types/src/components/interactive-inputs/RatingInput.d.ts +16 -0
  134. package/dist/types/src/components/interactive-inputs/SliderInput.d.ts +19 -0
  135. package/dist/types/src/components/interactive-inputs/SortableList.d.ts +12 -0
  136. package/dist/types/src/components/interactive-inputs/TagsInput.d.ts +16 -0
  137. package/dist/types/src/components/interactive-inputs/index.d.ts +24 -0
  138. package/dist/types/src/components/interactive-inputs/interactiveUtils.d.ts +14 -0
  139. package/dist/types/src/components/interactive-inputs/types.d.ts +8 -0
  140. package/dist/types/src/components/layout/Accordion.d.ts +17 -0
  141. package/dist/types/src/components/layout/AppShell.d.ts +100 -0
  142. package/dist/types/src/components/layout/AppShell.test.d.ts +1 -0
  143. package/dist/types/src/components/layout/Breadcrumb.d.ts +14 -0
  144. package/dist/types/src/components/layout/DateWeekStrip.d.ts +12 -0
  145. package/dist/types/src/components/layout/FilterBar.d.ts +54 -0
  146. package/dist/types/src/components/layout/FormWizard.d.ts +11 -0
  147. package/dist/types/src/components/layout/HeightProvider.d.ts +7 -0
  148. package/dist/types/src/components/layout/ItineraryEditor.d.ts +20 -0
  149. package/dist/types/src/components/layout/LiveRouteBoard.d.ts +50 -0
  150. package/dist/types/src/components/layout/MaestroLayout.d.ts +15 -0
  151. package/dist/types/src/components/layout/MasterDetailLayout.d.ts +21 -0
  152. package/dist/types/src/components/layout/PageContainer.d.ts +8 -0
  153. package/dist/types/src/components/layout/PageHeader.d.ts +13 -0
  154. package/dist/types/src/components/layout/ScrollArea.d.ts +9 -0
  155. package/dist/types/src/components/layout/Separator.d.ts +6 -0
  156. package/dist/types/src/components/layout/SidePanel.d.ts +15 -0
  157. package/dist/types/src/components/layout/SidePanelContainer.d.ts +21 -0
  158. package/dist/types/src/components/layout/TablePageLayout.d.ts +9 -0
  159. package/dist/types/src/components/layout/Tabs.d.ts +17 -0
  160. package/dist/types/src/components/layout/UnitSelector.d.ts +14 -0
  161. package/dist/types/src/components/layout/Visibility.d.ts +10 -0
  162. package/dist/types/src/components/layout/WeekdayToggleStrip.d.ts +12 -0
  163. package/dist/types/src/components/layout/flotaLayout.test.d.ts +1 -0
  164. package/dist/types/src/components/layout/index.d.ts +40 -0
  165. package/dist/types/src/components/layout/transportApi.test.d.ts +1 -0
  166. package/dist/types/src/components/layout/useFormWizard.d.ts +40 -0
  167. package/dist/types/src/components/maps/base/MapFrame.d.ts +8 -0
  168. package/dist/types/src/components/maps/base/MapStatus.d.ts +5 -0
  169. package/dist/types/src/components/maps/base/index.d.ts +4 -0
  170. package/dist/types/src/components/maps/forms/AddressSearchInput.d.ts +16 -0
  171. package/dist/types/src/components/maps/forms/AreaInput.d.ts +7 -0
  172. package/dist/types/src/components/maps/forms/CoordinatesInput.d.ts +6 -0
  173. package/dist/types/src/components/maps/forms/LocationPicker.d.ts +16 -0
  174. package/dist/types/src/components/maps/forms/LocationPicker.test.d.ts +1 -0
  175. package/dist/types/src/components/maps/forms/RouteInput.d.ts +7 -0
  176. package/dist/types/src/components/maps/forms/ShapeInput.d.ts +19 -0
  177. package/dist/types/src/components/maps/forms/ShapeInput.test.d.ts +1 -0
  178. package/dist/types/src/components/maps/forms/SmartMapInput.d.ts +39 -0
  179. package/dist/types/src/components/maps/forms/SmartMapInput.test.d.ts +1 -0
  180. package/dist/types/src/components/maps/forms/index.d.ts +12 -0
  181. package/dist/types/src/components/maps/index.d.ts +3 -0
  182. package/dist/types/src/components/maps/renderers/google/GoogleMapRenderer.d.ts +6 -0
  183. package/dist/types/src/components/maps/renderers/google/index.d.ts +1 -0
  184. package/dist/types/src/components/maps/renderers/index.d.ts +2 -0
  185. package/dist/types/src/components/maps/renderers/leaflet/LeafletMapRenderer.d.ts +7 -0
  186. package/dist/types/src/components/maps/renderers/leaflet/index.d.ts +1 -0
  187. package/dist/types/src/components/maps/views/MapView.d.ts +9 -0
  188. package/dist/types/src/components/maps/views/index.d.ts +2 -0
  189. package/dist/types/src/components/media-inputs/FileDropInput.d.ts +21 -0
  190. package/dist/types/src/components/media-inputs/MultiPhotoInput.d.ts +20 -0
  191. package/dist/types/src/components/media-inputs/MultiPhotoInput.security.test.d.ts +1 -0
  192. package/dist/types/src/components/media-inputs/PhotoCropEditor.d.ts +9 -0
  193. package/dist/types/src/components/media-inputs/PhotoCropInput.d.ts +19 -0
  194. package/dist/types/src/components/media-inputs/PhotoInput.d.ts +1 -0
  195. package/dist/types/src/components/media-inputs/SignaturePad.d.ts +1 -0
  196. package/dist/types/src/components/media-inputs/SmartMediaInput.d.ts +43 -0
  197. package/dist/types/src/components/media-inputs/SmartMediaInput.test.d.ts +1 -0
  198. package/dist/types/src/components/media-inputs/cropImageFromArea.d.ts +7 -0
  199. package/dist/types/src/components/media-inputs/index.d.ts +13 -0
  200. package/dist/types/src/components/media-inputs/mediaUtils.d.ts +9 -0
  201. package/dist/types/src/components/media-inputs/types.d.ts +6 -0
  202. package/dist/types/src/components/overlays/CommandPalette.d.ts +17 -0
  203. package/dist/types/src/components/overlays/ConfirmDialog.d.ts +14 -0
  204. package/dist/types/src/components/overlays/ContextMenu.d.ts +15 -0
  205. package/dist/types/src/components/overlays/Drawer.d.ts +23 -0
  206. package/dist/types/src/components/overlays/DropdownMenu.d.ts +21 -0
  207. package/dist/types/src/components/overlays/MessageDialog.d.ts +11 -0
  208. package/dist/types/src/components/overlays/Modal.d.ts +31 -0
  209. package/dist/types/src/components/overlays/NotificationBell.d.ts +12 -0
  210. package/dist/types/src/components/overlays/OptionItem.d.ts +11 -0
  211. package/dist/types/src/components/overlays/Popover.d.ts +18 -0
  212. package/dist/types/src/components/overlays/ProductTour.d.ts +15 -0
  213. package/dist/types/src/components/overlays/QRView.d.ts +9 -0
  214. package/dist/types/src/components/overlays/TabMenuOption.d.ts +9 -0
  215. package/dist/types/src/components/overlays/Tooltip.d.ts +10 -0
  216. package/dist/types/src/components/overlays/index.d.ts +27 -0
  217. package/dist/types/src/components/range-inputs/DateRangeInput.d.ts +19 -0
  218. package/dist/types/src/components/range-inputs/DateRangeUtcInput.d.ts +3 -0
  219. package/dist/types/src/components/range-inputs/TimeRangeInput.d.ts +18 -0
  220. package/dist/types/src/components/range-inputs/index.d.ts +8 -0
  221. package/dist/types/src/components/range-inputs/rangeUtils.d.ts +8 -0
  222. package/dist/types/src/components/range-inputs/types.d.ts +10 -0
  223. package/dist/types/src/components/table/ActiveFiltersBar.d.ts +10 -0
  224. package/dist/types/src/components/table/AsyncCustomTable.d.ts +13 -0
  225. package/dist/types/src/components/table/CustomTable.d.ts +83 -0
  226. package/dist/types/src/components/table/EditableDataGrid.d.ts +15 -0
  227. package/dist/types/src/components/table/EditableDataGrid.test.d.ts +1 -0
  228. package/dist/types/src/components/table/ExpandableTableSection.d.ts +26 -0
  229. package/dist/types/src/components/table/PaginationRangeInput.d.ts +14 -0
  230. package/dist/types/src/components/table/TableColumnSettings.d.ts +13 -0
  231. package/dist/types/src/components/table/TableFiltersPanel.d.ts +17 -0
  232. package/dist/types/src/components/table/TableSortingPanel.d.ts +16 -0
  233. package/dist/types/src/components/table/activeFilterUtils.d.ts +9 -0
  234. package/dist/types/src/components/table/asyncStateStore.d.ts +6 -0
  235. package/dist/types/src/components/table/customTableController.d.ts +51 -0
  236. package/dist/types/src/components/table/index.d.ts +26 -0
  237. package/dist/types/src/components/table/tableFilters.d.ts +21 -0
  238. package/dist/types/src/components/table/useTableColumnSettings.d.ts +29 -0
  239. package/dist/types/src/components/visualization/NetworkLegend.d.ts +8 -0
  240. package/dist/types/src/components/visualization/NetworkMap.d.ts +19 -0
  241. package/dist/types/src/components/visualization/OrgTree.d.ts +20 -0
  242. package/dist/types/src/components/visualization/index.d.ts +9 -0
  243. package/dist/types/src/components/visualization/networkMapUtils.d.ts +32 -0
  244. package/dist/types/src/components/visualization/orgTreeUtils.d.ts +6 -0
  245. package/dist/types/src/components/visualization/types.d.ts +38 -0
  246. package/dist/types/src/constants/index.d.ts +1 -0
  247. package/dist/types/src/constants/maps/index.d.ts +8 -0
  248. package/dist/types/src/contracts/maps/index.d.ts +27 -0
  249. package/dist/types/src/engines/maps/google/googleMapEngine.d.ts +3 -0
  250. package/dist/types/src/engines/maps/google/index.d.ts +1 -0
  251. package/dist/types/src/engines/maps/index.d.ts +2 -0
  252. package/dist/types/src/engines/maps/leaflet/index.d.ts +1 -0
  253. package/dist/types/src/engines/maps/leaflet/leafletMapEngine.d.ts +3 -0
  254. package/dist/types/src/hooks/index.d.ts +11 -0
  255. package/dist/types/src/hooks/maps/index.d.ts +3 -0
  256. package/dist/types/src/hooks/maps/useAddressSearch.d.ts +7 -0
  257. package/dist/types/src/hooks/maps/useAddressSearch.test.d.ts +1 -0
  258. package/dist/types/src/hooks/maps/useMapEngine.d.ts +5 -0
  259. package/dist/types/src/hooks/maps/useMapsConfig.d.ts +1 -0
  260. package/dist/types/src/hooks/useArrayPaginator.d.ts +21 -0
  261. package/dist/types/src/hooks/useClickAway.d.ts +2 -0
  262. package/dist/types/src/hooks/useCustomForm.d.ts +26 -0
  263. package/dist/types/src/hooks/useFilterData.d.ts +10 -0
  264. package/dist/types/src/hooks/useIsClient.d.ts +2 -0
  265. package/dist/types/src/hooks/useMaestroFilter.d.ts +15 -0
  266. package/dist/types/src/hooks/useMaestroFilter.test.d.ts +1 -0
  267. package/dist/types/src/hooks/useQueryStringState.d.ts +2 -0
  268. package/dist/types/src/hooks/useStoredState.d.ts +2 -0
  269. package/dist/types/src/index.d.ts +24 -0
  270. package/dist/types/src/performance/catalogPhases.performance.test.d.ts +1 -0
  271. package/dist/types/src/performance/componentRender.performance.test.d.ts +1 -0
  272. package/dist/types/src/providers/SfProvider.d.ts +21 -0
  273. package/dist/types/src/providers/SfProvider.maps.test.d.ts +1 -0
  274. package/dist/types/src/providers/index.d.ts +2 -0
  275. package/dist/types/src/services/maps/distance/basicDistanceService.d.ts +2 -0
  276. package/dist/types/src/services/maps/distance/basicDistanceService.test.d.ts +1 -0
  277. package/dist/types/src/services/maps/distance/index.d.ts +1 -0
  278. package/dist/types/src/services/maps/geocoding/googleGeocodingService.d.ts +3 -0
  279. package/dist/types/src/services/maps/geocoding/index.d.ts +2 -0
  280. package/dist/types/src/services/maps/geocoding/nominatimGeocodingService.d.ts +2 -0
  281. package/dist/types/src/services/maps/googleMapsLoader.d.ts +66 -0
  282. package/dist/types/src/services/maps/index.d.ts +5 -0
  283. package/dist/types/src/services/maps/places/index.d.ts +1 -0
  284. package/dist/types/src/services/maps/places/mapsPlacesService.d.ts +2 -0
  285. package/dist/types/src/services/maps/routing/basicRouteService.d.ts +2 -0
  286. package/dist/types/src/services/maps/routing/basicRouteService.test.d.ts +1 -0
  287. package/dist/types/src/services/maps/routing/index.d.ts +1 -0
  288. package/dist/types/src/types/maps/index.d.ts +155 -0
  289. package/dist/types/src/utils/exportTableCsv.d.ts +11 -0
  290. package/dist/types/src/utils/exportTableXlsx.d.ts +5 -0
  291. package/dist/types/src/utils/index.d.ts +9 -0
  292. package/dist/types/src/utils/maps/geocoder.d.ts +8 -0
  293. package/dist/types/src/utils/maps/index.d.ts +10 -0
  294. package/dist/types/src/utils/maps/index.test.d.ts +1 -0
  295. package/dist/types/src/utils/queryParams.d.ts +3 -0
  296. package/dist/types/src/utils/resolveCssVar.d.ts +2 -0
  297. package/dist/types/src/utils/sanitizeRichHtml.d.ts +1 -0
  298. package/dist/types/src/utils/sanitizeRichHtml.test.d.ts +1 -0
  299. package/dist/types/src/utils/spreadsheetSanitizer.d.ts +1 -0
  300. package/dist/types/src/utils/spreadsheetSanitizer.test.d.ts +1 -0
  301. package/dist/types/src/utils/toStringArray.d.ts +1 -0
  302. package/dist/types/src/utils/validators.d.ts +52 -0
  303. package/package.json +128 -0
@@ -0,0 +1,24 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { SelectOption } from './SelectOption';
3
+ type SearchSelectProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ options: 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
+ maxChips?: number;
18
+ onChange?: (value: string | string[]) => void;
19
+ onRefresh?: () => Promise<void> | void;
20
+ loading?: boolean;
21
+ onOpen?: () => void;
22
+ };
23
+ export declare const SearchSelect: <TFormValues extends FieldValues>({ form, name, options, label, info, required, multiple, className, placeholder, searchPlaceholder, emptyMessage, readOnly, small, maxChips, onChange, onRefresh, onOpen, loading, }: SearchSelectProps<TFormValues>) => import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,22 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { ColumnDef } from '@tanstack/react-table';
3
+ import { SelectOption } from './SelectOption';
4
+ type SearchTableSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = {
5
+ form: UseFormReturn<TFormValues>;
6
+ name: Path<TFormValues>;
7
+ options: 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
+ loading?: boolean;
17
+ pageSize?: number;
18
+ onChange?: (value: string | string[]) => void;
19
+ onRefresh?: () => Promise<void> | void;
20
+ };
21
+ export declare const SearchTableSelect: <TFormValues extends FieldValues, TOption extends SelectOption = SelectOption>({ form, name, options, columns: extraColumns, searchKeys, label, info, required, multiple, emptyMessage, readOnly, loading, pageSize, onChange, onRefresh, }: SearchTableSelectProps<TFormValues, TOption>) => import("react").JSX.Element;
22
+ export {};
@@ -0,0 +1,18 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { SelectOption } from './SelectOption';
3
+ type SelectProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ options: SelectOption[];
7
+ label?: string;
8
+ info?: string;
9
+ required?: boolean;
10
+ className?: string;
11
+ placeholder?: string;
12
+ readOnly?: boolean;
13
+ onChange?: (value: string) => void;
14
+ small?: boolean;
15
+ onRefresh?: () => Promise<void> | void;
16
+ };
17
+ export declare const Select: <TFormValues extends FieldValues>({ form, name, options, label, info, required, className, placeholder, readOnly, onChange, small, onRefresh, }: SelectProps<TFormValues>) => import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,4 @@
1
+ export type SelectOption<TExtra extends object = object> = {
2
+ label: string;
3
+ value: string;
4
+ } & TExtra;
@@ -0,0 +1,35 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { DateRange, TimeRange } from '../range-inputs/types';
3
+ type SmartDateBaseProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ label?: string;
7
+ info?: string;
8
+ required?: boolean;
9
+ readOnly?: boolean;
10
+ disabled?: boolean;
11
+ small?: boolean;
12
+ className?: string;
13
+ onRefresh?: () => Promise<void> | void;
14
+ };
15
+ type SmartDateSingleProps<TFormValues extends FieldValues> = SmartDateBaseProps<TFormValues> & {
16
+ kind: "date" | "time" | "datetime-local" | "month";
17
+ min?: string;
18
+ max?: string;
19
+ onChange?: (value: string) => void;
20
+ };
21
+ type SmartDateRangeProps<TFormValues extends FieldValues> = SmartDateBaseProps<TFormValues> & {
22
+ kind: "dateRange";
23
+ min?: string;
24
+ max?: string;
25
+ utc?: boolean;
26
+ onChange?: (value: DateRange) => void;
27
+ };
28
+ type SmartTimeRangeProps<TFormValues extends FieldValues> = SmartDateBaseProps<TFormValues> & {
29
+ kind: "timeRange";
30
+ showDuration?: boolean;
31
+ onChange?: (value: TimeRange) => void;
32
+ };
33
+ export type SmartDateInputProps<TFormValues extends FieldValues> = SmartDateSingleProps<TFormValues> | SmartDateRangeProps<TFormValues> | SmartTimeRangeProps<TFormValues>;
34
+ export declare const SmartDateInput: <TFormValues extends FieldValues>(props: SmartDateInputProps<TFormValues>) => import("react").JSX.Element | null;
35
+ export {};
@@ -0,0 +1,84 @@
1
+ import { default as React } from 'react';
2
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
3
+ import { CurrencyCode } from '../document-inputs/documentUtils';
4
+ type SmartInputBaseProps<TFormValues extends FieldValues> = {
5
+ form: UseFormReturn<TFormValues>;
6
+ name: Path<TFormValues>;
7
+ label?: string;
8
+ info?: string;
9
+ required?: boolean;
10
+ readOnly?: boolean;
11
+ disabled?: boolean;
12
+ small?: boolean;
13
+ };
14
+ type SmartInputTextProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
15
+ kind: "text";
16
+ placeholder?: string;
17
+ className?: string;
18
+ type?: React.HTMLInputTypeAttribute;
19
+ onChange?: (value: string) => void;
20
+ onRefresh?: () => Promise<void> | void;
21
+ };
22
+ type SmartInputTextAreaProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
23
+ kind: "textarea";
24
+ placeholder?: string;
25
+ className?: string;
26
+ rows?: number;
27
+ maxLength?: number;
28
+ onChange?: (value: string) => void;
29
+ onRefresh?: () => Promise<void> | void;
30
+ };
31
+ type SmartInputNumberProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
32
+ kind: "number";
33
+ placeholder?: string;
34
+ className?: string;
35
+ min?: number;
36
+ max?: number;
37
+ step?: number;
38
+ suffix?: string;
39
+ onChange?: (value: string) => void;
40
+ onRefresh?: () => Promise<void> | void;
41
+ };
42
+ type SmartInputYesNoProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
43
+ kind: "yesNo";
44
+ placeholder?: string;
45
+ yesLabel?: string;
46
+ noLabel?: string;
47
+ onChange?: (value: boolean) => void;
48
+ onRefresh?: () => Promise<void> | void;
49
+ };
50
+ type SmartInputDniProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
51
+ kind: "dni";
52
+ placeholder?: string;
53
+ className?: string;
54
+ validateOnComplete?: boolean;
55
+ onChange?: (value: string) => void;
56
+ };
57
+ type SmartInputRucProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
58
+ kind: "ruc";
59
+ placeholder?: string;
60
+ className?: string;
61
+ validateOnComplete?: boolean;
62
+ onChange?: (value: string) => void;
63
+ };
64
+ type SmartInputPhoneProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
65
+ kind: "phone";
66
+ placeholder?: string;
67
+ className?: string;
68
+ defaultCountry?: string;
69
+ onChange?: (value: string) => void;
70
+ onCountryChange?: (countryCode: string) => void;
71
+ };
72
+ type SmartInputCurrencyProps<TFormValues extends FieldValues> = SmartInputBaseProps<TFormValues> & {
73
+ kind: "currency";
74
+ placeholder?: string;
75
+ className?: string;
76
+ currency?: CurrencyCode;
77
+ decimals?: number;
78
+ allowNegative?: boolean;
79
+ suffix?: string;
80
+ onChange?: (value: string) => void;
81
+ };
82
+ export type SmartInputProps<TFormValues extends FieldValues> = SmartInputTextProps<TFormValues> | SmartInputTextAreaProps<TFormValues> | SmartInputNumberProps<TFormValues> | SmartInputYesNoProps<TFormValues> | SmartInputDniProps<TFormValues> | SmartInputRucProps<TFormValues> | SmartInputPhoneProps<TFormValues> | SmartInputCurrencyProps<TFormValues>;
83
+ export declare const SmartInput: <TFormValues extends FieldValues>(props: SmartInputProps<TFormValues>) => React.JSX.Element | null;
84
+ export {};
@@ -0,0 +1,77 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { ColumnDef } from '@tanstack/react-table';
3
+ import { SelectOption } from './SelectOption';
4
+ type SmartSelectBaseProps<TFormValues extends FieldValues> = {
5
+ form: UseFormReturn<TFormValues>;
6
+ name: Path<TFormValues>;
7
+ label?: string;
8
+ info?: string;
9
+ required?: boolean;
10
+ readOnly?: boolean;
11
+ className?: string;
12
+ onRefresh?: () => Promise<void> | void;
13
+ };
14
+ type SmartSelectSimpleProps<TFormValues extends FieldValues> = SmartSelectBaseProps<TFormValues> & {
15
+ kind: "select";
16
+ options: SelectOption[];
17
+ placeholder?: string;
18
+ small?: boolean;
19
+ onChange?: (value: string) => void;
20
+ };
21
+ type SmartSearchSelectProps<TFormValues extends FieldValues> = SmartSelectBaseProps<TFormValues> & {
22
+ kind: "searchSelect";
23
+ options: SelectOption[];
24
+ multiple?: boolean;
25
+ placeholder?: string;
26
+ searchPlaceholder?: string;
27
+ emptyMessage?: string;
28
+ small?: boolean;
29
+ onChange?: (value: string | string[]) => void;
30
+ };
31
+ type SmartAsyncSearchSelectProps<TFormValues extends FieldValues> = SmartSelectBaseProps<TFormValues> & {
32
+ kind: "asyncSearchSelect";
33
+ loadOptions: () => Promise<SelectOption[]>;
34
+ multiple?: boolean;
35
+ placeholder?: string;
36
+ searchPlaceholder?: string;
37
+ emptyMessage?: string;
38
+ small?: boolean;
39
+ onChange?: (value: string | string[]) => void;
40
+ };
41
+ type SmartCardSelectProps<TFormValues extends FieldValues> = SmartSelectBaseProps<TFormValues> & {
42
+ kind: "cardSelect";
43
+ options: SelectOption[];
44
+ multiple?: boolean;
45
+ onChange?: (value: string | string[]) => void;
46
+ };
47
+ type SmartAsyncCardSelectProps<TFormValues extends FieldValues> = SmartSelectBaseProps<TFormValues> & {
48
+ kind: "asyncCardSelect";
49
+ loadOptions: () => Promise<SelectOption[]>;
50
+ multiple?: boolean;
51
+ onChange?: (value: string | string[]) => void;
52
+ loadOnMount?: boolean;
53
+ };
54
+ type SmartSearchTableSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = SmartSelectBaseProps<TFormValues> & {
55
+ kind: "searchTableSelect";
56
+ options: TOption[];
57
+ columns?: ColumnDef<TOption, unknown>[];
58
+ searchKeys?: readonly string[];
59
+ multiple?: boolean;
60
+ emptyMessage?: string;
61
+ pageSize?: number;
62
+ onChange?: (value: string | string[]) => void;
63
+ };
64
+ type SmartAsyncSearchTableSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = SmartSelectBaseProps<TFormValues> & {
65
+ kind: "asyncSearchTableSelect";
66
+ loadOptions: () => Promise<TOption[]>;
67
+ columns?: ColumnDef<TOption, unknown>[];
68
+ searchKeys?: readonly string[];
69
+ multiple?: boolean;
70
+ emptyMessage?: string;
71
+ pageSize?: number;
72
+ onChange?: (value: string | string[]) => void;
73
+ loadOnMount?: boolean;
74
+ };
75
+ export type SmartSelectProps<TFormValues extends FieldValues, TOption extends SelectOption = SelectOption> = SmartSelectSimpleProps<TFormValues> | SmartSearchSelectProps<TFormValues> | SmartAsyncSearchSelectProps<TFormValues> | SmartCardSelectProps<TFormValues> | SmartAsyncCardSelectProps<TFormValues> | SmartSearchTableSelectProps<TFormValues, TOption> | SmartAsyncSearchTableSelectProps<TFormValues, TOption>;
76
+ export declare const SmartSelect: <TFormValues extends FieldValues, TOption extends SelectOption = SelectOption>(props: SmartSelectProps<TFormValues, TOption>) => import("react").JSX.Element | null;
77
+ export {};
@@ -0,0 +1,19 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ type TextAreaProps<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
+ rows?: number;
12
+ maxLength?: number;
13
+ small?: boolean;
14
+ className?: string;
15
+ onChange?: (value: string) => void;
16
+ onRefresh?: () => Promise<void> | void;
17
+ };
18
+ export declare const TextArea: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, disabled, rows, maxLength, small, className, onChange, onRefresh, }: TextAreaProps<TFormValues>) => import("react").JSX.Element;
19
+ export {};
@@ -0,0 +1,18 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ type ToggleProps<TFormValues extends FieldValues> = {
3
+ form: UseFormReturn<TFormValues>;
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ info?: string;
7
+ required?: boolean;
8
+ trueLabel?: string;
9
+ falseLabel?: string;
10
+ readOnly?: boolean;
11
+ disabled?: boolean;
12
+ small?: boolean;
13
+ className?: string;
14
+ onChange?: (value: boolean) => void;
15
+ onRefresh?: () => Promise<void> | void;
16
+ };
17
+ export declare const Toggle: <TFormValues extends FieldValues>({ form, name, label, info, required, trueLabel, falseLabel, readOnly, disabled, small, className, onChange, onRefresh, }: ToggleProps<TFormValues>) => import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import { TransferItem } from './types-form';
2
+ export type TransferProps = {
3
+ items: TransferItem[];
4
+ targetKeys: string[];
5
+ onChange: (targetKeys: string[]) => void;
6
+ titles?: [string, string];
7
+ searchable?: boolean;
8
+ className?: string;
9
+ };
10
+ export declare const Transfer: ({ items, targetKeys, onChange, titles, searchable, className, }: TransferProps) => import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { TreeSelectNode } from './types-form';
3
+ type TreeSelectProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ treeData: TreeSelectNode[];
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
+ onRefresh?: () => Promise<void> | void;
19
+ };
20
+ export declare const TreeSelect: <TFormValues extends FieldValues>({ form, name, treeData, label, info, required, multiple, className, placeholder, searchPlaceholder, emptyMessage, readOnly, small, onChange, onRefresh, }: TreeSelectProps<TFormValues>) => import("react").JSX.Element;
21
+ export {};
@@ -0,0 +1,17 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ type YesNoSelectProps<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
+ small?: boolean;
11
+ onChange?: (value: boolean) => void;
12
+ onRefresh?: () => Promise<void> | void;
13
+ yesLabel?: string;
14
+ noLabel?: string;
15
+ };
16
+ export declare const YesNoSelect: <TFormValues extends FieldValues>({ form, name, label, info, required, placeholder, readOnly, small, onChange, onRefresh, yesLabel, noLabel, }: YesNoSelectProps<TFormValues>) => import("react").JSX.Element;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const fieldClassName: ({ small, error, className, withRightIcon, disabled, readOnly, }: {
2
+ small?: boolean;
3
+ error?: boolean;
4
+ className?: string;
5
+ withRightIcon?: boolean;
6
+ disabled?: boolean;
7
+ readOnly?: boolean;
8
+ }) => string;
@@ -0,0 +1,37 @@
1
+ export { FieldLayout } from './FieldLayout';
2
+ export { fieldClassName } from './fieldClassName';
3
+ export { inputFocusTransition } from './inputFocusTransition';
4
+ export { textareaClassName } from './textareaClassName';
5
+ export { Input } from './Input';
6
+ export { TextArea } from './TextArea';
7
+ export { NumberInput } from './NumberInput';
8
+ export { DateInput } from './DateInput';
9
+ export { DatePicker } from './DatePicker';
10
+ export { PasswordInput } from './PasswordInput';
11
+ export { TreeSelect } from './TreeSelect';
12
+ export { Transfer } from './Transfer';
13
+ export type { TransferProps } from './Transfer';
14
+ export type { TreeSelectNode, TransferItem } from './types-form';
15
+ export { Select } from './Select';
16
+ export { Checkbox } from './Checkbox';
17
+ export { CheckboxGroup } from './CheckboxGroup';
18
+ export { RadioGroup } from './RadioGroup';
19
+ export { Toggle } from './Toggle';
20
+ export { BooleanCheckbox } from './BooleanCheckbox';
21
+ export { YesNoSelect } from './YesNoSelect';
22
+ export { SmartInput } from './SmartInput';
23
+ export type { SmartInputProps } from './SmartInput';
24
+ export { SmartSelect } from './SmartSelect';
25
+ export type { SmartSelectProps } from './SmartSelect';
26
+ export { SmartDateInput } from './SmartDateInput';
27
+ export type { SmartDateInputProps } from './SmartDateInput';
28
+ export { FileInput } from './FileInput';
29
+ export { DisplayField } from './DisplayField';
30
+ export { CardSelect } from './CardSelect';
31
+ export { AsyncCardSelect } from './AsyncCardSelect';
32
+ export { SearchSelect } from './SearchSelect';
33
+ export { AsyncSearchSelect } from './AsyncSearchSelect';
34
+ export { SearchTableSelect } from './SearchTableSelect';
35
+ export { AsyncSearchTableSelect } from './AsyncSearchTableSelect';
36
+ export { useAsyncOptions } from './useAsyncOptions';
37
+ export type { SelectOption } from './SelectOption';
@@ -0,0 +1,2 @@
1
+ /** Transición suave al focus/blur — usar en inputs, textarea, select, etc. */
2
+ export declare const inputFocusTransition = "transition-[border-color,box-shadow,background-color] duration-200 ease-out";
@@ -0,0 +1,7 @@
1
+ export type PasswordStrength = "weak" | "fair" | "good" | "strong";
2
+ export type PasswordStrengthResult = {
3
+ score: PasswordStrength;
4
+ label: string;
5
+ percent: number;
6
+ };
7
+ export declare const evaluatePasswordStrength: (value: string) => PasswordStrengthResult;
@@ -0,0 +1,7 @@
1
+ export declare const textareaClassName: ({ small, error, className, }: {
2
+ small?: boolean;
3
+ error?: boolean;
4
+ className?: string;
5
+ disabled?: boolean;
6
+ readOnly?: boolean;
7
+ }) => string;
@@ -0,0 +1,9 @@
1
+ import { TreeSelectNode } from './types-form';
2
+ export type FlatTreeNode = TreeSelectNode & {
3
+ depth: number;
4
+ parentValue?: string;
5
+ };
6
+ export declare const flattenTree: (nodes: TreeSelectNode[], depth?: number, parentValue?: string) => FlatTreeNode[];
7
+ export declare const filterTreeNodes: (nodes: TreeSelectNode[], query: string) => TreeSelectNode[];
8
+ export declare const collectDescendantValues: (node: TreeSelectNode) => string[];
9
+ export declare const findTreeNode: (nodes: TreeSelectNode[], value: string) => TreeSelectNode | undefined;
@@ -0,0 +1,12 @@
1
+ export type TreeSelectNode = {
2
+ value: string;
3
+ label: string;
4
+ children?: TreeSelectNode[];
5
+ disabled?: boolean;
6
+ };
7
+ export type TransferItem = {
8
+ key: string;
9
+ title: string;
10
+ description?: string;
11
+ disabled?: boolean;
12
+ };
@@ -0,0 +1,15 @@
1
+ type UseAsyncOptionsArgs<TOption> = {
2
+ loadOptions: () => Promise<TOption[]>;
3
+ loadOnMount?: boolean;
4
+ loadOnInitialValue?: boolean;
5
+ hasInitialValue?: boolean;
6
+ errorMessage?: string;
7
+ };
8
+ export declare const useAsyncOptions: <TOption>({ loadOptions, loadOnMount, loadOnInitialValue, hasInitialValue, errorMessage, }: UseAsyncOptionsArgs<TOption>) => {
9
+ options: TOption[];
10
+ loaded: boolean;
11
+ error: string | undefined;
12
+ isPending: boolean;
13
+ refresh: () => void;
14
+ };
15
+ export {};
@@ -0,0 +1,15 @@
1
+ export type CardRadioOption = {
2
+ value: string;
3
+ label: string;
4
+ detail?: string;
5
+ disabled?: boolean;
6
+ };
7
+ export type CardRadioGroupProps = {
8
+ value: string;
9
+ onChange: (value: string) => void;
10
+ options: CardRadioOption[];
11
+ name?: string;
12
+ className?: string;
13
+ ariaLabel?: string;
14
+ };
15
+ export declare const CardRadioGroup: ({ value, onChange, options, name, className, ariaLabel, }: CardRadioGroupProps) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ export type ColorInputProps<TFormValues extends FieldValues> = {
3
+ form: UseFormReturn<TFormValues>;
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ info?: string;
7
+ required?: boolean;
8
+ readOnly?: boolean;
9
+ disabled?: boolean;
10
+ small?: boolean;
11
+ className?: string;
12
+ onChange?: (value: string) => void;
13
+ onRefresh?: () => Promise<void> | void;
14
+ };
15
+ export declare const ColorInput: <TFormValues extends FieldValues>({ form, name, label, info, required, readOnly, disabled, small, className, onChange, onRefresh, }: ColorInputProps<TFormValues>) => import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { KeyValuePair } from './types';
3
+ export type KeyValueInputProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ label?: string;
7
+ info?: string;
8
+ required?: boolean;
9
+ readOnly?: boolean;
10
+ disabled?: boolean;
11
+ small?: boolean;
12
+ className?: string;
13
+ onChange?: (value: KeyValuePair[]) => void;
14
+ onRefresh?: () => Promise<void> | void;
15
+ };
16
+ export declare const KeyValueInput: <TFormValues extends FieldValues>({ form, name, label, info, required, readOnly, disabled, small, className, onChange, onRefresh, }: KeyValueInputProps<TFormValues>) => import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ export type NumberStepperTone = "slate" | "emerald" | "amber" | "blue";
2
+ export type NumberStepperSize = "sm" | "md";
3
+ export type NumberStepperProps = {
4
+ value: number;
5
+ onChange: (value: number) => void;
6
+ min?: number;
7
+ max?: number;
8
+ step?: number;
9
+ tone?: NumberStepperTone;
10
+ size?: NumberStepperSize;
11
+ disabled?: boolean;
12
+ readOnly?: boolean;
13
+ ariaLabel?: string;
14
+ formatValue?: (value: number) => string;
15
+ className?: string;
16
+ };
17
+ export declare const NumberStepper: ({ value, onChange, min, max, step, tone, size, disabled, readOnly, ariaLabel, formatValue, className, }: NumberStepperProps) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ export type ProgressBarProps<TFormValues extends FieldValues> = {
3
+ form: UseFormReturn<TFormValues>;
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ info?: string;
7
+ required?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ suffix?: string;
11
+ className?: string;
12
+ formatValue?: (value: number) => string;
13
+ onRefresh?: () => Promise<void> | void;
14
+ };
15
+ export declare const ProgressBar: <TFormValues extends FieldValues>({ form, name, label, info, required, min, max, suffix, className, formatValue, onRefresh, }: ProgressBarProps<TFormValues>) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export type ProgressBarReadonlyTone = "default" | "success" | "warning" | "danger" | "info";
2
+ export type ProgressBarReadonlySize = "sm" | "md";
3
+ export type ProgressBarReadonlyProps = {
4
+ value: number;
5
+ min?: number;
6
+ max?: number;
7
+ label?: string;
8
+ showValue?: boolean;
9
+ suffix?: string;
10
+ formatValue?: (value: number) => string;
11
+ tone?: ProgressBarReadonlyTone;
12
+ size?: ProgressBarReadonlySize;
13
+ className?: string;
14
+ };
15
+ export declare const ProgressBarReadonly: ({ value, min, max, label, showValue, suffix, formatValue, tone, size, className, }: ProgressBarReadonlyProps) => import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ import { NumberRange } from './types';
3
+ export type RangeSliderInputProps<TFormValues extends FieldValues> = {
4
+ form: UseFormReturn<TFormValues>;
5
+ name: Path<TFormValues>;
6
+ label?: string;
7
+ info?: string;
8
+ required?: boolean;
9
+ min?: number;
10
+ max?: number;
11
+ step?: number;
12
+ suffix?: string;
13
+ readOnly?: boolean;
14
+ disabled?: boolean;
15
+ className?: string;
16
+ formatValue?: (value: number) => string;
17
+ onChange?: (value: NumberRange) => void;
18
+ onRefresh?: () => Promise<void> | void;
19
+ };
20
+ export declare const RangeSliderInput: <TFormValues extends FieldValues>({ form, name, label, info, required, min, max, step, suffix, readOnly, disabled, className, formatValue, onChange, onRefresh, }: RangeSliderInputProps<TFormValues>) => import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ export type RatingInputProps<TFormValues extends FieldValues> = {
3
+ form: UseFormReturn<TFormValues>;
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ info?: string;
7
+ required?: boolean;
8
+ stars?: number;
9
+ readOnly?: boolean;
10
+ disabled?: boolean;
11
+ small?: boolean;
12
+ className?: string;
13
+ onChange?: (value: number) => void;
14
+ onRefresh?: () => Promise<void> | void;
15
+ };
16
+ export declare const RatingInput: <TFormValues extends FieldValues>({ form, name, label, info, required, stars, readOnly, disabled, small, className, onChange, onRefresh, }: RatingInputProps<TFormValues>) => import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
2
+ export type SliderInputProps<TFormValues extends FieldValues> = {
3
+ form: UseFormReturn<TFormValues>;
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ info?: string;
7
+ required?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ suffix?: string;
12
+ readOnly?: boolean;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ formatValue?: (value: number) => string;
16
+ onChange?: (value: number) => void;
17
+ onRefresh?: () => Promise<void> | void;
18
+ };
19
+ export declare const SliderInput: <TFormValues extends FieldValues>({ form, name, label, info, required, min, max, step, suffix, readOnly, disabled, className, formatValue, onChange, onRefresh, }: SliderInputProps<TFormValues>) => import("react").JSX.Element;