How hcl-tech-software/enchanted-react-components works
Enchanted React Components is a reusable React UI library for HCL Software products, built on Material UI. A product engineer imports its public exports, configures a theme (and direction provider when needed), then uses atomic and composite components in an application UI. Its capabilities include data presentation, forms and selection, navigation and feedback, and a media preview. The README and sampled files support the public-export and theming relationships; most component internals were not sampled, so their interactions are not inferred.
Main entry points: src/index.ts Library exports · SearchCriteria.tsx Search criteria · Preview.tsx Media preview · theme/index.ts Theme configuration
Components 21
Public entry and theming
- Library exports
src/index.ts - Theme configuration
src/theme/index.ts - Color tokens
src/colors/index.ts - RTL direction provider
src/DirectionStyleProvider/DirectionStyleProvider.tsx
Atomic UI components
- Buttons and actions
src/Button/Button.tsx - Typography
src/Typography/Typography.tsx - Text and selection inputs
src/Autocomplete/Autocomplete.tsx - Calendar and date picker
src/Calendar/Calendar.tsx - Dialogs and poppers
src/Dialog/Dialog.tsx - Progress and notifications
src/Snackbar/Snackbar.tsx
Composite components
- Search criteria
src/composite_components/SearchCriteria/SearchCriteria.tsx - Progress bar
src/composite_components/ProgressBar/ProgressBar.tsx - Chip layout
src/composite_components/ChipLayout/ChipLayout.tsx - Multiple select chips
src/composite_components/MultipleSelectChip/MultipleSelectChip.tsx - Tiles and actions
src/composite_components/Tile/Tile.tsx
Specialized UI
- Data grid
src/DataGrid/DataGrid.tsx - Data grid cell
src/DataGridCell/DataGridCell.tsx - Table components
src/Table/Table.tsx - Pagination
src/Pagination/Pagination.tsx - Media preview
src/Preview/Preview.tsx
Other components
- Product engineer
Connections 23
- Product engineer → Library exports: imports
README.md - Library exports → Theme configuration: exports alongside
src/index.ts - Library exports → Buttons and actions: exports
src/index.ts - Library exports → Typography: exports
src/index.ts - Library exports → Text and selection inputs: exports
src/index.ts - Library exports → Calendar and date picker: exports
src/index.ts - Library exports → Data grid: exports
src/index.ts - Library exports → Table components: exports
src/index.ts - Library exports → Pagination: exports
src/index.ts - Library exports → Media preview: exports
src/index.ts - Library exports → Search criteria: exports
src/index.ts - Library exports → Progress bar: exports
src/index.ts - Library exports → Chip layout: exports
src/index.ts - Library exports → Multiple select chips: exports
src/index.ts - Library exports → Tiles and actions: exports
src/index.ts - Product engineer → Theme configuration: configures
README.md - Theme configuration → Color tokens: uses tokens
src/theme/index.ts - Product engineer → RTL direction provider: wraps app
README.md - Media preview → Typography: renders
src/Preview/Preview.tsx - Media preview → Buttons and actions: renders
src/Preview/Preview.tsx - Search criteria → Buttons and actions: renders
src/composite_components/SearchCriteria/SearchCriteria.tsx - Search criteria → Dialogs and poppers: renders
src/composite_components/SearchCriteria/SearchCriteria.tsx - Data grid → Pagination: configures slot
src/DataGrid/DataGrid.tsx