How leonardomacedocano/lcano-react-ui works
lcano-react-ui is a reusable React component library for building themed application interfaces. The principal workflow is an application developer composing the exported UI components under a theme, then handling component callbacks such as search filters and pagination. The library also provides navigation, forms, notifications, and display components, plus hooks and a message context for common UI behavior. Internal links are limited to relationships shown in excerpts or explicitly documented in the README; many components are represented by their documented capability because their implementations were not sampled.
Main entry points: index.ts Public exports · SearchFilterRSQL.tsx RSQL filter builder · Table.tsx Data table · SearchPagination.tsx Search pagination
Components 24
UI components
- Public exports
src/index.ts - Account summary
src/components/AccountSummary/AccountSummary.tsx - Buttons and actions
src/components/ActionButton/ActionButton.tsx - Navigation components
src/components/RailTabsNav/RailTabsNav.tsx - Cards and content
src/components/BadgeCard/BadgeCard.tsx - Modal dialogs
src/components/ConfirmModal/ConfirmModal.tsx - Toast notifications
src/components/ToastNotification/ToastNotification.tsx
Data and forms
- Field controls
src/components/FieldValue/FieldValue.tsx - File upload
src/components/DragDropFile/DragDropFile.tsx - RSQL filter builder
src/components/SearchFilterRSQL/SearchFilterRSQL.tsx - Async search select
src/components/SearchSelectField/SearchSelectField.tsx - Data table
src/components/Table/Table.tsx - Search pagination
src/components/SearchPagination/SearchPagination.tsx
Theme and layout
- Theme system
src/styles/defaultTheme.ts - Layout primitives
src/components/Stack/Stack.tsx
Hooks and messages
- Confirm modal hook
src/hooks/useConfirmModal.tsx - Clipboard feedback hook
src/hooks/useCopyFeedback.tsx - Synced preference hook
src/hooks/useSyncedPreference.ts - Message provider
src/contexts/message/ContextMessageProvider.tsx
Shared types and utilities
- Filter definitions
src/types/Filters.ts - Field value utilities
src/utils/FieldValueUtils.ts - Date utilities
src/utils/DateUtils.ts
Other components
- Application developer
- Preference endpoint
Connections 28
- Application developer → Public exports: imports
- Public exports → Theme system: configures themed UI
- Public exports → Account summary: exports components
- Public exports → Buttons and actions: exports components
- Public exports → Navigation components: exports components
- Public exports → Cards and content: exports components
- Public exports → Modal dialogs: exports components
- Public exports → Toast notifications: exports components
- Public exports → Field controls: exports components
- Public exports → File upload: exports components
- Public exports → RSQL filter builder: exports components
- Public exports → Async search select: exports components
- Public exports → Data table: exports components
- Public exports → Search pagination: exports components
- Public exports → Layout primitives: exports components
- RSQL filter builder → Field controls: renders fields
src/components/SearchFilterRSQL/SearchFilterRSQL.tsx - RSQL filter builder → Filter definitions: uses definitions
src/components/SearchFilterRSQL/SearchFilterRSQL.tsx - RSQL filter builder → Field value utilities: formats values
src/components/SearchFilterRSQL/SearchFilterRSQL.tsx - Field value utilities → Date utilities: formats dates
src/utils/FieldValueUtils.ts - Async search select → Field controls: uses field control
src/components/SearchSelectField/SearchSelectField.tsx - Data table → Search pagination: renders controls
src/components/Table/Table.tsx - Data table → Buttons and actions: uses buttons
src/components/Table/Table.tsx - Data table → Layout primitives: uses container
src/components/Table/Table.tsx - Search pagination → Layout primitives: uses layout
src/components/SearchPagination/SearchPagination.tsx - Confirm modal hook → Modal dialogs: supports confirmation
src/hooks/useConfirmModal.tsx - Clipboard feedback hook → Toast notifications: renders feedback
src/hooks/useCopyFeedback.tsx - Message provider → Toast notifications: renders queued toasts
src/contexts/message/ContextMessageProvider.tsx - Synced preference hook → Preference endpoint: fetches and saves
src/hooks/useSyncedPreference.ts